|
1 | | -run: |
2 | | - timeout: 20m |
| 1 | +version: "2" |
3 | 2 |
|
4 | 3 | linters: |
| 4 | + default: none |
5 | 5 | enable: |
6 | | - - typecheck |
7 | | - - goimports |
8 | | - - gosimple |
9 | | - - staticcheck |
| 6 | + - staticcheck # includes gosimple |
10 | 7 | - gosec |
11 | 8 | disable: |
12 | 9 | - errcheck |
13 | 10 |
|
14 | | -linters-settings: |
15 | | - gosec: |
16 | | - excludes: |
17 | | - - G107 # Rule: Url provided to HTTP request as taint input |
18 | | - - G108 # Rule: Profiling endpoint automatically exposed on /debug/pprof |
19 | | - - G306 # Rule: Poor file permissions used when writing to a new file |
20 | | - - G402 # Rule: Look for bad TLS connection settings |
21 | | - - G404 # Rule: Insecure random number source (rand) |
22 | | - - G201 # Rule: SQL query construction using format string |
23 | | - - G114 # Rule: Use of net/http serve function that has no support for setting timeouts |
24 | | - - G112 # Rule: Potential slowloris attack |
25 | | - - G115 # Rule: integer overflow conversion |
26 | | - |
27 | | - govet: |
28 | | - disable: |
29 | | - - printf # non-constant format string in call |
| 11 | + settings: |
| 12 | + gosec: |
| 13 | + excludes: |
| 14 | + - G107 # Rule: Url provided to HTTP request as taint input |
| 15 | + - G108 # Rule: Profiling endpoint automatically exposed on /debug/pprof |
| 16 | + - G306 # Rule: Poor file permissions used when writing to a new file |
| 17 | + - G402 # Rule: Look for bad TLS connection settings |
| 18 | + - G404 # Rule: Insecure random number source (rand) |
| 19 | + - G201 # Rule: SQL query construction using format string |
| 20 | + - G114 # Rule: Use of net/http serve function that has no support for setting timeouts |
| 21 | + - G112 # Rule: Potential slowloris attack |
| 22 | + - G115 # Rule: integer overflow conversion |
| 23 | + - G103 # Rule: Use of unsafe calls should be audited |
| 24 | + - G104 # Rule: Errors unhandled |
| 25 | + - G204 # Rule: Subprocess launched with variable |
| 26 | + - G301 # Rule: Expect directory permissions to be 0750 or less |
| 27 | + - G302 # Rule: Expect file permissions to be 0600 or less |
| 28 | + - G304 # Rule: Potential file inclusion via variable |
| 29 | + |
| 30 | + govet: |
| 31 | + disable: |
| 32 | + - printf # non-constant format string in call |
| 33 | + |
| 34 | + exclusions: |
| 35 | + generated: lax |
| 36 | + rules: |
| 37 | + - path: tests/ |
| 38 | + linters: |
| 39 | + - gosec |
| 40 | + - path: (pkg|tests)/third_party/ |
| 41 | + linters: |
| 42 | + - staticcheck |
| 43 | + - typecheck |
| 44 | + - gosec |
| 45 | + - goimports |
| 46 | + - linters: |
| 47 | + - staticcheck |
| 48 | + text: "SA1019:" # Rule: Using a deprecated function, variable, constant or field |
30 | 49 |
|
31 | | -issues: |
32 | | - exclude-rules: |
33 | | - - path: tests |
34 | | - linters: |
35 | | - - gosec |
36 | | - - path: pkg/third_party |
37 | | - linters: |
38 | | - - gosimple |
39 | | - - linters: |
40 | | - - staticcheck |
41 | | - text: "SA1019:" # Rule: Using a deprecated function, variable, constant or field |
| 50 | +formatters: |
| 51 | + enable: |
| 52 | + - goimports |
0 commit comments