Skip to content

Commit 386caab

Browse files
committed
review
1 parent b0d0f12 commit 386caab

File tree

4 files changed

+8
-8
lines changed

4 files changed

+8
-8
lines changed

pkg/config/output.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@ const (
1616
OutFormatCheckstyle = "checkstyle"
1717
OutFormatCodeClimate = "code-climate"
1818
OutFormatHTML = "html"
19-
OutFormatJunitXML = "junit-xml"
20-
OutFormatJunitXMLExtended = "junit-xml-extended"
19+
OutFormatJUnitXML = "junit-xml"
20+
OutFormatJUnitXMLExtended = "junit-xml-extended"
2121
OutFormatGithubActions = "github-actions" // Deprecated
2222
OutFormatTeamCity = "teamcity"
2323
OutFormatSarif = "sarif"
@@ -32,8 +32,8 @@ var AllOutputFormats = []string{
3232
OutFormatCheckstyle,
3333
OutFormatCodeClimate,
3434
OutFormatHTML,
35-
OutFormatJunitXML,
36-
OutFormatJunitXMLExtended,
35+
OutFormatJUnitXML,
36+
OutFormatJUnitXMLExtended,
3737
OutFormatGithubActions,
3838
OutFormatTeamCity,
3939
OutFormatSarif,

pkg/printers/junitxml.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ import (
1212
"github.com/golangci/golangci-lint/pkg/result"
1313
)
1414

15-
// JUnitXML prints issues in the Junit XML format.
15+
// JUnitXML prints issues in the JUnit XML format.
1616
// There is no official specification for the JUnit XML file format,
1717
// and various tools generate and support different flavors of this format.
1818
// https://github.com/testmoapp/junitxml

pkg/printers/junitxml_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ import (
1111
"github.com/golangci/golangci-lint/pkg/result"
1212
)
1313

14-
func TestJunitXML_Print(t *testing.T) {
14+
func TestJUnitXML_Print(t *testing.T) {
1515
issues := []result.Issue{
1616
{
1717
FromLinter: "linter-a",

pkg/printers/printer.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -127,8 +127,8 @@ func (c *Printer) createPrinter(format string, w io.Writer) (issuePrinter, error
127127
p = NewCodeClimate(c.log, w)
128128
case config.OutFormatHTML:
129129
p = NewHTML(w)
130-
case config.OutFormatJunitXML, config.OutFormatJunitXMLExtended:
131-
p = NewJUnitXML(w, format == config.OutFormatJunitXMLExtended)
130+
case config.OutFormatJUnitXML, config.OutFormatJUnitXMLExtended:
131+
p = NewJUnitXML(w, format == config.OutFormatJUnitXMLExtended)
132132
case config.OutFormatGithubActions:
133133
p = NewGitHubAction(w)
134134
case config.OutFormatTeamCity:

0 commit comments

Comments
 (0)