Skip to content

Add option to disable m2e problem reporting #2037

@Marcono1234

Description

@Marcono1234

Version

  • OS: Windows 10
  • Maven Plugin: 2.43.0
  • Eclipse: 2023-12 (4.30.0)

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:

  • They are reported as errors with a big red icon
  • The description of the error can be difficult to read and understand (even to understand that this is related to Spotless), especially for larger sections

Example:
Error screenshot

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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions