I noticed that Google uses/supports FindBugs. Does anybody know about a rules file they use, and can share a link? Similarly to their checkstyle rules, maybe there would be something for FindBugs?
1 Answers
Well, it's true that Google appreciates FindBugs, as evidenced by the "Great Google FindBugs Fixit" or (maybe) the fact that some FindBugs stuff is still hosted on Google Code (although Google Code is shutting down).
You referred to Google Java Style, which recently became a popular coding convention, sometimes replacing the original Sun Conventions. The Checkstyle team decided to adopt Google Style and include it as a default ruleset. This decision was the Checkstyle team's, though, and did not involve Google the company.
To my knowledge, Google did not officially publish rule sets for any static analysis tools. Maybe you could contact the originators of the before-mentioned "FindBugs Fixit" to get their rule set.
Another way to get a head start might be to look at the SonarQube ruleset "Sonar Way with FindBugs". The SonarQube team spent some time selecting the rules and eliminating duplicates with other code analyzers.

- 16,865
- 10
- 85
- 132