lint: ingnore the staticfile dir

This commit is contained in:
WestleyR
2021-09-07 21:23:06 -07:00
parent 4edc16953e
commit 85f5f335c5
3 changed files with 2 additions and 4 deletions

View File

@@ -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

View File

@@ -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

View File

@@ -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))