All Picnic Refaster rules
Recipe ID
tech.picnic.errorprone.refasterrules.AllRefasterRulesArtifactorg.openrewrite.recipe:rewrite-third-partyCollection of all Refaster rules from Picnic's error-prone-contrib project.
Composite recipeApache 2.0
Add to your build
Get a download tokenSign in with GitHub or Google, and your token replaces YOUR_DOWNLOAD_TOKEN below. Free for open source recipes like this one.
~/.gradle/gradle.properties
codeGenomeUsername=you@example.com
codeGenomeToken=YOUR_DOWNLOAD_TOKEN
build.gradle.kts
plugins {
id("org.openrewrite.rewrite") version("latest.release")
}
rewrite {
activeRecipe("tech.picnic.errorprone.refasterrules.AllRefasterRules")
}
repositories {
mavenCentral()
maven {
url = uri("https://artifacts.codegenomeproject.org/maven")
credentials {
username = providers.gradleProperty("codeGenomeUsername").get()
password = providers.gradleProperty("codeGenomeToken").get()
}
}
}
dependencies {
rewrite("org.openrewrite.recipe:rewrite-third-party:0.48.0")
}
Then run
./gradlew rewriteRunUsage
This recipe has no required configuration options. You’ll need the Moderne CLI configured before running the command below.
mod run . --recipe tech.picnic.errorprone.refasterrules.AllRefasterRulesIf the recipe isn’t available locally, install it with:
mod config recipes jar install org.openrewrite.recipe:rewrite-third-party:RELEASEDefinition
This recipe runs the following recipes in order.
- Refaster rules related to AssertJ assertions over
BigDecimalstech.picnic.errorprone.refasterrules.AssertJBigDecimalRulesRecipes AssertJBigIntegerRulesRefaster recipestech.picnic.errorprone.refasterrules.AssertJBigIntegerRulesRecipesAssertJBooleanRulesRefaster recipestech.picnic.errorprone.refasterrules.AssertJBooleanRulesRecipesAssertJByteRulesRefaster recipestech.picnic.errorprone.refasterrules.AssertJByteRulesRecipesAssertJCharSequenceRulesRefaster recipestech.picnic.errorprone.refasterrules.AssertJCharSequenceRulesRecipesAssertJComparableRulesRefaster recipestech.picnic.errorprone.refasterrules.AssertJComparableRulesRecipesAssertJDoubleRulesRefaster recipestech.picnic.errorprone.refasterrules.AssertJDoubleRulesRecipesAssertJDurationRulesRefaster recipestech.picnic.errorprone.refasterrules.AssertJDurationRulesRecipesAssertJEnumerableRulesRefaster recipestech.picnic.errorprone.refasterrules.AssertJEnumerableRulesRecipesAssertJFileRulesRefaster recipestech.picnic.errorprone.refasterrules.AssertJFileRulesRecipesAssertJFloatRulesRefaster recipestech.picnic.errorprone.refasterrules.AssertJFloatRulesRecipesAssertJInstantRulesRefaster recipestech.picnic.errorprone.refasterrules.AssertJInstantRulesRecipesAssertJIntegerRulesRefaster recipestech.picnic.errorprone.refasterrules.AssertJIntegerRulesRecipesAssertJIterableRulesRefaster recipestech.picnic.errorprone.refasterrules.AssertJIterableRulesRecipesAssertJIteratorRulesRefaster recipestech.picnic.errorprone.refasterrules.AssertJIteratorRulesRecipesAssertJLongRulesRefaster recipestech.picnic.errorprone.refasterrules.AssertJLongRulesRecipesAssertJMapRulesRefaster recipestech.picnic.errorprone.refasterrules.AssertJMapRulesRecipesAssertJNumberRulesRefaster recipestech.picnic.errorprone.refasterrules.AssertJNumberRulesRecipesAssertJObjectRulesRefaster recipestech.picnic.errorprone.refasterrules.AssertJObjectRulesRecipesAssertJOptionalRulesRefaster recipestech.picnic.errorprone.refasterrules.AssertJOptionalRulesRecipesAssertJPathRulesRefaster recipestech.picnic.errorprone.refasterrules.AssertJPathRulesRecipesAssertJPrimitiveRulesRefaster recipestech.picnic.errorprone.refasterrules.AssertJPrimitiveRulesRecipesAssertJRulesRefaster recipestech.picnic.errorprone.refasterrules.AssertJRulesRecipesAssertJShortRulesRefaster recipestech.picnic.errorprone.refasterrules.AssertJShortRulesRecipesAssertJStreamRulesRefaster recipestech.picnic.errorprone.refasterrules.AssertJStreamRulesRecipesAssertJStringRulesRefaster recipestech.picnic.errorprone.refasterrules.AssertJStringRulesRecipes- Refaster rules related to AssertJ assertions over expressions that may throw a
Throwablesubtypetech.picnic.errorprone.refasterrules.AssertJThrowingCallableRulesRecipes AssortedRulesRefaster recipestech.picnic.errorprone.refasterrules.AssortedRulesRecipesBigDecimalRulesRefaster recipestech.picnic.errorprone.refasterrules.BigDecimalRulesRecipesBugCheckerRulesRefaster recipestech.picnic.errorprone.refasterrules.BugCheckerRulesRecipesCharSequenceRulesRefaster recipestech.picnic.errorprone.refasterrules.CharSequenceRulesRecipesClassRulesRefaster recipestech.picnic.errorprone.refasterrules.ClassRulesRecipesCollectionRulesRefaster recipestech.picnic.errorprone.refasterrules.CollectionRulesRecipesComparatorRulesRefaster recipestech.picnic.errorprone.refasterrules.ComparatorRulesRecipesDequeRulesRefaster recipestech.picnic.errorprone.refasterrules.DequeRulesRecipesDoubleStreamRulesRefaster recipestech.picnic.errorprone.refasterrules.DoubleStreamRulesRecipesEqualityRulesRefaster recipestech.picnic.errorprone.refasterrules.EqualityRulesRecipesFileRulesRefaster recipestech.picnic.errorprone.refasterrules.FileRulesRecipesImmutableEnumSetRulesRefaster recipestech.picnic.errorprone.refasterrules.ImmutableEnumSetRulesRecipesImmutableListMultimapRulesRefaster recipestech.picnic.errorprone.refasterrules.ImmutableListMultimapRulesRecipesImmutableListRulesRefaster recipestech.picnic.errorprone.refasterrules.ImmutableListRulesRecipesImmutableMapRulesRefaster recipestech.picnic.errorprone.refasterrules.ImmutableMapRulesRecipesImmutableMultisetRulesRefaster recipestech.picnic.errorprone.refasterrules.ImmutableMultisetRulesRecipesImmutableSetMultimapRulesRefaster recipestech.picnic.errorprone.refasterrules.ImmutableSetMultimapRulesRecipesImmutableSetRulesRefaster recipestech.picnic.errorprone.refasterrules.ImmutableSetRulesRecipesImmutableSortedMapRulesRefaster recipestech.picnic.errorprone.refasterrules.ImmutableSortedMapRulesRecipesImmutableSortedMultisetRulesRefaster recipestech.picnic.errorprone.refasterrules.ImmutableSortedMultisetRulesRecipesImmutableSortedSetRulesRefaster recipestech.picnic.errorprone.refasterrules.ImmutableSortedSetRulesRecipesImmutableTableRulesRefaster recipestech.picnic.errorprone.refasterrules.ImmutableTableRulesRecipesInputStreamRulesRefaster recipestech.picnic.errorprone.refasterrules.InputStreamRulesRecipesIntStreamRulesRefaster recipestech.picnic.errorprone.refasterrules.IntStreamRulesRecipesJUnitRulesRefaster recipestech.picnic.errorprone.refasterrules.JUnitRulesRecipes- Refaster rules that replace JUnit APIs with AssertJ equivalents
tech.picnic.errorprone.refasterrules.JUnitToAssertJRulesRecipes Jackson2RulesRefaster recipestech.picnic.errorprone.refasterrules.Jackson2RulesRecipesJackson3RulesRefaster recipestech.picnic.errorprone.refasterrules.Jackson3RulesRecipesLongStreamRulesRefaster recipestech.picnic.errorprone.refasterrules.LongStreamRulesRecipesMapEntryRulesRefaster recipestech.picnic.errorprone.refasterrules.MapEntryRulesRecipesMapRulesRefaster recipestech.picnic.errorprone.refasterrules.MapRulesRecipesMicrometerRulesRefaster recipestech.picnic.errorprone.refasterrules.MicrometerRulesRecipesMockitoRulesRefaster recipestech.picnic.errorprone.refasterrules.MockitoRulesRecipesMultimapRulesRefaster recipestech.picnic.errorprone.refasterrules.MultimapRulesRecipesNullRulesRefaster recipestech.picnic.errorprone.refasterrules.NullRulesRecipesOptionalRulesRefaster recipestech.picnic.errorprone.refasterrules.OptionalRulesRecipesPatternRulesRefaster recipestech.picnic.errorprone.refasterrules.PatternRulesRecipesPreconditionsRulesRefaster recipestech.picnic.errorprone.refasterrules.PreconditionsRulesRecipesPrimitiveRulesRefaster recipestech.picnic.errorprone.refasterrules.PrimitiveRulesRecipesRandomGeneratorRulesRefaster recipestech.picnic.errorprone.refasterrules.RandomGeneratorRulesRecipesReactorRulesRefaster recipestech.picnic.errorprone.refasterrules.ReactorRulesRecipesRxJava2AdapterRulesRefaster recipestech.picnic.errorprone.refasterrules.RxJava2AdapterRulesRecipesSpringTestRulesRefaster recipestech.picnic.errorprone.refasterrules.SpringTestRulesRecipesStreamRulesRefaster recipestech.picnic.errorprone.refasterrules.StreamRulesRecipesStringBuilderRulesRefaster recipestech.picnic.errorprone.refasterrules.StringBuilderRulesRecipesStringRulesRefaster recipestech.picnic.errorprone.refasterrules.StringRulesRecipesSuggestedFixRulesRefaster recipestech.picnic.errorprone.refasterrules.SuggestedFixRulesRecipes- Refaster rules that replace TestNG APIs with AssertJ equivalents
tech.picnic.errorprone.refasterrules.TestNGToAssertJRulesRecipes TimeRulesRefaster recipestech.picnic.errorprone.refasterrules.TimeRulesRecipesWebClientRulesRefaster recipestech.picnic.errorprone.refasterrules.WebClientRulesRecipes
Data tables
Structured output this recipe can produce.
- Source files that had resultsSource files that were modified by the recipe run.
org.openrewrite.table.SourcesFileResults - Source files that had search resultsSearch results that were found during the recipe run.
org.openrewrite.table.SearchResults - Source files that errored on a recipeThe details of all errors produced by a recipe run.
org.openrewrite.table.SourcesFileErrors - Recipe performanceStatistics used in analyzing the performance of recipes.
org.openrewrite.table.RecipeRunStats