Commit 0c67d00
committed
Add
Add this as a way to easily ensure configs stay valid. Filenames are not
passed to the hook, this means For the default case (config in one of
the default searched files), the config is picked up automatically and
there's nothing extra to configure. For the case of a non-standard
config setup the hook can be configured like
repos:
- repo: https://github.com/golangci/golangci-lint
rev: v1.57.2
hooks:
- id: golangci-lint-config-verify
# config is kept at '.golangci-config.yaml'
files: \.golangci-config\.yaml
args: ['--config', '.golangci-config.yaml']pre-commit hook to run config verify
1 parent d318327 commit 0c67d00
1 file changed
+7
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
0 commit comments