]> source.dussan.org Git - sonarqube.git/commitdiff
SONAR-1722: Merge two fields ActiveRule.inherited and ActiveRule.overridden into...
authorGodin <mandrikov@gmail.com>
Tue, 21 Dec 2010 22:45:14 +0000 (22:45 +0000)
committerGodin <mandrikov@gmail.com>
Tue, 21 Dec 2010 22:45:14 +0000 (22:45 +0000)
20 files changed:
sonar-core/src/test/resources/org/sonar/jpa/dao/RulesDaoTest/shouldAddActiveRulesToProfile-result.xml
sonar-plugin-api/src/main/java/org/sonar/api/rules/ActiveRule.java
sonar-plugin-api/src/main/java/org/sonar/api/rules/ActiveRuleInheritanceStatus.java [new file with mode: 0644]
sonar-server/src/main/java/org/sonar/server/configuration/ProfilesBackup.java
sonar-server/src/main/java/org/sonar/server/configuration/ProfilesManager.java
sonar-server/src/main/webapp/WEB-INF/app/views/rules_configuration/_rule.html.erb
sonar-server/src/main/webapp/WEB-INF/db/migrate/169_add_columns_for_profiles_inheritance.rb
sonar-server/src/test/java/org/sonar/server/configuration/BackupTest.java
sonar-server/src/test/resources/org/sonar/server/configuration/BackupTest/backup-restore-valid.xml
sonar-server/src/test/resources/org/sonar/server/configuration/BackupTest/backup-valid.xml
sonar-server/src/test/resources/org/sonar/server/configuration/InheritedProfilesTest/shouldActivateInChildren-result.xml
sonar-server/src/test/resources/org/sonar/server/configuration/InheritedProfilesTest/shouldActivateInChildren.xml
sonar-server/src/test/resources/org/sonar/server/configuration/InheritedProfilesTest/shouldChangeParent-result.xml
sonar-server/src/test/resources/org/sonar/server/configuration/InheritedProfilesTest/shouldChangeParent.xml
sonar-server/src/test/resources/org/sonar/server/configuration/InheritedProfilesTest/shouldDeactivateInChildren-result.xml
sonar-server/src/test/resources/org/sonar/server/configuration/InheritedProfilesTest/shouldDeactivateInChildren.xml
sonar-server/src/test/resources/org/sonar/server/configuration/InheritedProfilesTest/shouldRemoveParent-result.xml
sonar-server/src/test/resources/org/sonar/server/configuration/InheritedProfilesTest/shouldRemoveParent.xml
sonar-server/src/test/resources/org/sonar/server/configuration/InheritedProfilesTest/shouldSetParent-result.xml
sonar-server/src/test/resources/org/sonar/server/configuration/InheritedProfilesTest/shouldSetParent.xml

index 10c1863884216233ba736225b85bd917528c82e9..808647dd2aaa1a83c89ebcaeb15d76e48d3bc1d9 100644 (file)
@@ -10,7 +10,7 @@
   <rules_parameters id="1" rule_id="1" name="param1" description="foo" param_type="r"/>
 
   <!-- Active rule created -->
-  <active_rules id="1" profile_id="1" rule_id="1" failure_level="2" inherited="[null]" overridden="[null]"/>
+  <active_rules id="1" profile_id="1" rule_id="1" failure_level="2" inherited="0"/>
 
   <!-- Active rule param created -->
   <active_rule_parameters id="1" active_rule_id="1" rules_parameter_id="1" value="20"/>
