<!-- public artifacts to be deployed to central repository -->
<module>archetypes/sonar-basic-plugin</module>
<module>archetypes/sonar-gwt-plugin</module>
+ <module>sonar-application</module>
<module>sonar-batch</module>
<module>sonar-batch-bootstrapper</module>
<module>sonar-batch-maven-compat</module>
<module>sonar-check-api</module>
<module>sonar-colorizer</module>
<module>sonar-core</module>
+ <module>sonar-core-maven-plugin</module>
<module>sonar-deprecated</module>
<module>sonar-duplications</module>
<module>sonar-graph</module>
<module>sonar-maven-plugin</module>
<module>sonar-maven3-plugin</module>
<module>sonar-plugin-api</module>
+ <module>sonar-server</module>
<module>sonar-squid</module>
<module>sonar-testing-harness</module>
<module>sonar-ws-client</module>
<activeByDefault>true</activeByDefault>
</activation>
<modules>
- <module>sonar-core-maven-plugin</module>
- <module>sonar-server</module>
- <module>sonar-application</module>
+ <module>samples</module>
</modules>
</profile>
+
+ <profile>
+ <id>dev</id>
+ <activation>
+ <property>
+ <name>dev</name>
+ </property>
+ </activation>
+ </profile>
<profile>
<id>release</id>
import org.sonar.api.profiles.ProfileDefinition;
import org.sonar.api.profiles.RulesProfile;
import org.sonar.api.resources.Java;
+import org.sonar.api.rules.Rule;
import org.sonar.api.rules.RulePriority;
import org.sonar.api.utils.ValidationMessages;
public RulesProfile createProfile(ValidationMessages validation) {
RulesProfile profile = RulesProfile.create("Sample profile", Java.KEY);
profile.activateRule(ruleRepository.getRule1(), RulePriority.MAJOR);
- profile.activateRule(ruleRepository.getRule1(), null);
+ profile.activateRule(ruleRepository.getRule2(), null);
+ profile.activateRule(Rule.create("checkstyle", "com.puppycrawl.tools.checkstyle.checks.coding.CovariantEqualsCheck", null), null);
return profile;
}
}