aboutsummaryrefslogtreecommitdiffstats
path: root/vendor/github.com/mgechev/revive/formatter
diff options
context:
space:
mode:
authorTaras Madan <tarasmadan@google.com>2023-12-05 15:10:03 +0100
committerTaras Madan <tarasmadan@google.com>2023-12-06 11:31:44 +0000
commit2ab72b4feef2c97f22f90cfbf9e45a6cfcd08bda (patch)
treea6d19b94b6399fcc00a6cfa430885cd349dd1533 /vendor/github.com/mgechev/revive/formatter
parente08e8f492d31d672cc245944c185f8aadf2ee695 (diff)
vendor: updates
Diffstat (limited to 'vendor/github.com/mgechev/revive/formatter')
-rw-r--r--vendor/github.com/mgechev/revive/formatter/sarif.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/vendor/github.com/mgechev/revive/formatter/sarif.go b/vendor/github.com/mgechev/revive/formatter/sarif.go
index c6288db76..c42da73eb 100644
--- a/vendor/github.com/mgechev/revive/formatter/sarif.go
+++ b/vendor/github.com/mgechev/revive/formatter/sarif.go
@@ -88,7 +88,7 @@ func (l *reviveRunLog) AddResult(failure lint.Failure) {
location := garif.NewLocation().WithURI(filename).WithLineColumn(line, column)
result.Locations = append(result.Locations, location)
result.RuleId = failure.RuleName
- result.Level = l.rules[failure.RuleName].Severity
+ result.Level = garif.ResultLevel(l.rules[failure.RuleName].Severity)
l.run.Results = append(l.run.Results, result)
}