Search in sources :

Example 1 with RuleFinderCompatibility

use of org.sonar.scanner.rule.RuleFinderCompatibility in project sonarqube by SonarSource.

the class RuleFinderCompatibilityTest method prepare.

@Before
public void prepare() {
    RulesBuilder builder = new RulesBuilder();
    builder.add(RuleKey.of("repo1", "rule1"));
    builder.add(RuleKey.of("repo1", "rule2")).setInternalKey("rule2_internal");
    builder.add(RuleKey.of("repo2", "rule1"));
    rules = builder.build();
    ruleFinder = new RuleFinderCompatibility(rules);
}
Also used : RuleFinderCompatibility(org.sonar.scanner.rule.RuleFinderCompatibility) RulesBuilder(org.sonar.api.batch.rule.internal.RulesBuilder) Before(org.junit.Before)

Aggregations

Before (org.junit.Before)1 RulesBuilder (org.sonar.api.batch.rule.internal.RulesBuilder)1 RuleFinderCompatibility (org.sonar.scanner.rule.RuleFinderCompatibility)1