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

Add recipe to replace text blocks with strings #2841

Merged

Conversation

AresEkb
Copy link
Contributor

@AresEkb AresEkb commented Feb 14, 2023

Maybe such a recipe will be useful, if it doesn't already exist.

@timtebeek
Copy link
Contributor

Sympathize with you there having to downgrade and appreciate the recipes!

Just to be sure we've covered all cases, would you mind adding a test with a comment just before the text block? Want to make sure we're not accidentally removing those comments with the current implementation, or any changes after this is merged.

@timtebeek
Copy link
Contributor

In either case these tests are going to come in handy (in reverse) when we implement #2742, and hopefully for you in the future!

@AresEkb
Copy link
Contributor Author

AresEkb commented Feb 14, 2023

I agree that comments should not be removed. Added tests and fixed the recipe.

@timtebeek timtebeek added the recipe Requested Recipe label Feb 14, 2023
@sambsnyd sambsnyd merged commit 5fd9627 into openrewrite:main Feb 14, 2023
@sambsnyd
Copy link
Member

Thanks for contributing all of these back, @AresEkb !

@sambsnyd sambsnyd added this to the 7.36.0 milestone Feb 16, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
recipe Requested Recipe
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

3 participants