From 7f1e93c6f54d3432b7e17c6ba9be20a95e9b0dfd Mon Sep 17 00:00:00 2001 From: Igor Zibarev Date: Fri, 15 Nov 2019 21:14:41 +0300 Subject: [PATCH] kyaml: enable errcheck & golint; fix gofmt --- kyaml/.golangci.yml | 4 ++-- kyaml/kio/filters/container_test.go | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/kyaml/.golangci.yml b/kyaml/.golangci.yml index 16c933f91..a340a84b0 100644 --- a/kyaml/.golangci.yml +++ b/kyaml/.golangci.yml @@ -14,7 +14,7 @@ linters: - depguard - dogsled - dupl -# - errcheck + - errcheck # - funlen # - gochecknoinits # - goconst @@ -22,7 +22,7 @@ linters: - gocyclo - gofmt - goimports -# - golint + - golint - gosec - gosimple - govet diff --git a/kyaml/kio/filters/container_test.go b/kyaml/kio/filters/container_test.go index 782033149..76410788a 100644 --- a/kyaml/kio/filters/container_test.go +++ b/kyaml/kio/filters/container_test.go @@ -109,9 +109,9 @@ metadata: return } instance := &ContainerFilter{ - Image: "example.com:version", + Image: "example.com:version", Network: "test-net", - Config: cfg, + Config: cfg, } cmd, err := instance.getCommand() if !assert.NoError(t, err) {