mirror of
https://github.com/containers/podman.git
synced 2025-05-17 15:18:43 +08:00
golangci-lint: remove most skip dirs
Now that we have propert !remote tags set everywhere we can just rely on that and do not need to skip any dirs. Also on linux do not lint three times, one remote run is enough. We still have to skip the test dir for windows/macos though or we need to add linux build tags there everywhere as well. This seems simpler. Signed-off-by: Paul Holzinger <pholzing@redhat.com>
This commit is contained in:
@ -18,11 +18,11 @@ BUILD_TAGS_TUNNEL="$BUILD_TAGS_DEFAULT,remote"
|
||||
BUILD_TAGS_REMOTE="remote,containers_image_openpgp"
|
||||
|
||||
SKIP_DIRS_ABI=""
|
||||
SKIP_DIRS_TUNNEL="pkg/api,pkg/domain/infra/abi,internal/domain/infra/abi"
|
||||
SKIP_DIRS_REMOTE="libpod/events,pkg/api,pkg/domain/infra/abi,internal/domain/infra/abi,pkg/machine/qemu,pkg/trust,test"
|
||||
SKIP_DIRS_TUNNEL=""
|
||||
SKIP_DIRS_REMOTE="libpod/events,test"
|
||||
|
||||
declare -a to_lint
|
||||
to_lint=(ABI TUNNEL REMOTE)
|
||||
to_lint=(ABI TUNNEL)
|
||||
|
||||
# Special-case, for Darwin and Windows only "remote" linting is possible and required.
|
||||
if [[ "$GOOS" == "windows" ]] || [[ "$GOOS" == "darwin" ]]; then
|
||||
|
@ -1,3 +1,5 @@
|
||||
//go:build linux || freebsd
|
||||
|
||||
package events
|
||||
|
||||
import (
|
||||
|
@ -1,3 +1,5 @@
|
||||
//go:build linux
|
||||
|
||||
package bindings_test
|
||||
|
||||
import (
|
||||
|
@ -1,3 +1,5 @@
|
||||
//go:build linux
|
||||
|
||||
package integration
|
||||
|
||||
import (
|
||||
|
Reference in New Issue
Block a user