index badb3bb249218c1e1153cb741af663f08a2c5404..1ebab335157edd853e3450c3e8e099038e6674e0 100644 (file)
@@ -58,10 +58,8 @@ public class ActiveRule implements Cloneable {
   private List<ActiveRuleParam> activeRuleParams = new ArrayList<ActiveRuleParam>();
 
   @Column(name = "inherited", updatable = true, nullable = true)
-  private Boolean inherited;
-
-  @Column(name = "overridden", updatable = true, nullable = true)
-  private Boolean overridden;
+  @Enumerated(EnumType.ORDINAL)
+  private ActiveRuleInheritanceStatus inherited = ActiveRuleInheritanceStatus.NO;
 
   /**
    * @deprecated visibility should be reduced to protected or package
@@ -94,26 +92,8 @@ public class ActiveRule implements Cloneable {
    * 
    * @since 2.5
    */
-  public boolean isInherited() {
-    return inherited == null ? false : inherited;
-  }
-
-  /**
-   * For internal use only.
-   * 
-   * @since 2.5
-   */
-  public void setInherited(boolean inherited) {
-    this.inherited = inherited;
-  }
-
-  /**
-   * For internal use only.
-   * 
-   * @since 2.5
-   */
-  public boolean isOverridden() {
-    return overridden == null ? false : overridden;
+  public ActiveRuleInheritanceStatus getInheritanceStatus() {
+    return inherited == null ? ActiveRuleInheritanceStatus.NO : inherited;
   }
 
   /**
@@ -121,8 +101,8 @@ public class ActiveRule implements Cloneable {
    * 
    * @since 2.5
    */
-  public void setOverridden(Boolean overridden) {
-    this.overridden = overridden;
+  public void setInheritanceStatus(ActiveRuleInheritanceStatus status) {
+    this.inherited = status;
   }
 
   /**
@@ -279,8 +259,7 @@ public class ActiveRule implements Cloneable {
   @Override
   public Object clone() {
     final ActiveRule clone = new ActiveRule(getRulesProfile(), getRule(), getSeverity());
-    clone.setInherited(isInherited());
-    clone.setOverridden(isOverridden());
+    clone.setInheritanceStatus(getInheritanceStatus());
     if (CollectionUtils.isNotEmpty(getActiveRuleParams())) {
       clone.setActiveRuleParams(new ArrayList<ActiveRuleParam>(CollectionUtils.collect(getActiveRuleParams(), new Transformer() {
         public Object transform(Object input) {
diff --git a/sonar-plugin-api/src/main/java/org/sonar/api/rules/ActiveRuleInheritanceStatus.java b/sonar-plugin-api/src/main/java/org/sonar/api/rules/ActiveRuleInheritanceStatus.java
new file mode 100644 (file)
index 0000000..713c72e
--- /dev/null
@@ -0,0 +1,14 @@
+package org.sonar.api.rules;
+
+/**
+ * For internal use only.
+ * 
+ * @since 2.5
+ */
+public enum ActiveRuleInheritanceStatus {
+  /**
+   * WARNING : DO NOT CHANGE THE ENUMERATION ORDER
+   * the enum ordinal is used for db persistence
+   */
+  NO, INHERITED, OVERRIDDEN
+}
index 85dfbbae810ff6e061f8e84c3e85e620de28996b..543606779fb78acab3c137ef5f10462ea1ce423e 100644 (file)
@@ -169,8 +169,7 @@ public class ProfilesBackup implements Backupable {
         writeNode(writer, "key", rule.getRule().getKey());
         writeNode(writer, "plugin", rule.getRule().getRepositoryKey());
         writeNode(writer, "level", rule.getSeverity().name());
-        writeNode(writer, "inherited", Boolean.toString(rule.isInherited()));
-        writeNode(writer, "overridden", Boolean.toString(rule.isOverridden()));
+        writeNode(writer, "inherited", rule.getInheritanceStatus().toString());
 
         if (!rule.getActiveRuleParams().isEmpty()) {
           writer.startNode("params");
@@ -206,8 +205,7 @@ public class ProfilesBackup implements Backupable {
         ActiveRule activeRule = new ActiveRule(null, new Rule(valuesRule.get("plugin"), valuesRule.get("key")), RulePriority
             .valueOf(valuesRule.get("level")));
         activeRule.setActiveRuleParams(params);
-        activeRule.setInherited(Boolean.parseBoolean(valuesRule.get("inherited")));
-        activeRule.setOverridden(Boolean.parseBoolean(valuesRule.get("overridden")));
+        activeRule.setInheritanceStatus(ActiveRuleInheritanceStatus.valueOf(valuesRule.get("inherited")));
         return activeRule;
       }
 
index bae9f3bff68b0ca00ff55bedc7112c1e334aa9d0..f17cb5194d9bffd22472fa3b175168a82b7a2048 100644 (file)
@@ -19,6 +19,8 @@
  */
 package org.sonar.server.configuration;
 
+import org.sonar.api.rules.ActiveRuleInheritanceStatus;
+
 import org.sonar.api.database.DatabaseSession;
 import org.sonar.api.database.model.ResourceModel;
 import org.sonar.api.profiles.RulesProfile;
@@ -116,8 +118,8 @@ public class ProfilesManager extends BaseDao {
    */
   public void activatedOrChanged(int parentProfileId, int activeRuleId) {
     ActiveRule parentActiveRule = getSession().getEntity(ActiveRule.class, activeRuleId);
-    if (parentActiveRule.isInherited() && !parentActiveRule.isOverridden()) {
-      parentActiveRule.setOverridden(true);
+    if (parentActiveRule.getInheritanceStatus() == ActiveRuleInheritanceStatus.INHERITED) {
+      parentActiveRule.setInheritanceStatus(ActiveRuleInheritanceStatus.OVERRIDDEN);
       getSession().saveWithoutFlush(parentActiveRule);
     }
     for (RulesProfile child : getChildren(parentProfileId)) {
@@ -153,13 +155,12 @@ public class ProfilesManager extends BaseDao {
   public void revert(int profileId, int activeRuleId) {
     RulesProfile profile = getSession().getEntity(RulesProfile.class, profileId);
     ActiveRule activeRule = getSession().getEntity(ActiveRule.class, activeRuleId);
-    if (activeRule != null && activeRule.isInherited() && activeRule.isOverridden()) {
+    if (activeRule != null && activeRule.getInheritanceStatus() == ActiveRuleInheritanceStatus.OVERRIDDEN) {
       ActiveRule parentActiveRule = getParentProfile(profile).getActiveRule(activeRule.getRule());
       removeActiveRule(profile, activeRule);
       activeRule = (ActiveRule) parentActiveRule.clone();
       activeRule.setRulesProfile(profile);
-      activeRule.setInherited(true);
-      activeRule.setOverridden(false);
+      activeRule.setInheritanceStatus(ActiveRuleInheritanceStatus.INHERITED);
       profile.getActiveRules().add(activeRule);
       getSession().saveWithoutFlush(activeRule);
 
@@ -174,19 +175,17 @@ public class ProfilesManager extends BaseDao {
   private void activateOrChange(RulesProfile profile, ActiveRule parentActiveRule) {
     ActiveRule activeRule = profile.getActiveRule(parentActiveRule.getRule());
     if (activeRule != null) {
-      if (activeRule.isInherited() && !activeRule.isOverridden()) {
+      if (activeRule.getInheritanceStatus() == ActiveRuleInheritanceStatus.INHERITED) {
         removeActiveRule(profile, activeRule);
       } else {
-        activeRule.setInherited(true);
-        activeRule.setOverridden(true);
+        activeRule.setInheritanceStatus(ActiveRuleInheritanceStatus.OVERRIDDEN);
         getSession().saveWithoutFlush(activeRule);
         return; // no need to change in children
       }
     }
     activeRule = (ActiveRule) parentActiveRule.clone();
     activeRule.setRulesProfile(profile);
-    activeRule.setInherited(true);
-    activeRule.setOverridden(false);
+    activeRule.setInheritanceStatus(ActiveRuleInheritanceStatus.INHERITED);
     profile.getActiveRules().add(activeRule);
     getSession().saveWithoutFlush(activeRule);
 
@@ -198,11 +197,10 @@ public class ProfilesManager extends BaseDao {
   private void deactivate(RulesProfile profile, Rule rule) {
     ActiveRule activeRule = profile.getActiveRule(rule);
     if (activeRule != null) {
-      if (activeRule.isInherited() && !activeRule.isOverridden()) {
+      if (activeRule.getInheritanceStatus() == ActiveRuleInheritanceStatus.INHERITED) {
         removeActiveRule(profile, activeRule);
       } else {
-        activeRule.setInherited(false);
-        activeRule.setOverridden(false);
+        activeRule.setInheritanceStatus(ActiveRuleInheritanceStatus.NO);
         getSession().saveWithoutFlush(activeRule);
         return; // no need to change in children
       }
index e8bc6427c828c9be0a0d40b06fdfe5e30b7e066a..a1afa263d1be8b35e47e217f44a3bea2a011f988 100644 (file)
@@ -1,6 +1,9 @@
 <td nowrap valign="top" class="left" x="<%= active_rule.failure_level if active_rule -%>" width="1%">
-  <% inherited = active_rule.inherited if active_rule
-     overridden = active_rule.overridden if active_rule
+  <% if active_rule.nil? || active_rule.inherited.nil?
+       inheritance_status = 0
+     else
+       inheritance_status = active_rule.inherited
+     end
   %>
   <form id="levels_<%= rule.id -%>" action="">
       <% enable_modification = is_admin && !profile.provided?
                  :loading => "$('levels_#{rule.id}').replace('<img src=\"#{ApplicationController.root_context}/images/loading.gif\"/>');",
                  :with => "'level=' + get_level_for_rule(#{rule_select_box},#{rule_check_box})")
       %>
-      <%= check_box_tag(check_box_id, 'yes', (!active_rule.nil?), :onclick => activate_rule, :disabled => !enable_modification || inherited) %>
+      <%= check_box_tag(check_box_id, 'yes', (!active_rule.nil?), :onclick => activate_rule, :disabled => !enable_modification || inheritance_status > 0) %>
       <%= select_tag(select_box_id, options_for_select(RulesConfigurationController::RULE_PRIORITIES, (active_rule.nil? ? rule.priority_text : active_rule.priority_text)),
             {:onchange => changel_level, :disabled => (!(enable_modification) || active_rule.nil?)}) %>
 
   </form>
 </td>
 <td valign="top" class="left">
-  <% if inherited %>
-    <% if overridden %>
-      Overrides rule from parent profile.<br/>
-      <%= button_to "Revert", :action => 'revert_rule', :id => profile.id, :active_rule_id => active_rule.id %><br/>
-    <% else %>
-      Inherited from parent profile.<br/>
-    <% end %>
+  <% if inheritance_status == 1 %>
+    Inherited from parent profile.<br/>
+  <% elsif inheritance_status == 2 %>
+    Overrides rule from parent profile.<br/>
+    <%= button_to "Revert", :action => 'revert_rule', :id => profile.id, :active_rule_id => active_rule.id %><br/>
   <% end %>
+
   <%= link_to_function("#{h rule.name}", nil, :class => "") do |page|
         page.toggle "desc_#{rule.id}"
       end
index 9d99baf78171ac74b07a80ed83b1cda10cae6d10..c7b238473d99c4ae5387db7e1468db61f747cec4 100644 (file)
 class AddColumnsForProfilesInheritance < ActiveRecord::Migration
 
   def self.up
-    add_column 'active_rules', 'inherited', :boolean, :null => true
-    add_column 'active_rules', 'overridden', :boolean, :null => true
+    add_column 'active_rules', 'inherited', :integer, :null => true
     ActiveRule.reset_column_information
-    ActiveRule.update_all(ActiveRule.sanitize_sql_for_assignment({:inherited => false, :overridden => false}))
+    ActiveRule.update_all(ActiveRule.sanitize_sql_for_assignment({:inherited => 0}))
 
     add_column 'rules_profiles', 'parent_name', :string, :limit => 40, :null => true
     Profile.reset_column_information
index 3a2b52029f2b3d7956a085b7fd74acd85a551a84..08f75114341968f0b36402f1a0ec6ed060e82670 100644 (file)
@@ -19,6 +19,8 @@
  */
 package org.sonar.server.configuration;
 
+import org.sonar.api.rules.ActiveRuleInheritanceStatus;
+
 import com.google.common.collect.Lists;
 import org.apache.commons.collections.CollectionUtils;
 import org.apache.commons.io.IOUtils;
@@ -128,8 +130,7 @@ public class BackupTest {
     assertNotNull(testActiveRule.getRule());
     assertEquals("test key", testActiveRule.getRule().getKey());
     assertEquals("test plugin", testActiveRule.getRule().getRepositoryKey());
-    assertThat(testActiveRule.isInherited(), is(false));
-    assertThat(testActiveRule.isOverridden(), is(false));
+    assertThat(testActiveRule.getInheritanceStatus(), is(ActiveRuleInheritanceStatus.NO));
     assertEquals(1, testActiveRule.getActiveRuleParams().size());
 
     ActiveRuleParam testActiveRuleParam = testActiveRule.getActiveRuleParams().get(0);
@@ -150,8 +151,7 @@ public class BackupTest {
     assertEquals("test2 name", testProfile.getName());
     assertEquals("test name", testProfile.getParentName());
     testActiveRule = testProfile.getActiveRules().get(0);
-    assertThat(testActiveRule.isInherited(), is(true));
-    assertThat(testActiveRule.isOverridden(), is(true));
+    assertThat(testActiveRule.getInheritanceStatus(), is(ActiveRuleInheritanceStatus.OVERRIDDEN));
 
     Collection<Rule> rules = sonarConfig.getRules();
     assertThat(rules.size(), is(1));
@@ -269,8 +269,7 @@ public class BackupTest {
 
     ActiveRule activeRule2 = profile2.activateRule(rule, RulePriority.MINOR);
     activeRule2.setParameter("test param key", "test value");
-    activeRule2.setInherited(true);
-    activeRule2.setOverridden(true);
+    activeRule2.setInheritanceStatus(ActiveRuleInheritanceStatus.OVERRIDDEN);
 
     profiles.get(0).getAlerts().add(new Alert(null, new Metric("test key"), Alert.OPERATOR_GREATER, "testError", "testWarn"));
 
index d271cb729c3393016eccac5c38576eb2f400b6f0..afbcd51f3e1f0b9ae85d9e3718e7f9f2b7577bd9 100644 (file)
@@ -42,6 +42,7 @@
           <key><![CDATA[test key]]></key>
           <plugin><![CDATA[test plugin]]></plugin>
           <level><![CDATA[ERROR]]></level>
+          <inherited><![CDATA[NO]]></inherited>
           <params>
             <param>
               <key><![CDATA[test param key]]></key>
@@ -70,8 +71,7 @@
           <key><![CDATA[test key]]></key>
           <plugin><![CDATA[test plugin]]></plugin>
           <level><![CDATA[ERROR]]></level>
-          <inherited><![CDATA[true]]></inherited>
-          <overridden><![CDATA[true]]></overridden>
+          <inherited><![CDATA[OVERRIDDEN]]></inherited>
           <params>
             <param>
               <key><![CDATA[test param key]]></key>
index 7f353a51f6790fde8b96c15788ff49d2f59aa374..55e7c52ef69950f0e7f4eb3efbea722f1bc28942 100644 (file)
@@ -44,8 +44,7 @@
           <key><![CDATA[test key]]></key>
           <plugin><![CDATA[test plugin]]></plugin>
           <level><![CDATA[MAJOR]]></level>
-          <inherited><![CDATA[false]]></inherited>
-          <overridden><![CDATA[false]]></overridden>
+          <inherited><![CDATA[NO]]></inherited>
           <params>
             <param>
               <key><![CDATA[test param key]]></key>
@@ -74,8 +73,7 @@
           <key><![CDATA[test key]]></key>
           <plugin><![CDATA[test plugin]]></plugin>
           <level><![CDATA[MINOR]]></level>
-          <inherited><![CDATA[true]]></inherited>
-          <overridden><![CDATA[true]]></overridden>
+          <inherited><![CDATA[OVERRIDDEN]]></inherited>
           <params>
             <param>
               <key><![CDATA[test param key]]></key>
index 7a4d2a592b8bc627b34b60ad4799ced279ab094a..3ce3a26819718b770f92db71c26814103e114560 100644 (file)
@@ -9,10 +9,10 @@
   
   <rules_profiles id="2" provided="false" name="child" default_profile="0" language="java" parent_name="parent"/>
 
-  <active_rules id="1" profile_id="1" rule_id="1" failure_level="2" inherited="false" overridden="false"/>
+  <active_rules id="1" profile_id="1" rule_id="1" failure_level="2" inherited="0"/>
   <active_rule_parameters id="1" active_rule_id="1" rules_parameter_id="1" value="30"/>
   
-  <active_rules id="2" profile_id="2" rule_id="1" failure_level="2" inherited="true" overridden="false"/>
+  <active_rules id="2" profile_id="2" rule_id="1" failure_level="2" inherited="1"/>
   <active_rule_parameters id="2" active_rule_id="2" rules_parameter_id="1" value="30"/>
   
 </dataset>
index 019b5bb6bb3874410fbcfb399e73326caf6036cd..5df60edae3de61cc88185a3990a352b8e6c8ad03 100644 (file)
@@ -9,7 +9,7 @@
   
   <rules_profiles id="2" provided="false" name="child" default_profile="0" language="java" parent_name="parent"/>
 
-  <active_rules id="1" profile_id="1" rule_id="1" failure_level="2" inherited="false" overridden="false"/>
+  <active_rules id="1" profile_id="1" rule_id="1" failure_level="2" inherited="0"/>
   <active_rule_parameters id="1" active_rule_id="1" rules_parameter_id="1" value="30"/>
 
 </dataset>
index f887123534a181f6b74363d5ea30b28372bd277c..e1c19620adb6ed60f42b4fe40e12963b02ff0381 100644 (file)
   
   <rules_profiles id="3" provided="false" name="child" default_profile="0" language="java" parent_name="new_parent"/>
 
-  <active_rules id="1" profile_id="1" rule_id="1" failure_level="2" inherited="false" overridden="false"/>
+  <active_rules id="1" profile_id="1" rule_id="1" failure_level="2" inherited="0"/>
 
-  <active_rules id="2" profile_id="2" rule_id="2" failure_level="2" inherited="false" overridden="false"/>
+  <active_rules id="2" profile_id="2" rule_id="2" failure_level="2" inherited="0"/>
   
-  <active_rules id="4" profile_id="3" rule_id="2" failure_level="2" inherited="true" overridden="false"/>
+  <active_rules id="4" profile_id="3" rule_id="2" failure_level="2" inherited="1"/>
   
 </dataset>
index 7c6bbdb1ab89dd1c1895a7a37b698e3ad2eceb9d..958b9a980310806ec27ecd2139635a7a640a1bf4 100644 (file)
   
   <rules_profiles id="3" provided="false" name="child" default_profile="0" language="java" parent_name="parent"/>
 
-  <active_rules id="1" profile_id="1" rule_id="1" failure_level="2" inherited="false" overridden="false"/>
+  <active_rules id="1" profile_id="1" rule_id="1" failure_level="2" inherited="0"/>
 
-  <active_rules id="2" profile_id="2" rule_id="2" failure_level="2" inherited="false" overridden="false"/>
+  <active_rules id="2" profile_id="2" rule_id="2" failure_level="2" inherited="0"/>
   
-  <active_rules id="3" profile_id="3" rule_id="1" failure_level="2" inherited="true" overridden="false"/>
+  <active_rules id="3" profile_id="3" rule_id="1" failure_level="2" inherited="1"/>
   
 </dataset>
index 393ca0e3a7c207fafda8dbc994651d617eaf7567..e51993058f644409d3346ffb8418188320d958ee 100644 (file)
@@ -7,6 +7,6 @@
   
   <rules_profiles id="2" provided="false" name="child" default_profile="0" language="java" parent_name="parent"/>
 
-  <active_rules id="1" profile_id="1" rule_id="1" failure_level="2" inherited="false" overridden="false"/>
+  <active_rules id="1" profile_id="1" rule_id="1" failure_level="2" inherited="0"/>
 
 </dataset>
index 9aa8741732b9829a874d63fbbad29dd30d0def28..2d08e30f5a348505f647fe2ac07066e2b16dda00 100644 (file)
@@ -7,8 +7,8 @@
   
   <rules_profiles id="2" provided="false" name="child" default_profile="0" language="java" parent_name="parent"/>
 
-  <active_rules id="1" profile_id="1" rule_id="1" failure_level="2" inherited="false" overridden="false"/>
+  <active_rules id="1" profile_id="1" rule_id="1" failure_level="2" inherited="0"/>
 
-  <active_rules id="2" profile_id="2" rule_id="1" failure_level="2" inherited="true" overridden="false"/>
+  <active_rules id="2" profile_id="2" rule_id="1" failure_level="2" inherited="1"/>
 
 </dataset>
index c7d7a39b4a8a7913e3b059844da2b89a5e89f9f1..93223e48dfc6af2daa1fe03bdc8b450daf8d170f 100644 (file)
@@ -7,6 +7,6 @@
   
   <rules_profiles id="2" provided="false" name="child" default_profile="0" language="java" parent_name="[null]"/>
 
-  <active_rules id="1" profile_id="1" rule_id="1" failure_level="2" inherited="false" overridden="false"/>
+  <active_rules id="1" profile_id="1" rule_id="1" failure_level="2" inherited="0"/>
 
 </dataset>
index 9aa8741732b9829a874d63fbbad29dd30d0def28..2d08e30f5a348505f647fe2ac07066e2b16dda00 100644 (file)
@@ -7,8 +7,8 @@
   
   <rules_profiles id="2" provided="false" name="child" default_profile="0" language="java" parent_name="parent"/>
 
-  <active_rules id="1" profile_id="1" rule_id="1" failure_level="2" inherited="false" overridden="false"/>
+  <active_rules id="1" profile_id="1" rule_id="1" failure_level="2" inherited="0"/>
 
-  <active_rules id="2" profile_id="2" rule_id="1" failure_level="2" inherited="true" overridden="false"/>
+  <active_rules id="2" profile_id="2" rule_id="1" failure_level="2" inherited="1"/>
 
 </dataset>
index 9aa8741732b9829a874d63fbbad29dd30d0def28..2d08e30f5a348505f647fe2ac07066e2b16dda00 100644 (file)
@@ -7,8 +7,8 @@
   
   <rules_profiles id="2" provided="false" name="child" default_profile="0" language="java" parent_name="parent"/>
 
-  <active_rules id="1" profile_id="1" rule_id="1" failure_level="2" inherited="false" overridden="false"/>
+  <active_rules id="1" profile_id="1" rule_id="1" failure_level="2" inherited="0"/>
 
-  <active_rules id="2" profile_id="2" rule_id="1" failure_level="2" inherited="true" overridden="false"/>
+  <active_rules id="2" profile_id="2" rule_id="1" failure_level="2" inherited="1"/>
 
 </dataset>
index c7d7a39b4a8a7913e3b059844da2b89a5e89f9f1..93223e48dfc6af2daa1fe03bdc8b450daf8d170f 100644 (file)
@@ -7,6 +7,6 @@
   
   <rules_profiles id="2" provided="false" name="child" default_profile="0" language="java" parent_name="[null]"/>
 
-  <active_rules id="1" profile_id="1" rule_id="1" failure_level="2" inherited="false" overridden="false"/>
+  <active_rules id="1" profile_id="1" rule_id="1" failure_level="2" inherited="0"/>
 
 </dataset>