Skip to content

Commit

Permalink
Use error-prone-contrib AssertJ recipes (#559)
Browse files Browse the repository at this point in the history
  • Loading branch information
timtebeek authored Aug 11, 2024
1 parent ba9e367 commit 37e9667
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 0 deletions.
1 change: 1 addition & 0 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ dependencies {
implementation("org.openrewrite.recipe:rewrite-static-analysis:$rewriteVersion")
runtimeOnly("org.openrewrite:rewrite-java-17")

runtimeOnly("tech.picnic.error-prone-support:error-prone-contrib:latest.release:recipes")
compileOnly("org.junit.jupiter:junit-jupiter-engine:latest.release")

compileOnly("org.projectlombok:lombok:latest.release")
Expand Down
17 changes: 17 additions & 0 deletions src/main/resources/META-INF/rewrite/assertj.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,22 @@ recipeList:
- org.openrewrite.java.testing.assertj.SimplifyChainedAssertJAssertions
- org.openrewrite.java.testing.assertj.IsEqualToEmptyString

- tech.picnic.errorprone.refasterrules.AssertJBigDecimalRulesRecipes
- tech.picnic.errorprone.refasterrules.AssertJBigIntegerRulesRecipes
- tech.picnic.errorprone.refasterrules.AssertJBooleanRulesRecipes
- tech.picnic.errorprone.refasterrules.AssertJByteRulesRecipes
- tech.picnic.errorprone.refasterrules.AssertJCharSequenceRulesRecipes
- tech.picnic.errorprone.refasterrules.AssertJDoubleRulesRecipes
- tech.picnic.errorprone.refasterrules.AssertJFloatRulesRecipes
- tech.picnic.errorprone.refasterrules.AssertJIntegerRulesRecipes
- tech.picnic.errorprone.refasterrules.AssertJLongRulesRecipes
- tech.picnic.errorprone.refasterrules.AssertJNumberRulesRecipes
- tech.picnic.errorprone.refasterrules.AssertJPrimitiveRulesRecipes
- tech.picnic.errorprone.refasterrules.AssertJRulesRecipes
- tech.picnic.errorprone.refasterrules.AssertJShortRulesRecipes
- tech.picnic.errorprone.refasterrules.AssertJStringRulesRecipes
- tech.picnic.errorprone.refasterrules.AssertJThrowingCallableRulesRecipes

---
type: specs.openrewrite.org/v1beta/recipe
name: org.openrewrite.java.testing.assertj.StaticImports
Expand Down Expand Up @@ -381,3 +397,4 @@ recipeList:
version: 3.x
onlyIfUsing: org.assertj.core.api.Assertions
acceptTransitive: true
- tech.picnic.errorprone.refasterrules.JUnitToAssertJRulesRecipes

0 comments on commit 37e9667

Please sign in to comment.