From e132e2ddb3b50fd35c29190f7766780455f70cb4 Mon Sep 17 00:00:00 2001 From: Patrick Koenig Date: Thu, 15 Sep 2022 05:17:49 -0700 Subject: [PATCH] Enable switchBlockAsSingleDecisionPoint (#2383) --- changelog/@unreleased/pr-2383.v2.yml | 5 +++++ .../resources/checkstyle/checkstyle.xml | 4 +++- 2 files changed, 8 insertions(+), 1 deletion(-) create mode 100644 changelog/@unreleased/pr-2383.v2.yml diff --git a/changelog/@unreleased/pr-2383.v2.yml b/changelog/@unreleased/pr-2383.v2.yml new file mode 100644 index 000000000..16364a842 --- /dev/null +++ b/changelog/@unreleased/pr-2383.v2.yml @@ -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 diff --git a/gradle-baseline-java-config/resources/checkstyle/checkstyle.xml b/gradle-baseline-java-config/resources/checkstyle/checkstyle.xml index 6803583ad..bc866b495 100644 --- a/gradle-baseline-java-config/resources/checkstyle/checkstyle.xml +++ b/gradle-baseline-java-config/resources/checkstyle/checkstyle.xml @@ -420,7 +420,9 @@ - + + true +