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 authored and ldez committed Jan 5, 2022
1 parent f2384c9 commit 9eef164
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/printers/junitxml.go
Expand Up @@ -57,8 +57,8 @@ func (p 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 9eef164

Please sign in to comment.