DoubleCheckedLockingCheck removed.
</description>
<properties>
- <checkstyle.version>5.5</checkstyle.version>
+ <checkstyle.version>5.6</checkstyle.version>
</properties>
<dependencies>
rule.checkstyle.com.puppycrawl.tools.checkstyle.checks.metrics.NPathComplexityCheck.name=NPath Complexity
rule.checkstyle.com.puppycrawl.tools.checkstyle.checks.metrics.NPathComplexityCheck.param.max=the maximum threshold allowed. Default is 200.
rule.checkstyle.com.puppycrawl.tools.checkstyle.checks.coding.SimplifyBooleanReturnCheck.name=Simplify Boolean Return
-rule.checkstyle.com.puppycrawl.tools.checkstyle.checks.coding.DoubleCheckedLockingCheck.name=Double Checked Locking
rule.checkstyle.com.puppycrawl.tools.checkstyle.checks.metrics.CyclomaticComplexityCheck.name=Cyclomatic Complexity
rule.checkstyle.com.puppycrawl.tools.checkstyle.checks.metrics.CyclomaticComplexityCheck.param.max=the maximum threshold allowed. Default is 10.
rule.checkstyle.com.puppycrawl.tools.checkstyle.checks.annotation.AnnotationUseStyleCheck.name=Annotation Use Style
+++ /dev/null
-Detect the double-checked locking idiom, a technique that tries to avoid synchronization overhead but is incorrect because of subtle artifacts of the java memory model.
\ No newline at end of file
<repositoryKey>checkstyle</repositoryKey>
<key>com.puppycrawl.tools.checkstyle.checks.coding.InnerAssignmentCheck</key>
</rule>
- <rule>
- <repositoryKey>checkstyle</repositoryKey>
- <key>com.puppycrawl.tools.checkstyle.checks.coding.DoubleCheckedLockingCheck</key>
- </rule>
<rule>
<repositoryKey>checkstyle</repositoryKey>
<key>com.puppycrawl.tools.checkstyle.checks.imports.UnusedImportsCheck</key>
</parameter>
</parameters>
</rule>
- <rule>
- <repositoryKey>checkstyle</repositoryKey>
- <key>com.puppycrawl.tools.checkstyle.checks.coding.DoubleCheckedLockingCheck</key>
- </rule>
<rule>
<repositoryKey>checkstyle</repositoryKey>
<key>com.puppycrawl.tools.checkstyle.checks.coding.EqualsHashCodeCheck</key>
<configKey><![CDATA[Checker/TreeWalker/DesignForExtension]]></configKey>
</rule>
- <rule key="com.puppycrawl.tools.checkstyle.checks.coding.DoubleCheckedLockingCheck">
- <priority>MAJOR</priority>
- <name><![CDATA[Double Checked Locking]]></name>
- <configKey><![CDATA[Checker/TreeWalker/DoubleCheckedLocking]]></configKey>
- </rule>
-
<rule key="com.puppycrawl.tools.checkstyle.checks.blocks.EmptyBlockCheck">
<priority>MAJOR</priority>
<name><![CDATA[Empty Block]]></name>
List<Rule> rules = repository.createRules();
assertThat(repository.getKey()).isEqualTo("checkstyle");
- assertThat(rules.size()).isEqualTo(129);
+ assertThat(rules.size()).isEqualTo(128);
}
@Test
ProfileDefinition sonarWay = new SonarWayProfile(new XMLProfileParser(newRuleFinder(), mock(MetricFinder.class)));
ValidationMessages validation = ValidationMessages.create();
RulesProfile profile = sonarWay.createProfile(validation);
- assertThat(profile.getActiveRulesByRepository(CheckstyleConstants.REPOSITORY_KEY).size()).isEqualTo(33);
+ assertThat(profile.getActiveRulesByRepository(CheckstyleConstants.REPOSITORY_KEY).size()).isEqualTo(32);
assertThat(validation.hasErrors()).isFalse();
}
ProfileDefinition definition = new SunConventionsProfile(new XMLProfileParser(newRuleFinder(), mock(MetricFinder.class)));
ValidationMessages validation = ValidationMessages.create();
RulesProfile sunProfile = definition.createProfile(validation);
- assertThat(sunProfile.getActiveRulesByRepository(CheckstyleConstants.REPOSITORY_KEY).size()).isEqualTo(59);
+ assertThat(sunProfile.getActiveRulesByRepository(CheckstyleConstants.REPOSITORY_KEY).size()).isEqualTo(58);
assertThat(validation.hasErrors()).isFalse();
}