Add a comment to an XML tag
Apache 2.0Adds a comment as the first element in an XML tag.
org. openrewrite. xml. AddCommentToXmlTagRequired
An XPath expression used to find matching tags.
The text to add as a comment..
mod run . --recipe= org. openrewrite. xml. AddCommentToXmlTag \
-P xPath= / project/ dependencies/ dependency \
-P commentText= 'This is excluded due to CVE <X> and will be removed when we upgrade the next version is available. 'Install it once from Recipe actions, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.