@@ -57,6 +57,7 @@ linters:
57
57
- typecheck # Like the front-end of a Go compiler, parses and type-checks Go code [fast: false, auto-fix: false]
58
58
- unconvert # Remove unnecessary type conversions [fast: false, auto-fix: false]
59
59
- varcheck # Finds unused global variables and constants [fast: false, auto-fix: false]
60
+ - wastedassign # wastedassign finds wasted assignment statements. [fast: false, auto-fix: false]
60
61
- whitespace # Tool for detection of leading and trailing whitespace [fast: true, auto-fix: true]
61
62
62
63
disable :
@@ -65,7 +66,6 @@ linters:
65
66
- dupl # Tool for code clone detection [fast: true, auto-fix: false]
66
67
- 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]
67
68
- exhaustive # check exhaustiveness of enum switch statements [fast: false, auto-fix: false]
68
- - exhaustruct # Checks if all structure fields are initialized [fast: false, auto-fix: false]
69
69
- forcetypeassert # finds forced type assertions [fast: true, auto-fix: false]
70
70
- funlen # Tool for detection of long functions [fast: true, auto-fix: false]
71
71
- gochecknoglobals # check that no global variables exist [fast: true, auto-fix: false]
@@ -81,13 +81,9 @@ linters:
81
81
- nestif # Reports deeply nested if statements [fast: true, auto-fix: false]
82
82
- nilnil # Checks that there is no simultaneous return of `nil` error and an invalid value. [fast: false, auto-fix: false]
83
83
- nlreturn # nlreturn checks for a new line before return and branch statements to increase code clarity [fast: true, auto-fix: false]
84
- - paralleltest # paralleltest detects missing usage of t.Parallel() method in your Go test [fast: true, auto-fix: false]
85
- - prealloc # Finds slice declarations that could potentially be preallocated [fast: true, auto-fix: false]
86
84
- staticcheck # (megacheck): Staticcheck is a go vet on steroids, applying a ton of static analysis checks [fast: false, auto-fix: false]
87
- - unparam # Reports unused function parameters [fast: false, auto-fix: false]
88
85
- unused # (megacheck): Checks Go code for unused constants, variables, functions and types [fast: false, auto-fix: false]
89
86
- varnamelen # checks that the length of a variable's name matches its scope [fast: false, auto-fix: false]
90
- - wastedassign # wastedassign finds wasted assignment statements. [fast: false, auto-fix: false]
91
87
- wrapcheck # Checks that errors returned from external packages are wrapped [fast: false, auto-fix: false]
92
88
- wsl # Whitespace Linter - Forces you to use empty lines! [fast: true, auto-fix: false]
93
89
0 commit comments