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

CheckstyleMain and checkstyletest failing. #116

Closed
LeeEnHao opened this issue Aug 30, 2020 · 3 comments
Closed

CheckstyleMain and checkstyletest failing. #116

LeeEnHao opened this issue Aug 30, 2020 · 3 comments

Comments

@LeeEnHao
Copy link

LeeEnHao commented Aug 30, 2020

CheckstyleMain task is returning some exceptions which I have never encountered before and I can't seem to find any relevant information on the web. It says:

Execution failed for task ':checkstyleMain'.
> Checkstyle rule violations were found. See the report at: file:///C:/projectroot/build/reports/checkstyle/main.html
  Checkstyle files with violations: 2
  Checkstyle violations by severity: [error:6]

This appears after the errors thrown by the project files failing the test. Similarly, checkstyletest is throwing somewhat same error but in a different directory:

Execution failed for task ':checkstyleTest'.
> Checkstyle rule violations were found. See the report at: file:///C:/projectroot/build/reports/checkstyle/test.html
  Checkstyle files with violations: 1
  Checkstyle violations by severity: [error:1]

Is there any way to resolve all these issues?

@daongochieu2810
Copy link

The above response is expected as your code violates some coding standards which could be found in the html file generated. To resolve this, simply open the html file and fix all errors specified.

@Wincenttjoi
Copy link

IntelliJ will direct you to the exact location when you click on the link. Sadly checkstyle can't be used to automate correction so you have to do it manually.

@LeeEnHao
Copy link
Author

That's not helpful at all. The the idle or I don't know what is throwing a violation warning at the html file but the problem is not from the html file.

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

3 participants