build(ci): add staticcheck to CI pipeline; fix SA4006 in gitutil test
ci / vet, staticcheck, test, build (push) Successful in 3m5s
ci / vet, staticcheck, test, build (push) Successful in 3m5s
Add `go tool staticcheck ./...` between vet and test in the `task ci` pipeline. Fix the SA4006 finding it surfaced: the PlainOpen error in TestLatestTagTagsIterFails was assigned but never read (the nil check was lost when the skip logic was simplified). Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
+2
-1
@@ -77,7 +77,7 @@ tasks:
|
||||
- go test -run='^Fuzz' {{.PKG}}
|
||||
|
||||
ci:
|
||||
desc: Full CI pipeline — tidy check, vet, test
|
||||
desc: Full CI pipeline — tidy check, vet, staticcheck, test
|
||||
cmds:
|
||||
- task: tidy
|
||||
- |
|
||||
@@ -86,6 +86,7 @@ tasks:
|
||||
exit 1
|
||||
fi
|
||||
- task: lint
|
||||
- go tool staticcheck ./...
|
||||
- task: test
|
||||
|
||||
clean:
|
||||
|
||||
Reference in New Issue
Block a user