mirror of
https://github.com/PrivateCaptcha/PrivateCaptcha.git
synced 2026-05-13 00:08:34 -05:00
Exclude vendors from checking go fmt
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
set -euo pipefail
|
||||
|
||||
mapfile -t STAGED_GO_FILES < <(
|
||||
git diff --cached --name-only --diff-filter=ACM | grep '\.go$' || true
|
||||
git diff --cached --name-only --diff-filter=ACM | grep '\.go$' | grep -v '^vendor/' || true
|
||||
)
|
||||
|
||||
if [ ${#STAGED_GO_FILES[@]} -eq 0 ]; then
|
||||
|
||||
Reference in New Issue
Block a user