Skip to content

Commit a99b0df

Browse files
author
Vincent Potucek
committed
activate unused rewrite checks failOnDryRunResults
1 parent 7dc2791 commit a99b0df

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

gradle/plugins/common/src/main/kotlin/junitbuild.java-library-conventions.gradle.kts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,15 @@ plugins {
1818

1919
rewrite {
2020
activeRecipe("org.openrewrite.java.migrate.UpgradeToJava17")
21+
activeRecipe("org.openrewrite.staticanalysis.RemoveUnusedPrivateMethods")
22+
activeRecipe("org.openrewrite.staticanalysis.MissingOverrideAnnotation")
23+
failOnDryRunResults = true
2124
}
2225

2326
dependencies {
2427
rewrite(platform("org.openrewrite.recipe:rewrite-recipe-bom:latest.release"))
2528
rewrite("org.openrewrite.recipe:rewrite-migrate-java")
29+
rewrite("org.openrewrite.recipe:rewrite-static-analysis")
2630
}
2731

2832
val mavenizedProjects: List<Project> by rootProject.extra
@@ -277,6 +281,10 @@ tasks {
277281
checkstyleMain {
278282
config = resources.text.fromFile(checkstyle.configDirectory.file("checkstyleMain.xml"))
279283
}
284+
assemble {
285+
dependsOn("rewriteDryRun")
286+
mustRunAfter("rewriteDryRun")
287+
}
280288
checkstyleTest {
281289
config = resources.text.fromFile(checkstyle.configDirectory.file("checkstyleTest.xml"))
282290
}

0 commit comments

Comments
 (0)