some refinement
This commit is contained in:
@@ -6,3 +6,13 @@ lint:
|
||||
|
||||
install-lint:
|
||||
go install github.com/golangci/golangci-lint/cmd/golangci-lint@latest
|
||||
|
||||
fix:
|
||||
golangci-lint run --fix ./...
|
||||
|
||||
semgrep:
|
||||
@which semgrep > /dev/null || (echo "semgrep not found, please install it: brew install semgrep")
|
||||
semgrep scan --config auto --config semgrep-rules.yml
|
||||
|
||||
semgrep-ci:
|
||||
semgrep scan --config auto --config semgrep-rules.yml --error
|
||||
Reference in New Issue
Block a user