diff --git a/.pre-commit-hooks.yaml b/.pre-commit-hooks.yaml index dea4b598a090..9738d4b25755 100644 --- a/.pre-commit-hooks.yaml +++ b/.pre-commit-hooks.yaml @@ -8,12 +8,20 @@ pass_filenames: false - id: golangci-lint-full name: golangci-lint-full - description: Fast linters runner for Go. Runs on all files in the repo. Use this hook if you use pre-commit in CI. + description: Fast linters runner for Go. Runs on all files in the module. Use this hook if you use pre-commit in CI. entry: golangci-lint run --fix types: [go] language: golang require_serial: true pass_filenames: false +- id: golangci-lint-fmt + name: golangci-lint-fmt + description: Fast linters runner for Go. Formats all files in the repo. + entry: golangci-lint fmt + types: [go] + language: golang + require_serial: true + pass_filenames: false - id: golangci-lint-config-verify name: golangci-lint-config-verify description: Verifies the configuration file