PrimitiveRules Refaster recipes
Recipe ID
tech.picnic.errorprone.refasterrules.PrimitiveRulesRecipesArtifactorg.openrewrite.recipe:rewrite-third-partyRefaster rules related to expressions dealing with primitives. Source.
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.PrimitiveRulesRecipes")
}
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.PrimitiveRulesRecipesIf 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 template
PrimitiveRules.LessThantech.picnic.errorprone.refasterrules.PrimitiveRulesRecipes$LessThanRecipe - Refaster template
PrimitiveRules.LessThanOrEqualTotech.picnic.errorprone.refasterrules.PrimitiveRulesRecipes$LessThanOrEqualToRecipe - Refaster template
PrimitiveRules.GreaterThantech.picnic.errorprone.refasterrules.PrimitiveRulesRecipes$GreaterThanRecipe - Refaster template
PrimitiveRules.GreaterThanOrEqualTotech.picnic.errorprone.refasterrules.PrimitiveRulesRecipes$GreaterThanOrEqualToRecipe - Refaster template
PrimitiveRules.MathClampInttech.picnic.errorprone.refasterrules.PrimitiveRulesRecipes$MathClampIntRecipe - Refaster template
PrimitiveRules.MathClampLongtech.picnic.errorprone.refasterrules.PrimitiveRulesRecipes$MathClampLongRecipe - Refaster template
PrimitiveRules.MathClampFloattech.picnic.errorprone.refasterrules.PrimitiveRulesRecipes$MathClampFloatRecipe - Refaster template
PrimitiveRules.MathClampDoubletech.picnic.errorprone.refasterrules.PrimitiveRulesRecipes$MathClampDoubleRecipe - Refaster template
PrimitiveRules.MathToIntExacttech.picnic.errorprone.refasterrules.PrimitiveRulesRecipes$MathToIntExactRecipe - Refaster template
PrimitiveRules.CharacterBytestech.picnic.errorprone.refasterrules.PrimitiveRulesRecipes$CharacterBytesRecipe - Refaster template
PrimitiveRules.ShortBytestech.picnic.errorprone.refasterrules.PrimitiveRulesRecipes$ShortBytesRecipe - Refaster template
PrimitiveRules.IntegerBytestech.picnic.errorprone.refasterrules.PrimitiveRulesRecipes$IntegerBytesRecipe - Refaster template
PrimitiveRules.LongBytestech.picnic.errorprone.refasterrules.PrimitiveRulesRecipes$LongBytesRecipe - Refaster template
PrimitiveRules.FloatBytestech.picnic.errorprone.refasterrules.PrimitiveRulesRecipes$FloatBytesRecipe - Refaster template
PrimitiveRules.DoubleBytestech.picnic.errorprone.refasterrules.PrimitiveRulesRecipes$DoubleBytesRecipe - Refaster template
PrimitiveRules.IntegerSignumIsPositivetech.picnic.errorprone.refasterrules.PrimitiveRulesRecipes$IntegerSignumIsPositiveRecipe - Refaster template
PrimitiveRules.IntegerSignumIsNegativetech.picnic.errorprone.refasterrules.PrimitiveRulesRecipes$IntegerSignumIsNegativeRecipe - Refaster template
PrimitiveRules.LongSignumIsPositivetech.picnic.errorprone.refasterrules.PrimitiveRulesRecipes$LongSignumIsPositiveRecipe - Refaster template
PrimitiveRules.LongSignumIsNegativetech.picnic.errorprone.refasterrules.PrimitiveRulesRecipes$LongSignumIsNegativeRecipe - Refaster template
PrimitiveRules.IntegerCompareUnsignedtech.picnic.errorprone.refasterrules.PrimitiveRulesRecipes$IntegerCompareUnsignedRecipe - Refaster template
PrimitiveRules.LongCompareUnsignedtech.picnic.errorprone.refasterrules.PrimitiveRulesRecipes$LongCompareUnsignedRecipe - Refaster template
PrimitiveRules.IntegerDivideUnsignedtech.picnic.errorprone.refasterrules.PrimitiveRulesRecipes$IntegerDivideUnsignedRecipe - Refaster template
PrimitiveRules.LongDivideUnsignedtech.picnic.errorprone.refasterrules.PrimitiveRulesRecipes$LongDivideUnsignedRecipe - Refaster template
PrimitiveRules.IntegerRemainderUnsignedtech.picnic.errorprone.refasterrules.PrimitiveRulesRecipes$IntegerRemainderUnsignedRecipe - Refaster template
PrimitiveRules.LongRemainderUnsignedtech.picnic.errorprone.refasterrules.PrimitiveRulesRecipes$LongRemainderUnsignedRecipe - Refaster template
PrimitiveRules.IntegerParseUnsignedInttech.picnic.errorprone.refasterrules.PrimitiveRulesRecipes$IntegerParseUnsignedIntRecipe - Refaster template
PrimitiveRules.LongParseUnsignedLongtech.picnic.errorprone.refasterrules.PrimitiveRulesRecipes$LongParseUnsignedLongRecipe - Refaster template
PrimitiveRules.IntegerParseUnsignedIntWithInttech.picnic.errorprone.refasterrules.PrimitiveRulesRecipes$IntegerParseUnsignedIntWithIntRecipe - Refaster template
PrimitiveRules.LongParseUnsignedLongWithInttech.picnic.errorprone.refasterrules.PrimitiveRulesRecipes$LongParseUnsignedLongWithIntRecipe - Refaster template
PrimitiveRules.IntegerToUnsignedStringtech.picnic.errorprone.refasterrules.PrimitiveRulesRecipes$IntegerToUnsignedStringRecipe - Refaster template
PrimitiveRules.LongToUnsignedStringtech.picnic.errorprone.refasterrules.PrimitiveRulesRecipes$LongToUnsignedStringRecipe - Refaster template
PrimitiveRules.IntegerToUnsignedStringWithInttech.picnic.errorprone.refasterrules.PrimitiveRulesRecipes$IntegerToUnsignedStringWithIntRecipe - Refaster template
PrimitiveRules.LongToUnsignedStringWithInttech.picnic.errorprone.refasterrules.PrimitiveRulesRecipes$LongToUnsignedStringWithIntRecipe - Refaster template
PrimitiveRules.ArraysCompareUnsignedBytetech.picnic.errorprone.refasterrules.PrimitiveRulesRecipes$ArraysCompareUnsignedByteRecipe - Refaster template
PrimitiveRules.ArraysCompareUnsignedInttech.picnic.errorprone.refasterrules.PrimitiveRulesRecipes$ArraysCompareUnsignedIntRecipe - Refaster template
PrimitiveRules.ArraysCompareUnsignedLongtech.picnic.errorprone.refasterrules.PrimitiveRulesRecipes$ArraysCompareUnsignedLongRecipe
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