Class CoverageConstants

java.lang.Object
org.ek9lang.cli.coverage.CoverageConstants

public final class CoverageConstants extends Object
Constants for coverage report generation. Centralizes thresholds, icons, and CSS class names to eliminate duplication.
  • Field Details

    • COVERAGE_THRESHOLD

      public static final double COVERAGE_THRESHOLD
      Primary coverage threshold (80%) - modules below this are flagged.
      See Also:
    • COVERAGE_WARNING

      public static final double COVERAGE_WARNING
      Warning coverage threshold (50%) - modules below this get extra attention.
      See Also:
    • CC_CRITICAL_THRESHOLD

      public static final int CC_CRITICAL_THRESHOLD
      Cyclomatic complexity critical threshold (~33% of 45 limit).
      See Also:
    • CC_WARNING_THRESHOLD

      public static final int CC_WARNING_THRESHOLD
      Cyclomatic complexity warning threshold (~22% of 45 limit).
      See Also:
    • COG_CRITICAL_THRESHOLD

      public static final int COG_CRITICAL_THRESHOLD
      Cognitive complexity critical threshold (~57% of 35 limit).
      See Also:
    • COG_WARNING_THRESHOLD

      public static final int COG_WARNING_THRESHOLD
      Cognitive complexity warning threshold (~29% of 35 limit).
      See Also:
    • NEST_CRITICAL_THRESHOLD

      public static final int NEST_CRITICAL_THRESHOLD
      Nesting depth critical threshold (67% of 6 limit).
      See Also:
    • NEST_WARNING_THRESHOLD

      public static final int NEST_WARNING_THRESHOLD
      Nesting depth warning threshold (50% of 6 limit).
      See Also:
    • MAX_HOTSPOTS_DISPLAY

      public static final int MAX_HOTSPOTS_DISPLAY
      Maximum number of complexity hotspots to display in summary.
      See Also:
    • MODULE_FLAT_THRESHOLD

      public static final int MODULE_FLAT_THRESHOLD
      Number of modules to show flat list vs tree view.
      See Also:
    • ICON_CHECK

      public static final String ICON_CHECK
      Checkmark icon for covered items.
      See Also:
    • ICON_CROSS

      public static final String ICON_CROSS
      X mark icon for uncovered items.
      See Also:
    • ICON_WARNING

      public static final String ICON_WARNING
      Warning icon for attention items.
      See Also:
    • ICON_PASS

      public static final String ICON_PASS
      Heavy checkmark for pass status.
      See Also:
    • ICON_FAIL

      public static final String ICON_FAIL
      Heavy X for fail status.
      See Also:
    • ICON_RED_CIRCLE

      public static final String ICON_RED_CIRCLE
      Red circle for critical status.
      See Also:
    • ICON_ORANGE_CIRCLE

      public static final String ICON_ORANGE_CIRCLE
      Orange circle for warning status.
      See Also:
    • CSS_COVERED

      public static final String CSS_COVERED
      CSS class for covered items.
      See Also:
    • CSS_UNCOVERED

      public static final String CSS_UNCOVERED
      CSS class for uncovered items.
      See Also:
    • CSS_CRITICAL

      public static final String CSS_CRITICAL
      CSS class for critical complexity.
      See Also:
    • CSS_WARNING

      public static final String CSS_WARNING
      CSS class for warning complexity.
      See Also:
    • CSS_NORMAL

      public static final String CSS_NORMAL
      CSS class for normal complexity.
      See Also:
    • PATH_MODULES

      public static final String PATH_MODULES
      Path prefix for module page links.
      See Also:
    • PATH_FILES_RELATIVE

      public static final String PATH_FILES_RELATIVE
      Path prefix for file links from module pages.
      See Also:
    • COVERAGE_TYPE_METHOD

      public static final String COVERAGE_TYPE_METHOD
      Coverage type for method entry points.
      See Also:
    • EK9_FILE_EXTENSION

      public static final String EK9_FILE_EXTENSION
      EK9 source file extension.
      See Also:
    • EK9_PACKAGE_FILE

      public static final String EK9_PACKAGE_FILE
      EK9 package manifest filename.
      See Also:
    • EK9_DEFINES_MODULE

      public static final String EK9_DEFINES_MODULE
      EK9 module declaration keyword.
      See Also:
    • MODULE_GROUP_ROOT

      public static final String MODULE_GROUP_ROOT
      Default module group name for root-level modules.
      See Also:
    • MODULE_UNKNOWN_PREFIX

      public static final String MODULE_UNKNOWN_PREFIX
      Default module name prefix for unknown modules.
      See Also: