5
5
# common-files repo, make the change there and check it in. Then come back to this repo and run
6
6
# "make update-common".
7
7
8
- service :
9
- # When updating this, also update the version stored in docker/build-tools/Dockerfile in the istio/tools repo.
10
- golangci-lint-version : 1.56.x # use the fixed version to not introduce new linters unexpectedly
11
8
run :
12
- # timeout for analysis, e.g. 30s, 5m, default is 1m
13
- deadline : 20m
9
+ # Timeout for analysis, e.g. 30s, 5m.
10
+ # Default: 1m
11
+ timeout : 20m
14
12
build-tags :
15
13
- integ
16
14
- integfuzz
17
- # which dirs to skip: they won't be analyzed;
18
- # can use regexp here: generated.*, regexp is applied on full path;
19
- # default value is empty list, but next dirs are always skipped independently
20
- # from this option's value:
21
- # vendor$, third_party$, testdata$, examples$, Godeps$, builtin$
22
- skip-dirs :
23
- - genfiles$
24
- - vendor$
25
-
26
- # which files to skip: they will be analyzed, but issues from them
27
- # won't be reported. Default value is empty list, but there is
28
- # no need to include all autogenerated files, we confidently recognize
29
- # autogenerated files. If it's not please let us know.
30
- skip-files :
31
- - " .*\\ .pb\\ .go"
32
- - " .*\\ .gen\\ .go"
33
-
34
15
linters :
35
16
disable-all : true
36
17
enable :
37
18
- goimports
38
19
- gofumpt
39
20
- gci
40
21
fast : false
41
-
42
22
linters-settings :
43
23
gci :
44
24
sections :
@@ -49,11 +29,28 @@ linters-settings:
49
29
# put imports beginning with prefix after 3rd-party packages;
50
30
# it's a comma-separated list of prefixes
51
31
local-prefixes : istio.io/
52
-
53
32
issues :
54
-
55
- # Maximum issues count per one linter. Set to 0 to disable. Default is 50.
56
- max-per-linter : 0
57
-
33
+ # Which dirs to exclude: issues from them won't be reported.
34
+ # Can use regexp here: `generated.*`, regexp is applied on full path,
35
+ # including the path prefix if one is set.
36
+ # Default dirs are skipped independently of this option's value (see exclude-dirs-use-default).
37
+ # "/" will be replaced by current OS file path separator to properly work on Windows.
38
+ # Default: []
39
+ exclude-dirs :
40
+ - genfiles$
41
+ - vendor$
42
+ # Which files to exclude: they will be analyzed, but issues from them won't be reported.
43
+ # There is no need to include all autogenerated files,
44
+ # we confidently recognize autogenerated files.
45
+ # If it's not, please let us know.
46
+ # "/" will be replaced by current OS file path separator to properly work on Windows.
47
+ # Default: []
48
+ exclude-files :
49
+ - " .*\\ .pb\\ .go"
50
+ - " .*\\ .gen\\ .go"
51
+ # Maximum issues count per one linter.
52
+ # Set to 0 to disable.
53
+ # Default: 50
54
+ max-issues-per-linter : 0
58
55
# Maximum count of issues with the same text. Set to 0 to disable. Default is 3.
59
56
max-same-issues : 0
0 commit comments