java 在 NetBeans 中使用 CheckStyle 并配置 CheckStyle 规则
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/777015/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Using CheckStyle in NetBeans and configuring the CheckStyle rules
提问by
I am using NetBeans 6.5. For CheckStyle, I have downloaded and installed the nbcheckstyle.nbmplugin. I am able to use CheckStyle with this plugin.
我正在使用 NetBeans 6.5。对于 CheckStyle,我已经下载并安装了nbcheckstyle.nbm插件。我可以在这个插件中使用 CheckStyle。
I want to configure the rules to be checked. I am not able to do it as it is an .nbmfile. Any suggestion on how to configures the rules?
我想配置要检查的规则。我无法做到这一点,因为它是一个.nbm文件。关于如何配置规则的任何建议?
Thanks
谢谢
采纳答案by kazanaki
Specify the "Config file" in the Options dialog.
在选项对话框中指定“配置文件”。
This can be seen in the screenshot. (Set as netbeans_checks.xml).
这可以在屏幕截图中看到。(设置为 netbeans_checks.xml)。

