OpenRewrite best practices
Apply best practices to OpenRewrite recipes.
Composite Recipes
Recipes that include further recipes, often including the individual recipes below.
- Java Recipe best practices
- Migrate tests to Java 21
- Recipe nullability best practices
- Recipe testing best practices
Recipes
- Add a blank line around fields with annotations
- Automatically select recipe examples from the unit test cases of a recipe
- Correctly spaced descriptions
- Extract documentation examples from tests
- Find OpenRewrite recipes
- Find missing
@Optionexamplevalues - Minimal indentation for
SourceSpecstext blocks - New line at the end of
SourceSpecstext blocks - Recipe classes should not have mutable
staticfields - Refactor RewriteTest to use defaults method
- Refaster template
IsLiteralNull - Replace null with RewriteTest.doesNotExist()
- RewriteTest classes should not be public
- Show
@DocumentExamples first - Single
@DocumentExampleper test class - Use
Tree.randomId()in LST constructors - Use a standard name for
ExecutionContext - Use of
@EqualsAndHashCodeonRecipe