Skip to content

Commit 8c929e0

Browse files
authored
feat: add golangci-lint-fmt pre-commit hook (#5705)
1 parent bd59ef8 commit 8c929e0

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

.pre-commit-hooks.yaml

+9-1
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,20 @@
88
pass_filenames: false
99
- id: golangci-lint-full
1010
name: golangci-lint-full
11-
description: Fast linters runner for Go. Runs on all files in the repo. Use this hook if you use pre-commit in CI.
11+
description: Fast linters runner for Go. Runs on all files in the module. Use this hook if you use pre-commit in CI.
1212
entry: golangci-lint run --fix
1313
types: [go]
1414
language: golang
1515
require_serial: true
1616
pass_filenames: false
17+
- id: golangci-lint-fmt
18+
name: golangci-lint-fmt
19+
description: Fast linters runner for Go. Formats all files in the repo.
20+
entry: golangci-lint fmt
21+
types: [go]
22+
language: golang
23+
require_serial: true
24+
pass_filenames: false
1725
- id: golangci-lint-config-verify
1826
name: golangci-lint-config-verify
1927
description: Verifies the configuration file

0 commit comments

Comments
 (0)