Skip to content

Commit 99dde4e

Browse files
committed
Add recipes.csv to each module that has recipes
1 parent 0b18469 commit 99dde4e

11 files changed

Lines changed: 352 additions & 0 deletions

File tree

  • rewrite-core/src/main/resources/META-INF/rewrite
  • rewrite-gradle/src/main/resources/META-INF/rewrite
  • rewrite-groovy/src/main/resources/META-INF/rewrite
  • rewrite-hcl/src/main/resources/META-INF/rewrite
  • rewrite-java/src/main/resources/META-INF/rewrite
  • rewrite-kotlin/src/main/resources/META-INF/rewrite
  • rewrite-maven/src/main/resources/META-INF/rewrite
  • rewrite-properties/src/main/resources/META-INF/rewrite
  • rewrite-test/src/main/resources/META-INF/rewrite
  • rewrite-xml/src/main/resources/META-INF/rewrite
  • rewrite-yaml/src/main/resources/META-INF/rewrite

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

Lines changed: 32 additions & 0 deletions
Large diffs are not rendered by default.

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

Lines changed: 53 additions & 0 deletions
Large diffs are not rendered by default.
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
ecosystem,packageName,name,displayName,description,recipeCount,category1,category2
2+
maven,org.openrewrite:rewrite-groovy,org.openrewrite.groovy.format.OmitParenthesesFormat,Stylize Groovy code to omit parentheses,Omit parentheses for last argument lambdas in Groovy code.,1,Format,Groovy
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
ecosystem,packageName,name,displayName,description,recipeCount,category1,category2,options
2+
maven,org.openrewrite:rewrite-hcl,org.openrewrite.hcl.DeleteContent,Delete content,Delete HCL content by path.,1,,Hcl,"[{""name"":""contentPath"",""type"":""String"",""displayName"":""Content path"",""description"":""A JSONPath expression specifying the block to delete."",""example"":""$.provider"",""required"":true}]"
3+
maven,org.openrewrite:rewrite-hcl,org.openrewrite.hcl.ReplaceLegacyAttributeIndexSyntax,Replace legacy attribute index syntax,Replace legacy attribute index syntax (`.0`) with the new syntax (`[0]`).,1,,Hcl,
4+
maven,org.openrewrite:rewrite-hcl,org.openrewrite.hcl.MoveContentToFile,Move content to another file,"Move content to another HCL file, deleting it in the original file.",1,,Hcl,"[{""name"":""contentPath"",""type"":""String"",""displayName"":""Content path"",""description"":""A JSONPath expression specifying the block to move."",""example"":""$.provider"",""required"":true},{""name"":""fromPath"",""type"":""String"",""displayName"":""From path"",""description"":""The source path of the file from which content is being moved."",""example"":""from.tf"",""required"":true},{""name"":""destinationPath"",""type"":""String"",""displayName"":""To path"",""description"":""The source path of the file to move the content to."",""example"":""to.tf"",""required"":true}]"
5+
maven,org.openrewrite:rewrite-hcl,org.openrewrite.hcl.format.AutoFormat,Format HCL code,Format HCL code using a standard comprehensive set of HCL formatting recipes.,1,Format,Hcl,
6+
maven,org.openrewrite:rewrite-hcl,org.openrewrite.hcl.format.BlankLines,Blank lines,Add and/or remove blank lines.,1,Format,Hcl,
7+
maven,org.openrewrite:rewrite-hcl,org.openrewrite.hcl.format.NormalizeFormat,Normalize format,Move whitespace to the outermost LST element possible.,1,Format,Hcl,
8+
maven,org.openrewrite:rewrite-hcl,org.openrewrite.hcl.format.RemoveTrailingWhitespace,Remove trailing whitespace,Remove any extra trailing whitespace from the end of each line.,1,Format,Hcl,
9+
maven,org.openrewrite:rewrite-hcl,org.openrewrite.hcl.format.Spaces,Spaces,Format whitespace in HCL code.,1,Format,Hcl,
10+
maven,org.openrewrite:rewrite-hcl,org.openrewrite.hcl.format.TabsAndIndents,Tabs and indents,Format tabs and indents in HCL code.,1,Format,Hcl,
11+
maven,org.openrewrite:rewrite-hcl,org.openrewrite.hcl.search.FindAndReplaceLiteral,Find and replace literals in HCL files,"Find and replace literal values in HCL files. This recipe parses the source files on which it runs as HCL, meaning you can execute HCL language-specific recipes before and after this recipe in a single recipe run.",1,Search,Hcl,"[{""name"":""find"",""type"":""String"",""displayName"":""Find"",""description"":""The literal to find (and replace)"",""example"":""blacklist"",""required"":true},{""name"":""replace"",""type"":""String"",""displayName"":""Replace"",""description"":""The replacement literal for `find`. This snippet can be multiline."",""example"":""denylist""},{""name"":""regex"",""type"":""Boolean"",""displayName"":""Regex"",""description"":""Default false. If true, `find` will be interpreted as a Regular Expression, and capture group contents will be available in `replace`.""},{""name"":""caseSensitive"",""type"":""Boolean"",""displayName"":""Case sensitive"",""description"":""If `true` the search will be sensitive to case. Default `false`.""}]"
12+
maven,org.openrewrite:rewrite-hcl,org.openrewrite.hcl.search.FindContent,Find content,Find HCL content by path.,1,Search,Hcl,"[{""name"":""contentPath"",""type"":""String"",""displayName"":""Content path"",""description"":""A JSONPath expression specifying the block to find."",""example"":""$.provider"",""required"":true}]"

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

