diff --git a/.golangci.yml b/.golangci.yml index cdd2defc..1ebcfa46 100644 --- a/.golangci.yml +++ b/.golangci.yml @@ -2,27 +2,22 @@ version: "2" linters: default: standard enable: + - bodyclose + - prealloc - unparam + exclusions: + paths: + - generated.*\.go + - client + - vendor formatters: enable: - - gofmt + - gofumpt - goimports - settings: - gofmt: - rewrite-rules: - - pattern: 'interface{}' - replacement: 'any' issues: max-same-issues: 100 - exclude-files: - - generated.*\\.go - - exclude-dirs: - - client - - vendor - run: timeout: 10m diff --git a/pkg/cmds/debug/gateway/config_dump.go b/pkg/cmds/debug/gateway/config_dump.go index d1ce17e1..bd148427 100644 --- a/pkg/cmds/debug/gateway/config_dump.go +++ b/pkg/cmds/debug/gateway/config_dump.go @@ -78,7 +78,8 @@ func (g *gatewayOpts) forwardToPort(podMeta metav1.ObjectMeta, resource string, Namespace: podMeta.Namespace, Name: podMeta.Name, Remote: *port, - }) + }, + ) if err := tunnel.ForwardPort(); err != nil { return nil, err }