You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
maven,org.openrewrite:rewrite-java,org.openrewrite.java.search.ModuleContainsFile,Module contains file,"Intended to be used primarily as a precondition for other recipes, this recipe checks if a module contains a specific file or files matching a pattern. Only files belonging to modules containing the specified file are marked with a `SearchResult` marker. This is more specific than `RepositoryContainsFile` which marks all files in the repository if any file matches.",1,Search,Java,,Basic building blocks for transforming Java code.,"[{""name"":""filePattern"",""type"":""String"",""displayName"":""File pattern"",""description"":""A glob expression representing a file path to search for (relative to the project root). Blank/null matches all. Multiple patterns may be specified, separated by a semicolon `;`. If multiple patterns are supplied any of the patterns matching will be interpreted as a match."",""example"":"".github/workflows/*.yml""}]",
100
100
maven,org.openrewrite:rewrite-java,org.openrewrite.java.search.ModuleUsesType,Module uses type,"Intended to be used primarily as a precondition for other recipes, this recipe checks if a module uses a specified type. Only files belonging to modules that use the specified type are marked with a `SearchResult` marker. This is more specific than `UsesType` which only marks the files that directly use the type.",1,Search,Java,,Basic building blocks for transforming Java code.,"[{""name"":""fullyQualifiedTypeName"",""type"":""String"",""displayName"":""Type pattern"",""description"":""A fully-qualified type name, optionally with a `*` wildcard to match any type in a package or `..` to match types in subpackages as well."",""example"":""org.springframework..*"",""required"":true},{""name"":""includeImplicit"",""type"":""Boolean"",""displayName"":""Include implicit usages"",""description"":""When enabled, implicit usages of types (such as through method return types and parameter types) will also be considered. Default is false.""}]",
101
101
maven,org.openrewrite:rewrite-java,org.openrewrite.java.search.FindSecrets,Find plain text secrets,Find secrets stored in plain text in code.,3,Search,Java,,Basic building blocks for transforming Java code.,,
102
+
maven,org.openrewrite:rewrite-java,org.openrewrite.java.ai.ClassDefinitionLength,Calculate token length of classes,Locates class definitions and predicts the number of token in each.,1,AI,Java,Recipes supporting AI code generation and analysis.,Basic building blocks for transforming Java code.,,"[{""name"":""org.openrewrite.java.table.TokenCount"",""displayName"":""Token count"",""description"":""The number of tokens from a code snippet"",""columns"":[{""name"":""codeSnippet"",""type"":""String"",""displayName"":""Name of Class or Method"",""description"":""The name of the class or method.""},{""name"":""tokens"",""type"":""int"",""displayName"":""Tokens"",""description"":""The number of tokens estimated in the code snippet.""}]}]"
103
+
maven,org.openrewrite:rewrite-java,org.openrewrite.java.ai.MethodDefinitionLength,Calculate token length of method definitions,Locates method definitions and predicts the number of token in each.,1,AI,Java,Recipes supporting AI code generation and analysis.,Basic building blocks for transforming Java code.,,"[{""name"":""org.openrewrite.java.table.TokenCount"",""displayName"":""Token count"",""description"":""The number of tokens from a code snippet"",""columns"":[{""name"":""codeSnippet"",""type"":""String"",""displayName"":""Name of Class or Method"",""description"":""The name of the class or method.""},{""name"":""tokens"",""type"":""int"",""displayName"":""Tokens"",""description"":""The number of tokens estimated in the code snippet.""}]}]"
102
104
maven,org.openrewrite:rewrite-java,org.openrewrite.java.ChangeMethodName,Change method name,Rename a method.,1,,JavaScript,,Basic building blocks for transforming JavaScript code.,"[{""name"":""methodPattern"",""type"":""String"",""displayName"":""Method pattern"",""description"":""A [method pattern](https://docs.openrewrite.org/reference/method-patterns) is used to find matching method invocations. For example, to find all method invocations in the Guava library, use the pattern: `com.google.common..*#*(..)`.<br/><br/>The pattern format is `<PACKAGE>#<METHOD_NAME>(<ARGS>)`. <br/><br/>`..*` includes all subpackages of `com.google.common`. <br/>`*(..)` matches any method name with any number of arguments. <br/><br/>For more specific queries, like Guava's `ImmutableMap`, use `com.google.common.collect.ImmutableMap#*(..)` to narrow down the results."",""example"":""org.mockito.Matchers anyVararg()"",""required"":true},{""name"":""newMethodName"",""type"":""String"",""displayName"":""New method name"",""description"":""The method name that will replace the existing name."",""example"":""any"",""required"":true},{""name"":""matchOverrides"",""type"":""Boolean"",""displayName"":""Match on overrides"",""description"":""When enabled, find methods that are overrides of the method pattern.""},{""name"":""ignoreDefinition"",""type"":""Boolean"",""displayName"":""Ignore type definition"",""description"":""When set to `true` the definition of the old type will be left untouched. This is useful when you're replacing usage of a class but don't want to rename it.""}]",
103
105
maven,org.openrewrite:rewrite-java,org.openrewrite.java.ChangePackage,Rename package name,"A recipe that will rename a package name in package statements, imports, and fully-qualified types.",1,,JavaScript,,Basic building blocks for transforming JavaScript code.,"[{""name"":""oldPackageName"",""type"":""String"",""displayName"":""Old package name"",""description"":""The package name to replace."",""example"":""com.yourorg.foo"",""required"":true},{""name"":""newPackageName"",""type"":""String"",""displayName"":""New package name"",""description"":""New package name to replace the old package name with."",""example"":""com.yourorg.bar"",""required"":true},{""name"":""recursive"",""type"":""Boolean"",""displayName"":""Recursive"",""description"":""Recursively change subpackage names""}]",
104
106
maven,org.openrewrite:rewrite-java,org.openrewrite.java.ChangeType,Change type,Change a given type to another.,1,,JavaScript,,Basic building blocks for transforming JavaScript code.,"[{""name"":""oldFullyQualifiedTypeName"",""type"":""String"",""displayName"":""Old fully-qualified type name"",""description"":""Fully-qualified class name of the original type."",""example"":""org.junit.Assume"",""required"":true},{""name"":""newFullyQualifiedTypeName"",""type"":""String"",""displayName"":""New fully-qualified type name"",""description"":""Fully-qualified class name of the replacement type, or the name of a primitive such as \""int\"". The `OuterClassName$NestedClassName` naming convention should be used for nested classes."",""example"":""org.junit.jupiter.api.Assumptions"",""required"":true},{""name"":""ignoreDefinition"",""type"":""Boolean"",""displayName"":""Ignore type definition"",""description"":""When set to `true` the definition of the old type will be left untouched. This is useful when you're replacing usage of a class but don't want to rename it.""}]",
0 commit comments