Skip to content

Commit 495da2a

Browse files
committed
[Auto] Latest versions as of 2026-01-23T1022
1 parent f84eeaa commit 495da2a

File tree

63 files changed

+4237
-51
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

63 files changed

+4237
-51
lines changed

docs/recipes/java/format/autoformat.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ This recipe is available under the [Apache License Version 2.0](https://www.apac
2323

2424
| Type | Name | Description | Example |
2525
| --- | --- | --- | --- |
26-
| `String` | style | *Optional*. See https://docs.openrewrite.org/concepts-and-explanations/styles for a description on styles. | <pre>type: specs.openrewrite.org/v1beta/style<br />name: com.yourorg.YesTabsNoStarImports<br />styleConfigs:<br /> - org.openrewrite.java.style.TabsAndIndentsStyle:<br /> useTabCharacter: true</pre> |
26+
| `String` | style | *Optional*. An OpenRewrite [style](https://docs.openrewrite.org/concepts-and-explanations/styles) formatted in YAML. | <pre>type: specs.openrewrite.org/v1beta/style<br />name: com.yourorg.YesTabsNoStarImports<br />styleConfigs:<br /> - org.openrewrite.java.style.TabsAndIndentsStyle:<br /> useTabCharacter: true</pre> |
2727
| `Boolean` | removeCustomLineBreaks | *Optional*. Do you want to remove custom line breaks? (default false) | |
2828

2929

docs/recipes/java/orderimports.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ This recipe is available under the [Apache License Version 2.0](https://www.apac
2424
| Type | Name | Description | Example |
2525
| --- | --- | --- | --- |
2626
| `Boolean` | removeUnused | *Optional*. Remove unnecessary imports. | |
27+
| `String` | style | *Optional*. An OpenRewrite [style](https://docs.openrewrite.org/concepts-and-explanations/styles) formatted in YAML. | <pre>type: specs.openrewrite.org/v1beta/style<br />name: com.yourorg.CustomImportLayout<br />styleConfigs:<br /> - org.openrewrite.java.style.ImportLayoutStyle:<br /> classCountToUseStarImport: 999<br /> nameCountToUseStarImport: 999<br /> layout:<br /> - 'import java.*'<br /> - 'import javax.*'<br /> - '\<blank line>'<br /> - 'import all other imports'<br /> - '\<blank line>'<br /> - 'import static all other imports'<br /> packagesToFold:<br /> - 'import java.awt.*'<br /> - 'import static org.junit.jupiter.api.Assertions.*</pre> |
2728

2829

2930
## Used by

docs/recipes/java/removeunusedimports.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import TabItem from '@theme/TabItem';
99

1010
**org.openrewrite.java.RemoveUnusedImports**
1111

12-
_Remove imports for types that are not referenced. As a precaution against incorrect changes no imports will be removed from any source where unknown types are referenced. The most common cause of unknown types is the use of annotation processors not supported by OpenRewrite, such as lombok._
12+
_Remove imports for types that are not referenced. As a precaution against incorrect changes no imports will be removed from any source where unknown types are referenced._
1313

1414
### Tags
1515

docs/recipes/javascript/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,5 +15,6 @@ description: Javascript OpenRewrite recipes.
1515
## Recipes
1616

1717
* [Change import](./change-import.md)
18+
* [Change import](./change-import.md)
1819

1920

docs/recipes/javascript/change-import.md

Lines changed: 73 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -19,16 +19,6 @@ _Changes an import from one module/member to another, updating all type attribut
1919

2020
This recipe is available under the [Moderne Source Available License](https://docs.moderne.io/licensing/moderne-source-available-license).
2121

22-
## Options
23-
24-
| Type | Name | Description | Example |
25-
| --- | --- | --- | --- |
26-
| `null` | oldModule | The module to change imports from | `react-dom/test-utils` |
27-
| `null` | oldMember | The member to change (or 'default' for default imports, '*' for namespace imports) | `act` |
28-
| `null` | newModule | The module to change imports to | `react` |
29-
| `null` | newMember | *Optional*. The new member name. If not specified, keeps the same member name. | `act` |
30-
| `null` | newAlias | *Optional*. Optional alias for the new import. Required when newMember is 'default' or '*'. | |
31-
3222

3323
## Usage
3424

@@ -46,3 +36,76 @@ Then, you can run the recipe via:
4636
```shell title="Run the recipe"
4737
mod run . --recipe org.openrewrite.javascript.change-import
4838
```
39+
## Data Tables
40+
41+
<Tabs groupId="data-tables">
42+
<TabItem value="org.openrewrite.table.SourcesFileResults" label="SourcesFileResults">
43+
44+
### Source files that had results
45+
**org.openrewrite.table.SourcesFileResults**
46+
47+
_Source files that were modified by the recipe run._
48+
49+
| Column Name | Description |
50+
| ----------- | ----------- |
51+
| Source path before the run | The source path of the file before the run. `null` when a source file was created during the run. |
52+
| Source path after the run | A recipe may modify the source path. This is the path after the run. `null` when a source file was deleted during the run. |
53+
| Parent of the recipe that made changes | In a hierarchical recipe, the parent of the recipe that made a change. Empty if this is the root of a hierarchy or if the recipe is not hierarchical at all. |
54+
| Recipe that made changes | The specific recipe that made a change. |
55+
| Estimated time saving | An estimated effort that a developer to fix manually instead of using this recipe, in unit of seconds. |
56+
| Cycle | The recipe cycle in which the change was made. |
57+
58+
</TabItem>
59+
60+
<TabItem value="org.openrewrite.table.SearchResults" label="SearchResults">
61+
62+
### Source files that had search results
63+
**org.openrewrite.table.SearchResults**
64+
65+
_Search results that were found during the recipe run._
66+
67+
| Column Name | Description |
68+
| ----------- | ----------- |
69+
| Source path of search result before the run | The source path of the file with the search result markers present. |
70+
| Source path of search result after run the run | A recipe may modify the source path. This is the path after the run. `null` when a source file was deleted during the run. |
71+
| Result | The trimmed printed tree of the LST element that the marker is attached to. |
72+
| Description | The content of the description of the marker. |
73+
| Recipe that added the search marker | The specific recipe that added the Search marker. |
74+
75+
</TabItem>
76+
77+
<TabItem value="org.openrewrite.table.SourcesFileErrors" label="SourcesFileErrors">
78+
79+
### Source files that errored on a recipe
80+
**org.openrewrite.table.SourcesFileErrors**
81+
82+
_The details of all errors produced by a recipe run._
83+
84+
| Column Name | Description |
85+
| ----------- | ----------- |
86+
| Source path | The file that failed to parse. |
87+
| Recipe that made changes | The specific recipe that made a change. |
88+
| Stack trace | The stack trace of the failure. |
89+
90+
</TabItem>
91+
92+
<TabItem value="org.openrewrite.table.RecipeRunStats" label="RecipeRunStats">
93+
94+
### Recipe performance
95+
**org.openrewrite.table.RecipeRunStats**
96+
97+
_Statistics used in analyzing the performance of recipes._
98+
99+
| Column Name | Description |
100+
| ----------- | ----------- |
101+
| The recipe | The recipe whose stats are being measured both individually and cumulatively. |
102+
| Source file count | The number of source files the recipe ran over. |
103+
| Source file changed count | The number of source files which were changed in the recipe run. Includes files created, deleted, and edited. |
104+
| Cumulative scanning time (ns) | The total time spent across the scanning phase of this recipe. |
105+
| Max scanning time (ns) | The max time scanning any one source file. |
106+
| Cumulative edit time (ns) | The total time spent across the editing phase of this recipe. |
107+
| Max edit time (ns) | The max time editing any one source file. |
108+
109+
</TabItem>
110+
111+
</Tabs>

docs/recipes/javascript/cleanup/README.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,14 @@ description: Cleanup OpenRewrite recipes.
77
## Recipes
88

99
* [Add radix to `parseInt`](./add-parse-int-radix.md)
10+
* [Add radix to `parseInt`](./add-parse-int-radix.md)
11+
* [Detect async callbacks in synchronous array methods](./async-callback-in-sync-array-method.md)
1012
* [Detect async callbacks in synchronous array methods](./async-callback-in-sync-array-method.md)
1113
* [Order imports](./order-imports.md)
14+
* [Order imports](./order-imports.md)
1215
* [Prefer optional chaining](./prefer-optional-chain.md)
16+
* [Prefer optional chaining](./prefer-optional-chain.md)
17+
* [Use object property shorthand](./use-object-property-shorthand.md)
1318
* [Use object property shorthand](./use-object-property-shorthand.md)
1419

1520

docs/recipes/javascript/cleanup/add-parse-int-radix.md

Lines changed: 73 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,3 +36,76 @@ Then, you can run the recipe via:
3636
```shell title="Run the recipe"
3737
mod run . --recipe org.openrewrite.javascript.cleanup.add-parse-int-radix
3838
```
39+
## Data Tables
40+
41+
<Tabs groupId="data-tables">
42+
<TabItem value="org.openrewrite.table.SourcesFileResults" label="SourcesFileResults">
43+
44+
### Source files that had results
45+
**org.openrewrite.table.SourcesFileResults**
46+
47+
_Source files that were modified by the recipe run._
48+
49+
| Column Name | Description |
50+
| ----------- | ----------- |
51+
| Source path before the run | The source path of the file before the run. `null` when a source file was created during the run. |
52+
| Source path after the run | A recipe may modify the source path. This is the path after the run. `null` when a source file was deleted during the run. |
53+
| Parent of the recipe that made changes | In a hierarchical recipe, the parent of the recipe that made a change. Empty if this is the root of a hierarchy or if the recipe is not hierarchical at all. |
54+
| Recipe that made changes | The specific recipe that made a change. |
55+
| Estimated time saving | An estimated effort that a developer to fix manually instead of using this recipe, in unit of seconds. |
56+
| Cycle | The recipe cycle in which the change was made. |
57+
58+
</TabItem>
59+
60+
<TabItem value="org.openrewrite.table.SearchResults" label="SearchResults">
61+
62+
### Source files that had search results
63+
**org.openrewrite.table.SearchResults**
64+
65+
_Search results that were found during the recipe run._
66+
67+
| Column Name | Description |
68+
| ----------- | ----------- |
69+
| Source path of search result before the run | The source path of the file with the search result markers present. |
70+
| Source path of search result after run the run | A recipe may modify the source path. This is the path after the run. `null` when a source file was deleted during the run. |
71+
| Result | The trimmed printed tree of the LST element that the marker is attached to. |
72+
| Description | The content of the description of the marker. |
73+
| Recipe that added the search marker | The specific recipe that added the Search marker. |
74+
75+
</TabItem>
76+
77+
<TabItem value="org.openrewrite.table.SourcesFileErrors" label="SourcesFileErrors">
78+
79+
### Source files that errored on a recipe
80+
**org.openrewrite.table.SourcesFileErrors**
81+
82+
_The details of all errors produced by a recipe run._
83+
84+
| Column Name | Description |
85+
| ----------- | ----------- |
86+
| Source path | The file that failed to parse. |
87+
| Recipe that made changes | The specific recipe that made a change. |
88+
| Stack trace | The stack trace of the failure. |
89+
90+
</TabItem>
91+
92+
<TabItem value="org.openrewrite.table.RecipeRunStats" label="RecipeRunStats">
93+
94+
### Recipe performance
95+
**org.openrewrite.table.RecipeRunStats**
96+
97+
_Statistics used in analyzing the performance of recipes._
98+
99+
| Column Name | Description |
100+
| ----------- | ----------- |
101+
| The recipe | The recipe whose stats are being measured both individually and cumulatively. |
102+
| Source file count | The number of source files the recipe ran over. |
103+
| Source file changed count | The number of source files which were changed in the recipe run. Includes files created, deleted, and edited. |
104+
| Cumulative scanning time (ns) | The total time spent across the scanning phase of this recipe. |
105+
| Max scanning time (ns) | The max time scanning any one source file. |
106+
| Cumulative edit time (ns) | The total time spent across the editing phase of this recipe. |
107+
| Max edit time (ns) | The max time editing any one source file. |
108+
109+
</TabItem>
110+
111+
</Tabs>

docs/recipes/javascript/cleanup/async-callback-in-sync-array-method.md

Lines changed: 73 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,3 +44,76 @@ Then, you can run the recipe via:
4444
```shell title="Run the recipe"
4545
mod run . --recipe org.openrewrite.javascript.cleanup.async-callback-in-sync-array-method
4646
```
47+
## Data Tables
48+
49+
<Tabs groupId="data-tables">
50+
<TabItem value="org.openrewrite.table.SourcesFileResults" label="SourcesFileResults">
51+
52+
### Source files that had results
53+
**org.openrewrite.table.SourcesFileResults**
54+
55+
_Source files that were modified by the recipe run._
56+
57+
| Column Name | Description |
58+
| ----------- | ----------- |
59+
| Source path before the run | The source path of the file before the run. `null` when a source file was created during the run. |
60+
| Source path after the run | A recipe may modify the source path. This is the path after the run. `null` when a source file was deleted during the run. |
61+
| Parent of the recipe that made changes | In a hierarchical recipe, the parent of the recipe that made a change. Empty if this is the root of a hierarchy or if the recipe is not hierarchical at all. |
62+
| Recipe that made changes | The specific recipe that made a change. |
63+
| Estimated time saving | An estimated effort that a developer to fix manually instead of using this recipe, in unit of seconds. |
64+
| Cycle | The recipe cycle in which the change was made. |
65+
66+
</TabItem>
67+
68+
<TabItem value="org.openrewrite.table.SearchResults" label="SearchResults">
69+
70+
### Source files that had search results
71+
**org.openrewrite.table.SearchResults**
72+
73+
_Search results that were found during the recipe run._
74+
75+
| Column Name | Description |
76+
| ----------- | ----------- |
77+
| Source path of search result before the run | The source path of the file with the search result markers present. |
78+
| Source path of search result after run the run | A recipe may modify the source path. This is the path after the run. `null` when a source file was deleted during the run. |
79+
| Result | The trimmed printed tree of the LST element that the marker is attached to. |
80+
| Description | The content of the description of the marker. |
81+
| Recipe that added the search marker | The specific recipe that added the Search marker. |
82+
83+
</TabItem>
84+
85+
<TabItem value="org.openrewrite.table.SourcesFileErrors" label="SourcesFileErrors">
86+
87+
### Source files that errored on a recipe
88+
**org.openrewrite.table.SourcesFileErrors**
89+
90+
_The details of all errors produced by a recipe run._
91+
92+
| Column Name | Description |
93+
| ----------- | ----------- |
94+
| Source path | The file that failed to parse. |
95+
| Recipe that made changes | The specific recipe that made a change. |
96+
| Stack trace | The stack trace of the failure. |
97+
98+
</TabItem>
99+
100+
<TabItem value="org.openrewrite.table.RecipeRunStats" label="RecipeRunStats">
101+
102+
### Recipe performance
103+
**org.openrewrite.table.RecipeRunStats**
104+
105+
_Statistics used in analyzing the performance of recipes._
106+
107+
| Column Name | Description |
108+
| ----------- | ----------- |
109+
| The recipe | The recipe whose stats are being measured both individually and cumulatively. |
110+
| Source file count | The number of source files the recipe ran over. |
111+
| Source file changed count | The number of source files which were changed in the recipe run. Includes files created, deleted, and edited. |
112+
| Cumulative scanning time (ns) | The total time spent across the scanning phase of this recipe. |
113+
| Max scanning time (ns) | The max time scanning any one source file. |
114+
| Cumulative edit time (ns) | The total time spent across the editing phase of this recipe. |
115+
| Max edit time (ns) | The max time editing any one source file. |
116+
117+
</TabItem>
118+
119+
</Tabs>

docs/recipes/javascript/cleanup/order-imports.md

Lines changed: 73 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,3 +36,76 @@ Then, you can run the recipe via:
3636
```shell title="Run the recipe"
3737
mod run . --recipe org.openrewrite.javascript.cleanup.order-imports
3838
```
39+
## Data Tables
40+
41+
<Tabs groupId="data-tables">
42+
<TabItem value="org.openrewrite.table.SourcesFileResults" label="SourcesFileResults">
43+
44+
### Source files that had results
45+
**org.openrewrite.table.SourcesFileResults**
46+
47+
_Source files that were modified by the recipe run._
48+
49+
| Column Name | Description |
50+
| ----------- | ----------- |
51+
| Source path before the run | The source path of the file before the run. `null` when a source file was created during the run. |
52+
| Source path after the run | A recipe may modify the source path. This is the path after the run. `null` when a source file was deleted during the run. |
53+
| Parent of the recipe that made changes | In a hierarchical recipe, the parent of the recipe that made a change. Empty if this is the root of a hierarchy or if the recipe is not hierarchical at all. |
54+
| Recipe that made changes | The specific recipe that made a change. |
55+
| Estimated time saving | An estimated effort that a developer to fix manually instead of using this recipe, in unit of seconds. |
56+
| Cycle | The recipe cycle in which the change was made. |
57+
58+
</TabItem>
59+
60+
<TabItem value="org.openrewrite.table.SearchResults" label="SearchResults">
61+
62+
### Source files that had search results
63+
**org.openrewrite.table.SearchResults**
64+
65+
_Search results that were found during the recipe run._
66+
67+
| Column Name | Description |
68+
| ----------- | ----------- |
69+
| Source path of search result before the run | The source path of the file with the search result markers present. |
70+
| Source path of search result after run the run | A recipe may modify the source path. This is the path after the run. `null` when a source file was deleted during the run. |
71+
| Result | The trimmed printed tree of the LST element that the marker is attached to. |
72+
| Description | The content of the description of the marker. |
73+
| Recipe that added the search marker | The specific recipe that added the Search marker. |
74+
75+
</TabItem>
76+
77+
<TabItem value="org.openrewrite.table.SourcesFileErrors" label="SourcesFileErrors">
78+
79+
### Source files that errored on a recipe
80+
**org.openrewrite.table.SourcesFileErrors**
81+
82+
_The details of all errors produced by a recipe run._
83+
84+
| Column Name | Description |
85+
| ----------- | ----------- |
86+
| Source path | The file that failed to parse. |
87+
| Recipe that made changes | The specific recipe that made a change. |
88+
| Stack trace | The stack trace of the failure. |
89+
90+
</TabItem>
91+
92+
<TabItem value="org.openrewrite.table.RecipeRunStats" label="RecipeRunStats">
93+
94+
### Recipe performance
95+
**org.openrewrite.table.RecipeRunStats**
96+
97+
_Statistics used in analyzing the performance of recipes._
98+
99+
| Column Name | Description |
100+
| ----------- | ----------- |
101+
| The recipe | The recipe whose stats are being measured both individually and cumulatively. |
102+
| Source file count | The number of source files the recipe ran over. |
103+
| Source file changed count | The number of source files which were changed in the recipe run. Includes files created, deleted, and edited. |
104+
| Cumulative scanning time (ns) | The total time spent across the scanning phase of this recipe. |
105+
| Max scanning time (ns) | The max time scanning any one source file. |
106+
| Cumulative edit time (ns) | The total time spent across the editing phase of this recipe. |
107+
| Max edit time (ns) | The max time editing any one source file. |
108+
109+
</TabItem>
110+
111+
</Tabs>

0 commit comments

Comments
 (0)