From 85f5f335c5d7034fe0505e16a0822d00ff6bb3a2 Mon Sep 17 00:00:00 2001 From: WestleyR Date: Tue, 7 Sep 2021 21:23:06 -0700 Subject: [PATCH] lint: ingnore the staticfile dir --- .github/workflows/lint.yaml | 3 +-- Makefile | 2 +- internal/pkg/staticfiles/static.go | 1 - 3 files changed, 2 insertions(+), 4 deletions(-) diff --git a/.github/workflows/lint.yaml b/.github/workflows/lint.yaml index 4c60b589..930f5da1 100644 --- a/.github/workflows/lint.yaml +++ b/.github/workflows/lint.yaml @@ -18,6 +18,5 @@ jobs: version: v1.31 skip-build-cache: true skip-pkg-cache: true - args: --build-tags "containers_image_openpgp containers_image_ostree" - + args: --build-tags "containers_image_openpgp containers_image_ostree" --skip-dirs internal/pkg/staticfiles diff --git a/Makefile b/Makefile index 4e57863c..8ef05064 100644 --- a/Makefile +++ b/Makefile @@ -46,7 +46,7 @@ $(TOOLS_DIR): # Lint lint: @echo Running golangci-lint... - @$(GOLANGCI_LINT) run --build-tags "$(WW_BUILD_GO_BUILD_TAGS)" ./... + @$(GOLANGCI_LINT) run --build-tags "$(WW_BUILD_GO_BUILD_TAGS)" --skip-dirs internal/pkg/staticfiles ./... debian: all diff --git a/internal/pkg/staticfiles/static.go b/internal/pkg/staticfiles/static.go index a7499172..ac9a4741 100644 --- a/internal/pkg/staticfiles/static.go +++ b/internal/pkg/staticfiles/static.go @@ -98,7 +98,6 @@ func getResource(path string) ([]byte, error) { // // Return the available resources in a slice. // -//nolint:unused,deadcode func getResources() []EmbeddedResource { i := 0 ret := make([]EmbeddedResource, len(RESOURCES))