Skip to content

Commit

Permalink
lint.sh: read config for formatters; include gofmt (#2056)
Browse files Browse the repository at this point in the history
As suggested here:
#2051 (comment)
  • Loading branch information
denik authored Dec 30, 2024
1 parent 1306e5e commit 1ce20a2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,5 @@ set -euo pipefail
# 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 $@
golangci-lint run --enable-only="gofmt,gofumpt,goimports" --fix $@
exec golangci-lint run --fix $@

0 comments on commit 1ce20a2

Please sign in to comment.