Similar to PMD
Open Source
- JPathFinder - A verification VM written by NASA; supports a subset of the Java packages
- Jikes - More than a compiler; now it reports code warnings too
- Lint4J - Lock graph, DFA, and type analysis, many EJB checks
- Hammurapi - Uses ANTLR, excellent documentation, lots of rules
- ESC/Java - Finds null dereference errors, array bounds errors, type cast errors, and race conditions. Uses Java Modeling Language annotations.
- FindBugs - works on bytecode, uses BCEL. Source code uses templates, nifty stuff!
- Jamit - bytecode analyzer, nice graphs
- JWiz - Research project, checks some neat stuff, like if you create a Button without adding an ActionListener to it. Neat.
- DoctorJ - Written in C++. Uses Lex and YACC. Checks Javadoc, syntax and calculates metrics.
- JLint - Written in C++. Uses data flow analysis and a lock graph to do lots of synchronization checks. Operates on class files, not source code.
- Checkstyle - Very detailed, supports both Maven and Ant. Uses ANTLR.
- JCSC - Does a variety of coding standard checks, uses JavaCC and the GNU Regexp package.
Commercial
- JStyle - $995, nice folks, lots of metrics and rules
- Enerjy Java Code Analyser - 200 rules, lots of IDE plugins
- Simian - fast, works with Java, C#, C, CPP, COBOL, JSP, HTML
- CodePro Studio - $589, works with Eclipse, lots of rules
- JTest - Very nice with tons of features,
but also very expensive and requires a running X server (or Xvfb) to run on
Linux. They charge $500 to move a license from one machine to another.
- Assent - The usual stuff, seems pretty complete.
- AzoJavaChecker - Rules aren't listed online so it's hard to tell what they have. Not sure how much it costs since I don't know German.
- Aubjex - Rules aren't listed online. Appears to have some code modification stuff, which would be cool to have in PMD. $299.
- Flaw Detector - In beta, does control/data flow analysis to detect NullPointerExceptions
- AppPerfect - 220 rules, produces PDF/Excel reports, std version is free, professional version $500 and includes auto-fixing problems
Similar to CPD
Commercial
- Simian - fast, works with Java, C#, C, CPP, COBOL, JSP, HTML
- Simscan - free for open source projects