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

Way to extract modernizer logs / reports #158

Closed
abhisheksurve45 opened this issue Dec 5, 2022 · 1 comment
Closed

Way to extract modernizer logs / reports #158

abhisheksurve45 opened this issue Dec 5, 2022 · 1 comment

Comments

@abhisheksurve45
Copy link

Hi

Was wondering if there's any way to extract the modernizer comments/reports.

Right now we are using grep.

Example Logs on executing maven compile

11:56:02 [ERROR] /home/project/src/main/java/com/test/project/package/SomeClass.java:102: Prefer Stream.skip(position).findFirst().orElse(defaultValue)
@gaul
Copy link
Owner

gaul commented Dec 5, 2022

Modernizer could add a new goal which dumps an XML machine-readable report. This is easy to add, just change ModernizerMojo.emitViolation. Would you like to submit a PR?

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

No branches or pull requests

2 participants