|
| 1 | +# |
| 2 | +# Copyright 2025 the original author or authors. |
| 3 | +# <p> |
| 4 | +# Licensed under the Apache License, Version 2.0 (the "License"); |
| 5 | +# you may not use this file except in compliance with the License. |
| 6 | +# You may obtain a copy of the License at |
| 7 | +# <p> |
| 8 | +# https://www.apache.org/licenses/LICENSE-2.0 |
| 9 | +# <p> |
| 10 | +# Unless required by applicable law or agreed to in writing, software |
| 11 | +# distributed under the License is distributed on an "AS IS" BASIS, |
| 12 | +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 13 | +# See the License for the specific language governing permissions and |
| 14 | +# limitations under the License. |
| 15 | +# |
| 16 | +--- |
| 17 | +# Apply a subset of best practices to OpenRewrite recipes; typically run before committing changes. |
| 18 | +# Any differences produced by this recipe will result in code suggestion comments on pull requests. |
| 19 | +--- |
| 20 | +type: specs.openrewrite.org/v1beta/recipe |
| 21 | +name: org.openrewrite.recipes.OpenRewriteBestPracticesSubset |
| 22 | +displayName: OpenRewrite best practices |
| 23 | +description: Best practices for OpenRewrite recipe development. |
| 24 | +recipeList: |
| 25 | + - org.openrewrite.recipes.JavaRecipeBestPractices |
| 26 | + - org.openrewrite.recipes.RecipeTestingBestPractices |
| 27 | + - org.openrewrite.recipes.RecipeNullabilityBestPractices |
| 28 | + - org.openrewrite.java.OrderImports |
| 29 | + - org.openrewrite.java.RemoveUnusedImports |
| 30 | + - org.openrewrite.java.format.EmptyNewlineAtEndOfFile |
| 31 | + - org.openrewrite.java.format.RemoveTrailingWhitespace |
| 32 | + - org.openrewrite.staticanalysis.CompareEnumsWithEqualityOperator |
| 33 | + - org.openrewrite.staticanalysis.InlineVariable |
| 34 | + - org.openrewrite.staticanalysis.LambdaBlockToExpression |
| 35 | + - org.openrewrite.staticanalysis.MissingOverrideAnnotation |
| 36 | + - org.openrewrite.staticanalysis.OperatorWrap: |
| 37 | + wrapOption: EOL |
| 38 | + #- org.openrewrite.staticanalysis.RemoveUnusedLocalVariables |
| 39 | + - org.openrewrite.staticanalysis.RemoveUnusedPrivateFields |
| 40 | + - org.openrewrite.staticanalysis.RemoveUnusedPrivateMethods |
| 41 | + #- org.openrewrite.staticanalysis.UnnecessaryThrows |
| 42 | + - org.openrewrite.staticanalysis.UseDiamondOperator |
0 commit comments