Package org.sonar.api.batch.sensor.rule
Interface AdHocRule
-
public interface AdHocRuleRepresents a rule imported from an external rule engine by aSensor.- Since:
- 7.4
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description CodeCharacteristiccharacteristic()Characteristic of the rule according to Clean Code Taxonomy.java.lang.Stringdescription()Description of the rule.java.lang.StringengineId()Unique identifier of the external analyzer (e.g.java.lang.Stringname()Name of the rule.java.lang.StringruleId()Unique rule identifier for a givenengineId()Severityseverity()Default severity of the rule.RuleTypetype()Type of the rule.
-
-
-
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 givenengineId()
-
name
java.lang.String name()
Name of the rule.
-
description
@CheckForNull java.lang.String description()
Description of the rule.
-
severity
Severity severity()
Default severity of the rule.
-
type
RuleType type()
Type of the rule.
-
characteristic
@Beta @CheckForNull CodeCharacteristic characteristic()
Characteristic of the rule according to Clean Code Taxonomy.- Since:
- 9.16
-
-