PMD规则集文件 [英] PMD ruleset file

查看:266
本文介绍了PMD规则集文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是PMD的新手。我试图找出默认规则集文件的位置,默认规则集文件的名称以及我们如何向其添加自己的规则。我试图谷歌,但这只是让我感到困惑。到目前为止,我已将pmd插件放在eclipse插件文件夹中,并且在偏好中我可以看到PMD。

I am new to PMD. I am trying to figure where is the default ruleset file, name of the default ruleset file and how do we add our own rules to it. I tried to google but that is just confusing me. So far, I have put the pmd plugin inside eclipse plugins folder and in preferences I can see PMD.

任何人都可以请我这个吗?

Can anyone please hep me with this?

谢谢,
Nisha

Thanks, Nisha

推荐答案

标准规则集文件是 * pmd-bin-xxxzip /.../ lib / pmd-xxxjar / rulesets / 内的.xml
参考 http://pmd.sourceforge.net/rules/index.html

The standard ruleset file is *.xml inside pmd-bin-x.x.x.zip/.../lib/pmd-x.x.x.jar/rulesets/, refer to http://pmd.sourceforge.net/rules/index.html.

PMD Eclipse插件的默认规则集文件 位于 {IDE} / plugins /...中的 pmd ___。jar 内,但您不应对该文件进行任何更改。在Eclipse首选项中 添加/编辑规则 ,任何更改都将优先超过默认规则集。

The default ruleset file of PMD Eclipse Plugin is inside pmd___.jar in your {IDE}/plugins/..., but you should not make any changes in that file. Add/edit the rules in Eclipse Preferences, any changes will take precedence over the default ruleset.

这篇关于PMD规则集文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