Skip to content

Commit b4d2ca9

Browse files
committed
review
1 parent 9959637 commit b4d2ca9

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

pkg/printers/sarif.go

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -77,11 +77,10 @@ func (p Sarif) Print(issues []result.Issue) error {
7777

7878
severity := issue.Severity
7979

80-
// can be only none, note, warning, error
81-
// https://docs.oasis-open.org/sarif/sarif/v2.1.0/errata01/os/sarif-v2.1.0-errata01-os-complete.html#_Toc141790898
8280
switch severity {
81+
// https://docs.oasis-open.org/sarif/sarif/v2.1.0/errata01/os/sarif-v2.1.0-errata01-os-complete.html#_Toc141790898
8382
case "none", "note", "warning", "error":
84-
// valid
83+
// Valid levels.
8584
default:
8685
severity = "error"
8786
}

0 commit comments

Comments
 (0)