Skip to content

Commit

Permalink
feat: support displaying the count of occurance
Browse files Browse the repository at this point in the history
  • Loading branch information
jdkato committed Apr 4, 2024
1 parent 6ed15a3 commit eba2813
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions internal/check/occurrence.go
@@ -1,6 +1,7 @@
package check

import (
"strconv"
"strings"

"github.com/errata-ai/regexp2"
Expand Down Expand Up @@ -104,8 +105,8 @@ func (o Occurrence) Run(blk nlp.Block, _ *core.File) ([]core.Alert, error) {
}
}

a.Message = o.Message
a.Description = o.Description
a.Message, a.Description = formatMessages(o.Message, o.Description,
strconv.Itoa(occurrences))
alerts = append(alerts, a)
}

Expand Down

0 comments on commit eba2813

Please sign in to comment.