Skip to content

Commit

Permalink
feat: check only changed files in pre-commit hook (#3521)
Browse files Browse the repository at this point in the history
  • Loading branch information
davidjb committed Mar 6, 2023
1 parent b88bb97 commit 985efcc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .pre-commit-hooks.yaml
@@ -1,7 +1,7 @@
- id: golangci-lint
name: golangci-lint
description: Fast linters runner for Go.
entry: golangci-lint run --fix
entry: golangci-lint run --new-from-rev HEAD --fix
types: [go]
language: golang
pass_filenames: false
pass_filenames: true

0 comments on commit 985efcc

Please sign in to comment.