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

Avoid reporting error on Findbugs empty review #82

Merged
merged 2 commits into from
Mar 31, 2015

Conversation

AlanHohn
Copy link
Contributor

(Also see #69)

The change to global problems collection (75b30e1) caused Sputnik to report a problem in cases where FindBugs had no files to check, because FindBugs by default throws IOException in that case. Since FindBugs only checks Java files, this can occur if a commit or pull request includes changes to build files, properties files, or documentation, which does not seem like an error condition.

The previous revision of the FindBugs processor swallowed IOException in this case. Fortunately, FindBugs has a flag that can be set to avoid the exception instead, which is a little cleaner. The result is an empty review.

@SpOOnman
Copy link
Collaborator

I think your solution is cleaner than what we have right now. Can you please update your pull request to current master? Thanks.

@AlanHohn
Copy link
Contributor Author

Sure, no problem. Take a look and see if this is what you're after.

There are a couple failed tests but it looks like they're also failed on master.

SpOOnman added a commit that referenced this pull request Mar 31, 2015
Avoid reporting error on Findbugs empty review
@SpOOnman SpOOnman merged commit 474e6d6 into TouK:master Mar 31, 2015
@SpOOnman
Copy link
Collaborator

Thanks. These tests fail, but I merge your PR and fix them afterwards.

@AlanHohn AlanHohn deleted the findbugs-empty-review branch March 31, 2015 22:59
rufuslevi pushed a commit to rufuslevi/sputnik that referenced this pull request Mar 12, 2024
Avoid reporting error on Findbugs empty review
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

Successfully merging this pull request may close these issues.

None yet

2 participants