Ncss Type Count violation

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-19 05:12:12

问题


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

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

  2. 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.


回答1:


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.



来源:https://stackoverflow.com/questions/8135852/ncss-type-count-violation

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!