Skip to content

Commit fc30520

Browse files
authored
feat: fix pre-commit config to use pass_filenames (#133)
Using pass_filenames: true is faster than `golines -w .` because it runs golines on only the files that have changed.
1 parent a7e0206 commit fc30520

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

.pre-commit-hooks.yaml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
- id: golines
22
name: golines
33
description: A golang formatter that fixes long lines.
4-
entry: golines . -w
4+
entry: golines -w
55
types: [go]
66
language: golang
7-
pass_filenames: false

0 commit comments

Comments
 (0)