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

TreeWalker: Problems while checking always results to severity "error" #106

Closed
daniilyar opened this issue Feb 9, 2014 · 1 comment
Closed

Comments

@daniilyar
Copy link
Contributor

Ported from Sourceforge patch 122, the text below was copy-pasted from there:

Hello!
I would like to stop the build if checkstyle reports an "error" but the build should not stop if a "warning" occurs.
The problem is, that if Checkstyle is not able to do a test for some reason (e.g. "Got an exception - java.lang.RuntimeException: Unable to get class information for COSVisitorException.") the build fails because an "error" is reported.
The attatched patch uses the severity assigned to the module TreeWalker (default: "error") for this messages instead of always "error".
Greetings
Bernhard Mähr

There is suggested patch for TreeWarker: https://sourceforge.net/p/checkstyle/patches/_discuss/thread/b96f7579/95b4/attachment/TreeWalker.patch
and also additional patch which adds docs:
https://sourceforge.net/p/checkstyle/patches/_discuss/thread/b96f7579/eb6c/attachment/TreeWalker.doku.patch

@romani
Copy link
Member

romani commented Sep 7, 2015

in scope of #1304 all errors are rethrown to caller of checkstyle library.

@romani romani closed this as completed Sep 7, 2015
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