refactor: Add --fast flag to accelerate lint for git pre-commit hook (#19259)

This commit is contained in:
levisyin 2024-01-28 17:52:44 +08:00 committed by GitHub
parent 493dd78e56
commit 430b53236e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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