Class CoverageConstants
java.lang.Object
org.ek9lang.cli.coverage.CoverageConstants
Constants for coverage report generation.
Centralizes thresholds, icons, and CSS class names to eliminate duplication.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intCyclomatic complexity critical threshold (~33% of 45 limit).static final intCyclomatic complexity warning threshold (~22% of 45 limit).static final intCognitive complexity critical threshold (~57% of 35 limit).static final intCognitive complexity warning threshold (~29% of 35 limit).static final doublePrimary coverage threshold (80%) - modules below this are flagged.static final StringCoverage type for method entry points.static final doubleWarning coverage threshold (50%) - modules below this get extra attention.static final StringCSS class for covered items.static final StringCSS class for critical complexity.static final StringCSS class for normal complexity.static final StringCSS class for uncovered items.static final StringCSS class for warning complexity.static final StringEK9 module declaration keyword.static final StringEK9 source file extension.static final StringEK9 package manifest filename.static final StringCheckmark icon for covered items.static final StringX mark icon for uncovered items.static final StringHeavy X for fail status.static final StringOrange circle for warning status.static final StringHeavy checkmark for pass status.static final StringRed circle for critical status.static final StringWarning icon for attention items.static final intMaximum number of complexity hotspots to display in summary.static final intNumber of modules to show flat list vs tree view.static final StringDefault module group name for root-level modules.static final StringDefault module name prefix for unknown modules.static final intNesting depth critical threshold (67% of 6 limit).static final intNesting depth warning threshold (50% of 6 limit).static final StringPath prefix for file links from module pages.static final StringPath prefix for module page links. -
Method Summary
-
Field Details
-
COVERAGE_THRESHOLD
public static final double COVERAGE_THRESHOLDPrimary coverage threshold (80%) - modules below this are flagged.- See Also:
-
COVERAGE_WARNING
public static final double COVERAGE_WARNINGWarning coverage threshold (50%) - modules below this get extra attention.- See Also:
-
CC_CRITICAL_THRESHOLD
public static final int CC_CRITICAL_THRESHOLDCyclomatic complexity critical threshold (~33% of 45 limit).- See Also:
-
CC_WARNING_THRESHOLD
public static final int CC_WARNING_THRESHOLDCyclomatic complexity warning threshold (~22% of 45 limit).- See Also:
-
COG_CRITICAL_THRESHOLD
public static final int COG_CRITICAL_THRESHOLDCognitive complexity critical threshold (~57% of 35 limit).- See Also:
-
COG_WARNING_THRESHOLD
public static final int COG_WARNING_THRESHOLDCognitive complexity warning threshold (~29% of 35 limit).- See Also:
-
NEST_CRITICAL_THRESHOLD
public static final int NEST_CRITICAL_THRESHOLDNesting depth critical threshold (67% of 6 limit).- See Also:
-
NEST_WARNING_THRESHOLD
public static final int NEST_WARNING_THRESHOLDNesting depth warning threshold (50% of 6 limit).- See Also:
-
MAX_HOTSPOTS_DISPLAY
public static final int MAX_HOTSPOTS_DISPLAYMaximum number of complexity hotspots to display in summary.- See Also:
-
MODULE_FLAT_THRESHOLD
public static final int MODULE_FLAT_THRESHOLDNumber of modules to show flat list vs tree view.- See Also:
-
ICON_CHECK
-
ICON_CROSS
-
ICON_WARNING
-
ICON_PASS
-
ICON_FAIL
-
ICON_RED_CIRCLE
-
ICON_ORANGE_CIRCLE
-
CSS_COVERED
-
CSS_UNCOVERED
-
CSS_CRITICAL
-
CSS_WARNING
-
CSS_NORMAL
-
PATH_MODULES
-
PATH_FILES_RELATIVE
Path prefix for file links from module pages.- See Also:
-
COVERAGE_TYPE_METHOD
-
EK9_FILE_EXTENSION
-
EK9_PACKAGE_FILE
-
EK9_DEFINES_MODULE
-
MODULE_GROUP_ROOT
Default module group name for root-level modules.- See Also:
-
MODULE_UNKNOWN_PREFIX
Default module name prefix for unknown modules.- See Also:
-