-
Notifications
You must be signed in to change notification settings - Fork 53
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
No way of providing suppressions.xml to checkstyle_config #3
Comments
Being able to include arbitrary files using the A PR would be most welcome :) Thank you! |
@thirtyseven I'm back in the office and able to help if you'd like any support or guidance with the PR. |
Thanks @shs96c might have some cycles for it later this week |
That's great news :) I'm on the public Bazel slack channel and work UK hours if you need help or just want to chat about this PR. |
Common usage of checkstyle involves defining errors to suppress in a separate file and including it like so:
However, such files will not be visible to any checkstyle_test targets due to sandboxing, resulting in an error like the following:
Worse, since
checkstyle_cli
does not check the exit code of checkstyle, and the stringERROR
is not printed on stdout in the message above, anycheckstyle_test
that defines a suppression filter will pass without actually being linted.Two possible changes to make here, let me know if a PR implementing them would be welcome:
data
parameter tocheckstyle_config
allowing extra files to be included in runfilescheckstyle_cli
script to bubble up return code of checkstyleThe text was updated successfully, but these errors were encountered: