lint.sh: read config for formatters; include gofmt (#2056)

As suggested here:
https://github.com/databricks/cli/pull/2051#discussion_r1899641273
This commit is contained in:
Denis Bilenko 2024-12-30 19:39:33 +01:00 committed by GitHub
parent 1306e5ec67
commit 1ce20a2612
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -5,5 +5,5 @@ set -euo pipefail
# However, running goimports first alone will actually fix some of the compilation issues. # However, running goimports first alone will actually fix some of the compilation issues.
# Fixing formatting is also reasonable thing to do. # Fixing formatting is also reasonable thing to do.
# For this reason, this script runs golangci-lint in two stages: # 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 $@ exec golangci-lint run --fix $@