|
6 | 6 |
|
7 | 7 | # Options for analysis running.
|
8 | 8 | run:
|
| 9 | + # Timeout for analysis, e.g. 30s, 5m. |
| 10 | + # Default: 1m |
| 11 | + timeout: 5m |
9 | 12 | # Exit code when at least one issue was found.
|
10 | 13 | # Default: 1
|
11 | 14 | issues-exit-code: 2
|
12 |
| - |
13 | 15 | # Include test files or not.
|
14 | 16 | # Default: true
|
15 | 17 | tests: false
|
16 |
| - |
17 |
| - # Which dirs to skip: issues from them won't be reported. |
18 |
| - # Can use regexp here: `generated.*`, regexp is applied on full path. |
19 |
| - # Default value is empty list, |
20 |
| - # but default dirs are skipped independently of this option's value (see skip-dirs-use-default). |
21 |
| - # "/" will be replaced by current OS file path separator to properly work on Windows. |
22 |
| - skip-dirs: [] |
23 |
| - |
24 |
| - # Which files to skip: they will be analyzed, but issues from them won't be reported. |
25 |
| - # Default value is empty list, |
26 |
| - # but there is no need to include all autogenerated files, |
27 |
| - # we confidently recognize autogenerated files. |
28 |
| - # If it's not please let us know. |
29 |
| - # "/" will be replaced by current OS file path separator to properly work on Windows. |
30 |
| - skip-files: [] |
| 18 | + # List of build tags, all linters use it. |
| 19 | + # Default: [] |
| 20 | + build-tags: [] |
| 21 | + # If set, we pass it to "go list -mod={option}". From "go help modules": |
| 22 | + # If invoked with -mod=readonly, the go command is disallowed from the implicit |
| 23 | + # automatic updating of go.mod described above. Instead, it fails when any changes |
| 24 | + # to go.mod are needed. This setting is most useful to check that go.mod does |
| 25 | + # not need updates, such as in a continuous integration and testing system. |
| 26 | + # If invoked with -mod=vendor, the go command assumes that the vendor |
| 27 | + # directory holds the correct copies of dependencies and ignores |
| 28 | + # the dependency descriptions in go.mod. |
| 29 | + # |
| 30 | + # Allowed values: readonly|vendor|mod |
| 31 | + # Default: "" |
| 32 | + modules-download-mode: readonly |
| 33 | + # Allow multiple parallel golangci-lint instances running. |
| 34 | + # If false, golangci-lint acquires file lock on start. |
| 35 | + # Default: false |
| 36 | + allow-parallel-runners: true |
| 37 | + # Allow multiple golangci-lint instances running, but serialize them around a lock. |
| 38 | + # If false, golangci-lint exits with an error if it fails to acquire file lock on start. |
| 39 | + # Default: false |
| 40 | + allow-serial-runners: true |
| 41 | + # Define the Go version limit. |
| 42 | + # Mainly related to generics support since go1.18. |
| 43 | + # Default: use Go version from the go.mod file, fallback on the env var `GOVERSION`, fallback on 1.17 |
| 44 | + go: '1.20' |
| 45 | + # Number of operating system threads (`GOMAXPROCS`) that can execute golangci-lint simultaneously. |
| 46 | + # 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. |
| 47 | + # Default: the number of logical CPUs in the machine |
| 48 | + concurrency: 4 |
31 | 49 |
|
32 | 50 |
|
33 | 51 | # Main linters configurations.
|
|
0 commit comments