Skip to content

Commit

Permalink
chore: add output to just lint
Browse files Browse the repository at this point in the history
  • Loading branch information
SiasMey committed Dec 9, 2024
1 parent 88fa2b8 commit 5077949
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 @@ -58,24 +58,29 @@ lint:
set -e
set -o pipefail
echo "gofmt"
output=$(gofmt -d .)
if [ -n "$output" ]; then
echo "$output"
echo "Error: (gofmt) formatting required" >&2
exit 1
fi

echo "golines"
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"
go run github.com/golangci/golangci-lint/cmd/golangci-lint@v1.60.1 run

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

echo "tf fmt"
terraform fmt -recursive -check

fmt:
Expand Down

0 comments on commit 5077949

Please sign in to comment.