Skip to content

Commit 985efcc

Browse files
authored
feat: check only changed files in pre-commit hook (#3521)
1 parent b88bb97 commit 985efcc

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Diff for: .pre-commit-hooks.yaml

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
- id: golangci-lint
22
name: golangci-lint
33
description: Fast linters runner for Go.
4-
entry: golangci-lint run --fix
4+
entry: golangci-lint run --new-from-rev HEAD --fix
55
types: [go]
66
language: golang
7-
pass_filenames: false
7+
pass_filenames: true

0 commit comments

Comments
 (0)