Full documentation for SonarQube has moved to a new location: http://docs.sonarqube.org/display/SONAR

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

NameKeyDescription

New issues

new_violations

Number of new issues.

New xxxxx issues

new_xxxxx_violations

Number of new issues with severity xxxxx, xxxxx being blocker, critical, major, minor or info.

Issues

violations

Number of issues.

xxxxx issues

xxxxx_violations

Number of issues with severity xxxxx, xxxxx being blocker, critical, major, minor or info.

False positive issuesfalse_positive_issuesNumber of false positive issues
Open issuesopen_issuesNumber of issues whose status is Open
Confirmed issuesconfirmed_issuesNumber of issues whose status is Confirmed
Reopened issuesreopened_issuesNumber of issues whose status is Reopened

Anchor
metricWeightedViolations
metricWeightedViolations
Weighted issues

weighted_violations

Sum of the issues weighted by the coefficient associated to each severity (Sum(xxxxx_violations * xxxxx_weight)).
To set the weight of each severity, log in as an administrator, go to Settings > General Settings > General and set the Rules weight property. The default value is:
( (Blocker_violatons * 10) + (Critical_violations * 5) + (Major_violations * 3) + Minor_violations )

Rules compliance

violations_density

Rules compliance index (RCI) = 100 - (Weighted issues / Lines of code * 100)
If the value is negative, it is rounded to 0%. 

Severity

SeverityDescription
BlockerOperational/security risk: This issue might make the whole application unstable in production. Ex: calling garbage collector, not closing a socket, etc.
CriticalOperational/security risk: This issue might lead to an unexpected behavior in production without impacting the integrity of the whole application. Ex: NullPointerException, badly caught exceptions, lack of unit tests, etc.
MajorThis issue might have a substantial impact on productivity. Ex: too complex methods, package cycles, etc.
MinorThis issue might have a potential and minor impact on productivity. Ex: naming conventions, Finalizer does nothing but call superclass finalizer, etc.
InfoNot known or yet well defined security risk or impact on productivity.

Size

MetricKeyDescription
Anchor
metricAccessors
metricAccessors
Accessors
accessors

Number of getter and setter functions used to get (reading) or set (writing) a class property.

More details

Anchor
metricClasses
metricClasses
Classes
classesNumber of classes (including nested classes, interfaces, enums and annotations).
Anchor
metricDirectories
metricDirectories
Directories
directoriesNumber of directories.
Anchor
metricFiles
metricFiles
Files
filesNumber of files.
Generated Linesgenerated_lines

Number of lines generated by Cobol code generators like CA-Telon.

Generated lines of codegenerated_nclocNumber of lines of code generated by Cobol code generators like CA-Telon.
Inside Control Flow Statementscobol_inside_ctrlflow_statementsNumber of inside (intra program) control flow statements (GOBACK, STOP RUN, DISPLAY, CONTINUE, EXIT, RETURN, PERFORM paragraph1 THRU paragraph2).
Cobol only.
Anchor
metricLines
metricLines
Lines
linesNumber of physical lines (number of carriage returns).
Anchor
metricNcloc
metricNcloc
Lines of code
ncloc

Number of physical lines that contain at least one character which is neither a whitespace or a tabulation or part of a comment.

More details

LOCs in Data Divisionscobol_data_division_nclocNumber of lines of code in Data divisions. Generated lines of code are excluded.
Cobol only. 
LOCs in Procedure Divisionscobol_procedure_division_nclocNumber of lines of code in Procedure divisions. Generated lines of code are excluded.
Cobol only.
Anchor
metricFunctions
metricFunctions
Methods
functions

Number of functions. Depending on the language, a function is either a function or a method or a paragraph.

More details

Outside Control Flow Statementscobol_outside_ctrlflow_statementsNumber of outside (inter programs) control flow statements (CALL, EXEC CICS LINK, EXEC CICS XCTL, EXEC SQL, EXEC CICS RETURN).
Cobol only.
Anchor
metricPackages
metricPackages
Packages
packagesNumber of directorys.
Anchor
metricProjects
metricProjects
Projects
projectsNumber of projects in a view.
Anchor
metricPublicApi
metricPublicApi
Public API
public_api

Number of public Classes + number of public Functions + number of public Properties

More details

Anchor
metricStatements
metricStatements
Statements
statements

Number of statements.

More details

...