Skip to content

Commit afd6abd

Browse files
author
Vincent Potucek
committed
Issue #34833 automate the remediation of Checkstyle
Signed-off-by: Vincent Potucek <[email protected]>
1 parent 98cdae6 commit afd6abd

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

buildSrc/build.gradle

+7
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,19 @@
11
plugins {
22
id 'java-gradle-plugin'
33
id 'checkstyle'
4+
id 'org.openrewrite.rewrite' version '7.5.0'
45
}
56

67
repositories {
78
mavenCentral()
89
gradlePluginPortal()
910
}
1011

12+
rewrite {
13+
activeRecipe("org.openrewrite.staticanalysis.CodeCleanup")
14+
checkstyleConfigFile = file("src/checkstyle/checkstyle.xml")
15+
}
16+
1117
ext {
1218
def propertiesFile = new File(new File("$projectDir").parentFile, "gradle.properties")
1319
propertiesFile.withInputStream {
@@ -19,6 +25,7 @@ ext {
1925

2026
dependencies {
2127
checkstyle "io.spring.javaformat:spring-javaformat-checkstyle:${javaFormatVersion}"
28+
rewrite "org.openrewrite.recipe:rewrite-static-analysis:latest.release"
2229
implementation "org.jetbrains.kotlin:kotlin-gradle-plugin:${kotlinVersion}"
2330
implementation "com.tngtech.archunit:archunit:1.4.0"
2431
implementation "org.gradle:test-retry-gradle-plugin:1.6.2"

0 commit comments

Comments
 (0)