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

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

Open
lmsurpre opened this issue Aug 7, 2019 · 1 comment
Open

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

lmsurpre opened this issue Aug 7, 2019 · 1 comment

Comments

@lmsurpre
Copy link

lmsurpre commented Aug 7, 2019

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?

@vorburger
Copy link
Member

vorburger commented Aug 8, 2019 via email

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