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.
This rule uses the NCSS (Non Commenting Source Statements) algorithm to determine the number of lines of code for a given method. NCSS ignores comments, and counts actual statements. Using this algorithm, lines of code that are split are counted as one.
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.
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With