From 67d2635947c3a86794ec9efa99e39b83f4b8f57f Mon Sep 17 00:00:00 2001 From: Vincent Potucek Date: Tue, 18 Feb 2025 17:44:23 +0100 Subject: [PATCH] Sync checkstyle on buildSrc Closes gh-34434 Signed-off-by: Vincent Potucek --- buildSrc/config/checkstyle/checkstyle.xml | 13 ++++++------- .../build/architecture/ArchitectureCheck.java | 7 ++++++- src/checkstyle/checkstyle.xml | 12 +++++------- 3 files changed, 17 insertions(+), 15 deletions(-) diff --git a/buildSrc/config/checkstyle/checkstyle.xml b/buildSrc/config/checkstyle/checkstyle.xml index c63f232e1e..b75fed0d65 100644 --- a/buildSrc/config/checkstyle/checkstyle.xml +++ b/buildSrc/config/checkstyle/checkstyle.xml @@ -1,6 +1,6 @@ - + @@ -12,16 +12,15 @@ - + - - - - + + + - \ No newline at end of file + diff --git a/buildSrc/src/main/java/org/springframework/build/architecture/ArchitectureCheck.java b/buildSrc/src/main/java/org/springframework/build/architecture/ArchitectureCheck.java index 78c2d94e90..ef150a5321 100644 --- a/buildSrc/src/main/java/org/springframework/build/architecture/ArchitectureCheck.java +++ b/buildSrc/src/main/java/org/springframework/build/architecture/ArchitectureCheck.java @@ -44,7 +44,12 @@ import org.gradle.api.tasks.PathSensitivity; import org.gradle.api.tasks.SkipWhenEmpty; import org.gradle.api.tasks.TaskAction; -import static org.springframework.build.architecture.ArchitectureRules.*; +import static org.springframework.build.architecture.ArchitectureRules.allPackagesShouldBeFreeOfTangles; +import static org.springframework.build.architecture.ArchitectureRules.classesShouldNotImportForbiddenTypes; +import static org.springframework.build.architecture.ArchitectureRules.javaClassesShouldNotImportKotlinAnnotations; +import static org.springframework.build.architecture.ArchitectureRules.noClassesShouldCallStringToLowerCaseWithoutLocale; +import static org.springframework.build.architecture.ArchitectureRules.noClassesShouldCallStringToUpperCaseWithoutLocale; +import static org.springframework.build.architecture.ArchitectureRules.packageInfoShouldBeNullMarked; /** * {@link Task} that checks for architecture problems. diff --git a/src/checkstyle/checkstyle.xml b/src/checkstyle/checkstyle.xml index 8a345036fc..eb8c068dd4 100644 --- a/src/checkstyle/checkstyle.xml +++ b/src/checkstyle/checkstyle.xml @@ -1,6 +1,6 @@ - + @@ -18,7 +18,7 @@ - + @@ -89,11 +89,9 @@ - - - - - + + +