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

Address issues found by SpotBugs #1267

Closed
tomwhite opened this issue Jan 28, 2019 · 4 comments
Closed

Address issues found by SpotBugs #1267

tomwhite opened this issue Jan 28, 2019 · 4 comments

Comments

@tomwhite
Copy link
Contributor

I ran SpotBugs on the htsjdk source and it found a number of issues that should be looked at.

To gnerate the files, checkout tomwhite@8d2f725, and type

./gradlew check -x test

Here are the reports that it generated (converted to PDF since GitHub doesn't support HTML attachments; however this means you can't drill down into each issue):
main.pdf
test.pdf

@cmnbroad
Copy link
Collaborator

Thanks Tom. @jmthibault79 - Might be worth taking a look at the CRAM package part of this as you're refactoring.

@tomwhite
Copy link
Contributor Author

With the latest PRs all the spotbugs issues in the tests have been resolved, and there are now 19 remaining issues in the main code. I've opened issues for the CRAM ones, but there are a few more (with less obvious fixes) that need looking at - they can either be fixed or an exclusion can be added to gradle/spotbugs-exclude.xml. @lbergelson it would be good to get your opinion on these. (The easiest way to get the latest report is to checkout https://github.com/tomwhite/htsjdk/tree/spotbugs and run ./gradlew spotbugsMain.)

When all the issues have been fixed then we can merge https://github.com/tomwhite/htsjdk/tree/spotbugs to run spotbugs on each new PR to ensure no new issues are introduced.

@tomwhite
Copy link
Contributor Author

See more fixes in #1303

@lbergelson
Copy link
Member

This was completed and spotbugs now runs automatically on pull requests.

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

3 participants