-
Notifications
You must be signed in to change notification settings - Fork 69
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
2 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,9 @@ | ||
#!/bin/bash | ||
set -euo pipefail | ||
# With golangci-lint, if there are any compliation issues, they formatters autofix won't be applied. | ||
# With golangci-lint, if there are any compliation issues, then formatters' autofix won't be applied. | ||
# https://github.com/golangci/golangci-lint/issues/5257 | ||
# However, running goimports first alone will actually fix some of the compilation issues. | ||
# Fixing formatting is also reasonable thing to do. | ||
# For this reason, this script runs golangci-lint in two stages: | ||
golangci-lint run --fix --no-config --disable-all --enable gofumpt,goimports $@ | ||
exec golangci-lint run --fix $@ |