Static Analysis tool recommendation for Java? [clo

2019-01-08 05:51发布

Being vaguely familiar with the Java world I was googling for a static analysis tool that would also was intelligent enough to fix the issues it finds. I ran at CodePro tool but, again, I'm new to the Java community and don't know the vendors.

What tool can you recommend based on the criteria above?

10条回答
SAY GOODBYE
2楼-- · 2019-01-08 06:03

All the above are great tools. PMD is probably the most common.

Another tool is Enerjy. It recently became free, so you can download it and try for yourself. Enerjy is somewhat more organized and a better fit to larger teams. It makes it easier to customize and share the rules. Personally, I'm not a big fan, but maybe you'll fancy it more than I do.

查看更多
4楼-- · 2019-01-08 06:04

IntelliJ IDEA from JetBrains. They also do ReSharper in the .Net community.

查看更多
Summer. ? 凉城
5楼-- · 2019-01-08 06:04

Sonar is a quality control tool. It gauges quality of Java applications through the observance of coding rules conventions, metric measures and advanced indicators.

Sonar is based on the following projects :

You could also use Simian for duplication detection.

查看更多
趁早两清
6楼-- · 2019-01-08 06:12

I recommend FindBugs. http://findbugs.sourceforge.net/ Good in assisting to do code review.

查看更多
对你真心纯属浪费
7楼-- · 2019-01-08 06:13

CRAP4J is not only an awesome name but it's quite useful. The other good ones are all above, best of all (IMHO) is FindBugs, because it really does find honest-to-goodness bugs right away in a big code base.

查看更多
登录 后发表回答