Skip to content

Commit

Permalink
Fix lint target
Browse files Browse the repository at this point in the history
  • Loading branch information
pellared committed Jun 16, 2021
1 parent 91ad6c5 commit 727996c
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -128,11 +128,12 @@ test-coverage:
.PHONY: lint
lint: misspell lint-modules | $(GOLANGCI_LINT)
EXIT=0; \
set -e; for dir in $(ALL_GO_MOD_DIRS); do \
for dir in $(ALL_GO_MOD_DIRS); do \
echo "golangci-lint in $${dir}"; \
(cd "$${dir}" && \
$(GOLANGCI_LINT) run || \
EXIT=$$? ); \
$(GOLANGCI_LINT) run --fix && \
$(GOLANGCI_LINT) run ) \
|| EXIT=$$? ; \
done; \
exit $$EXIT

Expand Down

0 comments on commit 727996c

Please sign in to comment.