Skip to content

Commit ac3aac4

Browse files
authored
Merge pull request #7454 from oscr/golangci-prefix-path
🌱 Set golangci-lint path-prefix when linting test and hack/tools
2 parents 6e0ede2 + 6b42180 commit ac3aac4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -542,8 +542,8 @@ generate-diagrams: ## Generate diagrams for *.plantuml files
542542
.PHONY: lint
543543
lint: $(GOLANGCI_LINT) ## Lint the codebase
544544
$(GOLANGCI_LINT) run -v $(GOLANGCI_LINT_EXTRA_ARGS)
545-
cd $(TEST_DIR); $(GOLANGCI_LINT) run -v $(GOLANGCI_LINT_EXTRA_ARGS)
546-
cd $(TOOLS_DIR); $(GOLANGCI_LINT) run -v $(GOLANGCI_LINT_EXTRA_ARGS)
545+
cd $(TEST_DIR); $(GOLANGCI_LINT) run --path-prefix $(TEST_DIR) -v $(GOLANGCI_LINT_EXTRA_ARGS)
546+
cd $(TOOLS_DIR); $(GOLANGCI_LINT) run --path-prefix $(TOOLS_DIR) -v $(GOLANGCI_LINT_EXTRA_ARGS)
547547
./scripts/ci-lint-dockerfiles.sh $(HADOLINT_VER) $(HADOLINT_FAILURE_THRESHOLD)
548548

549549
.PHONY: lint-dockerfiles

0 commit comments

Comments
 (0)