Skip to content

Commit

Permalink
Added file and line to both message and content of junit <failure> tag
Browse files Browse the repository at this point in the history
  • Loading branch information
byrnedo committed Jan 4, 2022
1 parent 5afdb80 commit 947834f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/printers/junitxml.go
Expand Up @@ -56,8 +56,8 @@ func (JunitXML) Print(ctx context.Context, issues []result.Issue) error {
Name: i.FromLinter,
ClassName: i.Pos.String(),
Failure: failureXML{
Message: i.Text,
Content: i.Text + ":\n" + strings.Join(i.SourceLines, "\n"),
Message: i.Pos.String() + ": " + i.Text,
Content: i.Pos.String() + ": " + i.Text + "\n" + strings.Join(i.SourceLines, "\n"),
},
}

Expand Down

0 comments on commit 947834f

Please sign in to comment.