Skip to content

Commit e799af1

Browse files
committed
fix additional attribute: should not contain spaces
1 parent d404923 commit e799af1

File tree

1 file changed

+8
-5
lines changed

1 file changed

+8
-5
lines changed

pkg/printers/teamcity.go

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -62,11 +62,14 @@ func (p *TeamCity) Print(_ context.Context, issues []result.Issue) error {
6262
}
6363

6464
instance := InspectionInstance{
65-
typeID: issue.FromLinter,
66-
message: issue.Text,
67-
file: issue.FilePath(),
68-
line: issue.Line(),
69-
additionalAttribute: issue.Severity,
65+
typeID: issue.FromLinter,
66+
message: issue.Text,
67+
file: issue.FilePath(),
68+
line: issue.Line(),
69+
}
70+
71+
if issue.Severity != "" {
72+
instance.additionalAttribute = issue.Severity
7073
}
7174

7275
_, err := instance.Print(p.w, p.escaper)

0 commit comments

Comments
 (0)