Skip to content

Improve error message for checkstyle issues without eclipse-cs #221

Description

@lmsurpre

I have an eclipse installation with m2e but no eclipse-cs (I think).

We enabled checkstyle rules for our build and things seemed to work well.
Then I started seeing this weird error on my pom.xml:

image

It took me quite a while to realize that its saying there was a checkstyle violation in the project and not in the pom.xml file itself.

When I finally ran the build outside of eclipse it gives a nice error message with the actual location of the first violation:
8/7/19, 6:26:06 PM EDT: [ERROR] src/main/java/Redacted.java:[107,21] (whitespace) FileTabCharacter: File contains tab characters (this is the first instance).

Is there any way to get an error like that instead of the not-so-useful "You have 1 Checkstyle violation. (org.apache.maven.plugins:maven-checkstyle-plugin:3.0.0:check:default:validate)" on the pom.xml? If not, is there a way to just disable the checkstyle check within eclipse so it doesn't confuse others?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions