Does anyone know if there is a compilation of check style rules that covers most of the recommendations made by Joshua Bloch in his Effective Java book? I know I can add custom rules in the checkstyle plugin but I was wondering if anyone has already done so and if willing to share them. :)
The checks performed by Checkstyle are mainly limited to the presentation of the code. These checks do not confirm the correctness or completeness of the code.
Checkstyle can check many aspects of your source code. It can find class design problems, method design problems. It also has the ability to check code layout and formatting issues.
To view to violation report, go to Window -> Show View -> Other, and search for Checkstyle. Options for Violations and Violations Chart should be displayed.
I am the founder of the Checkstyle project. As far as I know, no such Checkstyle rules file exists. I am not surprised as Checkstyle checks can only check source code level things, such as Javadoc comments, whitespace, etc.
Unlike FindBugs, Checkstyle does not compile the source code, and hence does not have access to type information which would be required to implement implement some of the recommendations made by Joshua Bloch in his Effective Java book.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With