Skip to content

Commit 91ac143

Browse files
committed
Update pre-commit hook to run go linters
This will fix go related erros, golang linting first, then other linters. openshift/release: [36011](openshift/release#36011) Signed-off-by: Amol Kahat <[email protected]>
1 parent 813039e commit 91ac143

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

.pre-commit-config.yaml

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,13 @@
11
repos:
2+
- repo: https://github.com/dnephin/pre-commit-golang
3+
rev: v0.5.1
4+
hooks:
5+
- id: go-fmt
6+
exclude: ^vendor
7+
- id: go-vet
8+
- id: go-mod-tidy
9+
- id: go-lint
10+
211
- repo: local
312
hooks:
413
- id: make-manifests
@@ -20,15 +29,6 @@ repos:
2029
args: ['operator-lint']
2130
pass_filenames: false
2231

23-
- repo: https://github.com/dnephin/pre-commit-golang
24-
rev: v0.5.1
25-
hooks:
26-
- id: go-fmt
27-
exclude: ^vendor
28-
- id: go-vet
29-
- id: go-mod-tidy
30-
- id: go-lint
31-
3232
- repo: https://github.com/pre-commit/pre-commit-hooks
3333
rev: v4.3.0
3434
hooks:

0 commit comments

Comments
 (0)