mvn pmd:check win10和centos7.5检查结果不一样
- Dominant language
- Kotlin
- Stars
- 30.8k
- Forks
- 8k
- PR merge metrics
- No merged PRs in 30d
Description
版本 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);
}
}
Contributor guide
No contributing guide indexed for this repository
Research direction
Start by reproducing `mvn pmd:check` with JDK 1.8.0_181, Maven 3.3.9, maven-pmd-plugin 3.8, and p3c-pmd 1.3.6 on Windows 10 and CentOS 7.5. Compare the results for the shown `StrategyConfig` snippet, especially the commented `setTablePrefix("zd_")` line. Done means the platform difference is explained and the check behaves consistently or the required workaround is documented.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java
- Domain
- tooling
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 30/100