mirror of
https://github.com/github/codeql.git
synced 2025-12-16 16:53:25 +01:00
Improve message
This commit is contained in:
@@ -34,7 +34,7 @@ autoformat:
|
||||
check-formatting:
|
||||
@output=$$(find . -path '**/vendor' -prune -or -type f -iname '*.go' ! -empty -print0 | xargs -0 grep -L "//\s*autoformat-ignore" | xargs gofmt -l 2>&1); \
|
||||
if [ -n "$$output" ]; then \
|
||||
echo "The following files need to be reformatted using gofmt:"; \
|
||||
echo "The following files need to be reformatted using gofmt or have compilation errors:"; \
|
||||
echo "$$output"; \
|
||||
fi; \
|
||||
test -z "$$output"
|
||||
|
||||
Reference in New Issue
Block a user