Interface AdHocRule


  • public interface AdHocRule
    Represents a rule imported from an external rule engine by a Sensor.
    Since:
    7.4
    • Method Detail

      • engineId

        java.lang.String engineId()
        Unique identifier of the external analyzer (e.g. eslint, pmd, ...)
      • ruleId

        java.lang.String ruleId()
        Unique rule identifier for a given engineId()
      • name

        java.lang.String name()
        Name of the rule.
      • description

        @CheckForNull
        java.lang.String description()
        Description of the rule.
      • severity

        @Deprecated(since="10.1")
        @CheckForNull
        Severity severity()
        Deprecated.
        since 10.1, use defaultImpacts() instead
        Default severity of the rule.
      • type

        @Deprecated(since="10.1")
        @CheckForNull
        RuleType type()
        Deprecated.
        since 10.1, use defaultImpacts() instead
        Type of the rule.
      • defaultImpacts

        java.util.Map<SoftwareQuality,​Severity> defaultImpacts()
        Default impacts of the rule
        Since:
        10.1
      • cleanCodeAttribute

        @CheckForNull
        CleanCodeAttribute cleanCodeAttribute()
        Clean Code Attribute of the rule.
        Since:
        10.1