|
2 | 2 | run: |
3 | 3 | modules-download-mode: mod |
4 | 4 |
|
5 | | - skip-dirs: [vendor] |
6 | | - |
7 | 5 | linters-settings: |
8 | 6 |
|
9 | 7 | gosec: |
10 | 8 | excludes: |
11 | 9 | - G307 |
12 | 10 |
|
13 | 11 | staticcheck: |
14 | | - # Select the Go version to target. The default is '1.13'. |
15 | | - go: "1.20" |
16 | 12 | # https://staticcheck.io/docs/options#checks |
17 | 13 | checks: [ "all" ] |
18 | 14 |
|
@@ -49,7 +45,7 @@ linters-settings: |
49 | 45 | gocyclo: |
50 | 46 | min-complexity: 20 # minimal code cyclomatic complexity to report |
51 | 47 |
|
52 | | - gomnd: |
| 48 | + mnd: |
53 | 49 | settings: |
54 | 50 | mnd: |
55 | 51 | # don't include the "operation" and "assign" |
@@ -148,8 +144,8 @@ linters: |
148 | 144 | - bodyclose # Detects whether the HTTP response body is closed successfully, not closing the response body could lead to memory leaks |
149 | 145 | - goconst # Finds repeated strings that could be replaced by a constant |
150 | 146 | - godot # Check if comments end in a period |
151 | | - - gomnd # An analyzer to detect magic numbers. |
152 | | - - goerr113 # Golang linter to check the errors handling expressions |
| 147 | + - mnd # An analyzer to detect magic numbers. |
| 148 | + - err113 # Golang linter to check the errors handling expressions |
153 | 149 | - gocritic # Provides many diagnostics that check for bugs, performance and style issues. |
154 | 150 | - exhaustive # Check exhaustiveness of enum switch statements |
155 | 151 | - exportloopref # checks for pointers to enclosing loop variables -- VERY IMPORTANT TO USE |
@@ -178,7 +174,7 @@ linters: |
178 | 174 | - wsl # Whitespace Linter - Forces you to use empty lines! |
179 | 175 | - usestdlibvars # A linter that detect the possibility to use variables/constants from the Go standard library. |
180 | 176 | - interfacebloat # A linter that checks the number of methods inside an interface. |
181 | | - - logrlint # Check logr arguments. |
| 177 | + - loggercheck # Check logr arguments. |
182 | 178 | - reassign # Checks that package variables are not reassigne |
183 | 179 | - musttag # linter that enforces field tags in (un)marshaled structslinter that enforces field tags in (un)marshaled structs |
184 | 180 | - dupword # checks for duplicate words in the source code comments. |
@@ -208,7 +204,6 @@ issues: |
208 | 204 | - goerr113 |
209 | 205 | - path: mock |
210 | 206 | linters: |
211 | | - - gomnd |
212 | 207 | - revive |
213 | 208 | - gocyclo |
214 | 209 | - errcheck |
|
0 commit comments