Ncss类型计数违规 [英] Ncss Type Count violation

查看:1097
本文介绍了Ncss类型计数违规的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我对PMD提出的违规行为并不十分清楚。基本上我有两个问题:

I'm not really clear with this violation raised by PMD. Basically I have 2 questions:


  1. 我该怎样做才能摆脱这种违规行为?

  1. What should I do to get rid of this violation?

以下声明是什么意思?

What does the following statement mean?




该类型的NCSS行数为944参数

minimum:类型NCSS计数报告阈值:默认值为1500.

The type has an NCSS line count of 944 Parameters
minimum: The type NCSS count reporting threshold: Default is 1500.


推荐答案

PMD代码大小规则

NCSS代表对于非注释的源代码行。具有高NCSS计数的方法和/或类别(在非常高的水平上)太长,并且可能被分开。大量的NCSS是坏的。

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.

此外,听起来你可能正在使用Sonar版本2.10或之前,因为 Sonar Bug 2676 在2.11修复。

Additionally, it sounds like you might be using Sonar version 2.10 or prior, as Sonar Bug 2676 was fixed in 2.11.

这篇关于Ncss类型计数违规的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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