Skip to content

Commit

Permalink
Shorten description
Browse files Browse the repository at this point in the history
Signed-off-by: egibs <[email protected]>
  • Loading branch information
egibs committed Oct 3, 2024
1 parent bbe0701 commit f8b1db1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/report/report.go
Original file line number Diff line number Diff line change
Expand Up @@ -295,7 +295,7 @@ func mungeDescription(s string) string {
return s
}

//nolint:cyclop,gocognit // ignore complexity of 44, 103
//nolint:cyclop // ignore complexity of 44
func Generate(ctx context.Context, path string, mrs yara.MatchRules, c malcontent.Config, expath string) (malcontent.FileReport, error) {
ignoreTags := c.IgnoreTags
minScore := c.MinRisk
Expand Down Expand Up @@ -461,7 +461,7 @@ func Generate(ctx context.Context, path string, mrs yara.MatchRules, c malconten
if ob.RuleName == overrideRule {
b = ob
b.RuleName = m.Rule
b.Description = fmt.Sprintf("%s, overridden by %s", b.Description, m.Rule)
b.Description = fmt.Sprintf("%s, [%s]", b.Description, m.Rule)
b.RiskScore = overrideSev
b.RiskLevel = RiskLevels[overrideSev]

Expand Down

0 comments on commit f8b1db1

Please sign in to comment.