|
| 1 | +--- |
| 2 | +type: specs.openrewrite.org/v1beta/recipe |
| 3 | +name: org.opensearch.openrewrite.SanityCheck |
| 4 | +displayName: Apply all Java & Gradle best practices |
| 5 | +description: Comprehensive code quality recipe combining modernization, security, and best practices. |
| 6 | +tags: |
| 7 | + - java |
| 8 | + - gradle |
| 9 | + - static-analysis |
| 10 | + - cleanup |
| 11 | +recipeList: |
| 12 | + - org.openrewrite.gradle.EnableGradleBuildCache |
| 13 | + - org.openrewrite.gradle.EnableGradleParallelExecution |
| 14 | + - org.openrewrite.gradle.GradleBestPractices |
| 15 | + - org.openrewrite.java.format.NormalizeLineBreaks |
| 16 | + - org.openrewrite.java.format.RemoveTrailingWhitespace |
| 17 | + - org.openrewrite.staticanalysis.RemoveUnusedPrivateMethods |
| 18 | + # TBD |
| 19 | + # - org.openrewrite.java.RemoveUnusedImports |
| 20 | + # - org.openrewrite.java.format.NormalizeFormat |
| 21 | + # - org.openrewrite.java.migrate.UpgradeToJava17 |
| 22 | + # - org.openrewrite.java.migrate.lang.FindVirtualThreadOpportunities # don't want to use: https://github.com/diffplug/spotless/pull/2684#discussion_r2433831887 |
| 23 | + # - org.openrewrite.java.migrate.lang.StringRulesRecipes |
| 24 | + # - org.openrewrite.java.migrate.util.JavaLangAPIs |
| 25 | + # - org.openrewrite.java.migrate.util.JavaUtilAPIs |
| 26 | + # - org.openrewrite.java.migrate.util.MigrateInflaterDeflaterToClose |
| 27 | + # - org.openrewrite.java.migrate.util.ReplaceStreamCollectWithToList |
| 28 | + # - org.openrewrite.java.migrate.util.SequencedCollection |
| 29 | + # - org.openrewrite.java.recipes.JavaRecipeBestPractices |
| 30 | + # - org.openrewrite.java.recipes.RecipeTestingBestPractices |
| 31 | + # - org.openrewrite.java.security.JavaSecurityBestPractices |
| 32 | + # - org.openrewrite.staticanalysis.BufferedWriterCreationRecipes |
| 33 | + # - org.openrewrite.staticanalysis.CommonStaticAnalysis |
| 34 | + # - org.openrewrite.staticanalysis.EqualsAvoidsNull |
| 35 | + # - org.openrewrite.staticanalysis.JavaApiBestPractices |
| 36 | + # - org.openrewrite.staticanalysis.LowercasePackage |
| 37 | + # - org.openrewrite.staticanalysis.MissingOverrideAnnotation |
| 38 | + # - org.openrewrite.staticanalysis.ModifierOrder |
| 39 | + # - org.openrewrite.staticanalysis.NoFinalizer |
| 40 | + # - org.openrewrite.staticanalysis.NoToStringOnStringType |
| 41 | + # - org.openrewrite.staticanalysis.NoValueOfOnStringType |
| 42 | + # - org.openrewrite.staticanalysis.RemoveUnusedLocalVariables |
| 43 | + # - org.openrewrite.staticanalysis.RemoveUnusedPrivateFields |
| 44 | + # - org.openrewrite.staticanalysis.ReplaceApacheCommonsLang3ValidateNotNullWithObjectsRequireNonNull |
| 45 | + # - org.openrewrite.staticanalysis.SimplifyTernaryRecipes |
| 46 | + # - org.openrewrite.staticanalysis.URLEqualsHashCodeRecipes |
| 47 | + # - org.openrewrite.staticanalysis.UnnecessaryCloseInTryWithResources |
| 48 | + # - org.openrewrite.staticanalysis.UnnecessaryExplicitTypeArguments |
| 49 | + # - org.openrewrite.staticanalysis.UnnecessaryParentheses |
| 50 | + # - org.openrewrite.staticanalysis.UnnecessaryReturnAsLastStatement |
| 51 | + # - tech.picnic.errorprone.refasterrules.BigDecimalRulesRecipes |
| 52 | + # - tech.picnic.errorprone.refasterrules.CharSequenceRulesRecipes |
| 53 | + # - tech.picnic.errorprone.refasterrules.ClassRulesRecipes |
| 54 | + # - tech.picnic.errorprone.refasterrules.CollectionRulesRecipes |
| 55 | + # - tech.picnic.errorprone.refasterrules.ComparatorRulesRecipes |
| 56 | + # - tech.picnic.errorprone.refasterrules.EqualityRulesRecipes |
| 57 | + # - tech.picnic.errorprone.refasterrules.FileRulesRecipes |
| 58 | + # - tech.picnic.errorprone.refasterrules.MapRulesRecipes |
| 59 | + # - tech.picnic.errorprone.refasterrules.MicrometerRulesRecipes |
| 60 | + # - tech.picnic.errorprone.refasterrules.MockitoRulesRecipes |
| 61 | + # - tech.picnic.errorprone.refasterrules.NullRulesRecipes |
| 62 | + # - tech.picnic.errorprone.refasterrules.OptionalRulesRecipes |
| 63 | + # - tech.picnic.errorprone.refasterrules.PatternRulesRecipes |
| 64 | + # - tech.picnic.errorprone.refasterrules.PreconditionsRulesRecipes |
| 65 | + # - tech.picnic.errorprone.refasterrules.PrimitiveRulesRecipes |
| 66 | + # - tech.picnic.errorprone.refasterrules.StreamRulesRecipes |
| 67 | + # - tech.picnic.errorprone.refasterrules.StringRulesRecipes |
| 68 | + # - tech.picnic.errorprone.refasterrules.TimeRulesRecipes |
| 69 | +--- |
0 commit comments