开发者

Netbeans plugins that help develop better code? - for Java

Can anybody point me to Netbeans plugins that help do better code? I hope to find some plugin开发者_如何学Gos that do Java code review and search for:

  • bug patters
  • duplicate code
  • and other types of vulnerabilities.

Thanks!


Install EasyPMD from the plugin portal. http://plugins.netbeans.org/plugin/33246/easypmd-2-1


How about Findbugs.

Never used it with Netbeans (only with HudsonBuilder), but some Google results state that there is a plugin for NB.


Several of the PMD and Findbugs rules (suggested by others) are already part of the regular "Hints" of Netbeans. By enabling more than the standard set of hints, you can already get some good "programming advices" without having to install anything.

(But they are by no means a complete replacement for PMD or Findbugs)


There is an article about integrating plugins you could try to follow that (I haven't yet), but from my experience sadly in IDE tools never work as well as the commandline versions.

I would recommend you instead use Maven as your build tool and add the Cobertura, FindBugs, PMD, and CheckStyle plugins that will produce reports whenever you compile your code. Not as handy, but you will still get good feedback.

Also, this means that they will be equally available for people working on your code base with other IDEs. If you use a continuous integration server like Jenkins and it will create a report using any tool you'd like whenever you check-in code.

And this is speaking as someone who prefers NetBeans over Eclipse.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