-
Type:
Finding Detection
-
Status: Active
-
Resolution: Unresolved
-
Labels:
-
Message:X more comment lines need to be written to reach the minimum threshold of Y% comment density.
-
List of parameters:
- key = minimumCommentDensity
- description = The minimum required comment density.
- default = 25.0
-
Default Severity:Minor
-
Impact:Low
-
Likelihood:Low
-
Legacy Key:InsufficientCommentDensity
-
Covered Languages:ABAP, C#, C, C++, Cobol, Flex, HTML, Java, JavaScript, Objective-C, PHP, PL/I, PL/SQL, Python, RPG, Swift, T-SQL, TypeScript, VB.Net, VB6, XML
-
Remediation Function:Linear
-
Linear Argument Description:per additional line required to meet minimum density
-
Linear Factor:2min
-
Analysis Level:Syntactic Analysis
-
Analysis Scope:Main Sources
-
Common Rule:Yes
-
PMD:NcssTypeCount
An issue is created on a file as soon as the density of comment lines on this file is less than the required threshold. The number of comment lines to be written in order to reach the required threshold is provided by each issue message.
- is implemented by
-
SONARRPG-7 Rule "Source files should have a sufficient density of comment lines"
-
- Closed
-
-
CPP-707 Create Objective-C rules repository containing targeted rules
-
- Closed
-
-
SONARABAP-206 Integrate the two rules "Insufficient comment density" and "Duplicated blocks should be removed "
-
- Closed
-
- relates to
-
SSLRSQBR-59 Update default severity of InsufficientCommentDensity
-
- Closed
-