-
Notifications
You must be signed in to change notification settings - Fork 5
Issue #101: run bestPractices recipe with build #105
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
This file was deleted.
This file was deleted.
| Original file line number | Diff line number | Diff line change | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -44,13 +44,14 @@ preconditions: | |||||||||
| recipeList: | ||||||||||
| - org.openrewrite.java.recipes.BlankLinesAroundFieldsWithAnnotations | ||||||||||
| - org.openrewrite.java.recipes.CorrectlySpacedDescriptions | ||||||||||
| # - org.openrewrite.java.recipes.ExecutionContextParameterName | ||||||||||
| - org.openrewrite.java.recipes.ExecutionContextParameterName: | ||||||||||
| parameterName: executionContext | ||||||||||
| - org.openrewrite.java.recipes.IsLiteralNullRecipe | ||||||||||
| - org.openrewrite.java.recipes.MissingOptionExample | ||||||||||
| - org.openrewrite.java.recipes.NoMutableStaticFieldsInRecipes | ||||||||||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This one was commented out above, but was recently extended to take a configurable variable name in response to the feedback received here: |
||||||||||
| - org.openrewrite.java.recipes.RecipeEqualsAndHashCodeCallSuper | ||||||||||
| - org.openrewrite.java.recipes.UseTreeRandomId | ||||||||||
| - org.openrewrite.java.recipes.migrate.RemoveTraitsUsageRecipes | ||||||||||
| - org.openrewrite.java.InlineMethodCalls | ||||||||||
| - org.openrewrite.staticanalysis.NeedBraces | ||||||||||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This recipe replaces the older |
||||||||||
| - org.openrewrite.staticanalysis.RemoveSystemOutPrintln | ||||||||||
| - org.openrewrite.java.RemoveAnnotation: | ||||||||||
|
|
||||||||||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -60,7 +60,8 @@ private final class RemoveRedundantImportsVisitor extends JavaIsoVisitor<Executi | |
| private Path sourcePath; | ||
|
|
||
| @Override | ||
| public J.CompilationUnit visitCompilationUnit(J.CompilationUnit cu, ExecutionContext ctx) { | ||
| public J.CompilationUnit visitCompilationUnit(J.CompilationUnit cu, | ||
| ExecutionContext executionContext) { | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Great to see the addition of |
||
|
|
||
| this.sourcePath = cu.getSourcePath().toAbsolutePath(); | ||
|
|
||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.