Search in sources :

Example 1 with ProfileDefinitionReader

use of org.sonarsource.analyzer.commons.ProfileDefinitionReader in project sonar-web by SonarSource.

the class SonarWayProfile method createProfile.

@Override
public RulesProfile createProfile(ValidationMessages messages) {
    RulesProfile profile = RulesProfile.create(NAME, WebConstants.LANGUAGE_KEY);
    ProfileDefinitionReader definitionReader = new ProfileDefinitionReader(ruleFinder);
    definitionReader.activateRules(profile, WebRulesDefinition.REPOSITORY_KEY, "org/sonar/l10n/web/rules/Web/Sonar_way_profile.json");
    return profile;
}
Also used : ProfileDefinitionReader(org.sonarsource.analyzer.commons.ProfileDefinitionReader) RulesProfile(org.sonar.api.profiles.RulesProfile)

Aggregations

RulesProfile (org.sonar.api.profiles.RulesProfile)1 ProfileDefinitionReader (org.sonarsource.analyzer.commons.ProfileDefinitionReader)1