Skip to content

Commit f517db7

Browse files
authored
Merge pull request #194 from cisagov/improvement/ensure_pre-commit_hooks_are_sorted
Sort hook ids in each `pre-commit` hook entry
2 parents 6959971 + 1d285f2 commit f517db7

File tree

1 file changed

+12
-12
lines changed

1 file changed

+12
-12
lines changed

.pre-commit-config.yaml

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -72,25 +72,25 @@ repos:
7272
- repo: https://github.com/TekWizely/pre-commit-golang
7373
rev: v1.0.0-rc.1
7474
hooks:
75-
# Style Checkers
76-
- id: go-critic
77-
# StaticCheck
78-
- id: go-staticcheck-repo-mod
7975
# Go Build
8076
- id: go-build-repo-mod
77+
# Style Checkers
78+
- id: go-critic
79+
# goimports
80+
- id: go-imports-repo
81+
args:
82+
# Write changes to files
83+
- -w
8184
# Go Mod Tidy
8285
- id: go-mod-tidy-repo
86+
# GoSec
87+
- id: go-sec-repo-mod
88+
# StaticCheck
89+
- id: go-staticcheck-repo-mod
8390
# Go Test
8491
- id: go-test-repo-mod
8592
# Go Vet
8693
- id: go-vet-repo-mod
87-
# GoSec
88-
- id: go-sec-repo-mod
89-
# goimports
90-
- id: go-imports-repo
91-
args:
92-
# Write changes to files
93-
- -w
9494
# Nix hooks
9595
- repo: https://github.com/nix-community/nixpkgs-fmt
9696
rev: v1.3.0
@@ -205,5 +205,5 @@ repos:
205205
- repo: https://github.com/cisagov/pre-commit-packer
206206
rev: v0.3.0
207207
hooks:
208-
- id: packer_validate
209208
- id: packer_fmt
209+
- id: packer_validate

0 commit comments

Comments
 (0)