You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: .golangci.yml
+5-13Lines changed: 5 additions & 13 deletions
Original file line number
Diff line number
Diff line change
@@ -11,16 +11,8 @@ linters-settings:
11
11
gocyclo:
12
12
min-complexity: 16
13
13
govet:
14
-
check-shadowing: true
15
-
maligned:
16
-
suggest-new: true
17
-
tagliatelle:
18
-
# check the struck tag name case
19
-
case:
20
-
use-field-name: true
21
-
rules:
22
-
json: camel
23
-
yaml: camel
14
+
enable:
15
+
- shadow
24
16
revive:
25
17
# see https://github.com/mgechev/revive#available-rules for details.
26
18
ignore-generated-header: true
@@ -60,7 +52,6 @@ linters:
60
52
disable-all: true
61
53
enable:
62
54
- bodyclose # checks whether HTTP response body is closed successfully [fast: false, auto-fix: false]
63
-
64
55
- dogsled # Checks assignments with too many blank identifiers (e.g. x, _, _, _, := f()) [fast: true, auto-fix: false]
65
56
- errcheck # Errcheck is a program for checking for unchecked errors in go programs. These unchecked errors can be critical bugs in some cases [fast: false, auto-fix: false]
66
57
- errorlint # errorlint is a linter for that can be used to find code that will cause problems with the error wrapping scheme introduced in Go 1.13. [fast: false, auto-fix: false]
@@ -83,15 +74,16 @@ linters:
83
74
- misspell # Finds commonly misspelled English words in comments [fast: true, auto-fix: true]
84
75
- nakedret # Finds naked returns in functions greater than a specified function length [fast: true, auto-fix: false]
0 commit comments