Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Version 2.1.2 fails to parse detekt results file. #22

Closed
bay73 opened this issue Oct 18, 2024 · 5 comments
Closed

Version 2.1.2 fails to parse detekt results file. #22

bay73 opened this issue Oct 18, 2024 · 5 comments

Comments

@bay73
Copy link

bay73 commented Oct 18, 2024

While parsing detekt output xml file an exception occurs:

java.lang.RuntimeException: "se.bjurr.violations.violationsgitlib.severity" not found in: <?xml version="1.0" encoding="UTF-8"?><error line="62" column="21" severity="warning" message="Forbidden TODO todo marker in comment, please do the changes." source="detekt.ForbiddenComment"/>

Decompiled code of CheckStyleParser really has se.bjurr.violations.violationsgitlib.severity instead of just 'severity':

column = ViolationParserUtils.findIntegerAttribute(xmlr, "column");
severity = ViolationParserUtils.getAttribute(xmlr, "se.bjurr.violations.violationsgitlib.severity");
message = ViolationParserUtils.getAttribute(xmlr, "message");

Not sure where this came from.

@tomasbjerre
Copy link
Owner

Does 2.2.0 work?

I also noticed this bug. Seems like a bug in the Shadow tool.

@bay73
Copy link
Author

bay73 commented Oct 18, 2024

2.2.0 is not available yet at https://plugins.gradle.org/

@tomasbjerre
Copy link
Owner

tomasbjerre commented Oct 18, 2024

I published 2.2.2 now. Hope that works.

gradle/plugin-portal-requests#242

@tomasbjerre
Copy link
Owner

Open issue again if not working

@bay73
Copy link
Author

bay73 commented Oct 19, 2024

Thank you. Version 2.2.2 works

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants