Skip to content

Commit f481597

Browse files
committed
adopt golangci config from Rancher project
1 parent b8f5fce commit f481597

File tree

2 files changed

+51
-130
lines changed

2 files changed

+51
-130
lines changed

Diff for: .golangci.json

+51
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
{
2+
"linters": {
3+
"disable-all": true,
4+
"enable": [
5+
"govet",
6+
"revive",
7+
"goimports",
8+
"misspell",
9+
"ineffassign",
10+
"gofmt"
11+
]
12+
},
13+
"linters-settings": {
14+
"govet": {
15+
"check-shadowing": false
16+
},
17+
"gofmt": {
18+
"simplify": false
19+
}
20+
},
21+
"run": {
22+
"skip-dirs": [
23+
"vendor",
24+
"tests",
25+
"pkg/client",
26+
"pkg/generated"
27+
],
28+
"tests": false,
29+
"timeout": "10m"
30+
},
31+
"issues": {
32+
"exclude-rules": [
33+
{
34+
"linters": "govet",
35+
"text": "^(nilness|structtag)"
36+
},
37+
{
38+
"linters": "revive",
39+
"text": "should have comment"
40+
},
41+
{
42+
"linters": "revive",
43+
"text": "should be of the form"
44+
},
45+
{
46+
"linters": "typecheck",
47+
"text": "imported but not used as apierrors"
48+
}
49+
]
50+
}
51+
}

Diff for: .golangci.yml

-130
This file was deleted.

0 commit comments

Comments
 (0)