Skip to content

Commit 0018148

Browse files
chmouelzakisk
authored andcommitted
chore: Limit Go linter scope to source and test directories
* Limited the Go linter target to specific project directories. * Excluded linting of vendor directories and other non-source paths. Signed-off-by: Chmouel Boudjnah <[email protected]>
1 parent b2a2238 commit 0018148

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ lint: lint-go lint-yaml lint-md lint-python lint-shell ## run all linters
8383
.PHONY: lint-go
8484
lint-go: ## runs go linter on all go files
8585
@echo "Linting go files..."
86-
@$(GOLANGCI_LINT) run ./... --modules-download-mode=vendor \
86+
@$(GOLANGCI_LINT) run ./pkg/... ./test/... --modules-download-mode=vendor \
8787
--max-issues-per-linter=0 \
8888
--max-same-issues=0 \
8989
--timeout $(TIMEOUT_UNIT)

0 commit comments

Comments
 (0)