Skip to content

Commit 5369e1d

Browse files
authored
Merge pull request kubernetes-sigs#9821 from fabriziopandini/explicitly-set-golangci-config
🌱 Explicitly set golangci config for sub modules
2 parents 89af987 + 7c4ba77 commit 5369e1d

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
@@ -610,8 +610,8 @@ generate-diagrams-proposals: ## Generate diagrams for *.plantuml files in propos
610610
.PHONY: lint
611611
lint: $(GOLANGCI_LINT) ## Lint the codebase
612612
$(GOLANGCI_LINT) run -v $(GOLANGCI_LINT_EXTRA_ARGS)
613-
cd $(TEST_DIR); $(GOLANGCI_LINT) run --path-prefix $(TEST_DIR) -v $(GOLANGCI_LINT_EXTRA_ARGS)
614-
cd $(TOOLS_DIR); $(GOLANGCI_LINT) run --path-prefix $(TOOLS_DIR) -v $(GOLANGCI_LINT_EXTRA_ARGS)
613+
cd $(TEST_DIR); $(GOLANGCI_LINT) run --path-prefix $(TEST_DIR) --config $(ROOT_DIR)/.golangci.yml -v $(GOLANGCI_LINT_EXTRA_ARGS)
614+
cd $(TOOLS_DIR); $(GOLANGCI_LINT) run --path-prefix $(TOOLS_DIR) --config $(ROOT_DIR)/.golangci.yml -v $(GOLANGCI_LINT_EXTRA_ARGS)
615615
./scripts/ci-lint-dockerfiles.sh $(HADOLINT_VER) $(HADOLINT_FAILURE_THRESHOLD)
616616

617617
.PHONY: lint-dockerfiles

0 commit comments

Comments
 (0)