fix: only report new lint issues with --new-from-rev

This commit is contained in:
2026-06-11 12:06:04 +02:00
parent 5f346d8dec
commit c70adbd0ec
2 changed files with 11 additions and 11 deletions

View File

@@ -20,7 +20,7 @@
{
"glob": "*.go",
"run":
'printf "%s\n" {staged_files} | xargs -n1 dirname | sort -u | xargs -I{} golangci-lint run ./{}',
'printf "%s\n" {staged_files} | xargs -n1 dirname | sort -u | xargs -I{} golangci-lint run --new-from-rev=HEAD ./{}',
},
"go-test":
{