mirror of https://github.com/databricks/cli.git
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:
parent
1306e5ec67
commit
1ce20a2612
2
lint.sh
2
lint.sh
|
@ -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 $@
|
||||||
|
|
Loading…
Reference in New Issue