Skip to content

Commit 9246b1c

Browse files
committed
chore: updates golanci config
Signed-off-by: Amit Singh <[email protected]>
1 parent c5ca381 commit 9246b1c

File tree

1 file changed

+16
-15
lines changed

1 file changed

+16
-15
lines changed

.golangci.yaml

Lines changed: 16 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,9 @@
11
run:
22
timeout: 10m
33

4-
skip-files:
5-
- "zz_generated\\..+\\.go$"
6-
- ".*_test.go$"
7-
8-
skip-dirs:
9-
- "hack"
10-
- "e2e"
11-
- "bin"
12-
13-
skip-dirs-use-default: false
14-
15-
164
output:
175
# colored-line-number|line-number|json|tab|checkstyle|code-climate, default is "colored-line-number"
18-
format: colored-line-number
6+
formats: colored-line-number
197

208
linters-settings:
219
errcheck:
@@ -30,7 +18,7 @@ linters-settings:
3018
# [deprecated] comma-separated list of pairs of the form pkg:regex
3119
# the regex is used to ignore names within pkg. (default "fmt:.*").
3220
# see https://github.com/kisielk/errcheck#the-deprecated-method for details
33-
ignore: fmt:.*,io/ioutil:^Read.*
21+
exclude-functions: fmt:.*,io/ioutil:^Read.*
3422

3523
exhaustive:
3624
# indicates that switch statements are to be considered exhaustive if a
@@ -109,7 +97,9 @@ linters-settings:
10997

11098
linters:
11199
enable:
112-
- megacheck
100+
- gosimple
101+
- staticcheck
102+
- unused
113103
- govet
114104
- gocyclo
115105
- gocritic
@@ -124,6 +114,17 @@ linters:
124114

125115

126116
issues:
117+
exclude-files:
118+
- "zz_generated\\..+\\.go$"
119+
- ".*_test.go$"
120+
121+
exclude-dirs:
122+
- "hack"
123+
- "e2e"
124+
- "bin"
125+
126+
exclude-dirs-use-default: false
127+
127128
# Excluding configuration per-path and per-linter
128129
exclude-rules:
129130
# Exclude some linters from running on tests files.

0 commit comments

Comments
 (0)