Skip to content

Commit 7e2229a

Browse files
Add pre-commit hook to run config verify (golangci#4602)
1 parent 4e56cba commit 7e2229a

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

.pre-commit-hooks.yaml

+7
Original file line numberDiff line numberDiff line change
@@ -14,3 +14,10 @@
1414
language: golang
1515
require_serial: true
1616
pass_filenames: false
17+
- id: golangci-lint-config-verify
18+
name: golangci-lint-config-verify
19+
description: Verifies the configuration file
20+
entry: golangci-lint config verify
21+
files: '\.golangci\.(?:yml|yaml|toml|json)'
22+
language: golang
23+
pass_filenames: false

0 commit comments

Comments
 (0)