I use Sonar to run several static code analysis tools (Checkstyle, PMD ...). I noticed that there is a * .java file that is fully commented out. Is there any tool / rule for analyzing static code to detect this?
Ideally, I would like Sonar to report this violation of the rules.
The Squid CommentedOutCodeLine rule does not recognize this violation.
Details: Sonar 3.5.1
Example code that is not caught:
// //public class SandBox { // public Integer someMethod() { // return 0; // } // // public static void main(String... args){ // System.out.println("Hello from the SandBox!"); // } //}
source share