3

I'm a software tester and developer. My company is starting a partnership with another development team and we need a new tool for static analysis.

The new team's previous code is written in Java, so we need a static analysis tool with similar features to Cppcheck. We have been trying Macker, PMD and JDepend but none of these are like Cppcheck.

Also, we are trying to get a trial license of Coverity, which it seems like we want, but at the moment I couldn't test it yet.

So, does anyone know of a tool like the one I'm looking for? Thanks!

Fraser
  • 74,704
  • 20
  • 238
  • 215
alezvic
  • 344
  • 1
  • 4
  • 20
  • 1
    possible duplicate: http://stackoverflow.com/questions/207652/how-do-commercial-java-static-analysis-tools-compare-with-the-free-ones – Harald Brinkhof Jul 04 '12 at 20:56
  • 1
    It seems from reading the wiki page of cppcheck, lots of the stuff it checks is unnecessary in Java (not many unintialized variables, deprecated warnings are shown by every IDE I'm aware,..). What features are you looking for exactly? checkstyle and FindBugs are some other possible tools you may want to investigate. Have made good experiences with both of those for finding bad code style and likely errors. – Voo Jul 04 '12 at 22:45

1 Answers1

1

Have a look at SonarQube. This tool provides a broad analysis of your Java code. Examples can be found here.

dokaspar
  • 8,186
  • 14
  • 70
  • 98