diff --git a/.github/workflows/static-analysis.yaml b/.github/workflows/static-analysis.yaml index 62701558501..a7ee8d6aa03 100644 --- a/.github/workflows/static-analysis.yaml +++ b/.github/workflows/static-analysis.yaml @@ -30,3 +30,13 @@ jobs: set -euo pipefail make fix + + DIFF=$(git status --porcelain) + + if [ -n "$DIFF" ]; then + echo "These files were modified:" + echo + echo "$DIFF" + echo + exit 1 + fi diff --git a/tools/.golangci.yaml b/tools/.golangci.yaml index e8219954133..c917b536e2e 100644 --- a/tools/.golangci.yaml +++ b/tools/.golangci.yaml @@ -23,7 +23,7 @@ linters: - staticcheck - stylecheck - unused - - unconvert # Remove unnecessary type conversions + - unconvert # Remove unnecessary type conversions linters-settings: # please keep this alphabetized goimports: local-prefixes: go.etcd.io # Put imports beginning with prefix after 3rd-party packages.