Skip to content

Commit

Permalink
feat: fix pre-commit config to use pass_filenames (#133)
Browse files Browse the repository at this point in the history
Using pass_filenames: true is faster than `golines -w .` because it runs golines on only the files that have changed.
  • Loading branch information
sjackman authored Jan 8, 2025
1 parent a7e0206 commit fc30520
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions .pre-commit-hooks.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
- id: golines
name: golines
description: A golang formatter that fixes long lines.
entry: golines . -w
entry: golines -w
types: [go]
language: golang
pass_filenames: false

0 comments on commit fc30520

Please sign in to comment.