|
6 | 6 | concurrency: 4
|
7 | 7 |
|
8 | 8 | # timeout for analysis, e.g. 30s, 5m, default is 1m
|
9 |
| - deadline: 30m |
| 9 | + timeout: 5m |
10 | 10 |
|
11 | 11 | # exit code when at least one issue was found, default is 1
|
12 | 12 | issues-exit-code: 1
|
|
18 | 18 | #build-tags:
|
19 | 19 | # - mytag
|
20 | 20 |
|
21 |
| - # which dirs to skip: they won't be analyzed; |
22 |
| - # can use regexp here: generated.*, regexp is applied on full path; |
23 |
| - # default value is empty list, but next dirs are always skipped independently |
24 |
| - # from this option's value: |
25 |
| - # vendor$, third_party$, testdata$, examples$, Godeps$, builtin$ |
26 |
| - skip-dirs: |
27 |
| - - bin |
28 |
| - - docs |
29 |
| - |
30 |
| - # which files to skip: they will be analyzed, but issues from them |
31 |
| - # won't be reported. Default value is empty list, but there is |
32 |
| - # no need to include all autogenerated files, we confidently recognize |
33 |
| - # autogenerated files. If it's not please let us know. |
34 |
| - skip-files: |
35 |
| - - ".*\\.md$" |
36 |
| - - ".*\\.sh$" |
37 |
| - - "^cmd/syncserver-integration-tests/testdata.go$" |
38 |
| - |
39 | 21 | # by default isn't set. If set we pass it to "go list -mod={option}". From "go help modules":
|
40 | 22 | # If invoked with -mod=readonly, the go command is disallowed from the implicit
|
41 | 23 | # automatic updating of go.mod described above. Instead, it fails when any changes
|
|
50 | 32 | # output configuration options
|
51 | 33 | output:
|
52 | 34 | # colored-line-number|line-number|json|tab|checkstyle|code-climate, default is "colored-line-number"
|
53 |
| - format: colored-line-number |
| 35 | + formats: |
| 36 | + - format: colored-line-number |
54 | 37 |
|
55 | 38 | # print lines of code with issue, default is true
|
56 | 39 | print-issued-lines: true
|
@@ -79,9 +62,8 @@ linters-settings:
|
79 | 62 | # see https://github.com/kisielk/errcheck#excluding-functions for details
|
80 | 63 | #exclude: /path/to/file.txt
|
81 | 64 | govet:
|
82 |
| - # report about shadowed variables |
83 |
| - check-shadowing: true |
84 |
| - |
| 65 | + enable: |
| 66 | + - shadow |
85 | 67 | # settings per analyzer
|
86 | 68 | settings:
|
87 | 69 | printf: # analyzer name, run `go tool vet help` to see all analyzers
|
@@ -217,6 +199,24 @@ linters:
|
217 | 199 |
|
218 | 200 |
|
219 | 201 | issues:
|
| 202 | + # which files to skip: they will be analyzed, but issues from them |
| 203 | + # won't be reported. Default value is empty list, but there is |
| 204 | + # no need to include all autogenerated files, we confidently recognize |
| 205 | + # autogenerated files. If it's not please let us know. |
| 206 | + exclude-files: |
| 207 | + - ".*\\.md$" |
| 208 | + - ".*\\.sh$" |
| 209 | + - "^cmd/syncserver-integration-tests/testdata.go$" |
| 210 | + |
| 211 | + # which dirs to skip: they won't be analyzed; |
| 212 | + # can use regexp here: generated.*, regexp is applied on full path; |
| 213 | + # default value is empty list, but next dirs are always skipped independently |
| 214 | + # from this option's value: |
| 215 | + # vendor$, third_party$, testdata$, examples$, Godeps$, builtin$ |
| 216 | + exclude-dirs: |
| 217 | + - bin |
| 218 | + - docs |
| 219 | + |
220 | 220 | # List of regexps of issue texts to exclude, empty list by default.
|
221 | 221 | # But independently from this option we use default exclude patterns,
|
222 | 222 | # it can be disabled by `exclude-use-default: false`. To list all
|
|
0 commit comments