Skip to content

Commit

Permalink
Make fix-go-imports hook only look at pkg and cmd directories
Browse files Browse the repository at this point in the history
  • Loading branch information
reggieriser committed May 20, 2022
1 parent 4ab98a1 commit 63adf48
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ repos:
- id: fix-go-imports
name: fix go imports
entry: scripts/fix-go-imports
files: \.go$
files: ^cmd/.*\.go$|^pkg/.*\.go$
exclude: ^pkg/gen/|^pkg/assets/|/*mocks/
language: script

Expand Down

0 comments on commit 63adf48

Please sign in to comment.