use of org.sonar.api.profiles.RulesProfile 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;
}
Aggregations