开发者

Netbeans + Checkstyle

开发者 https://www.devze.com 2023-04-03 14:06 出处:网络
Does anyone have experience using checkstyle in netbeans 7? I have the plugin installed, and I have selected my configuration file but I\'m not seeing any errors or the promised \"annotation\". Any su

Does anyone have experience using checkstyle in netbeans 7? I have the plugin installed, and I have selected my configuration file but I'm not seeing any errors or the promised "annotation". Any suggestions? Is there something I need to 开发者_Python百科do to get it to start working? I have the plugin activated in the plugins menu.


Follow the directions in this article. You might need to restart Netbeans after installing the plugins. Code violations should appear as annotations on the line number gutter.

You can then go to the tools/options/quality/checkstyle tab to set your custom checkstyle configuration files.

Not sure if this is important but make sure that your custom checkstyle.xml uses the Check Configuration 1.3 version.

<!DOCTYPE module PUBLIC "-//Puppy Crawl//DTD Check Configuration 1.3//EN" "http://www.puppycrawl.com/dtds/configuration_1_3.dtd">
0

精彩评论

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