-
Notifications
You must be signed in to change notification settings - Fork 237
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
adopt golangci config from Rancher project
- Loading branch information
1 parent
b8f5fce
commit f481597
Showing
2 changed files
with
51 additions
and
130 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
{ | ||
"linters": { | ||
"disable-all": true, | ||
"enable": [ | ||
"govet", | ||
"revive", | ||
"goimports", | ||
"misspell", | ||
"ineffassign", | ||
"gofmt" | ||
] | ||
}, | ||
"linters-settings": { | ||
"govet": { | ||
"check-shadowing": false | ||
}, | ||
"gofmt": { | ||
"simplify": false | ||
} | ||
}, | ||
"run": { | ||
"skip-dirs": [ | ||
"vendor", | ||
"tests", | ||
"pkg/client", | ||
"pkg/generated" | ||
], | ||
"tests": false, | ||
"timeout": "10m" | ||
}, | ||
"issues": { | ||
"exclude-rules": [ | ||
{ | ||
"linters": "govet", | ||
"text": "^(nilness|structtag)" | ||
}, | ||
{ | ||
"linters": "revive", | ||
"text": "should have comment" | ||
}, | ||
{ | ||
"linters": "revive", | ||
"text": "should be of the form" | ||
}, | ||
{ | ||
"linters": "typecheck", | ||
"text": "imported but not used as apierrors" | ||
} | ||
] | ||
} | ||
} |
This file was deleted.
Oops, something went wrong.