Skip to content

Commit

Permalink
makefile: fail semgrep if any check fails (#737)
Browse files Browse the repository at this point in the history
```bash
$ make semgrep
-- Running inside Docker --
┌─────────────────┐
│ 2 Code Findings │
└─────────────────┘

    command/cp.go
   ❯❯❱ github.err-trailing-whitespaces
	  Trailing whitespace

	   49┆ > s5cmd {{.HelpName}} s3://bucket/prefix/object.gz myobject.gz
	    ⋮┆----------------------------------------
	   50┆

$ echo $?
0
```
  • Loading branch information
igungor authored Jul 9, 2024
1 parent 75d6f7a commit 0adfb9b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ unparam:

.PHONY: semgrep
semgrep: ## Run semgrep
@$(semgrep) --quiet --metrics=off --config="r/dgryski.semgrep-go" --config .github/semgrep-rules.yaml .
@$(semgrep) --quiet --metrics=off --error --config="r/dgryski.semgrep-go" --config .github/semgrep-rules.yaml .

.PHONY: vet
vet:
Expand Down

0 comments on commit 0adfb9b

Please sign in to comment.