Skip to content

Commit

Permalink
Merge pull request #194 from cisagov/improvement/ensure_pre-commit_ho…
Browse files Browse the repository at this point in the history
…oks_are_sorted

Sort hook ids in each `pre-commit` hook entry
  • Loading branch information
mcdonnnj authored Oct 30, 2024
2 parents 6959971 + 1d285f2 commit f517db7
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -72,25 +72,25 @@ repos:
- repo: https://github.com/TekWizely/pre-commit-golang
rev: v1.0.0-rc.1
hooks:
# Style Checkers
- id: go-critic
# StaticCheck
- id: go-staticcheck-repo-mod
# Go Build
- id: go-build-repo-mod
# Style Checkers
- id: go-critic
# goimports
- id: go-imports-repo
args:
# Write changes to files
- -w
# Go Mod Tidy
- id: go-mod-tidy-repo
# GoSec
- id: go-sec-repo-mod
# StaticCheck
- id: go-staticcheck-repo-mod
# Go Test
- id: go-test-repo-mod
# Go Vet
- id: go-vet-repo-mod
# GoSec
- id: go-sec-repo-mod
# goimports
- id: go-imports-repo
args:
# Write changes to files
- -w
# Nix hooks
- repo: https://github.com/nix-community/nixpkgs-fmt
rev: v1.3.0
Expand Down Expand Up @@ -205,5 +205,5 @@ repos:
- repo: https://github.com/cisagov/pre-commit-packer
rev: v0.3.0
hooks:
- id: packer_validate
- id: packer_fmt
- id: packer_validate

0 comments on commit f517db7

Please sign in to comment.