Skip to content

Commit

Permalink
refactor: Add --fast flag to accelerate lint for git pre-commit hook (
Browse files Browse the repository at this point in the history
  • Loading branch information
levisyin authored Jan 28, 2024
1 parent 493dd78 commit 430b532
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/hooks/pre-commit.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash

# lint modified go files
golangci-lint run --fix --new -c .golangci.yml
golangci-lint run --fix --new --fast -c .golangci.yml

0 comments on commit 430b532

Please sign in to comment.