All Downloads are FREE. Search and download functionalities are using the official Maven repository.

META-INF.rewrite.openrewrite.yml Maven / Gradle / Ivy

There is a newer version: 1.10.0
Show newest version
#
# Copyright 2024 the original author or authors.
# 

# Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at #

# https://www.apache.org/licenses/LICENSE-2.0 #

# Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. # type: specs.openrewrite.org/v1beta/recipe name: org.openrewrite.recipes.OpenRewriteBestPractices displayName: OpenRewrite best practices description: Best practices for OpenRewrite recipe development. recipeList: - org.openrewrite.recipes.JavaRecipeBestPractices - org.openrewrite.recipes.RecipeTestingBestPractices - org.openrewrite.recipes.RecipeNullabilityBestPractices - org.openrewrite.java.OrderImports - org.openrewrite.java.format.EmptyNewlineAtEndOfFile - org.openrewrite.staticanalysis.InlineVariable - org.openrewrite.staticanalysis.MissingOverrideAnnotation - org.openrewrite.staticanalysis.UseDiamondOperator --- type: specs.openrewrite.org/v1beta/recipe name: org.openrewrite.recipes.JavaRecipeBestPractices displayName: Java Recipe best practices description: Best practices for Java recipe development. preconditions: - org.openrewrite.java.search.FindTypes: fullyQualifiedTypeName: org.openrewrite.Recipe checkAssignability: true recipeList: - org.openrewrite.java.recipes.BlankLinesAroundFieldsWithAnnotations - org.openrewrite.java.recipes.ExecutionContextParameterName - org.openrewrite.java.recipes.MissingOptionExample - org.openrewrite.java.recipes.RecipeEqualsAndHashCodeCallSuper - org.openrewrite.java.recipes.UseTreeRandomId - org.openrewrite.staticanalysis.NeedBraces - org.openrewrite.staticanalysis.RemoveSystemOutPrintln --- type: specs.openrewrite.org/v1beta/recipe name: org.openrewrite.recipes.RecipeTestingBestPractices displayName: Recipe testing best practices description: Best practices for testing recipes. preconditions: - org.openrewrite.java.search.FindTypes: fullyQualifiedTypeName: org.openrewrite.test.RewriteTest checkAssignability: true recipeList: - org.openrewrite.java.recipes.RewriteTestClassesShouldNotBePublic - org.openrewrite.java.recipes.SelectRecipeExamples - org.openrewrite.java.recipes.SourceSpecTextBlockIndentation - org.openrewrite.java.testing.cleanup.RemoveTestPrefix - org.openrewrite.java.testing.cleanup.TestsShouldNotBePublic - org.openrewrite.staticanalysis.NeedBraces - org.openrewrite.staticanalysis.RemoveSystemOutPrintln --- type: specs.openrewrite.org/v1beta/recipe name: org.openrewrite.recipes.RecipeNullabilityBestPractices displayName: Recipe nullability best practices description: Use OpenRewrite internal nullability annotations; drop JetBrains annotations; use `package-info.java` instead. recipeList: - org.openrewrite.staticanalysis.NullableOnMethodReturnType - org.openrewrite.java.ChangeType: oldFullyQualifiedTypeName: org.jetbrains.annotations.Nullable newFullyQualifiedTypeName: org.openrewrite.internal.lang.Nullable - org.openrewrite.java.ChangeType: oldFullyQualifiedTypeName: javax.annotation.Nullable newFullyQualifiedTypeName: org.openrewrite.internal.lang.Nullable - org.openrewrite.java.ChangeType: oldFullyQualifiedTypeName: jakarta.annotation.Nullable newFullyQualifiedTypeName: org.openrewrite.internal.lang.Nullable - org.openrewrite.java.RemoveAnnotation: annotationPattern: '@org.jetbrains.annotations.NotNull' - org.openrewrite.java.RemoveAnnotation: annotationPattern: '@javax.annotation.Nonnull' - org.openrewrite.java.RemoveAnnotation: annotationPattern: '@jakarta.annotation.Nonnull'





© 2015 - 2024 Weber Informatics LLC | Privacy Policy