diff --git a/.golangci.yml b/.golangci.yml index 6af1f0ddce21..e64ed52fea6a 100644 --- a/.golangci.yml +++ b/.golangci.yml @@ -88,10 +88,6 @@ linters-settings: - wrapperFunc - rangeValCopy - hugeParam - gosec: - excludes: - - G307 # Deferring unsafe method "Close" on type "\*os.File" - - G108 # Profiling endpoint is automatically exposed on /debug/pprof importas: no-unaliased: true alias: @@ -264,14 +260,21 @@ issues: text: always receives # Dot imports for gomega and ginkgo are allowed # within test files and test utils. - - path: _test\.go + - linters: + - revive + - stylecheck + path: _test\.go text: should not use dot imports - - path: (framework|e2e)/.*.go + - linters: + - revive + - stylecheck + path: (framework|e2e)/.*.go text: should not use dot imports - - path: util/defaulting/defaulting.go + - linters: + - revive + - stylecheck + path: util/defaulting/defaulting.go text: should not use dot imports - - path: _test\.go - text: cyclomatic complexity # Append should be able to assign to a different var/slice. - linters: - gocritic diff --git a/bootstrap/kubeadm/main.go b/bootstrap/kubeadm/main.go index a32ed8ff3a25..51b18a89d00a 100644 --- a/bootstrap/kubeadm/main.go +++ b/bootstrap/kubeadm/main.go @@ -21,7 +21,6 @@ import ( "context" "flag" "fmt" - _ "net/http/pprof" "os" goruntime "runtime" "time" diff --git a/controlplane/kubeadm/main.go b/controlplane/kubeadm/main.go index fdce0978572b..8c702b1d0a3a 100644 --- a/controlplane/kubeadm/main.go +++ b/controlplane/kubeadm/main.go @@ -21,7 +21,6 @@ import ( "context" "flag" "fmt" - _ "net/http/pprof" "os" goruntime "runtime" "time"