|
1 | 1 | # Options for analysis running |
2 | 2 | # More info could be found at https://golangci-lint.run/usage/configuration/ |
3 | 3 | run: |
4 | | - # timeout for analysis, e.g. 30s, 5m, default is 1m |
5 | | - timeout: 5m |
6 | | - modules-download-mode: readonly |
| 4 | + # timeout for analysis, e.g. 30s, 5m, default is 1m |
| 5 | + timeout: 5m |
| 6 | + modules-download-mode: readonly |
7 | 7 |
|
8 | 8 | # List of useful linters could be found at https://github.com/golangci/awesome-go-linters |
9 | 9 | linters: |
10 | | - disable-all: true |
11 | | - enable: |
12 | | - - errcheck |
13 | | - - copyloopvar |
14 | | - - gofumpt |
15 | | - - goimports |
16 | | - - gosimple |
17 | | - - govet |
18 | | - - ineffassign |
19 | | - - makezero |
20 | | - - misspell |
21 | | - - noctx |
22 | | - - nolintlint |
23 | | - - rowserrcheck |
24 | | - - sqlclosecheck |
25 | | - - staticcheck |
26 | | - - unconvert |
27 | | - - unused |
28 | | - - wastedassign |
29 | | - - gosec |
| 10 | + disable-all: true |
| 11 | + enable: |
| 12 | + - errcheck |
| 13 | + - copyloopvar |
| 14 | + - gofumpt |
| 15 | + - goimports |
| 16 | + - gosimple |
| 17 | + - govet |
| 18 | + - ineffassign |
| 19 | + - makezero |
| 20 | + - misspell |
| 21 | + - noctx |
| 22 | + - nolintlint |
| 23 | + - rowserrcheck |
| 24 | + - sqlclosecheck |
| 25 | + - staticcheck |
| 26 | + - unconvert |
| 27 | + - unused |
| 28 | + - wastedassign |
| 29 | + - gosec |
30 | 30 |
|
31 | 31 | linters-settings: |
32 | | - staticcheck: |
33 | | - # https://staticcheck.io/docs/options#checks |
34 | | - checks: [ "all","-SA1019","-SA1029" ] |
35 | | - gosec: |
36 | | - excludes: ["G204", "G301", "G302", "G304", "G306", "G601", "G101", "G407"] |
37 | | - exclude-generated: true |
38 | | - exclude-test-files: true |
39 | | - config: |
40 | | - global: |
41 | | - nosec: true |
| 32 | + staticcheck: |
| 33 | + # https://staticcheck.io/docs/options#checks |
| 34 | + checks: [ "all","-SA1019","-SA1029" ] |
| 35 | + gosec: |
| 36 | + excludes: [ "G204", "G301", "G302", "G304", "G306", "G601", "G101", "G407" ] |
| 37 | + exclude-generated: true |
| 38 | + exclude-test-files: true |
| 39 | + config: |
| 40 | + global: |
| 41 | + nosec: true |
42 | 42 |
|
43 | 43 | issues: |
44 | | - exclude-use-default: false |
45 | | - # Maximum issues count per one linter. Set to 0 to disable. Default is 50. |
46 | | - max-issues-per-linter: 0 |
47 | | - # Maximum count of issues with the same text. Set to 0 to disable. Default is 3. |
48 | | - max-same-issues: 0 |
| 44 | + exclude-use-default: false |
| 45 | + # Maximum issues count per one linter. Set to 0 to disable. Default is 50. |
| 46 | + max-issues-per-linter: 0 |
| 47 | + # Maximum count of issues with the same text. Set to 0 to disable. Default is 3. |
| 48 | + max-same-issues: 0 |
0 commit comments