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.
source share