Skip to content

Commit

Permalink
Modify Linter to lint all packages
Browse files Browse the repository at this point in the history
  • Loading branch information
parthban-db committed Jan 16, 2025
1 parent 0c069ef commit 00e93f3
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,14 @@ fmt:

lint: vendor
@echo "✓ Linting source code with https://staticcheck.io/ ..."
@go run honnef.co/go/tools/cmd/[email protected] ./...
@for dir in */; do \
if [ -f "$$dir/go.mod" ]; then \
echo "Linting $$dir..."; \
cd $$dir && \
go run honnef.co/go/tools/cmd/[email protected] ./... || exit 1 && \
cd ..; \
fi \
done

test: vendor
@echo "✓ Running tests in all modules ..."
Expand Down

0 comments on commit 00e93f3

Please sign in to comment.