Skip to content

Commit bd762fe

Browse files
authored
Merge pull request #133 from cisagov/add-go-hooks
Add Go hooks
2 parents edf1338 + 42f481c commit bd762fe

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

.pre-commit-config.yaml

+19
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,25 @@ repos:
6060
hooks:
6161
- id: validate_manifest
6262

63+
# Go hooks
64+
- repo: https://github.com/TekWizely/pre-commit-golang
65+
rev: v1.0.0-rc.1
66+
hooks:
67+
# Style Checkers
68+
- id: go-critic
69+
# StaticCheck
70+
- id: go-staticcheck-repo-mod
71+
# Go Build
72+
- id: go-build-repo-mod
73+
# Go Mod Tidy
74+
- id: go-mod-tidy-repo
75+
# Go Test
76+
- id: go-test-repo-mod
77+
# Go Vet
78+
- id: go-vet-repo-mod
79+
# GoSec
80+
- id: go-sec-repo-mod
81+
6382
# Shell script hooks
6483
- repo: https://github.com/cisagov/pre-commit-shfmt
6584
rev: v0.0.2

0 commit comments

Comments
 (0)