Skip to content
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

refactor: OpenRewrite recipe best practices #3799

Closed
wants to merge 1 commit into from

Conversation

timtebeek
Copy link
Contributor

@timtebeek
Copy link
Contributor Author

This is a first run ahead of automated enforcement of recipe runs against new pull requests, to minimize the changes produced.

@timtebeek timtebeek self-assigned this Dec 8, 2023
@timtebeek timtebeek requested a review from joanvr December 8, 2023 20:33
@@ -99,7 +99,8 @@ void removeUnappliedPluginWithoutVersion() {
void applySyntax() {
rewriteRun(
spec -> spec.recipe(new RemoveBuildPlugin("org.openrewrite.rewrite")),
buildGradle("""
buildGradle(
"""
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks like the indentation is still a bit off (6 instead of just 2).

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hmm; doesn't seem feasible to resolve from IDE, given the number of files and changes; even a quick attempt with IntelliJ then throws up more unrelated changes, so then perhaps best not to apply this one here just yet.

@timtebeek timtebeek closed this Dec 8, 2023
@timtebeek timtebeek deleted the refactor/open-rewrite-recipe-best-practices branch December 8, 2023 22:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

2 participants