@@ -48,6 +48,7 @@ linters:
48
48
- stylecheck # Stylecheck is a replacement for golint [fast: false, auto-fix: false]
49
49
- tagliatelle # Checks the struct tags. [fast: true, auto-fix: false]
50
50
- tenv # tenv is analyzer that detects using os.Setenv instead of t.Setenv since Go1.17 [fast: false, auto-fix: false]
51
+ - thelper # thelper detects golang test helpers without t.Helper() call and checks the consistency of test helpers [fast: false, auto-fix: false]
51
52
- tparallel # tparallel detects inappropriate usage of t.Parallel() method in your Go test codes [fast: false, auto-fix: false]
52
53
- typecheck # Like the front-end of a Go compiler, parses and type-checks Go code [fast: false, auto-fix: false]
53
54
- unconvert # Remove unnecessary type conversions [fast: false, auto-fix: false]
@@ -61,7 +62,6 @@ linters:
61
62
- dupl # Tool for code clone detection [fast: true, auto-fix: false]
62
63
- 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]
63
64
- exhaustive # check exhaustiveness of enum switch statements [fast: false, auto-fix: false]
64
- - exhaustivestruct # [deprecated]: Checks if all struct's fields are initialized [fast: false, auto-fix: false]
65
65
- exhaustruct # Checks if all structure fields are initialized [fast: false, auto-fix: false]
66
66
- forcetypeassert # finds forced type assertions [fast: true, auto-fix: false]
67
67
- funlen # Tool for detection of long functions [fast: true, auto-fix: false]
@@ -73,24 +73,18 @@ linters:
73
73
- godox # Tool for detection of FIXME, TODO and other comment keywords [fast: true, auto-fix: false]
74
74
- goerr113 # Golang linter to check the errors handling expressions [fast: false, auto-fix: false]
75
75
- gofumpt # Gofumpt checks whether code was gofumpt-ed. [fast: true, auto-fix: true]
76
- - golint # [deprecated]: Golint differs from gofmt. Gofmt reformats Go source code, whereas golint prints out style mistakes [fast: false, auto-fix: false]
77
76
- gomnd # An analyzer to detect magic numbers. [fast: true, auto-fix: false]
78
77
- gosec # (gas): Inspects source code for security problems [fast: false, auto-fix: false]
79
- - interfacer # [deprecated]: Linter that suggests narrower interface types [fast: false, auto-fix: false]
80
78
- lll # Reports long lines [fast: true, auto-fix: false]
81
79
- maintidx # maintidx measures the maintainability index of each function. [fast: true, auto-fix: false]
82
- - maligned # [deprecated]: Tool to detect Go structs that would take less memory if their fields were sorted [fast: false, auto-fix: false]
83
80
- nestif # Reports deeply nested if statements [fast: true, auto-fix: false]
84
81
- nilnil # Checks that there is no simultaneous return of `nil` error and an invalid value. [fast: false, auto-fix: false]
85
82
- nlreturn # nlreturn checks for a new line before return and branch statements to increase code clarity [fast: true, auto-fix: false]
86
83
- nonamedreturns # Reports all named returns [fast: true, auto-fix: false]
87
84
- paralleltest # paralleltest detects missing usage of t.Parallel() method in your Go test [fast: true, auto-fix: false]
88
85
- prealloc # Finds slice declarations that could potentially be preallocated [fast: true, auto-fix: false]
89
86
- predeclared # find code that shadows one of Go's predeclared identifiers [fast: true, auto-fix: false]
90
- - scopelint # [deprecated]: Scopelint checks for unpinned variables in go programs [fast: true, auto-fix: false]
91
87
- staticcheck # (megacheck): Staticcheck is a go vet on steroids, applying a ton of static analysis checks [fast: false, auto-fix: false]
92
- - testpackage # linter that makes you use a separate _test package [fast: true, auto-fix: false]
93
- - thelper # thelper detects golang test helpers without t.Helper() call and checks the consistency of test helpers [fast: false, auto-fix: false]
94
88
- unparam # Reports unused function parameters [fast: false, auto-fix: false]
95
89
- unused # (megacheck): Checks Go code for unused constants, variables, functions and types [fast: false, auto-fix: false]
96
90
- varnamelen # checks that the length of a variable's name matches its scope [fast: false, auto-fix: false]
0 commit comments