Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

mvn pmd:check win10和centos7.5检查结果不一样 #595

Open
amogege opened this issue Oct 21, 2019 · 2 comments
Open

mvn pmd:check win10和centos7.5检查结果不一样 #595

amogege opened this issue Oct 21, 2019 · 2 comments

Comments

@amogege
Copy link

amogege commented Oct 21, 2019

版本 jdk:1.8.0_181、maven:3.3.9、maven-pmd-plugin:3.8、p3c-pmd:1.3.6
win10检查strategy.setTablePrefix("zd_");通过,centos检查它就报“及时清理不再使用的代码段或配置信息。“。
如果改 // 名称前缀为 /// 名称前缀,都能通过。
代码内容如下:
public class CodeGenertor {
public static void main(String[] args) {
// 设置超类
StrategyConfig strategy = new StrategyConfig();
// 名称前缀
// strategy.setTablePrefix("zd_");
strategy.setNaming(NamingStrategy.underline_to_camel);
strategy.setEntityBooleanColumnRemoveIsPrefix(false);
}
}

@kerie
Copy link
Contributor

kerie commented Nov 19, 2019

帮忙验证一下,其他的规则是否有类似的情况,还是只有这一个规则不一样?

@amogege
Copy link
Author

amogege commented Nov 20, 2019 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants