Skip to content

Commit 5ae78cd

Browse files
authored
fix: the TeamCity inspectionType service message (#4573)
1 parent 66ec75e commit 5ae78cd

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

pkg/printers/teamcity.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ type InspectionType struct {
8888
}
8989

9090
func (i InspectionType) Print(w io.Writer, escaper *strings.Replacer) (int, error) {
91-
return fmt.Fprintf(w, "##teamcity[InspectionType id='%s' name='%s' description='%s' category='%s']\n",
91+
return fmt.Fprintf(w, "##teamcity[inspectionType id='%s' name='%s' description='%s' category='%s']\n",
9292
limit(i.id, smallLimit), limit(i.name, smallLimit), limit(escaper.Replace(i.description), largeLimit), limit(i.category, smallLimit))
9393
}
9494

pkg/printers/teamcity_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,10 +56,10 @@ func TestTeamCity_Print(t *testing.T) {
5656
err := printer.Print(issues)
5757
require.NoError(t, err)
5858

59-
expected := `##teamcity[InspectionType id='linter-a' name='linter-a' description='linter-a' category='Golangci-lint reports']
59+
expected := `##teamcity[inspectionType id='linter-a' name='linter-a' description='linter-a' category='Golangci-lint reports']
6060
##teamcity[inspection typeId='linter-a' message='warning issue' file='path/to/filea.go' line='10' SEVERITY='']
6161
##teamcity[inspection typeId='linter-a' message='error issue' file='path/to/filea.go' line='10' SEVERITY='ERROR']
62-
##teamcity[InspectionType id='linter-b' name='linter-b' description='linter-b' category='Golangci-lint reports']
62+
##teamcity[inspectionType id='linter-b' name='linter-b' description='linter-b' category='Golangci-lint reports']
6363
##teamcity[inspection typeId='linter-b' message='info issue' file='path/to/fileb.go' line='300' SEVERITY='']
6464
`
6565

0 commit comments

Comments
 (0)