|
7 | 7 | - asciicheck # Simple linter to check that your code does not contain non-ASCII identifiers [fast: true, auto-fix: false]
|
8 | 8 | - bidichk # Checks for dangerous unicode character sequences [fast: true, auto-fix: false]
|
9 | 9 | - bodyclose # checks whether HTTP response body is closed successfully [fast: false, auto-fix: false]
|
| 10 | + - canonicalheader # canonicalheader checks whether net/http.Header uses canonical header [fast: false, auto-fix: false] |
10 | 11 | - containedctx # containedctx is a linter that detects struct contained context.Context field [fast: true, auto-fix: false]
|
11 | 12 | - contextcheck # check the function whether use a non-inherited context [fast: false, auto-fix: false]
|
12 | 13 | - copyloopvar # copyloopvar is a linter detects places where loop variables are copied [fast: true, auto-fix: false]
|
@@ -54,10 +55,12 @@ linters:
|
54 | 55 | - predeclared # find code that shadows one of Go's predeclared identifiers [fast: true, auto-fix: false]
|
55 | 56 | - promlinter # Check Prometheus metrics naming via promlint [fast: true, auto-fix: false]
|
56 | 57 | - protogetter # Reports direct reads from proto message fields when getters should be used [fast: false, auto-fix: true]
|
| 58 | + - reassign # Checks that package variables are not reassigned [fast: false, auto-fix: false] |
57 | 59 | - revive # Fast, configurable, extensible, flexible, and beautiful linter for Go. Drop-in replacement of golint. [fast: false, auto-fix: false]
|
58 | 60 | - rowserrcheck # checks whether Err of rows is checked successfully [fast: false, auto-fix: false]
|
59 | 61 | - sloglint # ensure consistent code style when using log/slog [fast: false, auto-fix: false]
|
60 | 62 | - sqlclosecheck # Checks that sql.Rows and sql.Stmt are closed. [fast: false, auto-fix: false]
|
| 63 | + - staticcheck #(megacheck): Staticcheck is a go vet on steroids, applying a ton of static analysis checks [fast: false, auto-fix: false] |
61 | 64 | - stylecheck # Stylecheck is a replacement for golint [fast: false, auto-fix: false]
|
62 | 65 | - tagliatelle # Checks the struct tags. [fast: true, auto-fix: false]
|
63 | 66 | - tenv # tenv is analyzer that detects using os.Setenv instead of t.Setenv since Go1.17 [fast: false, auto-fix: false]
|
@@ -94,7 +97,6 @@ linters:
|
94 | 97 | - nestif # Reports deeply nested if statements [fast: true, auto-fix: false]
|
95 | 98 | - nilnil # Checks that there is no simultaneous return of `nil` error and an invalid value. [fast: false, auto-fix: false]
|
96 | 99 | - nlreturn # nlreturn checks for a new line before return and branch statements to increase code clarity [fast: true, auto-fix: false]
|
97 |
| - - staticcheck #(megacheck): Staticcheck is a go vet on steroids, applying a ton of static analysis checks [fast: false, auto-fix: false] |
98 | 100 | - varnamelen # checks that the length of a variable's name matches its scope [fast: false, auto-fix: false]
|
99 | 101 | - wsl # Whitespace Linter - Forces you to use empty lines! [fast: true, auto-fix: false]
|
100 | 102 |
|
|
0 commit comments