Skip to content

Commit

Permalink
Enable switchBlockAsSingleDecisionPoint (#2383)
Browse files Browse the repository at this point in the history
  • Loading branch information
pkoenig10 authored Sep 15, 2022
1 parent c1f3e84 commit e132e2d
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
5 changes: 5 additions & 0 deletions changelog/@unreleased/pr-2383.v2.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
type: improvement
improvement:
description: The `CyclomaticComplexity` check is now configured with `switchBlockAsSingleDecisionPoint`.
links:
- https://github.com/palantir/gradle-baseline/pull/2383
Original file line number Diff line number Diff line change
Expand Up @@ -420,7 +420,9 @@
<property name="tagOrder" value="@param, @return, @throws, @deprecated"/>
<property name="target" value="CLASS_DEF, INTERFACE_DEF, ENUM_DEF, METHOD_DEF, CTOR_DEF, VARIABLE_DEF"/>
</module>
<module name="CyclomaticComplexity"/> <!-- Java Coding Guidelines: Reduce Cyclomatic Complexity -->
<module name="CyclomaticComplexity"> <!-- Java Coding Guidelines: Reduce Cyclomatic Complexity -->
<property name="switchBlockAsSingleDecisionPoint">true</property>
</module>
<module name="DesignForExtension"> <!-- Java Coding Guidelines: Design for extension -->
<property name="ignoredAnnotations" value="ParameterizedTest, Test, Before, BeforeEach, After, AfterEach, BeforeClass, BeforeAll, AfterClass, AfterAll"/>
</module>
Expand Down

0 comments on commit e132e2d

Please sign in to comment.