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

feat: Added option to comment out property in yaml #4741

Merged

Conversation

ashakirin
Copy link
Contributor

@ashakirin ashakirin commented Dec 4, 2024

ashakirin and others added 6 commits December 5, 2024 10:31
…erty.java

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
…erty.java

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Copy link
Contributor

@timtebeek timtebeek left a comment

Choose a reason for hiding this comment

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

Thanks for the addition and thorough tests! I've added some light polish to ensure any declarative usages do not fail with an NPE on the nullable field added.

@timtebeek timtebeek merged commit 20de532 into openrewrite:main Dec 5, 2024
2 checks passed
@ashakirin
Copy link
Contributor Author

ashakirin commented Dec 6, 2024

@timtebeek Thanks, Tim!
The only thing that concerns me a bit, is that recipes for normal properties and for yaml doing the same things, but have two different names and different defaults:

  • yaml: CommentOutProperty
  • properties: AddPropertyComment

Do you think would be possible to consolidate the names?
Andrei

@timtebeek
Copy link
Contributor

Sure! the yaml CommentOutProperty seems to predate the recent AddPropertyComment; would you be ok with seeing that later one renamed? As folks externally might have already incorporated that older recipe, whereas for the new one not as much.

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