Lines changed: 99 additions & 0 deletions
Large diffs are not rendered by default.
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
ecosystem,packageName,name,displayName,description,recipeCount,category1,category1Description,options,dataTables
2+
maven,org.openrewrite:rewrite-kotlin,org.openrewrite.kotlin.FindKotlinSources,Find Kotlin sources and collect data metrics,Use data table to collect source files types and counts of files with extensions `.kt`.,1,Kotlin,Recipes to search and transform Kotlin.,"[{""name"":""markCompilationUnits"",""type"":""Boolean"",""displayName"":""Find Kotlin compilation units"",""description"":""Limit the search results to Kotlin CompilationUnits.""}]","[{""name"":""org.openrewrite.kotlin.table.KotlinSourceFile"",""displayName"":""Kotlin source files"",""description"":""Kotlin sources present in LSTs on the SAAS."",""columns"":[{""name"":""sourcePath"",""type"":""String"",""displayName"":""Source path before the run"",""description"":""The source path of the file before the run.""},{""name"":""sourceFileType"",""type"":""SourceFileType"",""displayName"":""Source file type"",""description"":""The source file type that was created.""}]}]"

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

Lines changed: 95 additions & 0 deletions
Large diffs are not rendered by default.
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
ecosystem,packageName,name,displayName,description,recipeCount,category1,category2,options
2+
maven,org.openrewrite:rewrite-properties,org.openrewrite.properties.AddProperty,Add a new property,Adds 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.,1,,Properties,"[{""name"":""property"",""type"":""String"",""displayName"":""Property key"",""description"":""The property key to add."",""example"":""management.metrics.enable.process.files"",""required"":true},{""name"":""value"",""type"":""String"",""displayName"":""Property value"",""description"":""The value of the new property key."",""example"":""newPropValue"",""required"":true},{""name"":""comment"",""type"":""String"",""displayName"":""Optional comment to be prepended to the property"",""description"":""A comment that will be added to the new property."",""example"":""This is a comment""},{""name"":""delimiter"",""type"":""String"",""displayName"":""Optional delimiter"",""description"":""Property entries support different delimiters (`=`, `:`, or whitespace). The default value is `=` unless provided the delimiter of the new property entry."",""example"":"":""},{""name"":""orderedInsertion"",""type"":""Boolean"",""displayName"":""Ordered property insertion"",""description"":""Whether to attempt adding the property in an order following alphabetic sorting. The default value is `true`."",""example"":""false""}]"
3+
maven,org.openrewrite:rewrite-properties,org.openrewrite.properties.AddPropertyComment,Add comment before property key,"Add a new comment before a property key if not already present, optionally commenting out the property.",1,,Properties,"[{""name"":""propertyKey"",""type"":""String"",""displayName"":""Property key"",""description"":""The name of the property to add comment."",""example"":""management.metrics.binders"",""required"":true},{""name"":""comment"",""type"":""String"",""displayName"":""Comment"",""description"":""The comment to be added."",""example"":""comment"",""required"":true},{""name"":""commentOutProperty"",""type"":""Boolean"",""displayName"":""Comment out property"",""description"":""If true, property will be commented out."",""example"":""true""}]"
4+
maven,org.openrewrite:rewrite-properties,org.openrewrite.properties.ChangePropertyKey,Change property key,Change a property key leaving the value intact.,1,,Properties,"[{""name"":""oldPropertyKey"",""type"":""String"",""displayName"":""Old property key"",""description"":""The property key to rename."",""example"":""management.metrics.binders.files.enabled"",""required"":true},{""name"":""newPropertyKey"",""type"":""String"",""displayName"":""New property key"",""description"":""The new name for the key identified by `oldPropertyKey`."",""example"":""management.metrics.enable.process.files"",""required"":true},{""name"":""relaxedBinding"",""type"":""Boolean"",""displayName"":""Use relaxed binding"",""description"":""Whether to match the `oldPropertyKey` using [relaxed binding](https://docs.spring.io/spring-boot/docs/2.5.6/reference/html/features.html#features.external-config.typesafe-configuration-properties.relaxed-binding) rules. Default is `true`. Set to `false` to use exact matching.""},{""name"":""regex"",""type"":""Boolean"",""displayName"":""Regex"",""description"":""Default false. If enabled, `oldPropertyKey` will be interpreted as a Regular Expression, and capture group contents will be available in `newPropertyKey`""}]"
5+
maven,org.openrewrite:rewrite-properties,org.openrewrite.properties.ChangePropertyValue,Change property value,Change a property value leaving the key intact.,1,,Properties,"[{""name"":""propertyKey"",""type"":""String"",""displayName"":""Property key"",""description"":""The name of the property key whose value is to be changed. Supports glob patterns."",""example"":""management.metrics.binders.*.enabled"",""required"":true},{""name"":""newValue"",""type"":""String"",""displayName"":""New value"",""description"":""The new value to be used for key specified by `propertyKey`."",""example"":""newValue"",""required"":true},{""name"":""oldValue"",""type"":""String"",""displayName"":""Old value"",""description"":""Only change the property value if it matches the configured `oldValue`."",""example"":""oldValue""},{""name"":""regex"",""type"":""Boolean"",""displayName"":""Regex"",""description"":""Default `false`. If enabled, `oldValue` will be interpreted as a Regular Expression, to replace only all parts that match the regex. Capturing group can be used in `newValue`.""},{""name"":""relaxedBinding"",""type"":""Boolean"",""displayName"":""Use relaxed binding"",""description"":""Whether to match the `propertyKey` using [relaxed binding](https://docs.spring.io/spring-boot/docs/2.5.6/reference/html/features.html#features.external-config.typesafe-configuration-properties.relaxed-binding) rules. Default is `true`. Set to `false` to use exact matching.""}]"
6+
maven,org.openrewrite:rewrite-properties,org.openrewrite.properties.DeleteProperty,Delete property by key,"Deletes 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.",1,,Properties,"[{""name"":""propertyKey"",""type"":""String"",""displayName"":""Property key matcher"",""description"":""The key(s) to be deleted. This is a glob expression."",""example"":""management.metrics.binders.files.enabled or management.metrics.*"",""required"":true},{""name"":""relaxedBinding"",""type"":""Boolean"",""displayName"":""Use relaxed binding"",""description"":""Whether to match the `propertyKey` using [relaxed binding](https://docs.spring.io/spring-boot/docs/2.5.6/reference/html/features.html#features.external-config.typesafe-configuration-properties.relaxed-binding) rules. Default is `true`. Set to `false` to use exact matching.""}]"
7+
maven,org.openrewrite:rewrite-properties,org.openrewrite.properties.CreatePropertiesFile,Create Properties file,Create a new Properties file.,1,,Properties,"[{""name"":""relativeFileName"",""type"":""String"",""displayName"":""Relative file path"",""description"":""File path of new file."",""example"":""foo/bar/baz.properties"",""required"":true},{""name"":""fileContents"",""type"":""String"",""displayName"":""File contents"",""description"":""Multiline text content for the file."",""example"":""a.property=value""},{""name"":""overwriteExisting"",""type"":""Boolean"",""displayName"":""Overwrite existing file"",""description"":""If there is an existing file, should it be overwritten.""}]"
8+
maven,org.openrewrite:rewrite-properties,org.openrewrite.properties.search.FindProperties,Find property,Finds occurrences of a property key.,1,Search,Properties,"[{""name"":""propertyKey"",""type"":""String"",""displayName"":""Property key"",""description"":""The property key to look for."",""example"":""management.metrics.binders.files.enabled"",""required"":true},{""name"":""relaxedBinding"",""type"":""Boolean"",""displayName"":""Use relaxed binding"",""description"":""Whether to match the `propertyKey` using [relaxed binding](https://docs.spring.io/spring-boot/docs/2.5.6/reference/html/features.html#features.external-config.typesafe-configuration-properties.relaxed-binding) rules. Default is `true`. Set to `false` to use exact matching.""}]"
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
ecosystem,packageName,name,displayName,description,recipeCount,category1
2+
maven,org.openrewrite:rewrite-test,org.openrewrite.test.AdHocRecipe,Ad hoc recipe,An ad hoc recipe used in RewriteTest.,1,Test
3+
maven,org.openrewrite:rewrite-test,org.openrewrite.test.AdHocScanningRecipe,Ad hoc recipe,An ad hoc recipe used in RewriteTest.,1,Test

0 commit comments

Comments
 (0)