| Package | Description |
|---|---|
| org.sonar.api.batch.rule | |
| org.sonar.api.batch.rule.internal | |
| org.sonar.api.batch.sensor.issue | |
| org.sonar.api.batch.sensor.issue.internal | |
| org.sonar.api.issue | |
| org.sonar.api.issue.internal |
This package contains classes that MUST NOT be used by plugins,
except for unit testing.
|
| org.sonar.api.measures | |
| org.sonar.api.rule | |
| org.sonar.api.rules | |
| org.sonar.api.technicaldebt.batch | |
| org.sonar.api.technicaldebt.batch.internal | |
| org.sonar.api.technicaldebt.server | |
| org.sonar.api.technicaldebt.server.internal | |
| org.sonar.xoo.checks |
| Modifier and Type | Method and Description |
|---|---|
RuleKey |
Rule.key() |
RuleKey |
ActiveRule.ruleKey() |
RuleKey |
Checks.ruleKey(C check) |
| Modifier and Type | Method and Description |
|---|---|
Rule |
Rules.find(RuleKey key)
Get a rule by its key.
|
ActiveRule |
ActiveRules.find(RuleKey ruleKey)
Find a
ActiveRule by the associated rule key. |
C |
Checks.of(RuleKey ruleKey) |
| Modifier and Type | Method and Description |
|---|---|
RuleKey |
DefaultRule.key() |
RuleKey |
DefaultActiveRule.ruleKey() |
| Modifier and Type | Method and Description |
|---|---|
NewRule |
RulesBuilder.add(RuleKey key) |
NewActiveRule |
ActiveRulesBuilder.create(RuleKey ruleKey) |
ActiveRule |
DefaultActiveRules.find(RuleKey ruleKey) |
| Modifier and Type | Method and Description |
|---|---|
RuleKey |
Issue.ruleKey()
The
RuleKey of this issue. |
| Modifier and Type | Method and Description |
|---|---|
NewIssue |
NewIssue.forRule(RuleKey ruleKey)
The
RuleKey of the issue. |
| Modifier and Type | Method and Description |
|---|---|
RuleKey |
DefaultIssue.ruleKey() |
| Modifier and Type | Method and Description |
|---|---|
DefaultIssue |
DefaultIssue.forRule(RuleKey ruleKey) |
| Modifier and Type | Method and Description |
|---|---|
RuleKey |
Issue.ruleKey() |
| Modifier and Type | Method and Description |
|---|---|
Issuable.IssueBuilder |
Issuable.IssueBuilder.ruleKey(RuleKey ruleKey)
The rule key is mandatory.
|
| Modifier and Type | Method and Description |
|---|---|
RuleKey |
DefaultIssue.ruleKey() |
| Modifier and Type | Method and Description |
|---|---|
DefaultIssue |
DefaultIssue.setRuleKey(RuleKey k) |
| Modifier and Type | Method and Description |
|---|---|
RuleKey |
RuleMeasure.ruleKey() |
| Modifier and Type | Method and Description |
|---|---|
static RuleMeasure |
RuleMeasure.createForRule(Metric metric,
RuleKey ruleKey,
Double value) |
static MeasuresFilter<RuleMeasure> |
MeasuresFilters.rule(Metric metric,
RuleKey ruleKey) |
RuleMeasure |
RuleMeasure.setRuleKey(RuleKey ruleKey) |
| Constructor and Description |
|---|
RuleMeasure(Metric metric,
RuleKey ruleKey,
RulePriority rulePriority,
Integer ruleCategory)
This constructor is for internal use only.
|
| Modifier and Type | Method and Description |
|---|---|
static RuleKey |
RuleKey.of(String repository,
String rule)
Create a key.
|
static RuleKey |
RuleKey.parse(String s)
Create a key from a string representation (see
toString(). |
| Modifier and Type | Method and Description |
|---|---|
RuleKey |
Rule.ruleKey() |
| Modifier and Type | Method and Description |
|---|---|
Rule |
RuleFinder.findByKey(RuleKey key)
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
RuleKey |
Requirement.ruleKey()
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
Requirement |
TechnicalDebtModel.requirementsByRule(RuleKey ruleKey)
Deprecated.
since 4.3. Always return null
|
| Modifier and Type | Method and Description |
|---|---|
RuleKey |
DefaultRequirement.ruleKey()
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
DefaultRequirement |
DefaultRequirement.setRuleKey(RuleKey ruleKey)
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
RuleKey |
Characteristic.ruleKey()
Deprecated.
since 4.3. return null
|
| Modifier and Type | Method and Description |
|---|---|
RuleKey |
DefaultCharacteristic.ruleKey()
Deprecated.
since 4.2
|
| Modifier and Type | Method and Description |
|---|---|
DefaultCharacteristic |
DefaultCharacteristic.setRuleKey(RuleKey ruleKey)
Deprecated.
since 4.2
|
| Modifier and Type | Method and Description |
|---|---|
void |
TemplateRuleCheck.execute(SensorContext sensorContext,
InputFile file,
RuleKey ruleKey) |
void |
Check.execute(SensorContext context,
InputFile file,
RuleKey ruleKey) |
Copyright © 2009–2015 SonarSource. All rights reserved.