summaryrefslogtreecommitdiff
path: root/hack
diff options
context:
space:
mode:
authorPaul Holzinger <pholzing@redhat.com>2022-07-21 11:36:32 +0200
committerPaul Holzinger <pholzing@redhat.com>2022-07-21 18:04:10 +0200
commitee35ce86d0766a52ce223f2ac765b5d787e4ab89 (patch)
tree7e58e50f5f272d86e38c58daa07ee57a195d0799 /hack
parent04ed519e9d38e2ae12ec0b568e6418e750ff203d (diff)
downloadpodman-ee35ce86d0766a52ce223f2ac765b5d787e4ab89.tar.gz
podman-ee35ce86d0766a52ce223f2ac765b5d787e4ab89.tar.bz2
podman-ee35ce86d0766a52ce223f2ac765b5d787e4ab89.zip
enable linter for pkg/machine/e2e
Rename all files to _test.go and rename the package to e2e_test. This makes the linter less strict about things like dot imports. Add some unused nolint directives to silence some warnings, these can be used to find untested options so someone could add tests for them. Fixes #14996 Signed-off-by: Paul Holzinger <pholzing@redhat.com>
Diffstat (limited to 'hack')
-rwxr-xr-xhack/golangci-lint.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/hack/golangci-lint.sh b/hack/golangci-lint.sh
index 2eaf206d7..dd06004ac 100755
--- a/hack/golangci-lint.sh
+++ b/hack/golangci-lint.sh
@@ -9,9 +9,9 @@ BUILD_TAGS[abi]="${BUILD_TAGS[default]},systemd"
BUILD_TAGS[tunnel]="${BUILD_TAGS[default]},remote"
declare -A SKIP_DIRS
-SKIP_DIRS[abi]="pkg/machine/e2e"
+SKIP_DIRS[abi]=""
# TODO: add "remote" build tag to pkg/api
-SKIP_DIRS[tunnel]="pkg/api,pkg/machine/e2e"
+SKIP_DIRS[tunnel]="pkg/api"
[[ $1 == run ]] && shift