labml icon indicating copy to clipboard operation
labml copied to clipboard

Add an option to remove brakeman attributes in JUnit report

Open pbernery opened this issue 9 months ago • 3 comments

Is your feature request related to a problem? Please describe. I encounter the issue declared in https://github.com/presidentbeef/brakeman/issues/1763: the JUnit report is refused by CircleCI.

Describe the solution you'd like While there is a workaround proposed in the issue above, I wonder if an option to remove brakeman specific attributes won't be better? Or even remove the specific attributes at all: are they used by anyone? Hard to know I guess, but the original PR that introduced the JUnit format was for CircleCI support, but CircleCI does not support these additional attributes anymore.

Describe alternatives you've considered

  • either add an option to remove those attributes,
  • or remove those attributes.

Additional context Add any other context or screenshots about the feature request here.

pbernery avatar Mar 14 '25 16:03 pbernery

Kind of confused about why these were added in the first place if they weren't valid. Looking at the original PR, seems like the attributes were specific to CircleCI and never valid for plain JUnit.

So yes I'm supportive of dropping them entirely.

presidentbeef avatar Mar 17 '25 21:03 presidentbeef

Alright. Then I will propose a PR to remove those attributes. Thank you @presidentbeef.

pbernery avatar Mar 26 '25 16:03 pbernery

Here is a PR with the proposed changes: https://github.com/presidentbeef/brakeman/pull/1934.

pbernery avatar Apr 18 '25 13:04 pbernery

Closed in #1934

presidentbeef avatar Jul 09 '25 02:07 presidentbeef