org.sonar.api.batch.rule
Interface ActiveRule


public interface ActiveRule

Configuration of a rule activated on a Quality profile

Since:
4.2

Method Summary
 String internalKey()
          Optional key declared and used by the underlying rule engine.
 String param(String key)
          Value of given parameter.
 Map<String,String> params()
          Immutable parameter values.
 RuleKey ruleKey()
           
 String severity()
          Non-null severity.
 

Method Detail

ruleKey

RuleKey ruleKey()

severity

String severity()
Non-null severity.

See Also:
Severity

param

@CheckForNull
String param(String key)
Value of given parameter. Returns null if the parameter key does not exist on the rule or if the parameter has no value nor default value.


params

Map<String,String> params()
Immutable parameter values. Returns an empty map if no parameters are defined.


internalKey

@CheckForNull
String internalKey()
Optional key declared and used by the underlying rule engine. As an example the key of a Checkstyle rule looks like com.puppycrawl.tools.checkstyle.checks.FooCheck whereas its internal key can be Checker/TreeWalker/Foo.



Copyright © 2009-2014 SonarSource. All Rights Reserved.