import org.sonar.api.database.model.ResourceModel;
import org.sonar.api.profiles.RulesProfile;
-import java.util.List;
-
public class ProfilesDao extends BaseDao {
public ProfilesDao(DatabaseSession session) {
super(session);
}
- public List<RulesProfile> getActiveProfiles() {
- return getSession().getResults(RulesProfile.class, "defaultProfile", true);
- }
-
public RulesProfile getActiveProfile(String languageKey, String projectResourceKey) {
ResourceModel projectResource = getSession().getSingleResult(ResourceModel.class, "key", projectResourceKey, "scope", ResourceModel.SCOPE_PROJECT);
- if (projectResource != null && projectResource.getRulesProfile() != null) {
+ if (projectResource != null && projectResource.getRulesProfile() != null && projectResource.getRulesProfile().isEnabled()) {
return projectResource.getRulesProfile();
}
- return getSession().getSingleResult(RulesProfile.class, "defaultProfile", true, "language", languageKey);
- }
-
- public List<RulesProfile> getProfiles(String languageKey) {
- return getSession().getResults(RulesProfile.class, "language", languageKey);
- }
-
- public List<RulesProfile> getProfiles() {
- return getSession().getResults(RulesProfile.class);
- }
-
- public List<RulesProfile> getProvidedProfiles() {
- return getSession().getResults(RulesProfile.class, "provided", true);
+ return getSession().getSingleResult(RulesProfile.class, "defaultProfile", true, "language", languageKey, "enabled", true);
}
public RulesProfile getProfile(String languageKey, String profileName) {
- return getSession().getSingleResult(RulesProfile.class, "language", languageKey, "name", profileName);
- }
-
- public RulesProfile getProfileById(int profileId) {
- return getSession().getEntityManager().getReference(RulesProfile.class, profileId);
+ return getSession().getSingleResult(RulesProfile.class, "language", languageKey, "name", profileName, "enabled", true);
}
}
public class SchemaMigration {
public final static int VERSION_UNKNOWN = -1;
- public static final int LAST_VERSION = 170;
+ public static final int LAST_VERSION = 180;
public final static String TABLE_NAME = "schema_migrations";
import org.sonar.api.profiles.RulesProfile;\r
import org.sonar.jpa.test.AbstractDbUnitTestCase;\r
\r
-import java.util.List;\r
-\r
-import static org.hamcrest.CoreMatchers.is;\r
-import static org.junit.Assert.*;\r
+import static org.junit.Assert.assertEquals;\r
+import static org.junit.Assert.assertNull;\r
\r
public class ProfilesDaoTest extends AbstractDbUnitTestCase {\r
\r
profilesDao = new ProfilesDao(getSession());\r
}\r
\r
- @Test\r
- public void shouldGetProfiles() {\r
- setupData("shouldGetProfiles");\r
-\r
- List<RulesProfile> profiles = profilesDao.getProfiles("java");\r
-\r
- assertThat(profiles.size(), is(2));\r
- }\r
\r
@Test\r
public void testGetActiveProfile() {\r
<dataset>\r
\r
- <rules_profiles id="1" provided="true" name="profile one" default_profile="0" language="java"/>\r
- <rules_profiles id="2" provided="true" name="profile two" default_profile="0" language="java"/>\r
- <rules_profiles id="3" provided="true" name="profile three" default_profile="0" language="plsql"/>\r
+ <rules_profiles id="1" provided="true" name="profile one" default_profile="0" language="java" enabled="true"/>\r
+ <rules_profiles id="2" provided="true" name="profile two" default_profile="0" language="java" enabled="true"/>\r
+ <rules_profiles id="3" provided="true" name="profile three" default_profile="0" language="plsql" enabled="true"/>\r
\r
</dataset>
\ No newline at end of file
<dataset>
- <rules_profiles id="1" parent_name="[null]" provided="true" name="profile" default_profile="1" language="java"/>
+ <rules_profiles id="1" parent_name="[null]" provided="true" name="profile" default_profile="1" language="java" enabled="true"/>
<rules_categories id="1" name="category one" description="[null]"/>
<dataset>
- <rules_profiles id="1" provided="true" name="profile" default_profile="1" language="java"/>
+ <rules_profiles id="1" provided="true" name="profile" default_profile="1" language="java" enabled="true"/>
<rules_categories id="1" name="category one" description="[null]"/>
<rules_parameters id="1" rule_id="1" name="param1" description="[null]" param_type="r"/>
<rules_parameters id="2" rule_id="1" name="param2" description="[null]" param_type="r"/>
- <rules_profiles id="1" provided="true" name="profile1" default_profile="1" language="java"/>
- <rules_profiles id="2" provided="true" name="profile2" default_profile="1" language="OTHER"/>
+ <rules_profiles id="1" provided="true" name="profile1" default_profile="1" language="java" enabled="true"/>
+ <rules_profiles id="2" provided="true" name="profile2" default_profile="1" language="OTHER" enabled="true"/>
<active_rules id="1" profile_id="1" rule_id="1" failure_level="2"/>
<active_rules id="2" profile_id="2" rule_id="1" failure_level="2"/>
<rules_parameters id="1" rule_id="1" name="param1" description="foo" param_type="r"/>
<rules_parameters id="2" rule_id="1" name="param2" description="foo" param_type="r"/>
- <rules_profiles id="1" provided="true" name="profile1" default_profile="1" language="java"/>
- <rules_profiles id="2" provided="true" name="profile2" default_profile="1" language="OTHER"/>
+ <rules_profiles id="1" provided="true" name="profile1" default_profile="1" language="java" enabled="true"/>
+ <rules_profiles id="2" provided="true" name="profile2" default_profile="1" language="OTHER" enabled="true"/>
<active_rules id="1" profile_id="1" rule_id="1" failure_level="2"/>
<active_rules id="2" profile_id="2" rule_id="1" failure_level="2"/>
\r
<rules_categories id="1" name="category one" description="[null]"/>\r
\r
- <rules_profiles id="1" provided="true" name="profile one" default_profile="1" language="java"/>\r
- <rules_profiles id="2" provided="true" name="profile two" default_profile="0" language="java"/>\r
+ <rules_profiles id="1" provided="true" name="profile one" default_profile="1" language="java" enabled="true"/>\r
+ <rules_profiles id="2" provided="true" name="profile two" default_profile="0" language="java" enabled="true"/>\r
\r
<rules id="1" name="foo" description="test" plugin_config_key="checker/foo"\r
plugin_rule_key="checkstyle.rule1" plugin_name="plugin" enabled="true" cardinality="SINGLE" parent_id="[null]"/>\r
\r
<rules_categories id="1" name="category one" description="[null]"/>\r
\r
- <rules_profiles id="1" provided="true" name="profile one" default_profile="1" language="java"/>\r
- <rules_profiles id="2" provided="true" name="profile two" default_profile="0" language="java"/>\r
+ <rules_profiles id="1" provided="true" name="profile one" default_profile="1" language="java" enabled="true"/>\r
+ <rules_profiles id="2" provided="true" name="profile two" default_profile="0" language="java" enabled="true"/>\r
\r
<rules id="1" name="foo" description="test" plugin_config_key="checker/foo"\r
plugin_rule_key="checkstyle.rule1" plugin_name="plugin" enabled="true" cardinality="SINGLE" parent_id="[null]"/>\r
\r
<rules_categories id="1" name="category one" description="[null]"/>\r
\r
- <rules_profiles id="1" provided="true" name="profile one" default_profile="1" language="java"/>\r
- <rules_profiles id="2" provided="true" name="profile two" default_profile="0" language="java"/>\r
+ <rules_profiles id="1" provided="true" name="profile one" default_profile="1" language="java" enabled="true"/>\r
+ <rules_profiles id="2" provided="true" name="profile two" default_profile="0" language="java" enabled="true"/>\r
\r
<rules id="1" name="foo" description="test" plugin_config_key="checker/foo"\r
plugin_rule_key="checkstyle.rule1" plugin_name="plugin" enabled="true" cardinality="SINGLE" parent_id="[null]"/>\r
import org.sonar.api.rules.Rule;
import org.sonar.api.rules.RulePriority;
+import javax.persistence.*;
import java.util.ArrayList;
import java.util.List;
-import javax.persistence.*;
-
/**
* This class is badly named. It should be "QualityProfile". Indeed it does not relate only to rules but to metric thresholds too.
*/
@Column(name = "provided", updatable = true, nullable = false)
private Boolean provided = Boolean.FALSE;
+ @Column(name = "enabled", updatable = true, nullable = false)
+ private boolean enabled = true;
+
@Column(name = "language", updatable = true, nullable = false)
private String language;
this.provided = b;
}
+ public boolean isEnabled() {
+ return enabled;
+ }
+
+ public RulesProfile setEnabled(boolean b) {
+ this.enabled = b;
+ return this;
+ }
+
/**
* @return the profile language
*/
import org.sonar.api.profiles.Alert;
import org.sonar.api.profiles.RulesProfile;
import org.sonar.api.rules.*;
-import org.sonar.jpa.dao.ProfilesDao;
import org.sonar.jpa.dao.RulesDao;
import java.util.*;
}
public void exportXml(SonarConfig sonarConfig) {
- this.profiles = this.profiles == null ? new ProfilesDao(session).getProfiles() : this.profiles;
+ this.profiles = (this.profiles == null ? session.getResults(RulesProfile.class) : this.profiles);
// the profiles objects must be cloned to avoid issues CGLib
List<RulesProfile> cloned = new ArrayList<RulesProfile>();
for (RulesProfile profile : this.profiles) {
return getSession().getResults(RulesProfile.class,
"language", parent.getLanguage(),
"parentName", parent.getName(),
- "provided", false);
+ "provided", false,
+ "enabled", true);
}
private void removeActiveRule(RulesProfile profile, ActiveRule activeRule) {
RulesProfile getProfile(String language, String name) {
return getSession().getSingleResult(RulesProfile.class,
"language", language,
- "name", name);
+ "name", name,
+ "enabled", true);
}
RulesProfile getParentProfile(RulesProfile profile) {
--- /dev/null
+#
+# Sonar, entreprise quality control tool.
+# Copyright (C) 2009 SonarSource SA
+# mailto:contact AT sonarsource DOT com
+#
+# Sonar is free software; you can redistribute it and/or
+# modify it under the terms of the GNU Lesser General Public
+# License as published by the Free Software Foundation; either
+# version 3 of the License, or (at your option) any later version.
+#
+# Sonar is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+# Lesser General Public License for more details.
+#
+# You should have received a copy of the GNU Lesser General Public
+# License along with Sonar; if not, write to the Free Software
+# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02
+#
+
+#
+# Sonar 2.6
+#
+class AddProfilesDisabled < ActiveRecord::Migration
+
+ def self.up
+ add_column 'rules_profiles', 'enabled', :boolean, :null => false, :default => true
+ Profile.reset_column_information
+
+ Profile.find(:all).each do |profile|
+ profile.enabled=true
+ profile.save
+ end
+ end
+
+end
<default-profile><![CDATA[true]]></default-profile>
<provided><![CDATA[true]]></provided>
<language><![CDATA[test language]]></language>
+ <enabled><![CDATA[true]]></enabled>
<active-rules>
<active-rule>
<key><![CDATA[test key]]></key>
<default-profile><![CDATA[false]]></default-profile>
<provided><![CDATA[false]]></provided>
<language><![CDATA[test language]]></language>
+ <enabled><![CDATA[true]]></enabled>
<parentName><![CDATA[test name]]></parentName>
<active-rules>
<active-rule>
<rules_parameters id="1" rule_id="1" name="param1" description="[null]" param_type="r"/>
- <rules_profiles id="1" provided="false" name="parent" default_profile="0" language="java" parent_name="[null]"/>
+ <rules_profiles id="1" provided="false" name="parent" default_profile="0" language="java" parent_name="[null]" enabled="true"/>
- <rules_profiles id="2" provided="false" name="child" default_profile="0" language="java" parent_name="parent"/>
+ <rules_profiles id="2" provided="false" name="child" default_profile="0" language="java" parent_name="parent" enabled="true"/>
<active_rules id="1" profile_id="1" rule_id="1" failure_level="2" inheritance="[null]"/>
<active_rule_parameters id="1" active_rule_id="1" rules_parameter_id="1" value="30"/>
<rules_parameters id="1" rule_id="1" name="param1" description="[null]" param_type="r"/>
- <rules_profiles id="1" provided="false" name="parent" default_profile="0" language="java" parent_name="[null]"/>
+ <rules_profiles id="1" provided="false" name="parent" default_profile="0" language="java" parent_name="[null]" enabled="true"/>
- <rules_profiles id="2" provided="false" name="child" default_profile="0" language="java" parent_name="parent"/>
+ <rules_profiles id="2" provided="false" name="child" default_profile="0" language="java" parent_name="parent" enabled="true"/>
<active_rules id="1" profile_id="1" rule_id="1" failure_level="2" inheritance="[null]"/>
<active_rule_parameters id="1" active_rule_id="1" rules_parameter_id="1" value="30"/>
<rules id="2" name="bar" description="test" plugin_config_key="checker/bar"
plugin_rule_key="checkstyle.rule2" plugin_name="plugin" enabled="true" cardinality="SINGLE" parent_id="[null]"/>
- <rules_profiles id="1" provided="false" name="parent" default_profile="0" language="java" parent_name="[null]"/>
+ <rules_profiles id="1" provided="false" name="parent" default_profile="0" language="java" parent_name="[null]" enabled="true"/>
- <rules_profiles id="2" provided="false" name="new_parent" default_profile="0" language="java" parent_name="[null]"/>
+ <rules_profiles id="2" provided="false" name="new_parent" default_profile="0" language="java" parent_name="[null]" enabled="true"/>
- <rules_profiles id="3" provided="false" name="child" default_profile="0" language="java" parent_name="new_parent"/>
+ <rules_profiles id="3" provided="false" name="child" default_profile="0" language="java" parent_name="new_parent" enabled="true"/>
<active_rules id="1" profile_id="1" rule_id="1" failure_level="2" inheritance="[null]"/>
<rules id="2" name="bar" description="test" plugin_config_key="checker/bar"
plugin_rule_key="checkstyle.rule2" plugin_name="plugin" enabled="true" cardinality="SINGLE" parent_id="[null]"/>
- <rules_profiles id="1" provided="false" name="parent" default_profile="0" language="java" parent_name="[null]"/>
+ <rules_profiles id="1" provided="false" name="parent" default_profile="0" language="java" parent_name="[null]" enabled="true"/>
- <rules_profiles id="2" provided="false" name="new_parent" default_profile="0" language="java" parent_name="[null]"/>
+ <rules_profiles id="2" provided="false" name="new_parent" default_profile="0" language="java" parent_name="[null]" enabled="true"/>
- <rules_profiles id="3" provided="false" name="child" default_profile="0" language="java" parent_name="parent"/>
+ <rules_profiles id="3" provided="false" name="child" default_profile="0" language="java" parent_name="parent" enabled="true"/>
<active_rules id="1" profile_id="1" rule_id="1" failure_level="2" inheritance="[null]"/>
<rules id="1" name="foo" description="test" plugin_config_key="checker/foo"
plugin_rule_key="checkstyle.rule1" plugin_name="plugin" enabled="true" cardinality="SINGLE" parent_id="[null]"/>
- <rules_profiles id="1" provided="false" name="level1" default_profile="0" language="java" parent_name="[null]"/>
+ <rules_profiles id="1" provided="false" name="level1" default_profile="0" language="java" parent_name="[null]" enabled="true"/>
- <rules_profiles id="2" provided="false" name="level2" default_profile="0" language="java" parent_name="level1"/>
+ <rules_profiles id="2" provided="false" name="level2" default_profile="0" language="java" parent_name="level1" enabled="true"/>
- <rules_profiles id="3" provided="false" name="level3" default_profile="0" language="java" parent_name="level2"/>
+ <rules_profiles id="3" provided="false" name="level3" default_profile="0" language="java" parent_name="level2" enabled="true"/>
</dataset>
<rules id="1" name="foo" description="test" plugin_config_key="checker/foo"
plugin_rule_key="checkstyle.rule1" plugin_name="plugin" enabled="true" cardinality="SINGLE" parent_id="[null]"/>
- <rules_profiles id="1" provided="false" name="parent" default_profile="0" language="java" parent_name="[null]"/>
+ <rules_profiles id="1" provided="false" name="parent" default_profile="0" language="java" parent_name="[null]" enabled="true"/>
- <rules_profiles id="2" provided="false" name="child" default_profile="0" language="java" parent_name="parent"/>
+ <rules_profiles id="2" provided="false" name="child" default_profile="0" language="java" parent_name="parent" enabled="true"/>
<active_rules id="1" profile_id="1" rule_id="1" failure_level="2" inheritance="[null]"/>
<rules id="1" name="foo" description="test" plugin_config_key="checker/foo"
plugin_rule_key="checkstyle.rule1" plugin_name="plugin" enabled="true" cardinality="SINGLE" parent_id="[null]"/>
- <rules_profiles id="1" provided="false" name="parent" default_profile="0" language="java" parent_name="[null]"/>
+ <rules_profiles id="1" provided="false" name="parent" default_profile="0" language="java" parent_name="[null]" enabled="true"/>
- <rules_profiles id="2" provided="false" name="child" default_profile="0" language="java" parent_name="parent"/>
+ <rules_profiles id="2" provided="false" name="child" default_profile="0" language="java" parent_name="parent" enabled="true"/>
<active_rules id="1" profile_id="1" rule_id="1" failure_level="2" inheritance="[null]"/>
<rules id="1" name="foo" description="test" plugin_config_key="checker/foo"
plugin_rule_key="checkstyle.rule1" plugin_name="plugin" enabled="true" cardinality="SINGLE" parent_id="[null]"/>
- <rules_profiles id="1" provided="false" name="level1" default_profile="0" language="java" parent_name="[null]"/>
+ <rules_profiles id="1" provided="false" name="level1" default_profile="0" language="java" parent_name="[null]" enabled="true"/>
- <rules_profiles id="2" provided="false" name="level2" default_profile="0" language="java" parent_name="level1"/>
+ <rules_profiles id="2" provided="false" name="level2" default_profile="0" language="java" parent_name="level1" enabled="true"/>
- <rules_profiles id="3" provided="false" name="level3" default_profile="0" language="java" parent_name="level2"/>
+ <rules_profiles id="3" provided="false" name="level3" default_profile="0" language="java" parent_name="level2" enabled="true"/>
</dataset>
<rules id="1" name="foo" description="test" plugin_config_key="checker/foo"
plugin_rule_key="checkstyle.rule1" plugin_name="plugin" enabled="true" cardinality="SINGLE" parent_id="[null]"/>
- <rules_profiles id="1" provided="false" name="parent" default_profile="0" language="java" parent_name="[null]"/>
+ <rules_profiles id="1" provided="false" name="parent" default_profile="0" language="java" parent_name="[null]" enabled="true"/>
- <rules_profiles id="2" provided="false" name="child" default_profile="0" language="java" parent_name="[null]"/>
+ <rules_profiles id="2" provided="false" name="child" default_profile="0" language="java" parent_name="[null]" enabled="true"/>
<active_rules id="1" profile_id="1" rule_id="1" failure_level="2" inheritance="[null]"/>
<rules id="1" name="foo" description="test" plugin_config_key="checker/foo"
plugin_rule_key="checkstyle.rule1" plugin_name="plugin" enabled="true" cardinality="SINGLE" parent_id="[null]"/>
- <rules_profiles id="1" provided="false" name="parent" default_profile="0" language="java" parent_name="[null]"/>
+ <rules_profiles id="1" provided="false" name="parent" default_profile="0" language="java" parent_name="[null]" enabled="true"/>
- <rules_profiles id="2" provided="false" name="child" default_profile="0" language="java" parent_name="parent"/>
+ <rules_profiles id="2" provided="false" name="child" default_profile="0" language="java" parent_name="parent" enabled="true"/>
<active_rules id="1" profile_id="1" rule_id="1" failure_level="2" inheritance="[null]"/>
<rules id="1" name="foo" description="test" plugin_config_key="checker/foo"
plugin_rule_key="checkstyle.rule1" plugin_name="plugin" enabled="true" cardinality="SINGLE" parent_id="[null]"/>
- <rules_profiles id="1" provided="false" name="newName" default_profile="0" language="java" parent_name="[null]"/>
+ <rules_profiles id="1" provided="false" name="newName" default_profile="0" language="java" parent_name="[null]" enabled="true"/>
- <rules_profiles id="2" provided="false" name="level2" default_profile="0" language="java" parent_name="newName"/>
+ <rules_profiles id="2" provided="false" name="level2" default_profile="0" language="java" parent_name="newName" enabled="true"/>
- <rules_profiles id="3" provided="false" name="level3" default_profile="0" language="java" parent_name="level2"/>
+ <rules_profiles id="3" provided="false" name="level3" default_profile="0" language="java" parent_name="level2" enabled="true"/>
</dataset>
<rules id="1" name="foo" description="test" plugin_config_key="checker/foo"
plugin_rule_key="checkstyle.rule1" plugin_name="plugin" enabled="true" cardinality="SINGLE" parent_id="[null]"/>
- <rules_profiles id="1" provided="false" name="parent" default_profile="0" language="java" parent_name="[null]"/>
+ <rules_profiles id="1" provided="false" name="parent" default_profile="0" language="java" parent_name="[null]" enabled="true"/>
- <rules_profiles id="2" provided="false" name="child" default_profile="0" language="java" parent_name="parent"/>
+ <rules_profiles id="2" provided="false" name="child" default_profile="0" language="java" parent_name="parent" enabled="true"/>
<active_rules id="1" profile_id="1" rule_id="1" failure_level="2" inheritance="[null]"/>
<rules id="1" name="foo" description="test" plugin_config_key="checker/foo"
plugin_rule_key="checkstyle.rule1" plugin_name="plugin" enabled="true" cardinality="SINGLE" parent_id="[null]"/>
- <rules_profiles id="1" provided="false" name="parent" default_profile="0" language="java" parent_name="[null]"/>
+ <rules_profiles id="1" provided="false" name="parent" default_profile="0" language="java" parent_name="[null]" enabled="true"/>
- <rules_profiles id="2" provided="false" name="child" default_profile="0" language="java" parent_name="[null]"/>
+ <rules_profiles id="2" provided="false" name="child" default_profile="0" language="java" parent_name="[null]" enabled="true"/>
<active_rules id="1" profile_id="1" rule_id="1" failure_level="2" inheritance="[null]"/>
<metrics id="2" name="disabledkey2" val_type="INT" description="description" domain="domain"
short_name="name2" qualitative="false" user_managed="false" enabled="false" origin="JAV" worst_value="[null]" optimized_best_value="[null]" best_value="[null]" direction="1" hidden="false"/>
- <rules_profiles id="1" name="profile1" default_profile="true" provided="true" language="JAV"/>
- <rules_profiles id="2" name="profile2" default_profile="false" provided="false" language="JAV"/>
+ <rules_profiles id="1" name="profile1" default_profile="true" provided="true" language="JAV" enabled="true"/>
+ <rules_profiles id="2" name="profile2" default_profile="false" provided="false" language="JAV" enabled="true"/>
<!-- ok -->
<alerts id="1" profile_id="1" metric_id="1" operator=">" value_error="30" value_warning="[null]"/>
short_name="name2" qualitative="false" user_managed="false" enabled="false" origin="JAV" worst_value="[null]" optimized_best_value="[null]" best_value="[null]" direction="1" hidden="false"/>
- <rules_profiles id="1" name="profile1" default_profile="true" provided="true" language="JAV"/>
- <rules_profiles id="2" name="profile2" default_profile="false" provided="false" language="JAV"/>
+ <rules_profiles id="1" name="profile1" default_profile="true" provided="true" language="JAV" enabled="true"/>
+ <rules_profiles id="2" name="profile2" default_profile="false" provided="false" language="JAV" enabled="true"/>
<!-- ok -->
<alerts id="1" profile_id="1" metric_id="1" operator=">" value_error="30" value_warning="[null]"/>
<rules_parameters id="3" rule_id="1" name="param3" description="[null]" param_type="[null]"/>
- <rules_profiles id="1" name="profile name" language="java" default_profile="false" provided="false" />
+ <rules_profiles id="1" name="profile name" language="java" default_profile="false" provided="false" enabled="true"/>
<active_rules id="1" rule_id="1" profile_id="1" failure_level="4" />
<active_rule_parameters id="1" active_rule_id="1" rules_parameter_id="1" value="one" />
<active_rule_parameters id="2" active_rule_id="1" rules_parameter_id="2" value="two" />
<rules_parameters id="1" rule_id="1" name="deprecated-prop" description="[null]" param_type="[null]"/>
- <rules_profiles id="1" name="sonar way" language="java" default_profile="false" provided="true" />
+ <rules_profiles id="1" name="sonar way" language="java" default_profile="false" provided="true" enabled="true"/>
<active_rules id="1" rule_id="1" profile_id="1" failure_level="4" />
<active_rules id="2" rule_id="2" profile_id="1" failure_level="0" />