-
Notifications
You must be signed in to change notification settings - Fork 242
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Switch golangci-linter to whitelist mode (#713)
Signed-off-by: Artiom Diomin <[email protected]>
- Loading branch information
1 parent
0bb6aa6
commit 0ed7b26
Showing
17 changed files
with
75 additions
and
57 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 |
---|---|---|
@@ -1,36 +1,53 @@ | ||
run: | ||
issues-exit-code: 1 | ||
build-tags: | ||
- e2e | ||
skip-dirs: | ||
- hack | ||
- vendor | ||
- pkg/apis/kubeadm | ||
|
||
skip-files: | ||
- zz_generated.*.go | ||
|
||
linters: | ||
enable-all: true | ||
disable: | ||
- funlen | ||
disable-all: true | ||
enable: | ||
- bodyclose | ||
- deadcode | ||
- errcheck | ||
- goconst | ||
- gocritic | ||
- gocyclo | ||
- gofmt | ||
- goimports | ||
- gosec | ||
- gosimple | ||
- govet | ||
- ineffassign | ||
- interfacer | ||
- dupl | ||
- maligned | ||
- megacheck | ||
- lll | ||
- prealloc | ||
- gochecknoinits | ||
- gochecknoglobals | ||
- misspell | ||
- nakedret | ||
- staticcheck | ||
- structcheck | ||
- stylecheck | ||
- unconvert | ||
- unused | ||
- varcheck | ||
|
||
linters-settings: | ||
govet: | ||
check-shadowing: true | ||
goimports: | ||
local-prefixes: github.com/kubermatic/kubeone | ||
|
||
issues: | ||
exclude: | ||
- "type name will be used as kubeone.KubeOneCluster by other packages, and that stutters; consider calling this Cluster" | ||
- "don't use underscores in Go names; func SetDefaults_KubeOneCluster should be SetDefaultsKubeOneCluster" | ||
- "don't use underscores in Go names; func SetDefaults_Hosts should be SetDefaultsHosts" | ||
- "don't use underscores in Go names; func SetDefaults_APIEndpoints should be SetDefaultsAPIEndpoints" | ||
- "don't use underscores in Go names; func SetDefaults_ClusterNetwork should be SetDefaultsClusterNetwork" | ||
- "don't use underscores in Go names; func SetDefaults_Features should be SetDefaultsFeatures" | ||
- "don't use underscores in Go names; func SetDefaults_MachineController should be SetDefaultsMachineController" | ||
- "don't use underscores in Go names; func SetDefaults_SystemPackages should be SetDefaultsSystemPackages" | ||
- "G101: Potential hardcoded credentials" | ||
- "G106: Use of ssh InsecureIgnoreHostKey should be audited" | ||
- "`defaultRetryBackoff` - `retries` always receives `3`" | ||
- "`defaultRetryBackoff` - `retries` always receives `3`" | ||
- "func SetDefaults_APIEndpoints should be SetDefaultsAPIEndpoints" | ||
- "func SetDefaults_ClusterNetwork should be SetDefaultsClusterNetwork" | ||
- "func SetDefaults_Features should be SetDefaultsFeatures" | ||
- "func SetDefaults_Hosts should be SetDefaultsHosts" | ||
- "func SetDefaults_KubeOneCluster should be SetDefaultsKubeOneCluster" | ||
- "func SetDefaults_MachineController should be SetDefaultsMachineController" | ||
- "func SetDefaults_SystemPackages should be SetDefaultsSystemPackages" |
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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