Validation rules that cover effective Java recommendations

Does anyone know if there is a compilation of validation style rules that covers most of the recommendations made by Joshua Bloch in his book Effective Java? I know that I can add custom rules to the checkstyle plugin, but I was wondering if someone had already done this and if they wanted to share them. :)

+4
source share
2 answers

I am the founder of the Checkstyle project. As far as I know, such a Checkstyle rule file does not exist. I am not surprised, as Checkstyle checks can only check the level of the source code, such as Javadoc comments, spaces, etc.

Unlike FindBugs, Checkstyle does not compile the source code and therefore does not have access to the type information that is required to implement some of the recommendations made by Joshua Bloch in his book Effective Java.

+8
source

I agree with Oliver that Checkstyle has limitations, and not all of Effective Java can be covered by check. Take a look at our extension for the standard checkstyle project - we take a bunch of ideas from this book and implement plans more.

URL: http://sevntu-checkstyle.github.com/sevntu.checkstyle/

Feel free to cooperate.

+1
source

All Articles