We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0259a56 commit b0d0f12Copy full SHA for b0d0f12
pkg/printers/codeclimate.go
@@ -36,13 +36,15 @@ func (p *CodeClimate) Print(issues []result.Issue) error {
36
for i := range issues {
37
issue := issues[i]
38
39
- ccIssue := codeClimateIssue{}
40
- ccIssue.Description = issue.Description()
41
- ccIssue.CheckName = issue.FromLinter
+ ccIssue := codeClimateIssue{
+ Description: issue.Description(),
+ CheckName: issue.FromLinter,
42
+ Severity: p.sanitizer.Sanitize(issue.Severity),
43
+ Fingerprint: issue.Fingerprint(),
44
+ }
45
+
46
ccIssue.Location.Path = issue.Pos.Filename
47
ccIssue.Location.Lines.Begin = issue.Pos.Line
- ccIssue.Fingerprint = issue.Fingerprint()
- ccIssue.Severity = p.sanitizer.Sanitize(issue.Severity)
48
49
ccIssues = append(ccIssues, ccIssue)
50
}
0 commit comments