Skip to content

Commit

Permalink
adopt golangci config from Rancher project
Browse files Browse the repository at this point in the history
  • Loading branch information
bradrydzewski committed Aug 7, 2022
1 parent b8f5fce commit f481597
Show file tree
Hide file tree
Showing 2 changed files with 51 additions and 130 deletions.
51 changes: 51 additions & 0 deletions .golangci.json
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"
}
]
}
}
130 changes: 0 additions & 130 deletions .golangci.yml

This file was deleted.

0 comments on commit f481597

Please sign in to comment.