Skip to content

Commit 4ce95cc

Browse files
committed
Add org.openrewrite.java.search.FindSymbols to recipes.csv
1 parent 4ae4844 commit 4ce95cc

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

  • rewrite-java/src/main/resources/META-INF/rewrite

rewrite-java/src/main/resources/META-INF/rewrite/recipes.csv

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,8 @@ maven,org.openrewrite:rewrite-java,org.openrewrite.java.search.HasMinimumJavaVer
9999
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""}]",
100100
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.""}]",
101101
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.""}]}]"
102104
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.""}]",
103105
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""}]",
104106
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

Comments
 (0)