Ncss Type Count violation(Ncss 类型计数违规)
问题描述
我不太清楚 PMD 提出的这种违规行为.基本上我有两个问题:
我应该怎么做才能摆脱这种违规行为?
以下语句是什么意思?
<块引用>
该类型的 NCSS 行数为 944 个参数
最小值:类型 NCSS 计数报告阈值:默认为 1500.
PMD 代码大小规则一个>.
NCSS 代表非注释源代码行.具有高 NCSS 计数的方法和/或类(在非常高的级别)太长,并且可能会被拆分.大量的 NCSS 是不好的.
此外,听起来您可能正在使用 Sonar 2.10 或更低版本,如 Sonar Bug 2676 已在 2.11 中修复.
I'm not really clear with this violation raised by PMD. Basically I have 2 questions:
What should I do to get rid of this violation?
What does the following statement mean?
The type has an NCSS line count of 944 Parameters
minimum: The type NCSS count reporting threshold: Default is 1500.
PMD Code size rules.
NCSS stands for Non-Commented Source Code lines. Methods and/or classes that have high NCSS counts are (at a very high level) too long, and can probably be split up. High numbers of NCSS are bad.
Additionally, it sounds like you might be using Sonar version 2.10 or prior, as Sonar Bug 2676 was fixed in 2.11.
这篇关于Ncss 类型计数违规的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!
本文标题为:Ncss 类型计数违规
基础教程推荐
- FirebaseListAdapter 不推送聊天应用程序的单个项目 - Firebase-Ui 3.1 2022-01-01
- 设置 bean 时出现 Nullpointerexception 2022-01-01
- “未找到匹配项"使用 matcher 的 group 方法时 2022-01-01
- 在 Libgdx 中处理屏幕的正确方法 2022-01-01
- 无法使用修饰符“public final"访问 java.util.Ha 2022-01-01
- Java:带有char数组的println给出乱码 2022-01-01
- 如何使用 Java 创建 X509 证书? 2022-01-01
- 减少 JVM 暂停时间 >1 秒使用 UseConcMarkSweepGC 2022-01-01
- 降序排序:Java Map 2022-01-01
- Java Keytool 导入证书后出错,"keytool error: java.io.FileNotFoundException &拒绝访问" 2022-01-01