@@ -61,7 +61,6 @@ linters:
61
61
disable-all : true
62
62
enable :
63
63
- bodyclose # checks whether HTTP response body is closed successfully [fast: false, auto-fix: false]
64
- - deadcode # Finds unused code [fast: false, auto-fix: false]
65
64
- depguard # Go linter that checks if package imports are in a list of acceptable packages [fast: false, auto-fix: false]
66
65
- dogsled # Checks assignments with too many blank identifiers (e.g. x, _, _, _, := f()) [fast: true, auto-fix: false]
67
66
- 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]
@@ -84,20 +83,19 @@ linters:
84
83
- nolintlint # Reports ill-formed or insufficient nolint directives [fast: true, auto-fix: false]
85
84
- revive # Fast, configurable, extensible, flexible, and beautiful linter for Go. Drop-in replacement of golint. [fast: false, auto-fix: false]
86
85
- rowserrcheck # checks whether Err of rows is checked successfully [fast: false, auto-fix: false]
87
- - staticcheck # megacheck): Staticcheck is a go vet on steroids, applying a ton of static analysis checks [fast: false, auto-fix: false]
88
- - structcheck # Finds unused struct fields [fast: false, auto-fix: false]
86
+ - staticcheck # Staticcheck is a go vet on steroids, applying a ton of static analysis checks [fast: false, auto-fix: false]
89
87
- stylecheck # Stylecheck is a replacement for golint [fast: false, auto-fix: false]
90
88
- thelper # thelper detects golang test helpers without t.Helper() call and checks the consistency of test helpers [fast: false, auto-fix: false]
91
89
- typecheck # Like the front-end of a Go compiler, parses and type-checks Go code [fast: false, auto-fix: false]
92
90
- unconvert # Remove unnecessary type conversions [fast: false, auto-fix: false]
93
91
- unparam # Reports unused function parameters [fast: false, auto-fix: false]
94
92
- unused # Checks Go code for unused constants, variables, functions and types [fast: false, auto-fix: false]
95
- - varcheck # Finds unused global variables and constants [fast: false, auto-fix: false]
96
93
- whitespace # Tool for detection of leading and trailing whitespace [fast: true, auto-fix: true]
97
94
98
95
# don't enable:
99
96
# - asciicheck # Simple linter to check that your code does not contain non-ASCII identifiers [fast: true, auto-fix: false]
100
97
# - cyclop # checks function and package cyclomatic complexity [fast: false, auto-fix: false]
98
+ # - deadcode # Finds unused code [fast: false, auto-fix: false]
101
99
# - dupl # Tool for code clone detection [fast: true, auto-fix: false]
102
100
# - durationcheck # check for two durations multiplied together [fast: false, auto-fix: false]
103
101
# - exhaustivestruct # Checks if all struct's fields are initialized [fast: false, auto-fix: false]
@@ -130,9 +128,11 @@ linters:
130
128
# - promlinter # Check Prometheus metrics naming via promlint [fast: true, auto-fix: false]
131
129
# - scopelint # Scopelint checks for unpinned variables in go programs [fast: true, auto-fix: false]
132
130
# - sqlclosecheck # Checks that sql.Rows and sql.Stmt are closed. [fast: false, auto-fix: false]
131
+ # - structcheck # Finds unused struct fields [fast: false, auto-fix: false]
133
132
# - testpackage # linter that makes you use a separate _test package [fast: true, auto-fix: false]
134
133
# - tparallel # tparallel detects inappropriate usage of t.Parallel() method in your Go test codes [fast: false, auto-fix: false]
135
134
# - wastedassign # wastedassign finds wasted assignment statements. [fast: false, auto-fix: false]
136
135
# - wrapcheck # Checks that errors returned from external packages are wrapped [fast: false, auto-fix: false]
137
136
# - wsl # Whitespace Linter - Forces you to use empty lines! [fast: true, auto-fix: false]
137
+ # - varcheck # Finds unused global variables and constants [fast: false, auto-fix: false]
138
138
# - ifshort # Checks that your code uses short syntax for if-statements whenever possible [fast: true, auto-fix: false]
0 commit comments