|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.sonar.api.server.rule.RulesDefinition.NewRule
public static class RulesDefinition.NewRule
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Method Detail |
---|
public String key()
public RulesDefinition.NewRule setName(@Nullable String s)
public RulesDefinition.NewRule setTemplate(boolean template)
public RulesDefinition.NewRule setSeverity(String s)
public RulesDefinition.NewRule setHtmlDescription(@Nullable String s)
public RulesDefinition.NewRule setHtmlDescription(@Nullable URL classpathUrl)
setHtmlDescription(getClass().getResource("/myrepo/Rule1234.html")
public RulesDefinition.NewRule setStatus(RuleStatus status)
RuleStatus.READY
. The value
RuleStatus.REMOVED
is not accepted and raises an
IllegalArgumentException
.
public RulesDefinition.NewRule setDebtSubCharacteristic(@Nullable String s)
for constant values
public RulesDefinition.DebtRemediationFunctions debtRemediationFunctions()
DebtRemediationFunction
public RulesDefinition.NewRule setDebtRemediationFunction(@Nullable DebtRemediationFunction fn)
debtRemediationFunctions()
public RulesDefinition.NewRule setEffortToFixDescription(@Nullable String s)
public RulesDefinition.NewParam createParam(String paramKey)
@CheckForNull public RulesDefinition.NewParam param(String paramKey)
public Collection<RulesDefinition.NewParam> params()
public RulesDefinition.NewRule addTags(String... list)
RuleTagFormat
public RulesDefinition.NewRule setTags(String... list)
RuleTagFormat
public RulesDefinition.NewRule setInternalKey(@Nullable String s)
public String toString()
toString
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |