fix(cli): align fail-on defaults#25
Open
nvphungdev wants to merge 1 commit into
Open
Conversation
|
First PR — welcome aboard! A few things to expect:
If you get stuck, reply here or jump to Discussions. We want this PR to land. |
Signed-off-by: nvphungdev <283886185+nvphungdev@users.noreply.github.com>
2deff7f to
19e4ffd
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
Align
audit --fail-onwithanalyze --fail-onso both commands require an explicit threshold before returning exit code 1 for findings.Why
Fixes #22
How
Changed the
auditcommand default fromhighto unset, added a regression test that runsauditwithout--fail-on, and updated the README flag table to document the opt-in default.Testing
golangci-lint runpasses in Docker viagolangci/golangci-lint:latestgo test ./...passes in Docker viagolang:1.24go test -race ./...passes in Docker viagolang:1.24go vet ./...passes in Docker viagolang:1.24docker run --rm -v "$PWD":/src -w /src golang:1.24 go test -race ./...Checklist
feat(scope): subject)