|
1 | | -# Options for analysis running. |
| 1 | +version: "2" |
2 | 2 | run: |
3 | | - # Number of operating system threads (`GOMAXPROCS`) that can execute golangci-lint simultaneously. |
4 | | - # If it is explicitly set to 0 (i.e. not the default) then golangci-lint will automatically set the value to match Linux container CPU quota. |
5 | | - # Default: the number of logical CPUs in the machine |
6 | | - #concurrency: 4 |
7 | | - # Timeout for analysis, e.g. 30s, 5m. |
8 | | - # Default: 1m |
9 | | - timeout: 5m |
10 | | - # Exit code when at least one issue was found. |
11 | | - # Default: 1 |
12 | | - #issues-exit-code: 2 |
13 | | - # Include test files or not. |
14 | | - # Default: true |
15 | | - #tests: false |
16 | | - # List of build tags, all linters use it. |
17 | | - # Default: [] |
18 | | - #build-tags: |
19 | | - # - mytag |
20 | | - # If set, we pass it to "go list -mod={option}". From "go help modules": |
21 | | - # If invoked with -mod=readonly, the go command is disallowed from the implicit |
22 | | - # automatic updating of go.mod described above. Instead, it fails when any changes |
23 | | - # to go.mod are needed. This setting is most useful to check that go.mod does |
24 | | - # not need updates, such as in a continuous integration and testing system. |
25 | | - # If invoked with -mod=vendor, the go command assumes that the vendor |
26 | | - # directory holds the correct copies of dependencies and ignores |
27 | | - # the dependency descriptions in go.mod. |
28 | | - # |
29 | | - # Allowed values: readonly|vendor|mod |
30 | | - # Default: "" |
| 3 | + go: "1.24" |
31 | 4 | modules-download-mode: readonly |
32 | | - # Allow multiple parallel golangci-lint instances running. |
33 | | - # If false, golangci-lint acquires file lock on start. |
34 | | - # Default: false |
35 | | - #allow-parallel-runners: true |
36 | | - # Allow multiple golangci-lint instances running, but serialize them around a lock. |
37 | | - # If false, golangci-lint exits with an error if it fails to acquire file lock on start. |
38 | | - # Default: false |
39 | | - #allow-serial-runners: true |
40 | | - # Define the Go version limit. |
41 | | - # Mainly related to generics support since go1.18. |
42 | | - # Default: use Go version from the go.mod file, fallback on the env var `GOVERSION`, fallback on 1.17 |
43 | | - go: '1.23' |
| 5 | +linters: |
| 6 | + exclusions: |
| 7 | + generated: lax |
| 8 | + presets: |
| 9 | + - comments |
| 10 | + - common-false-positives |
| 11 | + - legacy |
| 12 | + - std-error-handling |
| 13 | + paths: |
| 14 | + - third_party$ |
| 15 | + - builtin$ |
| 16 | + - examples$ |
| 17 | +formatters: |
| 18 | + exclusions: |
| 19 | + generated: lax |
| 20 | + paths: |
| 21 | + - third_party$ |
| 22 | + - builtin$ |
| 23 | + - examples$ |
0 commit comments