-
Notifications
You must be signed in to change notification settings - Fork 460
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
Add option to disable m2e problem reporting #2037
Comments
Maybe there is also a bug with the error reporting that these errors just accumulate without ever being cleared, as long as there is still any formatting violation at that line. |
Indeed there is an issue with not removing old error markers. I will try to come up with a fix. This is a regression of #1962. In addition allowing to disable m2e execution (and therefore prevent emitting of errors within Eclipse) and allowing to tweak the severity of message markers in incremental builds via another plugin parameter should be possible to support as well. |
Thanks a lot for looking into this! I am not that familiar with Eclipse's internals, m2e and Maven incremental builds, so I have some questions regarding your proposed changes:
|
No, they are only emitted for incremental build
No! |
Thanks for the clarification. I just wasn't sure because the condition in |
Version
Description
Relates to #1814
It seems the m2e formatting issue reporting (#1962) is enabled by default and cannot be disabled. The way these issues are reported is in my opinion a bit problematic:
Example:
Even if this can be adjusted or improved, e.g. by using a different severity (if possible) and making the message more concise, it might in some cases be useful to completely disable this in the plugin configuration. For example for the use case of letting users write the code in whatever formatting they want (without requiring them to adjust their IDE), and then only requiring running
mvn spotless:apply
once in the end. For that case, these errors during development might just be distracting and might actually scare away new contributors to the project using Spotless.Example project
https://github.com/google/gson
Writing code in Eclipse IDE which does not match the Google Code Style shows multiple Maven errors due to formatting violations.
The text was updated successfully, but these errors were encountered: