Skip to content

Commit

Permalink
Add "check_name" field to output
Browse files Browse the repository at this point in the history
  • Loading branch information
emanguy authored Sep 10, 2024
1 parent beaab0a commit ffd294e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ type StaticCheckEntry struct {
}

type GitlabCIEntry struct {
CheckName string `json:"check_name"`
Description string `json:"description"`
Fingerprint string `json:"fingerprint"`
Severity string `json:"severity"`
Expand All @@ -45,6 +46,7 @@ func main() {
}

var gitlabEntry GitlabCIEntry
gitlabEntry.CheckName = entry.Code
gitlabEntry.Description = entry.Message
gitlabEntry.Fingerprint = fmt.Sprintf("%s%s%d%d", entry.Code, entry.Location.File, entry.Location.Line, entry.Location.Column)
gitlabEntry.Severity = entry.Severity
Expand Down

0 comments on commit ffd294e

Please sign in to comment.