Skip to content

Commit b196ad1

Browse files
jsvisakaralabe
andauthoredJul 25, 2022
all: add whitespace linter (ethereum#25312)
* golangci: typo Signed-off-by: Delweng <[email protected]> * golangci: add whietspace Signed-off-by: Delweng <[email protected]> * *: rm whitesapce using golangci-lint Signed-off-by: Delweng <[email protected]> * cmd/puppeth: revert accidental resurrection Co-authored-by: Péter Szilágyi <[email protected]>
1 parent 6c4e5d0 commit b196ad1

File tree

90 files changed

+12
-164
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

90 files changed

+12
-164
lines changed
 

‎.golangci.yml

+12-11
Original file line numberDiff line numberDiff line change
@@ -28,15 +28,16 @@ linters:
2828
- durationcheck
2929
- exportloopref
3030
- gosec
31+
- whitespace
3132

32-
#- structcheck # lots of false positives
33-
#- errcheck #lot of false positives
34-
# - contextcheck
35-
# - errchkjson # lots of false positives
36-
# - errorlint # this check crashes
37-
# - exhaustive # silly check
38-
# - makezero # false positives
39-
# - nilerr # several intentional
33+
# - structcheck # lots of false positives
34+
# - errcheck #lot of false positives
35+
# - contextcheck
36+
# - errchkjson # lots of false positives
37+
# - errorlint # this check crashes
38+
# - exhaustive # silly check
39+
# - makezero # false positives
40+
# - nilerr # several intentional
4041

4142
linters-settings:
4243
gofmt:
@@ -46,9 +47,9 @@ linters-settings:
4647
min-occurrences: 6 # minimum number of occurrences
4748
gosec:
4849
excludes:
49-
- G404 # Use of weak random number generator - lots of FP
50-
- G107 # Potential http request -- those are intentional
51-
- G306 # G306: Expect WriteFile permissions to be 0600 or less
50+
- G404 # Use of weak random number generator - lots of FP
51+
- G107 # Potential http request -- those are intentional
52+
- G306 # G306: Expect WriteFile permissions to be 0600 or less
5253

5354
issues:
5455
exclude-rules:

‎accounts/abi/bind/base_test.go

-1
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,6 @@ func (mc *mockPendingCaller) PendingCallContract(ctx context.Context, call ether
115115
}
116116

117117
func TestPassingBlockNumber(t *testing.T) {
118-
119118
mc := &mockPendingCaller{
120119
mockCaller: &mockCaller{
121120
codeAtBytes: []byte{1, 2, 3},

0 commit comments

Comments
 (0)
Please sign in to comment.