lint: ingnore the staticfile dir
This commit is contained in:
3
.github/workflows/lint.yaml
vendored
3
.github/workflows/lint.yaml
vendored
@@ -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
|
||||
|
||||
|
||||
2
Makefile
2
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
|
||||
|
||||
|
||||
@@ -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))
|
||||
|
||||
Reference in New Issue
Block a user