Files
2025-11-30 08:45:33 +08:00

8.0 KiB

1Fully Qualified Recipe NameRecipe NameDescription
2org.openrewrite.java.logging.containerized.ContainerizeLog4j2PropertiesConfigurationContainerize Log4j2 Properties configurationTransforms Log4j2 Properties configuration to write logs to stdout instead of files suitable for containerized environments.
3org.openrewrite.java.logging.containerized.ContainerizeLog4j2XmlConfigurationContainerize Log4j2 XML configurationTransforms Log4j2 XML configuration to write logs to stdout instead of files suitable for containerized environments.
4org.openrewrite.java.logging.containerized.ContainerizeLog4j2YamlConfigurationContainerize Log4j2 YAML configurationTransforms Log4j2 YAML configuration to write logs to stdout instead of files suitable for containerized environments. (Implementation in progress)
5io.moderne.kafka.RemoveDeprecatedKafkaPropertiesRemove deprecated Kafka propertyRemoves a specific Kafka property that is no longer supported in Kafka 4.0.
6org.openrewrite.gradle.AddPropertyAdd Gradle propertyAdd a property to the `gradle.properties` file.
7org.openrewrite.json.AddKeyValueAdd value to JSON ObjectAdds a `value` at the specified `keyPath` with the specified `key` if the key doesn't already exist.
8org.openrewrite.json.ChangeKeyChange keyChange a JSON mapping entry key while leaving the value intact.
9org.openrewrite.json.ChangeValueChange valueChange a JSON mapping entry value leaving the key intact.
10org.openrewrite.json.DeleteKeyDelete keyDelete a JSON mapping entry key.
11org.openrewrite.json.format.AutoFormatFormat JSONFormat JSON code using a standard comprehensive set of JSON formatting recipes.
12org.openrewrite.json.format.IndentsJSON indentFormat tabs and indents in JSON.
13org.openrewrite.json.format.WrappingAndBracesJSON new linesSplit members into separate lines in JSON.
14org.openrewrite.json.search.FindKeyFind JSON object membersFind JSON object members by JsonPath expression.
15org.openrewrite.json.CreateJsonFileCreate JSON fileCreate a new JSON file.
16org.openrewrite.maven.AddProfileAdd Maven profileAdd a maven profile to a `pom.xml` file.
17org.openrewrite.maven.ChangePropertyValueChange Maven project property valueChanges the specified Maven project property value leaving the key intact.
18org.openrewrite.maven.RemovePropertyRemove Maven project propertyRemoves the specified Maven project property from the pom.xml.
19org.openrewrite.maven.search.FindScmFind SCM tagFinds any `<scm>` tag directly inside the `<project>` root of a Maven pom.xml file.
20org.openrewrite.properties.AddPropertyAdd a new propertyAdds a new property to a property file. Attempts to place the new property in alphabetical order by the property keys. Whitespace before and after the `=` must be included in the property and value.
21org.openrewrite.properties.AddPropertyCommentAdd comment before property keyAdd a new comment before a property key if not already present optionally commenting out the property.
22org.openrewrite.properties.ChangePropertyKeyChange property keyChange a property key leaving the value intact.
23org.openrewrite.properties.ChangePropertyValueChange property valueChange a property value leaving the key intact.
24org.openrewrite.properties.DeletePropertyDelete property by keyDeletes key/value pairs from properties files as well as any comments that immediately precede the key/value pair. Comments separated by two or more newlines from the deleted key/value pair are preserved.
25org.openrewrite.properties.search.FindPropertiesFind propertyFinds occurrences of a property key.
26org.openrewrite.properties.CreatePropertiesFileCreate Properties fileCreate a new Properties file.
27org.openrewrite.xml.AddCommentToXmlTagAdd a comment to an XML tagAdds a comment as the first element in an XML tag.
28org.openrewrite.xml.AddOrUpdateChildTagAdd or update child tagAdds or updates a child element below the parent(s) matching the provided `parentXPath` expression. If a child with the same name already exists it will be replaced by default. Otherwise a new child will be added. This ensures idempotent behaviour.
29org.openrewrite.xml.AddTagAttributeAdd new XML attribute for an ElementAdd new XML attribute with value on a specified element.
30org.openrewrite.xml.ChangeNamespaceValueChange XML attribute of a specific resource versionAlters XML Attribute value within specified element of a specific resource versions.
31org.openrewrite.xml.ChangeTagAttributeChange XML attributeAlters XML attribute value on a specified element.
32org.openrewrite.xml.ChangeTagNameChange XML tag nameAlters the name of XML tags matching the provided expression.
33org.openrewrite.xml.ChangeTagValueChange XML tag valueAlters the value of XML tags matching the provided expression. When regex is enabled the replacement happens only for text nodes provided the pattern matches.
34org.openrewrite.xml.RemoveEmptyXmlTagsRemove empty XML TagRemoves XML tags that do not have attributes or children including self closing tags.
35org.openrewrite.xml.RemoveTrailingWhitespaceRemove trailing whitespaceRemove any extra trailing whitespace from the end of each line.
36org.openrewrite.xml.RemoveXmlTagRemove XML tagRemoves XML tags matching the provided expression.
37org.openrewrite.xml.XsltTransformationXSLT transformationApply the specified XSLT transformation on matching files. Note that there are no format matching guarantees when running this recipe.
38org.openrewrite.xml.format.AutoFormatFormat XMLIndents XML using the most common indentation size and tabs or space choice in use in the file.
39org.openrewrite.xml.format.LineBreaksBlank linesAdd line breaks at appropriate places between XML syntax elements.
40org.openrewrite.xml.format.NormalizeFormatNormalize formatMove whitespace to the outermost LST element possible.
41org.openrewrite.xml.format.NormalizeLineBreaksNormalize line breaksConsistently use either Windows style (CRLF) or Linux style (LF) line breaks. If no `GeneralFormatStyle` is specified this will use whichever style of line endings are more common.
42org.openrewrite.xml.format.NormalizeTabsOrSpacesNormalize to tabs or spacesConsistently use either tabs or spaces in indentation.
43org.openrewrite.xml.format.TabsAndIndentsTabs and indentsFormat tabs and indents in XML code.
44org.openrewrite.xml.search.DoesNotUseNamespaceUriFind files without Namespace URIFind XML root elements that do not have a specific Namespace URI optionally restricting the search by an XPath expression.
45org.openrewrite.xml.search.FindNamespacePrefixFind XML namespace prefixesFind XML namespace prefixes optionally restricting the search by a XPath expression.
46org.openrewrite.xml.search.FindTagsFind XML tagsFind XML tags by XPath expression.
47org.openrewrite.xml.search.HasNamespaceUriFind XML namespace URIsFind XML namespace URIs optionally restricting the search by a XPath expression.
48org.openrewrite.xml.security.AddOwaspDateBoundSuppressionsAdd date bounds to OWASP suppressionsAdds an expiration date to all OWASP suppressions in order to ensure that they are periodically reviewed. For use with the OWASP `dependency-check` tool. More details: https://jeremylong.github.io/DependencyCheck/general/suppression.html.
49org.openrewrite.xml.security.IsOwaspSuppressionsFileFind OWASP vulnerability suppression XML filesThese files are used to suppress false positives in OWASP [Dependency Check](https://jeremylong.github.io/DependencyCheck).
50org.openrewrite.xml.security.RemoveOwaspSuppressionsRemove out-of-date OWASP suppressionsRemove all OWASP suppressions with a suppression end date in the past as these are no longer valid. For use with the OWASP `dependency-check` tool. More details on OWASP suppression files can be found [here](https://jeremylong.github.io/DependencyCheck/general/suppression.html).
51org.openrewrite.xml.security.UpdateOwaspSuppressionDateUpdate OWASP suppression date boundsUpdates the expiration date for OWASP suppressions having a matching cve tag. For use with the OWASP `dependency-check` tool. More details: https://jeremylong.github.io/DependencyCheck/general/suppression.html.