Skip to content

Commit

Permalink
more specific output
Browse files Browse the repository at this point in the history
  • Loading branch information
1riatsila1 committed Dec 9, 2024
1 parent de6d1ce commit 67c0b74
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions Justfile
Original file line number Diff line number Diff line change
Expand Up @@ -56,24 +56,29 @@ tidy-client:
lint:
#!/usr/bin/env bash
echo "gofmt -d ."
output=$(gofmt -d .)
if [ -n "$output" ]; then
echo "$output"
echo "Error: (gofmt) formatting required" >&2
exit 1
fi

echo "golines . --dry-run"
output=$(go run github.com/segmentio/golines@v0.12.2 . --dry-run)
if [ -n "$output" ]; then
echo "$output"
echo "Error: (golines) formatting required" >&2
exit 1
fi

echo "golangci-lint run"
go run github.com/golangci/golangci-lint/cmd/golangci-lint@v1.60.1 run

echo "python -m tools.lint-attribution lint"
python -m tools.lint-attribution lint

echo "terraform fmt -recursive -check"
terraform fmt -recursive -check

fmt:
Expand Down

0 comments on commit 67c0b74

Please sign in to comment.