Skip to content

Commit 0f527cc

Browse files
Automator: update common-files@master in istio/api@master (#3152)
1 parent 6432445 commit 0f527cc

File tree

2 files changed

+26
-29
lines changed

2 files changed

+26
-29
lines changed

common/.commonfiles.sha

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
4a3f8a746a01511edc343386516b08ac84d0a454
1+
0fb04a469bfc93ac7466cb401ee46c84d58cb23c

common/config/.golangci-format.yml

Lines changed: 25 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -5,40 +5,20 @@
55
# common-files repo, make the change there and check it in. Then come back to this repo and run
66
# "make update-common".
77

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
118
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
1412
build-tags:
1513
- integ
1614
- 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-
3415
linters:
3516
disable-all: true
3617
enable:
3718
- goimports
3819
- gofumpt
3920
- gci
4021
fast: false
41-
4222
linters-settings:
4323
gci:
4424
sections:
@@ -49,11 +29,28 @@ linters-settings:
4929
# put imports beginning with prefix after 3rd-party packages;
5030
# it's a comma-separated list of prefixes
5131
local-prefixes: istio.io/
52-
5332
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
5855
# Maximum count of issues with the same text. Set to 0 to disable. Default is 3.
5956
max-same-issues: 0

0 commit comments

Comments
 (0)