This report summarizes scanner evidence for openrewrite/rewrite. SynthScan examined 1,567,145 lines of code across 6085 source files, recording 3925 pattern matches distributed across 23 syntactic categories. The legacy adjusted pattern signal is 4.1 (Low pattern signal); it is not an authorship estimate.
Use the findings to ask whether maintainers can explain intent, verify dependencies, simplify unnecessary scaffolding, and focus review effort. Risk Payload v1 adds ownership, supply-chain, over-engineering, and review-effort vectors when available. These are prompts for human verification, not probabilities, security findings, or measured maintenance costs.
Use each vector to guide manual verification of the underlying findings.
Payload schema: 1.0.0 · Engine: 2.0.0 · Scoring: heuristic-density-v1 · Scan date: 2026-10-31.
Can maintainers explain intent, assumptions, and trade-offs? 2982 finding(s).
Are imports declared and package/API names verified? 484 finding(s).
Are wrappers, guards, and repeated structures necessary? 2550 finding(s).
Which changes need focused human review? 3925 finding(s).
This chart tracks the legacy adjusted pattern score across scan runs. Changes can reflect source changes, scan coverage, or detector/scoring versions; they do not measure AI adoption or prove that a team refactored code. Compare runs only when their scoring versions are compatible. The dashed line tracks the raw pattern-hit count.
Groups findings by configured severity weight. Severity is not a confidence estimate, security rating, or proof that a package is missing. Verify imports against the project's manifests and inspect each finding in its local design context.
This horizontal bar chart shows where configured pattern scores accumulate across directories. Treat the bars as locations to inspect, not as evidence of authorship or code quality. Use the file-level findings to decide whether a directory needs a focused ownership, dependency, complexity, or review check.
The scanner identified 3925 distinct pattern matches across 23 syntactic categories. Each entry below represents a discrete location in the source code where the engine recorded a detector match to inspect in context. Expand any category row to inspect the individual file paths, line numbers, code snippets, and the lexical context (CODE, COMMENT, or STRING) in which each match was detected.
Reading the findings table: The Severity column indicates the configured finding weight (CRITICAL / HIGH / MEDIUM / LOW). The Context column identifies whether the match occurred inside executable code, an inline comment, or a string literal — legacy comment-context matches receive a ×1.5 score weight. The ⚡ bolt icon marks clustered matches: three or more patterns within a 10-line window, each receiving an additional ×1.5 density multiplier under the legacy scoring model.
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | …te/maven/ChangeDependencyGroupIdAndArtifactIdTest.java | 4312 | public class DataHandler {} | CODE |
| LOW | …by/src/test/java/org/openrewrite/ruby/tree/IfTest.java | 256 | def registry_source_details_from(source_string) | STRING |
| LOW | rewrite-python/rewrite/README.md | 47 | def test_reports_deprecated_usages(): | CODE |
| LOW | rewrite-python/rewrite/tests/test_data_table.py | 45 | def test_descriptor_has_columns(self): | CODE |
| LOW | rewrite-python/rewrite/tests/test_data_table.py | 71 | def test_insert_row_creates_store(self): | CODE |
| LOW⚡ | rewrite-python/rewrite/tests/test_data_table.py | 89 | def test_instance_name_defaults_to_display_name(self): | CODE |
| LOW⚡ | rewrite-python/rewrite/tests/test_data_table.py | 98 | def test_instance_name_can_be_set(self): | CODE |
| LOW⚡ | rewrite-python/rewrite/tests/test_data_table.py | 108 | def test_group_is_none_by_default(self): | CODE |
| LOW | rewrite-python/rewrite/tests/test_data_table.py | 143 | def test_writes_csv_with_comments_and_header(self): | CODE |
| LOW | rewrite-python/rewrite/tests/test_data_table.py | 175 | def test_escapes_special_characters(self): | CODE |
| LOW | rewrite-python/rewrite/tests/test_data_table.py | 217 | def test_writes_prefix_and_suffix_columns(self): | CODE |
| LOW | rewrite-python/rewrite/tests/test_data_table.py | 243 | def test_two_stores_share_one_file_with_single_header(self): | CODE |
| LOW | rewrite-python/rewrite/tests/test_data_table.py | 275 | def test_default_table_uses_bare_fully_qualified_name(self): | CODE |
| LOW | rewrite-python/rewrite/tests/test_data_table.py | 286 | def test_custom_instance_name_appends_sanitized_suffix(self): | CODE |
| LOW | rewrite-python/rewrite/tests/test_data_table.py | 301 | def test_grouped_table_appends_sanitized_group(self): | CODE |
| LOW | rewrite-python/rewrite/tests/test_data_table.py | 316 | def test_group_equal_to_name_uses_bare_name(self): | CODE |
| LOW | rewrite-python/rewrite/tests/test_data_table.py | 327 | def test_sanitize_scope_is_byte_identical_to_java(self): | CODE |
| LOW | rewrite-python/rewrite/tests/test_data_table.py | 345 | def test_reconstructs_csv_store_that_writes_prefix_columns(self): | CODE |
| LOW | rewrite-python/rewrite/tests/test_data_table.py | 375 | def test_noop_does_not_write_to_disk(self): | CODE |
| LOW | rewrite-python/rewrite/tests/test_utils.py | 19 | def test_list_flat_map_keeps_items_before_the_first_change(): | CODE |
| LOW | rewrite-python/rewrite/tests/conftest.py | 123 | def pytest_collection_modifyitems(config, items): | CODE |
| LOW | …e-python/rewrite/tests/test_data_table_column_types.py | 46 | def test_every_column_reports_a_type(): | CODE |
| LOW | …e-python/rewrite/tests/test_data_table_column_types.py | 62 | def test_annotation_maps_to_java_type_name(field_name, expected): | CODE |
| LOW | …e-python/rewrite/tests/test_data_table_column_types.py | 75 | def test_optional_unwraps_to_the_underlying_type(): | CODE |
| LOW | …e-python/rewrite/tests/test_data_table_column_types.py | 90 | def test_unrecognized_annotation_falls_back_to_the_default(): | CODE |
| LOW | …e-python/rewrite/tests/test_data_table_column_types.py | 97 | def test_type_is_preserved_alongside_the_other_column_metadata(): | CODE |
| LOW | …e-python/rewrite/tests/test_data_table_column_types.py | 146 | def test_types_survive_aggregation_onto_a_composite(): | CODE |
| LOW | …e-python/rewrite/tests/test_data_table_column_types.py | 166 | def test_string_annotations_are_mapped(annotation, expected): | CODE |
| LOW⚡ | rewrite-python/rewrite/tests/test_id_normalization.py | 38 | def test_constructor_accepts_uuid(self): | CODE |
| LOW⚡ | rewrite-python/rewrite/tests/test_id_normalization.py | 44 | def test_constructor_accepts_int(self): | CODE |
| LOW⚡ | rewrite-python/rewrite/tests/test_id_normalization.py | 50 | def test_equality_and_hash_across_id_forms(self): | CODE |
| LOW⚡ | rewrite-python/rewrite/tests/test_id_normalization.py | 60 | def test_marker_constructor_accepts_uuid(self): | CODE |
| LOW⚡ | rewrite-python/rewrite/tests/test_id_normalization.py | 66 | def test_markers_constructor_accepts_uuid(self): | CODE |
| LOW⚡ | rewrite-python/rewrite/tests/test_id_normalization.py | 72 | def test_search_result_found_yields_usable_markers(self): | CODE |
| LOW⚡ | rewrite-python/rewrite/tests/test_id_normalization.py | 86 | def test_tree_factory_accepts_none_id(self): | CODE |
| LOW⚡ | rewrite-python/rewrite/tests/test_id_normalization.py | 93 | def test_marker_factory_accepts_none_id(self): | CODE |
| LOW⚡ | rewrite-python/rewrite/tests/test_id_normalization.py | 98 | def test_markers_factory_accepts_none_id(self): | CODE |
| LOW⚡ | rewrite-python/rewrite/tests/test_recipe_run.py | 174 | def test_scanning_recipe_one_level_under_a_plain_composite(self): | CODE |
| LOW⚡ | rewrite-python/rewrite/tests/test_recipe_run.py | 180 | def test_scanning_recipe_several_levels_deep(self): | CODE |
| LOW⚡ | rewrite-python/rewrite/tests/test_recipe_run.py | 189 | def test_scanning_recipe_positioned_after_a_plain_sibling(self): | CODE |
| LOW⚡ | rewrite-python/rewrite/tests/test_recipe_run.py | 216 | def test_scanning_recipe_instantiated_inside_recipe_list(self): | CODE |
| LOW⚡ | rewrite-python/rewrite/tests/test_recipe_run.py | 225 | def test_accumulator_sees_every_file_before_any_file_is_edited(self): | CODE |
| LOW⚡ | rewrite-python/rewrite/tests/test_recipe_run.py | 233 | def test_scanner_returning_none_does_not_halt_the_run(self): | CODE |
| LOW | rewrite-python/rewrite/tests/test_recipe_run.py | 269 | def test_generated_file_is_edited_by_later_recipes(self): | CODE |
| LOW | rewrite-python/rewrite/tests/test_recipe_run.py | 300 | def test_deleted_file_stops_being_visited(self): | CODE |
| LOW | rewrite-python/rewrite/tests/test_recipe_run.py | 310 | def test_deleted_file_stops_being_visited_when_the_run_also_scans(self): | CODE |
| LOW | rewrite-python/rewrite/tests/test_recipe_run.py | 322 | def test_edit_of_earlier_file_survives_unchanged_later_file(self): | CODE |
| LOW | …te-python/rewrite/tests/test_marketplace_first_wins.py | 16 | def test_registry_is_first_wins_on_duplicate_name(): | CODE |
| LOW | rewrite-python/rewrite/tests/test_cursor.py | 19 | def test_get_message_returns_default_for_absent_key(): | CODE |
| LOW⚡ | rewrite-python/rewrite/tests/test_rewrite_test.py | 44 | def test_dedent_removes_leading_newline(self): | CODE |
| LOW⚡ | rewrite-python/rewrite/tests/test_rewrite_test.py | 48 | def test_dedent_removes_common_indentation(self): | CODE |
| LOW⚡ | rewrite-python/rewrite/tests/test_rewrite_test.py | 57 | def test_dedent_preserves_relative_indentation(self): | CODE |
| LOW⚡ | rewrite-python/rewrite/tests/test_rewrite_test.py | 160 | def test_recipe_makes_changes(self): | CODE |
| LOW⚡ | rewrite-python/rewrite/tests/test_rewrite_test.py | 421 | def test_pyproject_returns_toml_spec(self): | CODE |
| LOW⚡ | rewrite-python/rewrite/tests/test_rewrite_test.py | 429 | def test_pyproject_with_after(self): | CODE |
| LOW⚡ | rewrite-python/rewrite/tests/test_rewrite_test.py | 439 | def test_uv_returns_list_of_specs(self): | CODE |
| LOW⚡ | rewrite-python/rewrite/tests/test_rewrite_test.py | 447 | def test_uv_without_pyproject_or_root_returns_untagged(self): | CODE |
| LOW⚡ | rewrite-python/rewrite/tests/test_rewrite_test.py | 453 | def test_uv_with_explicit_root(self, tmp_path): | CODE |
| LOW⚡ | rewrite-python/rewrite/tests/test_rewrite_test.py | 459 | def test_source_spec_project_root_default_none(self): | CODE |
| LOW⚡ | rewrite-python/rewrite/tests/test_rewrite_test.py | 465 | def test_uv_creates_workspace_from_pyproject(self): | CODE |
| 2031 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | …t/java/org/openrewrite/maven/UpdateMavenModelTest.java | 0 | <project> <groupid>com.mycompany.app</groupid> <artifactid>my-app</artifactid> <version>1</version> </project> | STRING |
| HIGH | …test/java/org/openrewrite/maven/AddDependencyTest.java | 0 | <project> <groupid>com.mycompany.app</groupid> <artifactid>my-app</artifactid> <version>1</version> </project> | STRING |
| HIGH | …t/java/org/openrewrite/maven/AddRuntimeConfigTest.java | 0 | <project> <groupid>com.mycompany.app</groupid> <artifactid>my-app</artifactid> <version>1</version> </project> | STRING |
| HIGH | …t/java/org/openrewrite/maven/AddManagedPluginTest.java | 0 | <project> <groupid>com.mycompany.app</groupid> <artifactid>my-app</artifactid> <version>1</version> </project> | STRING |
| HIGH | …src/test/java/org/openrewrite/maven/AddPluginTest.java | 0 | <project> <groupid>com.mycompany.app</groupid> <artifactid>my-app</artifactid> <version>1</version> </project> | STRING |
| HIGH | …openrewrite/maven/AddDevelocityMavenExtensionTest.java | 0 | <project> <groupid>com.mycompany.app</groupid> <artifactid>my-app</artifactid> <version>1</version> </project> | STRING |
| HIGH | …va/org/openrewrite/maven/AddManagedDependencyTest.java | 0 | <project> <groupid>com.mycompany.app</groupid> <artifactid>my-app</artifactid> <version>1</version> </project> | STRING |
| HIGH | …test/java/org/openrewrite/maven/AddRepositoryTest.java | 0 | <project> <groupid>com.mycompany.app</groupid> <artifactid>my-app</artifactid> <version>1</version> </project> | STRING |
| HIGH | …openrewrite/maven/AddManagedDependencyVisitorTest.java | 0 | <project> <groupid>com.mycompany.app</groupid> <artifactid>my-app</artifactid> <version>1</version> </project> | STRING |
| HIGH | …java/org/openrewrite/maven/ReproducibleBuildsTest.java | 0 | <project> <groupid>com.mycompany.app</groupid> <artifactid>my-app</artifactid> <version>1</version> </project> | STRING |
| HIGH | …/maven/cleanup/AddProjectBuildOutputTimestampTest.java | 0 | <project> <groupid>com.mycompany.app</groupid> <artifactid>my-app</artifactid> <version>1</version> </project> | STRING |
| HIGH | …org/openrewrite/maven/UpgradePluginsForMaven4Test.java | 0 | <project> <groupid>com.example</groupid> <artifactid>my-app</artifactid> <version>1.0.0</version> <build> <pluginmanagem | STRING |
| HIGH | …write/maven/RemoveDuplicatePluginDeclarationsTest.java | 0 | <project> <groupid>com.example</groupid> <artifactid>my-app</artifactid> <version>1.0.0</version> <build> <pluginmanagem | STRING |
| HIGH | …openrewrite/maven/ExtractVersionsAsPropertiesTest.java | 0 | <project> <groupid>com.example</groupid> <artifactid>my-app</artifactid> <version>1.0.0</version> <build> <pluginmanagem | STRING |
| HIGH | …org/openrewrite/maven/RemoveManagedDependencyTest.java | 0 | <project> <modelversion>4.0.0</modelversion> <groupid>com.mycompany.app</groupid> <artifactid>my-app</artifactid> <versi | STRING |
| HIGH | …n/ChangeManagedDependencyGroupIdAndArtifactIdTest.java | 0 | <project> <modelversion>4.0.0</modelversion> <groupid>com.mycompany.app</groupid> <artifactid>my-app</artifactid> <versi | STRING |
| HIGH | …te/maven/ChangeDependencyGroupIdAndArtifactIdTest.java | 0 | <project> <modelversion>4.0.0</modelversion> <groupid>com.mycompany.app</groupid> <artifactid>my-app</artifactid> <versi | STRING |
| HIGH | …org/openrewrite/maven/RemoveManagedDependencyTest.java | 0 | <project> <modelversion>4.0.0</modelversion> <groupid>com.mycompany.app</groupid> <artifactid>my-app</artifactid> <versi | STRING |
| HIGH | …n/ChangeManagedDependencyGroupIdAndArtifactIdTest.java | 0 | <project> <modelversion>4.0.0</modelversion> <groupid>com.mycompany.app</groupid> <artifactid>my-app</artifactid> <versi | STRING |
| HIGH | …te/maven/ChangeDependencyGroupIdAndArtifactIdTest.java | 0 | <project> <modelversion>4.0.0</modelversion> <groupid>com.mycompany.app</groupid> <artifactid>my-app</artifactid> <versi | STRING |
| HIGH | …org/openrewrite/maven/RemoveManagedDependencyTest.java | 0 | <project> <modelversion>4.0.0</modelversion> <groupid>com.mycompany.app</groupid> <artifactid>my-app</artifactid> <versi | STRING |
| HIGH | …openrewrite/maven/RemoveDuplicateDependenciesTest.java | 0 | <project> <modelversion>4.0.0</modelversion> <groupid>com.mycompany.app</groupid> <artifactid>my-app</artifactid> <versi | STRING |
| HIGH | …/test/java/org/openrewrite/maven/AddParentPomTest.java | 0 | <project> <modelversion>4.0.0</modelversion> <groupid>com.mycompany.app</groupid> <artifactid>my-app</artifactid> <versi | STRING |
| HIGH | …est/java/org/openrewrite/maven/RemovePropertyTest.java | 0 | <project> <modelversion>4.0.0</modelversion> <groupid>com.mycompany.app</groupid> <artifactid>my-app</artifactid> <versi | STRING |
| HIGH | …enrewrite/maven/UpdateProjectUrlFromGitOriginTest.java | 0 | <project> <modelversion>4.0.0</modelversion> <groupid>com.mycompany.app</groupid> <artifactid>my-app</artifactid> <versi | STRING |
| HIGH | …/org/openrewrite/maven/UpdateScmFromGitOriginTest.java | 0 | <project> <modelversion>4.0.0</modelversion> <groupid>com.mycompany.app</groupid> <artifactid>my-app</artifactid> <versi | STRING |
| HIGH | …/org/openrewrite/maven/AddAnnotationProcessorTest.java | 0 | <project> <modelversion>4.0.0</modelversion> <groupid>com.mycompany.app</groupid> <artifactid>my-app</artifactid> <versi | STRING |
| HIGH | …org/openrewrite/maven/search/ParentPomInsightTest.java | 0 | <project> <modelversion>4.0.0</modelversion> <groupid>com.mycompany.app</groupid> <artifactid>my-app</artifactid> <versi | STRING |
| HIGH | …openrewrite/maven/RemoveDuplicateDependenciesTest.java | 0 | <project> <modelversion>4.0.0</modelversion> <groupid>com.example</groupid> <artifactid>my-app</artifactid> <version>1</ | STRING |
| HIGH | …t/java/org/openrewrite/maven/SortDependenciesTest.java | 0 | <project> <modelversion>4.0.0</modelversion> <groupid>com.example</groupid> <artifactid>my-app</artifactid> <version>1</ | STRING |
| HIGH | …openrewrite/maven/AddCommentToMavenDependencyTest.java | 0 | <project> <modelversion>4.0.0</modelversion> <groupid>com.example</groupid> <artifactid>my-app</artifactid> <version>1</ | STRING |
| HIGH | …t/java/org/openrewrite/maven/RemoveDependencyTest.java | 0 | <project> <modelversion>4.0.0</modelversion> <groupid>com.example</groupid> <artifactid>my-app</artifactid> <version>1</ | STRING |
| HIGH | …t/java/org/openrewrite/xml/AddCommentToXmlTagTest.java | 0 | <project> <modelversion>4.0.0</modelversion> <groupid>com.example</groupid> <artifactid>my-app</artifactid> <version>1</ | STRING |
| HIGH | …openrewrite/maven/DirtyJavaSourceSetsProducerTest.java | 0 | <project> <modelversion>4.0.0</modelversion> <groupid>com.example</groupid> <artifactid>my-app</artifactid> <version>1</ | STRING |
| HIGH | …openrewrite/maven/RemoveDuplicateDependenciesTest.java | 0 | <project> <groupid>com.mycompany.app</groupid> <artifactid>my-app</artifactid> <version>1</version> <dependencies> <depe | STRING |
| HIGH | …t/java/org/openrewrite/maven/RemoveDependencyTest.java | 0 | <project> <groupid>com.mycompany.app</groupid> <artifactid>my-app</artifactid> <version>1</version> <dependencies> <depe | STRING |
| HIGH | …test/java/org/openrewrite/maven/AddDependencyTest.java | 0 | <project> <groupid>com.mycompany.app</groupid> <artifactid>my-app</artifactid> <version>1</version> <dependencies> <depe | STRING |
| HIGH | …rg/openrewrite/maven/UpgradeDependencyVersionTest.java | 0 | <project> <groupid>com.mycompany.app</groupid> <artifactid>my-app</artifactid> <version>1</version> <dependencies> <depe | STRING |
| HIGH | …st/java/org/openrewrite/maven/RemoveExclusionTest.java | 0 | <project> <groupid>com.mycompany.app</groupid> <artifactid>my-app</artifactid> <version>1</version> <dependencies> <depe | STRING |
| HIGH | …rg/openrewrite/maven/search/DependencyInsightTest.java | 0 | <project> <groupid>com.mycompany.app</groupid> <artifactid>my-app</artifactid> <version>1</version> <dependencies> <depe | STRING |
| HIGH | …write/maven/cleanup/ExplicitDependencyVersionTest.java | 0 | <project> <groupid>com.mycompany.app</groupid> <artifactid>my-app</artifactid> <version>1</version> <dependencies> <depe | STRING |
| HIGH | …n/ChangeManagedDependencyGroupIdAndArtifactIdTest.java | 0 | <project> <groupid>com.mycompany.app</groupid> <artifactid>my-app</artifactid> <version>1</version> <dependencies> <depe | STRING |
| HIGH | …a/org/openrewrite/maven/ChangeDependencyScopeTest.java | 0 | <project> <groupid>com.mycompany.app</groupid> <artifactid>my-app</artifactid> <version>1</version> <dependencies> <depe | STRING |
| HIGH | …openrewrite/maven/DirtyJavaSourceSetsProducerTest.java | 0 | <project> <groupid>com.mycompany.app</groupid> <artifactid>my-app</artifactid> <version>1</version> <dependencies> <depe | STRING |
| HIGH | …te/maven/ChangeDependencyGroupIdAndArtifactIdTest.java | 0 | <project> <groupid>com.mycompany.app</groupid> <artifactid>my-app</artifactid> <version>1</version> <dependencies> <depe | STRING |
| HIGH | …a/org/openrewrite/maven/trait/MavenDependencyTest.java | 0 | <project> <groupid>com.mycompany.app</groupid> <artifactid>my-app</artifactid> <version>1</version> <dependencies> <depe | STRING |
| HIGH | …c/test/java/org/openrewrite/maven/AddPropertyTest.java | 0 | <project> <groupid>com.mycompany.app</groupid> <artifactid>my-app</artifactid> <version>1</version> <dependencies> %s </ | STRING |
| HIGH | …ava/org/openrewrite/maven/ChangePropertyValueTest.java | 0 | <project> <groupid>com.mycompany.app</groupid> <artifactid>my-app</artifactid> <version>1</version> <dependencies> %s </ | STRING |
| HIGH | …c/test/java/org/openrewrite/maven/MavenParserTest.java | 0 | <project> <groupid>com.mycompany.app</groupid> <artifactid>my-app</artifactid> <version>1</version> <dependencies> %s </ | STRING |
| HIGH | …c/test/java/org/openrewrite/maven/AddPropertyTest.java | 0 | <project> <modelversion>4.0.0</modelversion> <parent> <groupid>com.mycompany.app</groupid> <artifactid>my-parent</artifa | STRING |
| HIGH | …test/java/org/openrewrite/maven/AddDependencyTest.java | 0 | <project> <modelversion>4.0.0</modelversion> <parent> <groupid>com.mycompany.app</groupid> <artifactid>my-parent</artifa | STRING |
| HIGH | …c/test/java/org/openrewrite/maven/MavenParserTest.java | 0 | <project> <modelversion>4.0.0</modelversion> <parent> <groupid>com.mycompany.app</groupid> <artifactid>my-parent</artifa | STRING |
| HIGH | …st/java/org/openrewrite/maven/internal/RawPomTest.java | 0 | <project> <modelversion>4.0.0</modelversion> <parent> <groupid>com.mycompany.app</groupid> <artifactid>my-parent</artifa | STRING |
| HIGH | …/test/java/org/openrewrite/maven/AddParentPomTest.java | 0 | <project> <modelversion>4.0.0</modelversion> <groupid>org.sample</groupid> <artifactid>sample</artifactid> <version>1.0. | STRING |
| HIGH | …st/java/org/openrewrite/maven/ChangeParentPomTest.java | 0 | <project> <modelversion>4.0.0</modelversion> <groupid>org.sample</groupid> <artifactid>sample</artifactid> <version>1.0. | STRING |
| HIGH | …org/openrewrite/maven/search/ParentPomInsightTest.java | 0 | <project> <modelversion>4.0.0</modelversion> <groupid>org.sample</groupid> <artifactid>sample</artifactid> <version>1.0. | STRING |
| HIGH | …/test/java/org/openrewrite/maven/AddParentPomTest.java | 0 | <project> <modelversion>4.0.0</modelversion> <parent> <groupid>org.sample</groupid> <artifactid>sample</artifactid> <ver | STRING |
| HIGH | …st/java/org/openrewrite/maven/ChangeParentPomTest.java | 0 | <project> <modelversion>4.0.0</modelversion> <parent> <groupid>org.sample</groupid> <artifactid>sample</artifactid> <ver | STRING |
| HIGH | …org/openrewrite/maven/search/ParentPomInsightTest.java | 0 | <project> <modelversion>4.0.0</modelversion> <parent> <groupid>org.sample</groupid> <artifactid>sample</artifactid> <ver | STRING |
| HIGH | …/test/java/org/openrewrite/maven/AddParentPomTest.java | 0 | <project> <modelversion>4.0.0</modelversion> <parent> <groupid>org.sample</groupid> <artifactid>sample</artifactid> <ver | STRING |
| 223 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| CRITICAL⚡ | …ite/maven/marketplace/MavenRecipeBundleReaderTest.java | 90 | .anyMatch(r -> r.getName().contains(org.openrewrite.text.Find.class.getName())); | CODE |
| CRITICAL⚡ | …ite/maven/marketplace/MavenRecipeBundleReaderTest.java | 99 | .filter(r -> r.getName().equals(org.openrewrite.text.Find.class.getName())) | CODE |
| CRITICAL⚡ | …ite/maven/marketplace/MavenRecipeBundleReaderTest.java | 105 | assertThat(descriptor.getName()).isEqualTo(org.openrewrite.text.Find.class.getName()); | CODE |
| CRITICAL⚡ | …ite/maven/marketplace/MavenRecipeBundleReaderTest.java | 115 | .filter(r -> r.getName().equals(org.openrewrite.text.Find.class.getName())) | CODE |
| CRITICAL⚡ | …ite/maven/marketplace/MavenRecipeBundleReaderTest.java | 124 | assertThat(recipe.getName()).isEqualTo(org.openrewrite.text.Find.class.getName()); | CODE |
| CRITICAL | …ite/maven/marketplace/MavenRecipeBundleReaderTest.java | 176 | .anyMatch(r -> r.getName().contains(org.openrewrite.text.Find.class.getName())); | CODE |
| CRITICAL | …c/main/java/org/openrewrite/maven/internal/RawPom.java | 482 | licenses.add(org.openrewrite.maven.tree.License.fromName(l.getName())); | CODE |
| CRITICAL | …c/main/java/org/openrewrite/maven/internal/RawPom.java | 581 | org.openrewrite.maven.tree.Dependency.builder() | CODE |
| CRITICAL | …c/main/java/org/openrewrite/maven/internal/RawPom.java | 601 | dependencies.add(org.openrewrite.maven.tree.Dependency.builder() | CODE |
| CRITICAL | …c/main/java/org/openrewrite/maven/internal/RawPom.java | 648 | executions.add(new org.openrewrite.maven.tree.Plugin.Execution( | CODE |
| CRITICAL | …va/org/openrewrite/maven/internal/RawGradleModule.java | 128 | org.openrewrite.maven.tree.Dependency.DependencyBuilder builder = org.openrewrite.maven.tree.Depende | CODE |
| CRITICAL | …/openrewrite/java/isolated/ReloadableJava25Parser.java | 331 | modules.initModules(com.sun.tools.javac.util.List.from(cus)); | CODE |
| CRITICAL | …/openrewrite/java/isolated/ReloadableJava25Parser.java | 339 | com.sun.tools.javac.util.List<JCTree.JCCompilationUnit> compilationUnits = com.sun.tools.javac.util.List.from( | CODE |
| CRITICAL | …rite/java/isolated/ReloadableJava25JavadocVisitor.java | 695 | // at com.sun.tools.javac.comp.Attr.attribType(Attr.java:404) | COMMENT |
| CRITICAL⚡ | …ite/android/UpgradeAndroidGradlePluginVersionTest.java | 167 | org.assertj.core.api.Assertions.assertThat(recipe.getRecipeList()) | CODE |
| CRITICAL⚡ | …ite/android/UpgradeAndroidGradlePluginVersionTest.java | 170 | org.assertj.core.api.Assertions.assertThat(udv.getGroupId()).isEqualTo("com.android.tools.build"); | CODE |
| CRITICAL⚡ | …ite/android/UpgradeAndroidGradlePluginVersionTest.java | 171 | org.assertj.core.api.Assertions.assertThat(udv.getArtifactId()).isEqualTo("gradle"); | CODE |
| CRITICAL⚡ | …ite/android/UpgradeAndroidGradlePluginVersionTest.java | 172 | org.assertj.core.api.Assertions.assertThat(udv.getNewVersion()).isEqualTo("8.5.0"); | CODE |
| CRITICAL | …a/org/openrewrite/groovy/tree/RealWorldGroovyTest.java | 38 | new net.one.gtu.jenkins.helper.ConsoleLogger(steps) | STRING |
| CRITICAL | …a/org/openrewrite/groovy/tree/RealWorldGroovyTest.java | 40 | throw new org.jenkinsci.plugins.workflow.steps.FlowInterruptedException(hudson.model.Result.SUCCES | STRING |
| CRITICAL | …n/java/org/openrewrite/groovy/GroovyParserVisitor.java | 2036 | org.codehaus.groovy.ast.stmt.ExpressionStatement wrapped = new org.codehaus.groovy.ast.stmt.Expressi | CODE |
| CRITICAL | …main/java/org/openrewrite/groovy/style/Autodetect.java | 47 | org.openrewrite.java.style.Autodetect.Detector javaDetector = new org.openrewrite.java.style.Autodetect.Detector | CODE |
| CRITICAL | …rp/csharp/OpenRewrite/CSharp/Format/RoslynFormatter.cs | 551 | Microsoft.CodeAnalysis.Host.Mef.MefHostServices.Create( | CODE |
| CRITICAL | …/java/org/openrewrite/gradle/AddDependencyVisitor.java | 112 | sourceFile = org.openrewrite.gradle.internal.AddDependencyVisitor.addDependency( | CODE |
| CRITICAL | …main/java/org/openrewrite/gradle/style/Autodetect.java | 46 | org.openrewrite.java.style.Autodetect.Detector javaDetector = new org.openrewrite.java.style.Autodetect.Detector | CODE |
| CRITICAL | …ava/org/openrewrite/gradle/trait/GradleDependency.java | 1756 | return org.openrewrite.maven.tree.Dependency.builder() | CODE |
| CRITICAL | …rite/java/isolated/ReloadableJava11JavadocVisitor.java | 600 | // at com.sun.tools.javac.comp.Attr.attribType(Attr.java:404) | COMMENT |
| CRITICAL | …/openrewrite/java/isolated/ReloadableJava11Parser.java | 332 | modules.initModules(com.sun.tools.javac.util.List.from(cus)); | CODE |
| CRITICAL | …/openrewrite/java/isolated/ReloadableJava11Parser.java | 340 | com.sun.tools.javac.util.List<JCTree.JCCompilationUnit> compilationUnits = com.sun.tools.javac.util.List.from( | CODE |
| CRITICAL | …oml/src/main/java/org/openrewrite/toml/TomlParser.java | 47 | org.openrewrite.toml.internal.grammar.TomlParser parser = new org.openrewrite.toml.internal.grammar.Toml | CODE |
| CRITICAL | …java/org/openrewrite/kotlin/AnnotationMatcherTest.java | 70 | var javaStyleMatcher = new AnnotationMatcher("@org.junit.jupiter.api.extension.ExtendWith(MyExtension.cl | CODE |
| CRITICAL | …java/org/openrewrite/kotlin/AnnotationMatcherTest.java | 74 | var kotlinStyleMatcher = new AnnotationMatcher("@org.junit.jupiter.api.extension.ExtendWith(MyExtension: | CODE |
| CRITICAL | …java/org/openrewrite/kotlin/AnnotationMatcherTest.java | 95 | var javaStyleMatcher = new AnnotationMatcher("@org.junit.jupiter.api.extension.ExtendWith(org.junit.jupi | CODE |
| CRITICAL | …java/org/openrewrite/kotlin/AnnotationMatcherTest.java | 99 | var kotlinStyleMatcher = new AnnotationMatcher("@org.junit.jupiter.api.extension.ExtendWith(org.junit.ju | CODE |
| CRITICAL | …g/openrewrite/kotlin/format/AutoFormatVisitorTest.java | 618 | org.openrewrite.java.tree.JRightPadded.build(false), | STRING |
| CRITICAL | …g/openrewrite/kotlin/format/AutoFormatVisitorTest.java | 620 | org.openrewrite.java.tree.JRightPadded.build(iff.getThenPart()) | STRING |
| CRITICAL | …g/openrewrite/kotlin/format/AutoFormatVisitorTest.java | 658 | new org.openrewrite.kotlin.style.TabsAndIndentsStyle.FunctionDeclarationParameters(true) | STRING |
| CRITICAL | …g/openrewrite/kotlin/format/AutoFormatVisitorTest.java | 696 | org.openrewrite.java.tree.JRightPadded.build(false), | STRING |
| CRITICAL | …g/openrewrite/kotlin/format/AutoFormatVisitorTest.java | 698 | org.openrewrite.java.tree.JRightPadded.build(iff.getThenPart()) | STRING |
| CRITICAL | …enrewrite/kotlin/format/NormalizeTabsOrSpacesTest.java | 66 | return spec -> spec.recipe(toRecipe(() -> new NormalizeTabsOrSpacesVisitor<>(with.apply(org.openrewrite.kotlin.s | CODE |
| CRITICAL | …enrewrite/kotlin/format/NormalizeTabsOrSpacesTest.java | 70 | singletonList(with.apply(org.openrewrite.kotlin.style.IntelliJ.tabsAndIndents())) | CODE |
| CRITICAL | …lin/recipe/internal/MappedTypeFallbackBodyGenerator.kt | 112 | val javaClassId = org.jetbrains.kotlin.name.ClassId.topLevel(FqName(javaClassFqn)) | CODE |
| CRITICAL | …lin/recipe/internal/MappedTypeFallbackBodyGenerator.kt | 147 | private fun org.jetbrains.kotlin.ir.types.IrType.isUnit(): Boolean = | CODE |
| CRITICAL | …/openrewrite/java/isolated/ReloadableJava17Parser.java | 331 | modules.initModules(com.sun.tools.javac.util.List.from(cus)); | CODE |
| CRITICAL | …/openrewrite/java/isolated/ReloadableJava17Parser.java | 339 | com.sun.tools.javac.util.List<JCTree.JCCompilationUnit> compilationUnits = com.sun.tools.javac.util.List.from( | CODE |
| CRITICAL | …rite/java/isolated/ReloadableJava17JavadocVisitor.java | 602 | // at com.sun.tools.javac.comp.Attr.attribType(Attr.java:404) | COMMENT |
| CRITICAL | …/openrewrite/java/isolated/ReloadableJava21Parser.java | 331 | modules.initModules(com.sun.tools.javac.util.List.from(cus)); | CODE |
| CRITICAL | …/openrewrite/java/isolated/ReloadableJava21Parser.java | 339 | com.sun.tools.javac.util.List<JCTree.JCCompilationUnit> compilationUnits = com.sun.tools.javac.util.List.from( | CODE |
| CRITICAL | …rite/java/isolated/ReloadableJava21JavadocVisitor.java | 603 | // at com.sun.tools.javac.comp.Attr.attribType(Attr.java:404) | COMMENT |
| CRITICAL | …rg/openrewrite/java/ReloadableJava8JavadocVisitor.java | 560 | // at com.sun.tools.javac.comp.Attr.attribType(Attr.java:404) | COMMENT |
| CRITICAL | …n/java/org/openrewrite/java/ReloadableJava8Parser.java | 220 | com.sun.tools.javac.util.List<JCTree.JCCompilationUnit> jcCompilationUnits = com.sun.tools.javac.util.List.f | CODE |
| CRITICAL | …n/java/org/openrewrite/java/ReloadableJava8Parser.java | 298 | com.sun.tools.javac.util.List<JCTree.JCCompilationUnit> compilationUnits = com.sun.tools.javac.util.List.from( | CODE |
| CRITICAL | …e-go/src/main/java/org/openrewrite/golang/tree/Go.java | 214 | if (org.openrewrite.java.service.AutoFormatService.class.getName().equals(service.getName())) { | CODE |
| CRITICAL | …e-go/src/main/java/org/openrewrite/golang/tree/Go.java | 219 | if (org.openrewrite.java.service.ImportService.class.getName().equals(service.getName())) { | CODE |
| CRITICAL | …enrewrite/marketplace/RecipeMarketplaceReaderTest.java | 92 | org.assertj.core.api.Assertions.tuple("groupId", "Group ID", "The group ID of the dependency", true, "org.op | STRING |
| CRITICAL | …enrewrite/marketplace/RecipeMarketplaceReaderTest.java | 93 | org.assertj.core.api.Assertions.tuple("artifactId", "Artifact ID", "The artifact ID of the dependency", fals | STRING |
| CRITICAL | …enrewrite/marketplace/RecipeMarketplaceReaderTest.java | 113 | org.assertj.core.api.Assertions.tuple("org.openrewrite.java.dependencies.DependencyListTable", "Dependencies | STRING |
| CRITICAL | …enrewrite/marketplace/RecipeMarketplaceReaderTest.java | 114 | org.assertj.core.api.Assertions.tuple("org.openrewrite.java.dependencies.RepositoryTable", "Repositories", " | STRING |
| CRITICAL | …enrewrite/marketplace/RecipeMarketplaceReaderTest.java | 134 | org.assertj.core.api.Assertions.tuple("groupId", "String", "Group ID", "The dependency group"), | STRING |
| CRITICAL | …enrewrite/marketplace/RecipeMarketplaceReaderTest.java | 135 | org.assertj.core.api.Assertions.tuple("artifactId", "String", "Artifact ID", null) | STRING |
| 34 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | rewrite.yml | 1 | # | COMMENT |
| LOW | rewrite.yml | 141 | # before UseDiamondOperator, as they need the explicit type arguments on constructors | COMMENT |
| LOW | rewrite.yml | 161 | methodPattern: 'org.openrewrite..Assertions *(..)' | COMMENT |
| LOW | …/org/openrewrite/maven/AddAnnotationProcessorTest.java | 2641 | void orphanModuleSharedLstWithExternalParent() { | COMMENT |
| LOW | …te-maven/src/main/resources/META-INF/rewrite/maven.yml | 1 | # | COMMENT |
| LOW | …c/main/resources/META-INF/rewrite/maven-categories.yml | 1 | # | COMMENT |
| LOW | …java/org/openrewrite/maven/AddAnnotationProcessor.java | 221 | // Resolve each <module> string relative to the aggregator's | COMMENT |
| LOW | …rc/main/resources/META-INF/rewrite/json-categories.yml | 1 | # | COMMENT |
| LOW | …est/java/org/openrewrite/yaml/JsonPathMatcherTest.java | 1041 | @Test | COMMENT |
| LOW | …rc/main/resources/META-INF/rewrite/yaml-categories.yml | 1 | # | COMMENT |
| LOW | …/main/resources/META-INF/rewrite/groovy-categories.yml | 1 | # | COMMENT |
| LOW | …te-csharp/csharp/OpenRewrite/Core/CategoryAttribute.cs | 21 | /// <see cref="CategoryDescriptorAttribute"/> instances (in declaration order) form the levels | COMMENT |
| LOW | …te-csharp/csharp/OpenRewrite/Core/RecipeMarketplace.cs | 61 | /// their marketplace placement via <see cref="CategoryAttribute"/> + <see cref="CategoryDescriptorAttribute"/>. | COMMENT |
| LOW | rewrite-csharp/csharp/OpenRewrite/Core/TreeVisitor.cs | 21 | /// Subclasses override <see cref="Accept"/> to dispatch to type-specific visit methods. | COMMENT |
| LOW | rewrite-csharp/csharp/OpenRewrite/Core/TreeVisitor.cs | 81 | /// <summary> | COMMENT |
| LOW | rewrite-csharp/csharp/OpenRewrite/Core/RecipeRef.cs | 21 | /// Recipe-identity placeholder for use as a precondition. | COMMENT |
| LOW | rewrite-csharp/csharp/OpenRewrite/Core/RecipeRef.cs | 41 | /// | COMMENT |
| LOW | …rite-csharp/csharp/OpenRewrite/Core/IDataTableStore.cs | 21 | /// </summary> | COMMENT |
| LOW | …csharp/OpenRewrite/Core/CategoryDescriptorAttribute.cs | 21 | /// <see cref="Recipe"/> classes — preceded by a <see cref="CategoryAttribute"/> | COMMENT |
| LOW | rewrite-csharp/csharp/OpenRewrite/Core/SearchResult.cs | 21 | /// <summary> | COMMENT |
| LOW | …ite-csharp/csharp/OpenRewrite/Core/IRecipeActivator.cs | 21 | /// <para> | COMMENT |
| LOW | rewrite-csharp/csharp/OpenRewrite/Core/Rpc/RpcJson.cs | 21 | COMMENT | |
| LOW | rewrite-csharp/csharp/OpenRewrite/Test/RpcFixture.cs | 101 | /// <p> | COMMENT |
| LOW | rewrite-csharp/csharp/OpenRewrite/Test/Validations.cs | 21 | /// when a recipe is known to produce results that don't satisfy a particular invariant. | COMMENT |
| LOW | rewrite-csharp/csharp/OpenRewrite/Test/Validations.cs | 41 | /// <summary> | COMMENT |
| LOW | rewrite-csharp/csharp/OpenRewrite/Java/J.cs | 2381 | } | COMMENT |
| LOW | …te-csharp/csharp/OpenRewrite/Java/Search/UsesMethod.cs | 21 | COMMENT | |
| LOW | …-csharp/csharp/OpenRewrite/Java/Search/IsSourceFile.cs | 21 | /// <summary> | COMMENT |
| LOW | …csharp/csharp/OpenRewrite/Java/Search/Preconditions.cs | 21 | /// Search-based precondition helpers that name a Java recipe to evaluate | COMMENT |
| LOW | …rite-csharp/csharp/OpenRewrite/Java/Search/UsesType.cs | 21 | /// <summary> | COMMENT |
| LOW | …arp/csharp/OpenRewrite/Xml/Grammar/XMLParserVisitor.cs | 21 | // Changes to this file may cause incorrect behavior and will be lost if | COMMENT |
| LOW | …arp/csharp/OpenRewrite/Xml/Grammar/XMLParserVisitor.cs | 41 | COMMENT | |
| LOW | …arp/csharp/OpenRewrite/Xml/Grammar/XMLParserVisitor.cs | 61 | Result VisitProlog([NotNull] XMLParser.PrologContext context); | COMMENT |
| LOW | …arp/csharp/OpenRewrite/Xml/Grammar/XMLParserVisitor.cs | 81 | /// Visit a parse tree produced by <see cref="XMLParser.intsubset"/>. | COMMENT |
| LOW | …arp/csharp/OpenRewrite/Xml/Grammar/XMLParserVisitor.cs | 101 | /// <param name="context">The parse tree.</param> | COMMENT |
| LOW | …arp/csharp/OpenRewrite/Xml/Grammar/XMLParserVisitor.cs | 121 | Result VisitElement([NotNull] XMLParser.ElementContext context); | COMMENT |
| LOW | …arp/csharp/OpenRewrite/Xml/Grammar/XMLParserVisitor.cs | 141 | /// Visit a parse tree produced by <see cref="XMLParser.jspdeclaration"/>. | COMMENT |
| LOW | …arp/csharp/OpenRewrite/Xml/Grammar/XMLParserVisitor.cs | 161 | /// <param name="context">The parse tree.</param> | COMMENT |
| LOW | …rp/csharp/OpenRewrite/Xml/Grammar/XMLParserListener.cs | 21 | // Changes to this file may cause incorrect behavior and will be lost if | COMMENT |
| LOW | …rp/csharp/OpenRewrite/Xml/Grammar/XMLParserListener.cs | 41 | COMMENT | |
| LOW | …rp/csharp/OpenRewrite/Xml/Grammar/XMLParserListener.cs | 61 | /// </summary> | COMMENT |
| LOW | …rp/csharp/OpenRewrite/Xml/Grammar/XMLParserListener.cs | 81 | /// </summary> | COMMENT |
| LOW | …rp/csharp/OpenRewrite/Xml/Grammar/XMLParserListener.cs | 101 | /// </summary> | COMMENT |
| LOW | …rp/csharp/OpenRewrite/Xml/Grammar/XMLParserListener.cs | 121 | /// </summary> | COMMENT |
| LOW | …rp/csharp/OpenRewrite/Xml/Grammar/XMLParserListener.cs | 141 | /// </summary> | COMMENT |
| LOW | …rp/csharp/OpenRewrite/Xml/Grammar/XMLParserListener.cs | 161 | /// </summary> | COMMENT |
| LOW | …rp/csharp/OpenRewrite/Xml/Grammar/XMLParserListener.cs | 181 | /// </summary> | COMMENT |
| LOW | …rp/csharp/OpenRewrite/Xml/Grammar/XMLParserListener.cs | 201 | /// </summary> | COMMENT |
| LOW | …rp/csharp/OpenRewrite/Xml/Grammar/XMLParserListener.cs | 221 | /// </summary> | COMMENT |
| LOW | …rp/csharp/OpenRewrite/Xml/Grammar/XMLParserListener.cs | 241 | /// </summary> | COMMENT |
| LOW | …ite-csharp/csharp/OpenRewrite/Xml/Grammar/XMLParser.cs | 21 | // Changes to this file may cause incorrect behavior and will be lost if | COMMENT |
| LOW | …rite-csharp/csharp/OpenRewrite/Xml/Grammar/XMLLexer.cs | 21 | // Changes to this file may cause incorrect behavior and will be lost if | COMMENT |
| LOW | …csharp/OpenRewrite/Xml/Grammar/XMLParserBaseVisitor.cs | 21 | // Changes to this file may cause incorrect behavior and will be lost if | COMMENT |
| LOW | …csharp/OpenRewrite/Xml/Grammar/XMLParserBaseVisitor.cs | 41 | using ParserRuleContext = Antlr4.Runtime.ParserRuleContext; | COMMENT |
| LOW | …csharp/OpenRewrite/Xml/Grammar/XMLParserBaseVisitor.cs | 61 | /// <return>The visitor result.</return> | COMMENT |
| LOW | …csharp/OpenRewrite/Xml/Grammar/XMLParserBaseVisitor.cs | 81 | /// <return>The visitor result.</return> | COMMENT |
| LOW | …csharp/OpenRewrite/Xml/Grammar/XMLParserBaseVisitor.cs | 101 | /// <return>The visitor result.</return> | COMMENT |
| LOW | …csharp/OpenRewrite/Xml/Grammar/XMLParserBaseVisitor.cs | 121 | /// <return>The visitor result.</return> | COMMENT |
| LOW | …csharp/OpenRewrite/Xml/Grammar/XMLParserBaseVisitor.cs | 141 | /// <return>The visitor result.</return> | COMMENT |
| LOW | …csharp/OpenRewrite/Xml/Grammar/XMLParserBaseVisitor.cs | 161 | /// <return>The visitor result.</return> | COMMENT |
| 466 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | rewrite-python/rewrite/tests/test_data_table.py | 21 | CODE | |
| LOW | rewrite-python/rewrite/tests/test_rewrite_test.py | 32 | CODE | |
| LOW | rewrite-python/rewrite/tests/test_rewrite_test.py | 363 | CODE | |
| LOW | rewrite-python/rewrite/tests/test_replace_identity.py | 23 | CODE | |
| LOW | rewrite-python/rewrite/tests/test_replace_identity.py | 27 | CODE | |
| LOW | rewrite-python/rewrite/tests/test_preconditions.py | 21 | CODE | |
| LOW | rewrite-python/rewrite/tests/test_preconditions.py | 21 | CODE | |
| LOW | rewrite-python/rewrite/tests/test_preconditions.py | 25 | CODE | |
| LOW | rewrite-python/rewrite/tests/test_preconditions.py | 34 | CODE | |
| LOW | rewrite-python/rewrite/tests/test_preconditions.py | 35 | CODE | |
| LOW | rewrite-python/rewrite/tests/test_marketplace.py | 19 | CODE | |
| LOW | …rewrite/tests/python/test_declared_version_typeshed.py | 35 | CODE | |
| LOW | …e-python/rewrite/tests/python/test_type_attribution.py | 30 | CODE | |
| LOW | …e-python/rewrite/tests/python/test_type_attribution.py | 40 | CODE | |
| LOW | …e-python/rewrite/tests/python/test_type_attribution.py | 40 | CODE | |
| LOW | …e-python/rewrite/tests/python/test_type_attribution.py | 3769 | CODE | |
| LOW | …e-python/rewrite/tests/python/test_type_attribution.py | 3893 | CODE | |
| LOW | …e-python/rewrite/tests/python/test_type_attribution.py | 4284 | CODE | |
| LOW | …ite-python/rewrite/tests/python/version_detect_test.py | 18 | CODE | |
| LOW | …thon/rewrite/tests/python/template/test_placeholder.py | 20 | CODE | |
| LOW | …e-python/rewrite/tests/python/template/test_pattern.py | 20 | CODE | |
| LOW | …e-python/rewrite/tests/python/template/test_capture.py | 19 | CODE | |
| LOW | …e-python/rewrite/tests/python/template/test_capture.py | 19 | CODE | |
| LOW | …ython/rewrite/tests/python/template/test_comparator.py | 17 | CODE | |
| LOW | …-python/rewrite/tests/python/template/test_template.py | 22 | CODE | |
| LOW | …-python/rewrite/tests/python/template/test_template.py | 29 | CODE | |
| LOW | …on/rewrite/tests/python/all/tree/comprehension_test.py | 1 | CODE | |
| LOW | …rite-python/rewrite/tests/python/all/tree/with_test.py | 1 | CODE | |
| LOW | …write-python/rewrite/tests/python/all/tree/try_test.py | 1 | CODE | |
| LOW | …te-python/rewrite/tests/python/all/tree/import_test.py | 2 | CODE | |
| LOW | …write-python/rewrite/tests/python/all/tree/def_test.py | 1 | CODE | |
| LOW | rewrite-python/rewrite/tests/python/all/tree/if_test.py | 1 | CODE | |
| LOW | …on/rewrite/tests/python/all/format/blank_lines_test.py | 1 | CODE | |
| LOW | …on/rewrite/tests/python/all/format/blank_lines_test.py | 2 | CODE | |
| LOW | …-python/rewrite/tests/python/py312/with_parens_test.py | 1 | CODE | |
| LOW | …ite-python/rewrite/tests/python/py27/remaining_test.py | 19 | CODE | |
| LOW | …ite-python/rewrite/tests/python/py27/remaining_test.py | 25 | CODE | |
| LOW | rewrite-python/rewrite/tests/python/py27/sweep_test.py | 25 | CODE | |
| LOW | …write-python/rewrite/tests/python/py27/funcdef_test.py | 21 | CODE | |
| LOW | …write-python/rewrite/tests/recipes/test_remove_pass.py | 17 | CODE | |
| LOW | …-python/rewrite/tests/rpc/test_file_attributes_wire.py | 17 | CODE | |
| LOW | …/tests/rpc/test_recipes_that_made_changes_roundtrip.py | 18 | CODE | |
| LOW | rewrite-python/rewrite/tests/rpc/test_marker_codecs.py | 45 | CODE | |
| LOW | …rite-python/rewrite/tests/rpc/test_dependency_types.py | 33 | CODE | |
| LOW | rewrite-python/rewrite/src/rewrite/tree.py | 1 | CODE | |
| LOW | rewrite-python/rewrite/src/rewrite/tree.py | 19 | CODE | |
| LOW | rewrite-python/rewrite/src/rewrite/execution.py | 1 | CODE | |
| LOW | rewrite-python/rewrite/src/rewrite/execution.py | 11 | CODE | |
| LOW | rewrite-python/rewrite/src/rewrite/execution.py | 11 | CODE | |
| LOW | rewrite-python/rewrite/src/rewrite/style.py | 1 | CODE | |
| LOW | rewrite-python/rewrite/src/rewrite/discovery.py | 17 | CODE | |
| LOW | rewrite-python/rewrite/src/rewrite/__init__.py | 10 | CODE | |
| LOW | rewrite-python/rewrite/src/rewrite/__init__.py | 10 | CODE | |
| LOW | rewrite-python/rewrite/src/rewrite/__init__.py | 10 | CODE | |
| LOW | rewrite-python/rewrite/src/rewrite/__init__.py | 10 | CODE | |
| LOW | rewrite-python/rewrite/src/rewrite/__init__.py | 11 | CODE | |
| LOW | rewrite-python/rewrite/src/rewrite/__init__.py | 12 | CODE | |
| LOW | rewrite-python/rewrite/src/rewrite/__init__.py | 12 | CODE | |
| LOW | rewrite-python/rewrite/src/rewrite/__init__.py | 12 | CODE | |
| LOW | rewrite-python/rewrite/src/rewrite/__init__.py | 12 | CODE | |
| 268 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM⚡ | rewrite-python/rewrite/tests/python/test_type_utils.py | 181 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | rewrite-python/rewrite/tests/python/test_type_utils.py | 183 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | rewrite-python/rewrite/tests/python/test_type_utils.py | 291 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | rewrite-python/rewrite/tests/python/test_type_utils.py | 293 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | rewrite-python/rewrite/tests/python/test_type_utils.py | 359 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | rewrite-python/rewrite/tests/python/test_type_utils.py | 361 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | rewrite-python/rewrite/tests/python/test_type_utils.py | 410 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | rewrite-python/rewrite/tests/python/test_type_utils.py | 412 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | rewrite-python/rewrite/tests/python/test_type_utils.py | 34 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | rewrite-python/rewrite/tests/python/test_type_utils.py | 36 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | rewrite-python/rewrite/tests/python/test_type_utils.py | 112 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | rewrite-python/rewrite/tests/python/test_type_utils.py | 114 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | rewrite-python/rewrite/tests/python/test_type_utils.py | 131 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | rewrite-python/rewrite/tests/python/test_type_utils.py | 133 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | rewrite-python/rewrite/tests/python/test_type_utils.py | 153 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | rewrite-python/rewrite/tests/python/test_type_utils.py | 155 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | rewrite-python/rewrite/tests/python/test_type_utils.py | 227 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | rewrite-python/rewrite/tests/python/test_type_utils.py | 229 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | …-python/rewrite/tests/python/template/test_template.py | 682 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | …-python/rewrite/tests/python/template/test_template.py | 684 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | …-python/rewrite/tests/python/template/test_template.py | 692 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | …-python/rewrite/tests/python/template/test_template.py | 558 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | …-python/rewrite/tests/python/template/test_template.py | 560 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | …ite-python/rewrite/tests/python/py27/remaining_test.py | 202 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | …ite-python/rewrite/tests/python/py27/remaining_test.py | 204 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | …ite-python/rewrite/tests/python/py27/remaining_test.py | 294 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | …ite-python/rewrite/tests/python/py27/remaining_test.py | 296 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | …ite-python/rewrite/tests/python/py27/remaining_test.py | 41 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | …ite-python/rewrite/tests/python/py27/remaining_test.py | 43 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | …ite-python/rewrite/tests/python/py27/remaining_test.py | 74 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | …ite-python/rewrite/tests/python/py27/remaining_test.py | 76 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | …ite-python/rewrite/tests/python/py27/remaining_test.py | 140 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | …ite-python/rewrite/tests/python/py27/remaining_test.py | 142 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | …ite-python/rewrite/tests/python/py27/remaining_test.py | 183 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | …ite-python/rewrite/tests/python/py27/remaining_test.py | 185 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | …ite-python/rewrite/tests/python/py27/remaining_test.py | 226 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | …ite-python/rewrite/tests/python/py27/remaining_test.py | 228 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | …ite-python/rewrite/tests/python/py27/remaining_test.py | 256 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | …ite-python/rewrite/tests/python/py27/remaining_test.py | 258 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | …write-python/rewrite/tests/python/py27/comment_test.py | 69 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | …write-python/rewrite/tests/python/py27/comment_test.py | 71 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | …te-python/rewrite/tests/python/py27/round_trip_test.py | 35 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | …te-python/rewrite/tests/python/py27/round_trip_test.py | 37 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | rewrite-python/rewrite/src/rewrite/python/visitor.py | 86 | # ------------------------------------------------------------------------- | COMMENT |
| MEDIUM | rewrite-python/rewrite/src/rewrite/python/visitor.py | 88 | # ------------------------------------------------------------------------- | COMMENT |
| MEDIUM | rewrite-python/rewrite/src/rewrite/python/printer.py | 189 | # ------------------------------------------------------------------------- | COMMENT |
| MEDIUM | rewrite-python/rewrite/src/rewrite/python/printer.py | 191 | # ------------------------------------------------------------------------- | COMMENT |
| MEDIUM | rewrite-python/rewrite/src/rewrite/python/printer.py | 324 | # ------------------------------------------------------------------------- | COMMENT |
| MEDIUM | rewrite-python/rewrite/src/rewrite/python/printer.py | 326 | # ------------------------------------------------------------------------- | COMMENT |
| MEDIUM | rewrite-python/rewrite/src/rewrite/python/printer.py | 887 | # ------------------------------------------------------------------------- | COMMENT |
| MEDIUM | rewrite-python/rewrite/src/rewrite/python/printer.py | 889 | # ------------------------------------------------------------------------- | COMMENT |
| MEDIUM | rewrite-python/rewrite/src/rewrite/python/printer.py | 1049 | # ------------------------------------------------------------------------- | COMMENT |
| MEDIUM | rewrite-python/rewrite/src/rewrite/python/printer.py | 1051 | # ------------------------------------------------------------------------- | COMMENT |
| MEDIUM | …thon/rewrite/src/rewrite/python/template/comparator.py | 39 | # ────────────────────────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | …thon/rewrite/src/rewrite/python/template/comparator.py | 41 | # ────────────────────────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | …thon/rewrite/src/rewrite/python/template/comparator.py | 224 | # ────────────────────────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | …thon/rewrite/src/rewrite/python/template/comparator.py | 226 | # ────────────────────────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | …thon/rewrite/src/rewrite/python/template/comparator.py | 376 | # ────────────────────────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | …thon/rewrite/src/rewrite/python/template/comparator.py | 378 | # ────────────────────────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM⚡ | …/src/rewrite/python/format/tabs_and_indents_visitor.py | 684 | # ------------------------------------------------------------------------- | COMMENT |
| 15 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | rewrite-csharp/csharp/OpenRewrite/CSharp/TypeUtils.cs | 64 | /// when the target type comes from a parsed AST (e.g., a typed capture's scaffold). | COMMENT |
| MEDIUM | …p/csharp/OpenRewrite/CSharp/Template/CSharpTemplate.cs | 74 | /// Create a template with auto-detected scaffold kind. | COMMENT |
| MEDIUM | …p/csharp/OpenRewrite/CSharp/Template/CSharpTemplate.cs | 76 | /// <see cref="ClassMember"/>, or <see cref="Attribute"/> for explicit scaffold control. | COMMENT |
| MEDIUM | …rp/csharp/OpenRewrite/CSharp/Template/CSharpPattern.cs | 60 | /// Create a pattern with auto-detected scaffold kind. | COMMENT |
| MEDIUM | …rp/csharp/OpenRewrite/CSharp/Template/CSharpPattern.cs | 62 | /// <see cref="ClassMember"/>, or <see cref="Attribute"/> for explicit scaffold control. | COMMENT |
| MEDIUM | …p/csharp/OpenRewrite/CSharp/Template/TemplateEngine.cs | 35 | /// Controls how template code is wrapped in a scaffold and how the target node is extracted. | COMMENT |
| MEDIUM | …p/csharp/OpenRewrite/CSharp/Template/TemplateEngine.cs | 54 | /// Wraps template code in a parseable C# scaffold, parses with <see cref="CSharpParser"/>, | COMMENT |
| MEDIUM | …p/csharp/OpenRewrite/CSharp/Template/TemplateEngine.cs | 54 | /// Wraps template code in a parseable C# scaffold, parses with <see cref="CSharpParser"/>, | COMMENT |
| MEDIUM | …p/csharp/OpenRewrite/CSharp/Template/TemplateEngine.cs | 68 | /// Parse a template code string into an AST node using the default scaffold | COMMENT |
| MEDIUM | …p/csharp/OpenRewrite/CSharp/Template/TemplateEngine.cs | 80 | /// The code is wrapped in a scaffold controlled by <paramref name="scaffoldKind"/>, | COMMENT |
| MEDIUM | …p/csharp/OpenRewrite/CSharp/Template/TemplateEngine.cs | 84 | /// When null, uses the legacy Statement scaffold with auto-unwrap of ExpressionStatements.</param> | COMMENT |
| MEDIUM | …p/csharp/OpenRewrite/CSharp/Template/TemplateEngine.cs | 118 | // Compute preamble first — it affects the scaffold shape and must be part of the cache key | COMMENT |
| MEDIUM⚡ | …p/csharp/OpenRewrite/CSharp/Template/TemplateEngine.cs | 255 | // Always create a semantic model so the scaffold gets type attribution. | COMMENT |
| MEDIUM⚡ | …p/csharp/OpenRewrite/CSharp/Template/TemplateEngine.cs | 265 | // When the legacy scaffold (scaffoldKind == null) produces a VariableDeclarations, | COMMENT |
| MEDIUM⚡ | …p/csharp/OpenRewrite/CSharp/Template/TemplateEngine.cs | 267 | // Re-parse using the Expression scaffold where the code appears in an initializer | COMMENT |
| MEDIUM | …p/csharp/OpenRewrite/CSharp/Template/TemplateEngine.cs | 279 | /// for scaffold generation. | COMMENT |
| MEDIUM | …p/csharp/OpenRewrite/CSharp/Template/TemplateEngine.cs | 287 | /// Build the scaffold preamble from captures: field declarations for expression captures, | COMMENT |
| MEDIUM | …p/csharp/OpenRewrite/CSharp/Template/TemplateEngine.cs | 358 | // TODO: emit scaffold that places placeholder in a type position | COMMENT |
| MEDIUM | …p/csharp/OpenRewrite/CSharp/Template/TemplateEngine.cs | 380 | /// The scaffold shape is controlled by <paramref name="scaffoldKind"/>. | COMMENT |
| MEDIUM | …p/csharp/OpenRewrite/CSharp/Template/TemplateEngine.cs | 415 | // Typed capture declarations as class fields — in scope for all scaffold kinds | COMMENT |
| MEDIUM | …p/csharp/OpenRewrite/CSharp/Template/TemplateEngine.cs | 464 | /// Extract the template AST node from the scaffold's compilation unit. | COMMENT |
| MEDIUM | …p/csharp/OpenRewrite/CSharp/Template/TemplateEngine.cs | 494 | /// Falls back to Expression scaffold when the statement is a VariableDeclarations, | COMMENT |
| MEDIUM | …p/csharp/OpenRewrite/CSharp/Template/TemplateEngine.cs | 550 | // Find the scaffold field specifically: object __v__ = <code>; | COMMENT |
| MEDIUM | …p/csharp/OpenRewrite/CSharp/Template/TemplateEngine.cs | 671 | /// Strip the scaffold-induced prefix from the extracted node, | COMMENT |
| MEDIUM | …penRewrite/CSharp/Template/CaptureConstraintContext.cs | 32 | /// type using the fully-resolved type from the scaffold rather than the raw type string.</param> | COMMENT |
| MEDIUM | …arp/OpenRewrite/CSharp/Template/DependencyWorkspace.cs | 28 | /// for template scaffold compilation. Uses <see cref="ReferenceAssemblies"/> from | COMMENT |
| MEDIUM | …arp/OpenRewrite/CSharp/Template/DependencyWorkspace.cs | 38 | /// Added to scaffold compilations so types like <c>Dictionary<,></c> resolve | COMMENT |
| MEDIUM | …arp/OpenRewrite/CSharp/Template/DependencyWorkspace.cs | 68 | /// resolve without explicit <c>using</c> directives in the scaffold. | COMMENT |
| MEDIUM | …e-csharp/csharp/OpenRewrite/CSharp/Template/Capture.cs | 23 | /// Used internally by the template engine to generate appropriate scaffold code. | COMMENT |
| MEDIUM | …e-csharp/csharp/OpenRewrite/CSharp/Template/Capture.cs | 126 | // Prefer the Roslyn-resolved type from the pattern scaffold when available. | COMMENT |
| MEDIUM | …e-csharp/csharp/OpenRewrite/CSharp/Template/Capture.cs | 186 | /// variable declaration in the scaffold preamble, giving the placeholder proper type | COMMENT |
| MEDIUM | …e-csharp/csharp/OpenRewrite/CSharp/Template/Capture.cs | 205 | /// field declaration in the scaffold preamble for type attribution. | COMMENT |
| MEDIUM | …e-csharp/csharp/OpenRewrite/CSharp/Template/Capture.cs | 207 | /// as generic type parameters on the scaffold class, allowing the capture to match | COMMENT |
| MEDIUM | …e-csharp/csharp/OpenRewrite/CSharp/Template/Capture.cs | 222 | /// The template engine will use an appropriate scaffold strategy so Roslyn parses | COMMENT |
| MEDIUM | …csharp/OpenRewrite.Tests/Template/PatternMatchTests.cs | 1277 | // Pattern: list.Contains(1) with explicit receiver (typed capture gives scaffold type info) | COMMENT |
| MEDIUM | …rp/OpenRewrite.Tests/Template/ScaffoldStrategyTests.cs | 260 | // Same code string, different scaffold kinds — must produce different AST types | COMMENT |
| MEDIUM | …/main/kotlin/org/openrewrite/dsl/scopes/KotlinScope.kt | 16 | // Hand-written scaffold: KotlinScope mirrors JavaScope (generated from JavaVisitor `.class`) | COMMENT |
| MEDIUM | rewrite-go/pkg/template/matcher_audit_test.go | 33 | // fixture is one snippet of Go source, paired with the scaffold kind that | COMMENT |
| MEDIUM | rewrite-go/pkg/template/placeholder.go | 27 | // that can be used in scaffold source code. | COMMENT |
| MEDIUM | rewrite-go/pkg/template/scaffold.go | 39 | // go/parser can resolve placeholder identifiers in the scaffold source. | COMMENT |
| MEDIUM | rewrite-go/pkg/template/scaffold.go | 110 | // parseScaffold parses the scaffold source and extracts the target node. | COMMENT |
| MEDIUM | rewrite-go/pkg/template/scaffold.go | 132 | // The target is the initializer of the one variable the scaffold | COMMENT |
| MEDIUM | rewrite-go/pkg/template/scaffold.go | 178 | // scaffoldEnd is the declaration the scaffold writes after the template code. | COMMENT |
| MEDIUM | rewrite-go/pkg/template/context_test.go | 130 | // The scaffold always declares something of its own. | COMMENT |
| MEDIUM | rewrite-go/pkg/template/field_plan.go | 71 | // clause and imports that a scaffold writes for itself. | COMMENT |
| MEDIUM | rewrite-go/pkg/template/capture.go | 74 | // WithType declares the Go type a capture stands for. The scaffold preamble | COMMENT |
| MEDIUM | rewrite-go/pkg/template/go_template.go | 85 | // other. The cache is what the scaffold parse produced, once. | COMMENT |
| MEDIUM | rewrite-go/pkg/template/go_template.go | 108 | // The prefix is the gap the scaffold leaves before the template code, | COMMENT |
| MEDIUM | rewrite-go/pkg/template/go_pattern.go | 102 | // scaffold preamble declared for it. A name that did not resolve would | COMMENT |
| MEDIUM | doc/adr/0009-native-python-lock-regeneration.md | 332 | #### 7. Engine orchestration | COMMENT |
| MEDIUM | rewrite-python/rewrite/src/rewrite/rpc/rpc_recipe.py | 127 | # Never reached when the JVM orchestrates (the server short-circuits to | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | …e-python/rewrite/tests/python/test_type_attribution.py | 3772 | except ImportError: | CODE |
| HIGH | …e-python/rewrite/tests/python/test_type_attribution.py | 3896 | except ImportError: | CODE |
| HIGH | …e-python/rewrite/tests/python/test_type_attribution.py | 4287 | except ImportError: | CODE |
| HIGH | rewrite-python/rewrite/scripts/generate_stubs.py | 761 | except ValueError: | CODE |
| HIGH | rewrite-python/rewrite/src/rewrite/tree.py | 158 | except OSError: | CODE |
| HIGH | rewrite-python/rewrite/src/rewrite/__init__.py | 7 | except ImportError: | CODE |
| HIGH | rewrite-python/rewrite/src/rewrite/test/rewrite_test.py | 553 | except OSError: | CODE |
| HIGH | …rite-python/rewrite/src/rewrite/python/type_mapping.py | 431 | except RuntimeError: | CODE |
| HIGH | …rite-python/rewrite/src/rewrite/python/type_mapping.py | 1053 | except OSError: | CODE |
| HIGH | …hon/rewrite/src/rewrite/python/dependency_workspace.py | 224 | except OSError: | CODE |
| HIGH | …e-python/rewrite/src/rewrite/python/_parser_visitor.py | 2237 | except ValueError: | CODE |
| HIGH | rewrite-python/rewrite/src/rewrite/python/ty_client.py | 272 | except (ImportError, FileNotFoundError): | CODE |
| HIGH | rewrite-python/rewrite/src/rewrite/python/ty_client.py | 467 | except OSError: | CODE |
| HIGH | …e-python/rewrite/src/rewrite/python/template/engine.py | 482 | except (ValueError, AttributeError): | CODE |
| HIGH | …e-python/rewrite/src/rewrite/python/template/engine.py | 357 | except OSError: | CODE |
| HIGH | rewrite-python/rewrite/src/rewrite/rpc/server.py | 812 | except (ImportError, RuntimeError): | CODE |
| HIGH | rewrite-python/rewrite/src/rewrite/rpc/server.py | 3192 | except (OSError, ValueError, IndexError): | CODE |
| HIGH | rewrite-python/rewrite/src/rewrite/rpc/server.py | 388 | except ValueError: | CODE |
| HIGH | rewrite-python/rewrite/src/rewrite/rpc/server.py | 1056 | except OSError: | CODE |
| HIGH | rewrite-python/rewrite/src/rewrite/rpc/server.py | 740 | except OSError: | CODE |
| HIGH | rewrite-python/rewrite/src/rewrite/rpc/server.py | 746 | except OSError: | CODE |
| HIGH | rewrite-python/rewrite/src/rewrite/rpc/server.py | 1551 | except Exception: | CODE |
| HIGH | rewrite-python/rewrite/src/rewrite/rpc/server.py | 2664 | except Exception: | CODE |
| HIGH | rewrite-python/rewrite/src/rewrite/rpc/server.py | 3229 | except OSError: | CODE |
| HIGH | rewrite-python/rewrite/src/rewrite/rpc/server.py | 351 | except Exception: | CODE |
| HIGH | rewrite-python/rewrite/src/rewrite/rpc/server.py | 364 | except Exception: | CODE |
| HIGH | rewrite-python/rewrite/src/rewrite/rpc/json_codec.py | 40 | except TypeError: | CODE |
| HIGH | rewrite-python/rewrite/src/rewrite/rpc/json_codec.py | 51 | except orjson.JSONDecodeError: | CODE |
| HIGH | …ite-python/rewrite/src/rewrite/rpc/child_connection.py | 159 | except Exception: | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | rewrite-python/rewrite/tests/conftest.py | 123 | CODE | |
| LOW | …hon/rewrite/tests/python/whitespace_attachment_test.py | 108 | CODE | |
| LOW | …hon/rewrite/tests/python/whitespace_attachment_test.py | 111 | CODE | |
| LOW | …python/rewrite/tests/python/all/tree/type_hint_test.py | 234 | CODE | |
| LOW | …python/rewrite/tests/python/all/tree/type_hint_test.py | 278 | CODE | |
| LOW | …python/rewrite/tests/python/all/tree/type_hint_test.py | 238 | CODE | |
| LOW | …python/rewrite/tests/python/all/tree/type_hint_test.py | 282 | CODE | |
| LOW | …python/rewrite/tests/python/all/tree/type_hint_test.py | 242 | CODE | |
| LOW | …python/rewrite/tests/python/all/tree/type_hint_test.py | 286 | CODE | |
| LOW | …ite-python/rewrite/tests/python/all/tree/class_test.py | 121 | CODE | |
| LOW | …ite-python/rewrite/tests/python/all/tree/class_test.py | 125 | CODE | |
| LOW | …ite-python/rewrite/tests/python/all/tree/class_test.py | 129 | CODE | |
| LOW | …write/tests/python/all/tree/method_declaration_test.py | 199 | CODE | |
| LOW | …write/tests/python/all/tree/method_declaration_test.py | 249 | CODE | |
| LOW | …write/tests/python/all/tree/method_declaration_test.py | 203 | CODE | |
| LOW | …write/tests/python/all/tree/method_declaration_test.py | 253 | CODE | |
| LOW | …write/tests/python/all/tree/method_declaration_test.py | 207 | CODE | |
| LOW | …write/tests/python/all/tree/method_declaration_test.py | 257 | CODE | |
| LOW | …write/tests/python/all/tree/collection_literal_test.py | 119 | CODE | |
| LOW | …write/tests/python/all/tree/collection_literal_test.py | 150 | CODE | |
| LOW | …write/tests/python/all/tree/collection_literal_test.py | 123 | CODE | |
| LOW | …write/tests/python/all/tree/collection_literal_test.py | 154 | CODE | |
| LOW | …write/tests/python/all/tree/collection_literal_test.py | 127 | CODE | |
| LOW | …write/tests/python/all/tree/collection_literal_test.py | 158 | CODE | |
| LOW | …ite-python/rewrite/tests/python/all/tree/match_test.py | 186 | CODE | |
| LOW | …te-python/rewrite/tests/python/all/tree/assign_test.py | 139 | CODE | |
| LOW | …te-python/rewrite/tests/python/all/tree/assign_test.py | 143 | CODE | |
| LOW | …te-python/rewrite/tests/python/all/tree/assign_test.py | 147 | CODE | |
| LOW | …te-python/rewrite/tests/python/all/tree/assign_test.py | 167 | CODE | |
| LOW | rewrite-python/rewrite/scripts/generate_stubs.py | 59 | CODE | |
| LOW | rewrite-python/rewrite/scripts/generate_stubs.py | 80 | CODE | |
| LOW | rewrite-python/rewrite/scripts/generate_stubs.py | 98 | CODE | |
| LOW | rewrite-python/rewrite/scripts/generate_stubs.py | 232 | CODE | |
| LOW | rewrite-python/rewrite/scripts/generate_stubs.py | 298 | CODE | |
| LOW | rewrite-python/rewrite/scripts/generate_stubs.py | 424 | CODE | |
| LOW | rewrite-python/rewrite/scripts/generate_stubs.py | 458 | CODE | |
| LOW | rewrite-python/rewrite/scripts/generate_stubs.py | 496 | CODE | |
| LOW | rewrite-python/rewrite/scripts/generate_stubs.py | 513 | CODE | |
| LOW | rewrite-python/rewrite/scripts/generate_stubs.py | 573 | CODE | |
| LOW | rewrite-python/rewrite/scripts/generate_stubs.py | 612 | CODE | |
| LOW | rewrite-python/rewrite/scripts/generate_stubs.py | 634 | CODE | |
| LOW | rewrite-python/rewrite/src/rewrite/style.py | 37 | CODE | |
| LOW | rewrite-python/rewrite/src/rewrite/visitor.py | 136 | CODE | |
| LOW | rewrite-python/rewrite/src/rewrite/utils.py | 236 | CODE | |
| LOW | rewrite-python/rewrite/src/rewrite/utils.py | 262 | CODE | |
| LOW | rewrite-python/rewrite/src/rewrite/test/well_formed.py | 42 | CODE | |
| LOW | rewrite-python/rewrite/src/rewrite/test/spec.py | 118 | CODE | |
| LOW | rewrite-python/rewrite/src/rewrite/test/rewrite_test.py | 362 | CODE | |
| LOW | rewrite-python/rewrite/src/rewrite/test/rewrite_test.py | 482 | CODE | |
| LOW | rewrite-python/rewrite/src/rewrite/test/rewrite_test.py | 606 | CODE | |
| LOW | …write-python/rewrite/src/rewrite/test/added_markers.py | 92 | CODE | |
| LOW | …rite-python/rewrite/src/rewrite/python/type_mapping.py | 44 | CODE | |
| LOW | …rite-python/rewrite/src/rewrite/python/type_mapping.py | 198 | CODE | |
| LOW | …rite-python/rewrite/src/rewrite/python/type_mapping.py | 210 | CODE | |
| LOW | …rite-python/rewrite/src/rewrite/python/type_mapping.py | 636 | CODE | |
| LOW | …rite-python/rewrite/src/rewrite/python/type_mapping.py | 722 | CODE | |
| LOW | …rite-python/rewrite/src/rewrite/python/type_mapping.py | 1170 | CODE | |
| LOW | …rite-python/rewrite/src/rewrite/python/type_mapping.py | 1313 | CODE | |
| LOW | …rite-python/rewrite/src/rewrite/python/type_mapping.py | 1518 | CODE | |
| LOW | …rite-python/rewrite/src/rewrite/python/type_mapping.py | 1787 | CODE | |
| 83 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | rewrite-python/rewrite/tests/test_undefined_names.py | 114 | assert not undefined, ( | CODE |
| HIGH | rewrite-python/rewrite/tests/test_undefined_names.py | 116 | f"at runtime: {', '.join(undefined)}" | CODE |
| HIGH⚡ | …ite-python/rewrite/tests/python/test_method_matcher.py | 186 | assert str_arg.matches(JavaType.Union(_bounds=[string, null])) | CODE |
| HIGH⚡ | rewrite-python/rewrite/tests/python/test_type_utils.py | 284 | assert is_of_type(JavaType.Union(_bounds=[string, null]), JavaType.Union(_bounds=[null, string])) | CODE |
| HIGH⚡ | rewrite-python/rewrite/tests/python/test_type_utils.py | 286 | wider = JavaType.Union(_bounds=[string, null, JavaType.Primitive.Int]) | CODE |
| HIGH⚡ | rewrite-python/rewrite/tests/python/test_type_utils.py | 287 | assert not is_of_type(JavaType.Union(_bounds=[string, null]), wider) | CODE |
| HIGH⚡ | rewrite-python/rewrite/tests/python/test_type_utils.py | 288 | assert not is_of_type(wider, JavaType.Union(_bounds=[string, null])) | CODE |
| HIGH⚡ | rewrite-python/rewrite/tests/python/test_type_utils.py | 400 | string, null, int_ = JavaType.Primitive.String, JavaType.Primitive.Null, JavaType.Primitive.Int | CODE |
| HIGH⚡ | rewrite-python/rewrite/tests/python/test_type_utils.py | 401 | optional_str = JavaType.Union(_bounds=[string, null]) | CODE |
| HIGH⚡ | rewrite-python/rewrite/tests/python/test_type_utils.py | 402 | assert is_assignable_to(JavaType.Union(_bounds=[string, int_, null]), optional_str) | CODE |
| HIGH⚡ | …on/rewrite/tests/python/template/test_typed_capture.py | 66 | str(undefined) | STRING |
| HIGH⚡ | …on/rewrite/tests/python/template/test_typed_capture.py | 74 | str(undefined) | STRING |
| HIGH⚡ | …on/rewrite/tests/python/template/test_typed_capture.py | 170 | str(undefined) | STRING |
| HIGH⚡ | …on/rewrite/tests/python/template/test_typed_capture.py | 173 | repr(undefined) | STRING |
| HIGH | …hon/rewrite/src/rewrite/python/template/placeholder.py | 206 | f"Placeholders reference undefined captures: {undefined}. " | CODE |
| HIGH | rewrite-python/rewrite/src/rewrite/rpc/python_sender.py | 393 | # Python's Slice doesn't have a type field, but Java expects one (always null) | COMMENT |
| HIGH | …rite-python/rewrite/src/rewrite/rpc/python_receiver.py | 413 | # Python's Slice doesn't have a type field, but Java sends one (always null) | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | rewrite-python/rewrite/src/rewrite/decorators.py | 29 | Decorator to mark a Recipe class with category information for discovery. The category path specifies where in | STRING |
| HIGH | …te-python/rewrite/src/rewrite/python/method_matcher.py | 94 | Create a MethodMatcher from a pattern string. Pattern format: `type#method(args)` or `type method(args | STRING |
| HIGH | …hon/rewrite/src/rewrite/python/template/placeholder.py | 35 | Convert a capture name to a placeholder identifier. Args: name: The capture name. Returns: | STRING |
| HIGH | …hon/rewrite/src/rewrite/python/template/placeholder.py | 54 | Extract the capture name from a placeholder identifier. Args: identifier: A potential placeholder iden | STRING |
| HIGH | …hon/rewrite/src/rewrite/python/template/placeholder.py | 97 | Find all {name} placeholders in template code. Args: code: The template code string. Returns: | STRING |
| HIGH | …hon/rewrite/src/rewrite/python/template/placeholder.py | 127 | Replace {name} placeholders with parseable identifiers. Converts template code with f-string style placeholder | STRING |
| HIGH | …-python/rewrite/src/rewrite/python/template/pattern.py | 75 | Get a captured value (dict-style access). Args: key: The capture name or Capture object. | STRING |
| HIGH | …-python/rewrite/src/rewrite/python/template/pattern.py | 210 | Match this pattern against an AST node. Args: tree: The AST node to match against. | STRING |
| HIGH | …-python/rewrite/src/rewrite/python/template/pattern.py | 263 | Create a pattern from Python code. This is the primary factory function for creating patterns. Args: | STRING |
| HIGH | …-python/rewrite/src/rewrite/python/template/capture.py | 108 | Create a capture specification for use in patterns and templates. Args: name: Name for the capture (au | STRING |
| HIGH | …-python/rewrite/src/rewrite/python/template/capture.py | 191 | Create a RawCode instance for splice-time code insertion. Unlike captures (resolved at apply time), raw() spli | STRING |
| HIGH | …e-python/rewrite/src/rewrite/python/template/engine.py | 108 | Parse template code and return the extracted AST. Args: code: Template code with {name} pl | STRING |
| HIGH | …e-python/rewrite/src/rewrite/python/template/engine.py | 365 | Extract the template content from the wrapper function. Args: cu: CompilationUnit containi | STRING |
| HIGH | …python/rewrite/src/rewrite/python/template/template.py | 135 | Apply this template, returning the generated AST node. Args: cursor: Where the result land | STRING |
| HIGH | …python/rewrite/src/rewrite/python/template/template.py | 391 | Create a template from Python code. This is the primary factory function for creating templates. Args: | STRING |
| HIGH | rewrite-python/rewrite/src/rewrite/rpc/rpc_recipe.py | 149 | Prepare a Java recipe for execution via RPC. This sends a PrepareRecipe RPC request to the Java side, which instant | STRING |
| HIGH | rewrite-python/rewrite/src/rewrite/rpc/server.py | 204 | Send a JSON-RPC request to Java and wait for the response. This enables bidirectional communication - Python can re | STRING |
| HIGH | rewrite-python/rewrite/src/rewrite/rpc/server.py | 3027 | Read a JSON-RPC message from stdin, bounding the wait for it to *start*. Args: timeout_seconds: Maximum tim | STRING |
| HIGH | rewrite-python/rewrite/src/rewrite/rpc/receive_queue.py | 156 | Receive and deserialize an object, asserting result is not None. Use this when the protocol guarantees a non-nu | STRING |
| HIGH | rewrite-python/rewrite/src/rewrite/rpc/receive_queue.py | 299 | Receive and deserialize a list, asserting result is not None. Use this when the protocol guarantees a non-null | STRING |
| HIGH | …rite-python/rewrite/src/rewrite/rpc/java_rpc_client.py | 191 | Send a JSON-RPC request to the Java peer and wait for its response, answering any requests the peer mak | STRING |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | …src/test/java/org/openrewrite/yaml/YamlParserTest.java | 1015 | # This file is machine-generated by `gh actions-lock`. | STRING |
| MEDIUM | …test/java/org/openrewrite/hcl/tree/HclCommentTest.java | 262 | # This file contains only a comment | STRING |
| MEDIUM | …test/java/org/openrewrite/hcl/tree/HclCommentTest.java | 271 | hcl("# This file contains only a comment") | CODE |
| MEDIUM | …ython/rewrite/tests/python/template/test_comparator.py | 543 | # Create a target where both sides reference the same identifier (same UUID) | COMMENT |
| MEDIUM | rewrite-python/rewrite/src/rewrite/utils.py | 217 | # Define a type that allows both single and two-argument callables | COMMENT |
| MEDIUM | …rite-python/rewrite/src/rewrite/python/type_mapping.py | 806 | # Create a fresh JavaType.Class per type_id rather than deduplicating | COMMENT |
| MEDIUM | …python/rewrite/src/rewrite/python/template/__init__.py | 28 | # Create a pattern to match print() calls | STRING |
| MEDIUM | …python/rewrite/src/rewrite/python/template/__init__.py | 31 | # Create a template to generate logging calls | STRING |
| MEDIUM | rewrite-python/rewrite/src/rewrite/rpc/server.py | 508 | # Create a ParseExceptionResult marker with the error info | COMMENT |
| MEDIUM | rewrite-python/rewrite/src/rewrite/rpc/server.py | 517 | # Create the ParseError with the marker | COMMENT |
| MEDIUM | rewrite-python/rewrite/src/rewrite/rpc/server.py | 658 | # Create a ty-types client for this parse batch | COMMENT |
| MEDIUM | …/openrewrite/python/internal/PoetryLockParserTest.java | 30 | # This file is automatically @generated by Poetry 2.4.1 and should not be changed by hand. | COMMENT |
| MEDIUM | …org/openrewrite/python/internal/PdmLockParserTest.java | 30 | # This file is @generated by PDM. | COMMENT |
| MEDIUM | …a/org/openrewrite/python/internal/pdmlock/PdmLock.java | 32 | /** The two-line {@code # This file is @generated by PDM.} header, preserved verbatim. */ | COMMENT |
| MEDIUM | …openrewrite/python/internal/poetrylock/PoetryLock.java | 34 | * The full {@code # This file is automatically @generated by Poetry X.Y.Z ...} header line, | COMMENT |
| MEDIUM | …script/rewrite/test/javascript/package-manager.test.ts | 90 | # This file is generated by running "yarn install" inside your project. | COMMENT |
| MEDIUM | …script/rewrite/test/javascript/package-manager.test.ts | 176 | # This file is generated by running "yarn install" inside your project. | COMMENT |
| MEDIUM | …ite/javascript/internal/lock/NativeLockEngineTest.java | 744 | return "# This file is generated by running \"yarn install\" inside your project.\n" + | CODE |
| MEDIUM | …/internal/lock/berry/YarnBerryLockRegeneratorTest.java | 229 | String header = "# This file is generated by running \"yarn install\" inside your project.\n" + | CODE |
| MEDIUM | …penrewrite/javascript/internal/lock/berry/Project.java | 1161 | String header = "# This file is generated by running \"yarn install\" inside your project.\n" + | CODE |
| MEDIUM | …/org/openrewrite/gradle/toolingapi/AssertionsTest.java | 132 | # This file is expected to be part of source control. | COMMENT |
| MEDIUM | …/org/openrewrite/gradle/toolingapi/AssertionsTest.java | 158 | # This file is expected to be part of source control. | COMMENT |
| MEDIUM | …/org/openrewrite/gradle/toolingapi/AssertionsTest.java | 196 | # This file is expected to be part of source control. | COMMENT |
| MEDIUM | …/org/openrewrite/gradle/toolingapi/AssertionsTest.java | 210 | # This file is expected to be part of source control. | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | …arp/csharp/OpenRewrite/Xml/Grammar/XMLParserVisitor.cs | 18 | // This code was generated by a tool. | COMMENT |
| HIGH | …rp/csharp/OpenRewrite/Xml/Grammar/XMLParserListener.cs | 18 | // This code was generated by a tool. | COMMENT |
| HIGH | …ite-csharp/csharp/OpenRewrite/Xml/Grammar/XMLParser.cs | 18 | // This code was generated by a tool. | COMMENT |
| HIGH | …rite-csharp/csharp/OpenRewrite/Xml/Grammar/XMLLexer.cs | 18 | // This code was generated by a tool. | COMMENT |
| HIGH | …csharp/OpenRewrite/Xml/Grammar/XMLParserBaseVisitor.cs | 18 | // This code was generated by a tool. | COMMENT |
| HIGH | …sharp/OpenRewrite/Xml/Grammar/XMLParserBaseListener.cs | 18 | // This code was generated by a tool. | COMMENT |
| HIGH | …rewrite/javascript/internal/lock/pnpm/PnpmRelease.java | 830 | * {@code https://u:p@r.test/foo}), from 11.9.0 (redactUrlCredentials); before, as requested. | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | rewrite-python/rewrite/scripts/generate_stubs.py | 543 | # Check if this is a sibling module import (same package) | COMMENT |
| LOW | rewrite-python/rewrite/scripts/generate_stubs.py | 774 | # Check if we need TypeVar | COMMENT |
| LOW | rewrite-python/rewrite/src/rewrite/discovery.py | 257 | # Check if it's a Recipe subclass (but not Recipe itself) | COMMENT |
| LOW | rewrite-python/rewrite/src/rewrite/discovery.py | 259 | # Check if it has the @recipe decorator | COMMENT |
| LOW | rewrite-python/rewrite/src/rewrite/test/rewrite_test.py | 291 | # Check if there was a change | COMMENT |
| LOW | …thon/rewrite/src/rewrite/python/_py2_parser_visitor.py | 454 | # Check if this is a trailing comma | COMMENT |
| LOW | …te-python/rewrite/src/rewrite/python/method_matcher.py | 346 | # Check if pattern contains .. | COMMENT |
| LOW | …e-python/rewrite/src/rewrite/python/_parser_visitor.py | 780 | # Check if this is an elif (token will be 'elif') vs else (token will be 'else') | COMMENT |
| LOW | …e-python/rewrite/src/rewrite/python/_parser_visitor.py | 1346 | # Check if we're at an opening parenthesis | COMMENT |
| LOW | …e-python/rewrite/src/rewrite/python/_parser_visitor.py | 1351 | # Check if this is a parenthesized pattern (GROUP) | COMMENT |
| LOW | …e-python/rewrite/src/rewrite/python/_parser_visitor.py | 1461 | # Check if there's a NAME token '_' next | COMMENT |
| LOW | …e-python/rewrite/src/rewrite/python/_parser_visitor.py | 2078 | # Check if 'b' or 'B' appears in the prefix | COMMENT |
| LOW | …e-python/rewrite/src/rewrite/python/_parser_visitor.py | 2562 | # Check if we've consumed all content for this AST value | COMMENT |
| LOW | …e-python/rewrite/src/rewrite/python/_parser_visitor.py | 2906 | # Check if '(' at current position actually belongs to the tuple or to the first element | COMMENT |
| LOW | …e-python/rewrite/src/rewrite/python/_parser_visitor.py | 2917 | # Check if the matching ')' covers the whole tuple or just the first element. | COMMENT |
| LOW | …e-python/rewrite/src/rewrite/python/_parser_visitor.py | 2926 | # Check if ')' comes before the second element starts | COMMENT |
| LOW | …e-python/rewrite/src/rewrite/python/_parser_visitor.py | 2947 | # Check if there's a comma inside the parens | COMMENT |
| LOW | …e-python/rewrite/src/rewrite/python/_parser_visitor.py | 3190 | # Check if next token after '[' is '(' to detect parenthesized tuples. | COMMENT |
| LOW | …e-python/rewrite/src/rewrite/python/_parser_visitor.py | 3289 | # Check if closing paren comes before node ends (paren wraps inner expression, not this node) | COMMENT |
| LOW | …e-python/rewrite/src/rewrite/python/_parser_visitor.py | 3554 | # Check if this newline is escaped (line continuation: backslash before newline) | COMMENT |
| LOW | …e-python/rewrite/src/rewrite/python/_parser_visitor.py | 3737 | # Set value to None when there are unicode escapes (surrogates) | COMMENT |
| LOW | …e-python/rewrite/src/rewrite/python/_parser_visitor.py | 3783 | # Set value to None when there are unicode escapes (surrogates) | COMMENT |
| LOW | rewrite-python/rewrite/src/rewrite/python/printer.py | 1299 | # Check if this is an elif (else with If body, where parent is also If) | COMMENT |
| LOW | rewrite-python/rewrite/src/rewrite/python/printer.py | 1761 | # Check if name is an Identifier with empty simple_name (e.g., tuple unpacking) | COMMENT |
| LOW | rewrite-python/rewrite/src/rewrite/python/add_import.py | 143 | # Check if import already exists | COMMENT |
| LOW | …thon/rewrite/src/rewrite/python/template/comparator.py | 483 | # Check if this capture already has a value. Uses AST node identity | COMMENT |
| LOW | …hon/rewrite/src/rewrite/python/template/replacement.py | 176 | # Check if this argument is a variadic placeholder | COMMENT |
| LOW | …thon/rewrite/src/rewrite/python/recipes/remove_pass.py | 107 | # Check if the literal value is a string | COMMENT |
| LOW⚡ | rewrite-python/rewrite/src/rewrite/java/visitor.py | 121 | # Check if filtering removed any elements | COMMENT |
| LOW | rewrite-python/rewrite/src/rewrite/rpc/server.py | 112 | # Set REWRITE_PYTHON_VERSION to "2" or "2.7" to parse Python 2 code | COMMENT |
| LOW | rewrite-python/rewrite/src/rewrite/rpc/server.py | 306 | # Check if this batch contains END_OF_OBJECT (last item has state='END_OF_OBJECT') | COMMENT |
| LOW | rewrite-python/rewrite/src/rewrite/rpc/server.py | 1644 | # Check if this entry point belongs to our package | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | …st/java/org/openrewrite/groovy/GroovyTemplateTest.java | 40 | if (!"placeholder".equals(method.getSimpleName())) { | CODE |
| LOW | …st/java/org/openrewrite/groovy/GroovyTemplateTest.java | 55 | if (!"placeholder".equals(method.getSimpleName())) { | CODE |
| LOW | …st/java/org/openrewrite/groovy/GroovyTemplateTest.java | 250 | if (!"placeholder".equals(method.getSimpleName())) { | CODE |
| LOW | …Rewrite.Tests/CSharp/CSharpParenthesizeVisitorTests.cs | 29 | var placeholder = MakeId("placeholder"); | CODE |
| LOW | …Rewrite.Tests/CSharp/CSharpParenthesizeVisitorTests.cs | 44 | var placeholder = MakeId("placeholder"); | CODE |
| LOW | …Rewrite.Tests/CSharp/CSharpParenthesizeVisitorTests.cs | 59 | var placeholder = MakeId("placeholder"); | CODE |
| LOW | …Rewrite.Tests/CSharp/CSharpParenthesizeVisitorTests.cs | 74 | var placeholder = MakeId("placeholder"); | CODE |
| LOW | …Rewrite.Tests/CSharp/CSharpParenthesizeVisitorTests.cs | 89 | var placeholder = MakeId("placeholder"); | CODE |
| LOW | …Rewrite.Tests/CSharp/CSharpParenthesizeVisitorTests.cs | 104 | var placeholder = MakeId("placeholder"); | CODE |
| LOW | …Rewrite.Tests/CSharp/CSharpParenthesizeVisitorTests.cs | 119 | var placeholder = MakeId("placeholder"); | CODE |
| LOW | …Rewrite.Tests/CSharp/CSharpParenthesizeVisitorTests.cs | 134 | var placeholder = MakeId("placeholder"); | CODE |
| LOW | …Rewrite.Tests/CSharp/CSharpParenthesizeVisitorTests.cs | 149 | var placeholder = MakeId("placeholder"); | CODE |
| LOW | …Rewrite.Tests/CSharp/CSharpParenthesizeVisitorTests.cs | 164 | var placeholder = MakeId("placeholder"); | CODE |
| LOW | …Rewrite.Tests/CSharp/CSharpParenthesizeVisitorTests.cs | 180 | var placeholder = MakeId("placeholder"); | CODE |
| LOW | …/src/test/java/org/openrewrite/toml/DeleteKeyTest.java | 81 | authors = ["John Doe"] | STRING |
| LOW | …/src/test/java/org/openrewrite/toml/DeleteKeyTest.java | 87 | authors = ["John Doe"] | STRING |
| LOW | …/src/test/java/org/openrewrite/toml/DeleteKeyTest.java | 216 | authors = ["John Doe", "Jane Smith"] | STRING |
| LOW | …ml/src/test/java/org/openrewrite/toml/FindKeyTest.java | 232 | authors = ["John Doe", "Jane Smith"] | STRING |
| LOW | …ml/src/test/java/org/openrewrite/toml/FindKeyTest.java | 240 | ~~>authors = ["John Doe", "Jane Smith"] | STRING |
| LOW | …/src/test/java/org/openrewrite/toml/ChangeKeyTest.java | 172 | authors = ["John Doe", "Jane Smith"] | STRING |
| LOW | …/src/test/java/org/openrewrite/toml/ChangeKeyTest.java | 176 | contributors = ["John Doe", "Jane Smith"] | STRING |
| LOW | …st/java/org/openrewrite/kotlin/KotlinTemplateTest.java | 333 | if ("placeholder".equals(method.getSimpleName())) { | CODE |
| LOW | …st/java/org/openrewrite/kotlin/KotlinTemplateTest.java | 989 | if ("placeholder".equals(method.getSimpleName())) { | CODE |
| LOW | …st/java/org/openrewrite/kotlin/KotlinTemplateTest.java | 1024 | if ("placeholder".equals(method.getSimpleName())) { | CODE |
| LOW | …st/java/org/openrewrite/kotlin/KotlinTemplateTest.java | 1058 | if ("placeholder".equals(method.getSimpleName())) { | CODE |
| LOW | …/java/org/openrewrite/kotlin/NewClassTemplateTest.java | 41 | if ("placeholder".equals(method.getSimpleName())) { | CODE |
| LOW | …/java/org/openrewrite/kotlin/NewClassTemplateTest.java | 78 | if ("placeholder".equals(method.getSimpleName())) { | CODE |
| LOW | …/java/org/openrewrite/kotlin/NewClassTemplateTest.java | 113 | if ("placeholder".equals(method.getSimpleName())) { | CODE |
| LOW | …/java/org/openrewrite/kotlin/NewClassTemplateTest.java | 150 | if ("placeholder".equals(method.getSimpleName())) { | CODE |
| LOW | …c/main/java/org/openrewrite/java/tree/JavadocTest.java | 2843 | * var text = "placeholder"; // @replace substring="placeholder" replacement="..." | COMMENT |
| LOW | …ava/org/openrewrite/test/internal/RewriteTestTest.java | 3274 | .text("placeholder") | CODE |
| LOW | …ava/org/openrewrite/test/internal/RewriteTestTest.java | 3288 | return placeholderExists.get() && "placeholder".equals(text.getText()) ? text.withText("filled") : text; | CODE |
| LOW | …-javascript/rewrite/test/javascript/add-import.test.ts | 158 | (methodInvocation.name as J.Identifier).simpleName === 'placeholder') { | CODE |
| LOW | …ite/javascript/internal/lock/pnpm/TrustChecksTest.java | 91 | ",'_npmUser':{'name':'test-user','email':'user@example.com'}") + "}").get("1.0.0"))).isNull(); | CODE |
| LOW | …ite/javascript/internal/lock/pnpm/PnpmOptionsTest.java | 113 | private static final String HOME = "/srv/fake-user"; | CODE |
| LOW | …ite/javascript/internal/lock/pnpm/PnpmOptionsTest.java | 115 | "/bin:/usr/bin:/usr/local/bin:/srv/fake-user/.bin:/srv/fake-user/share/local/bin"; | CODE |
| LOW⚡ | …ite/javascript/internal/lock/pnpm/PnpmOptionsTest.java | 175 | .isEqualTo("{'foo':'abc/def/ghi','bar':'/srv/fake-user/abc/def/ghi','baz':'/srv/fake-user/abc\\def\\ghi'}"); | CODE |
| LOW⚡ | …ite/javascript/internal/lock/pnpm/PnpmOptionsTest.java | 183 | // Node 24.19.0: path.join('/srv/fake-user', '') is '/srv/fake-user'; with 'a/' it keeps the slash | COMMENT |
| LOW⚡ | …ite/javascript/internal/lock/pnpm/PnpmOptionsTest.java | 188 | .isEqualTo("{'foo':'/srv/fake-user','bar':'/srv/fake-user/a/'}"); | CODE |
| LOW | …test/java/org/openrewrite/scala/tree/NewClassTest.java | 126 | val p = new Person(new Address("123 Main St")) | STRING |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | …n/marketplace/MavenRecipeMarketplaceGeneratorTest.java | 318 | // Step 1: Compile an abstract base recipe into a separate "dependency" directory | STRING |
| LOW | …n/marketplace/MavenRecipeMarketplaceGeneratorTest.java | 356 | // Step 2: Compile a concrete recipe that extends the base class, into the "recipe" directory | STRING |
| LOW | …n/marketplace/MavenRecipeMarketplaceGeneratorTest.java | 385 | // Step 3: Run the generator with recipe-classes as the scanned path, | STRING |
| LOW | …va/org/openrewrite/internal/InMemoryDiffEntryTest.java | 537 | // Step 1: Generate diff using InMemoryDiffEntry (like the worker does) | STRING |
| LOW | …va/org/openrewrite/internal/InMemoryDiffEntryTest.java | 548 | // Step 2: Simulate SCM service applying the diff | STRING |
| LOW⚡ | …/src/test/java/org/openrewrite/rpc/RewriteRpcTest.java | 192 | // Step 1: successful sync — both sides establish remoteObjects baseline | COMMENT |
| LOW⚡ | …/src/test/java/org/openrewrite/rpc/RewriteRpcTest.java | 200 | // Step 2: replace with a PlainText that has null sourcePath, causing | COMMENT |
| LOW⚡ | …/src/test/java/org/openrewrite/rpc/RewriteRpcTest.java | 208 | // Step 3: client.getObject() should fail because the sender NPEs mid-serialization | COMMENT |
| LOW⚡ | …/src/test/java/org/openrewrite/rpc/RewriteRpcTest.java | 215 | // Step 4: verify the sender cleaned up its stale remoteObjects entry | COMMENT |
| LOW⚡ | …/src/test/java/org/openrewrite/rpc/RewriteRpcTest.java | 225 | // Step 5: put back a valid tree and retry — should succeed via full ADD | COMMENT |
| LOW | …a/org/openrewrite/docker/trait/DockerTraitMatcher.java | 124 | * When the text contains wildcards (from env vars), we need to check if either | COMMENT |
| LOW | rewrite-javascript/rewrite/src/javascript/add-import.ts | 1290 | // Step 1: Find the expected declaring type by examining existing imports from the same module | COMMENT |
| LOW | rewrite-javascript/rewrite/src/javascript/add-import.ts | 1342 | // Step 2: Look for references that match | COMMENT |
| LOW | rewrite-javascript/rewrite/src/javascript/parser.ts | 4992 | // Step 1: Get all comments | COMMENT |
| LOW | rewrite-javascript/rewrite/src/javascript/parser.ts | 5011 | // Step 2: Capture suffix (whitespace after the comment) | COMMENT |
| LOW | rewrite-javascript/rewrite/src/javascript/parser.ts | 5029 | // Step 3: Extract leading whitespace (before the first comment) | COMMENT |
| LOW⚡ | …cript/rewrite/src/javascript/format/prettier-format.ts | 157 | // Step 1: Print the AST to string, leaving out what markers would print, such as search results | COMMENT |
| LOW⚡ | …cript/rewrite/src/javascript/format/prettier-format.ts | 160 | // Step 2: Determine parser based on source path | COMMENT |
| LOW⚡ | …cript/rewrite/src/javascript/format/prettier-format.ts | 163 | // Step 3: Format with Prettier | COMMENT |
| LOW | …cript/rewrite/src/javascript/format/prettier-format.ts | 177 | // Step 4: Parse the formatted string using parseOnly() for maximum performance | COMMENT |
| LOW⚡ | …-javascript/rewrite/src/rpc/request/install-recipes.ts | 221 | // Step 1: Find where this package is currently loaded from (host) | COMMENT |
| LOW⚡ | …-javascript/rewrite/src/rpc/request/install-recipes.ts | 224 | // Step 2: Find the package root by looking for package.json | COMMENT |
| LOW | …-javascript/rewrite/src/rpc/request/install-recipes.ts | 245 | // Step 3: Find where the target's node_modules has this package | COMMENT |
| LOW | …-javascript/rewrite/src/rpc/request/install-recipes.ts | 289 | // Step 4: Map all cached modules from host package to target package | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | rewrite-python/rewrite/tests/test_rewrite_test.py | 365 | except Exception: | CODE |
| LOW | …rewrite/tests/python/test_declared_version_typeshed.py | 37 | except Exception: | CODE |
| MEDIUM | …rewrite/tests/python/test_declared_version_typeshed.py | 33 | def _ty_types_cli_available() -> bool: | CODE |
| LOW | …write-python/rewrite/tests/python/all/tree/try_test.py | 96 | except Exception: | STRING |
| LOW | …te-python/rewrite/tests/python/all/tree/assign_test.py | 75 | except Exception: | STRING |
| MEDIUM | …rite-python/rewrite/tests/rpc/test_dependency_types.py | 31 | def _ty_types_cli_available() -> bool: | CODE |
| LOW | …rite-python/rewrite/tests/rpc/test_dependency_types.py | 35 | except Exception: | CODE |
| LOW | rewrite-python/rewrite/src/rewrite/discovery.py | 155 | except Exception: | CODE |
| LOW⚡ | rewrite-python/rewrite/src/rewrite/discovery.py | 222 | except Exception as e: | CODE |
| LOW⚡ | rewrite-python/rewrite/src/rewrite/discovery.py | 231 | except Exception as e: | CODE |
| LOW | rewrite-python/rewrite/src/rewrite/visitor.py | 175 | except Exception as e: | CODE |
| LOW | rewrite-python/rewrite/src/rewrite/marketplace.py | 84 | except Exception as e: | CODE |
| LOW | …-python/rewrite/src/rewrite/test/content_validation.py | 91 | except Exception as e: | CODE |
| LOW | rewrite-python/rewrite/src/rewrite/test/rewrite_test.py | 426 | except Exception: | CODE |
| LOW | …write-python/rewrite/src/rewrite/test/added_markers.py | 145 | except Exception: | CODE |
| LOW | …write-python/rewrite/src/rewrite/test/added_markers.py | 173 | except Exception: | CODE |
| LOW | …thon/rewrite/src/rewrite/python/_py2_parser_visitor.py | 106 | except Exception as e: | CODE |
| LOW | …write-python/rewrite/src/rewrite/python/type_report.py | 407 | except Exception as exc: | CODE |
| LOW | …write-python/rewrite/src/rewrite/python/type_report.py | 634 | except Exception as exc: | CODE |
| LOW | …write-python/rewrite/src/rewrite/python/type_report.py | 643 | except Exception: | CODE |
| LOW | rewrite-python/rewrite/src/rewrite/python/type_utils.py | 233 | except Exception: | CODE |
| LOW | …hon/rewrite/src/rewrite/python/dependency_workspace.py | 160 | except Exception as e: | CODE |
| LOW | …e-python/rewrite/src/rewrite/python/_parser_visitor.py | 3051 | except Exception: | CODE |
| LOW | …te/src/rewrite/python/template/dependency_workspace.py | 234 | except Exception: | CODE |
| LOW | rewrite-python/rewrite/src/rewrite/rpc/server.py | 341 | except Exception: | CODE |
| LOW | rewrite-python/rewrite/src/rewrite/rpc/server.py | 351 | except Exception: | CODE |
| LOW | rewrite-python/rewrite/src/rewrite/rpc/server.py | 364 | except Exception: | CODE |
| LOW | rewrite-python/rewrite/src/rewrite/rpc/server.py | 493 | except Exception as e: | CODE |
| LOW | rewrite-python/rewrite/src/rewrite/rpc/server.py | 728 | except Exception as e: | CODE |
| LOW | rewrite-python/rewrite/src/rewrite/rpc/server.py | 830 | except Exception as e: | CODE |
| LOW | rewrite-python/rewrite/src/rewrite/rpc/server.py | 953 | except Exception: | CODE |
| LOW | rewrite-python/rewrite/src/rewrite/rpc/server.py | 971 | except Exception: | CODE |
| LOW | rewrite-python/rewrite/src/rewrite/rpc/server.py | 1410 | except Exception: | CODE |
| LOW | rewrite-python/rewrite/src/rewrite/rpc/server.py | 1551 | except Exception: | CODE |
| LOW | rewrite-python/rewrite/src/rewrite/rpc/server.py | 1597 | except Exception as e: | CODE |
| LOW | rewrite-python/rewrite/src/rewrite/rpc/server.py | 1662 | except Exception as e: | CODE |
| LOW | rewrite-python/rewrite/src/rewrite/rpc/server.py | 1951 | except Exception: | CODE |
| LOW | rewrite-python/rewrite/src/rewrite/rpc/server.py | 2656 | except Exception: | CODE |
| LOW | rewrite-python/rewrite/src/rewrite/rpc/server.py | 2664 | except Exception: | CODE |
| LOW | rewrite-python/rewrite/src/rewrite/rpc/server.py | 3127 | except Exception as e: | CODE |
| LOW | rewrite-python/rewrite/src/rewrite/rpc/server.py | 3293 | except Exception as e: | CODE |
| LOW | …ite-python/rewrite/src/rewrite/rpc/child_connection.py | 147 | except Exception as e: | CODE |
| LOW | …ite-python/rewrite/src/rewrite/rpc/child_connection.py | 159 | except Exception: | CODE |
| LOW | …ite-python/rewrite/src/rewrite/rpc/child_connection.py | 164 | except Exception: | CODE |
| MEDIUM | …ite-python/rewrite/src/rewrite/rpc/child_connection.py | 155 | def close(self) -> None: | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | …n/marketplace/MavenRecipeMarketplaceGeneratorTest.java | 318 | // Step 1: Compile an abstract base recipe into a separate "dependency" directory | STRING |
| LOW | …n/marketplace/MavenRecipeMarketplaceGeneratorTest.java | 356 | // Step 2: Compile a concrete recipe that extends the base class, into the "recipe" directory | STRING |
| LOW | …n/marketplace/MavenRecipeMarketplaceGeneratorTest.java | 385 | // Step 3: Run the generator with recipe-classes as the scanned path, | STRING |
| LOW | …va/org/openrewrite/internal/InMemoryDiffEntryTest.java | 537 | // Step 1: Generate diff using InMemoryDiffEntry (like the worker does) | STRING |
| LOW | …va/org/openrewrite/internal/InMemoryDiffEntryTest.java | 548 | // Step 2: Simulate SCM service applying the diff | STRING |
| LOW⚡ | …/src/test/java/org/openrewrite/rpc/RewriteRpcTest.java | 192 | // Step 1: successful sync — both sides establish remoteObjects baseline | COMMENT |
| LOW⚡ | …/src/test/java/org/openrewrite/rpc/RewriteRpcTest.java | 200 | // Step 2: replace with a PlainText that has null sourcePath, causing | COMMENT |
| LOW⚡ | …/src/test/java/org/openrewrite/rpc/RewriteRpcTest.java | 208 | // Step 3: client.getObject() should fail because the sender NPEs mid-serialization | COMMENT |
| LOW⚡ | …/src/test/java/org/openrewrite/rpc/RewriteRpcTest.java | 215 | // Step 4: verify the sender cleaned up its stale remoteObjects entry | COMMENT |
| LOW⚡ | …/src/test/java/org/openrewrite/rpc/RewriteRpcTest.java | 225 | // Step 5: put back a valid tree and retry — should succeed via full ADD | COMMENT |
| LOW | rewrite-javascript/rewrite/src/javascript/add-import.ts | 1290 | // Step 1: Find the expected declaring type by examining existing imports from the same module | COMMENT |
| LOW | rewrite-javascript/rewrite/src/javascript/add-import.ts | 1342 | // Step 2: Look for references that match | COMMENT |
| LOW | rewrite-javascript/rewrite/src/javascript/parser.ts | 4992 | // Step 1: Get all comments | COMMENT |
| LOW | rewrite-javascript/rewrite/src/javascript/parser.ts | 5011 | // Step 2: Capture suffix (whitespace after the comment) | COMMENT |
| LOW | rewrite-javascript/rewrite/src/javascript/parser.ts | 5029 | // Step 3: Extract leading whitespace (before the first comment) | COMMENT |
| LOW⚡ | …cript/rewrite/src/javascript/format/prettier-format.ts | 157 | // Step 1: Print the AST to string, leaving out what markers would print, such as search results | COMMENT |
| LOW⚡ | …cript/rewrite/src/javascript/format/prettier-format.ts | 160 | // Step 2: Determine parser based on source path | COMMENT |
| LOW⚡ | …cript/rewrite/src/javascript/format/prettier-format.ts | 163 | // Step 3: Format with Prettier | COMMENT |
| LOW | …cript/rewrite/src/javascript/format/prettier-format.ts | 177 | // Step 4: Parse the formatted string using parseOnly() for maximum performance | COMMENT |
| LOW⚡ | …-javascript/rewrite/src/rpc/request/install-recipes.ts | 221 | // Step 1: Find where this package is currently loaded from (host) | COMMENT |
| LOW⚡ | …-javascript/rewrite/src/rpc/request/install-recipes.ts | 224 | // Step 2: Find the package root by looking for package.json | COMMENT |
| LOW | …-javascript/rewrite/src/rpc/request/install-recipes.ts | 245 | // Step 3: Find where the target's node_modules has this package | COMMENT |
| LOW | …-javascript/rewrite/src/rpc/request/install-recipes.ts | 289 | // Step 4: Map all cached modules from host package to target package | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | rewrite.yml | 17 | # Apply a subset of best practices to OpenRewrite recipes; typically run before committing changes. | COMMENT |
| MEDIUM⚡ | rewrite-python/rewrite/tests/test_rewrite_test.py | 169 | # For now, just return unchanged - we're testing the harness | COMMENT |
| MEDIUM⚡ | rewrite-python/rewrite/tests/test_rewrite_test.py | 172 | # This test validates the harness can detect changes | COMMENT |
| LOW⚡ | rewrite-python/rewrite/tests/test_rewrite_test.py | 169 | # For now, just return unchanged - we're testing the harness | COMMENT |
| MEDIUM | …write-python/rewrite/src/rewrite/test/added_markers.py | 40 | # Markers that rewrite's own Java recipes still leave for themselves, as the Java harness allows. | COMMENT |
| LOW | …rite-python/rewrite/src/rewrite/python/type_mapping.py | 2233 | # Fallback: just return from col_offset to end of line | COMMENT |
| LOW | …e-python/rewrite/src/rewrite/python/template/engine.py | 424 | # For now, just return the first statement (most common case) | COMMENT |
| LOW | rewrite-python/rewrite/src/rewrite/rpc/server.py | 1239 | # For now, just return basic structure | COMMENT |
| LOW | …rite-python/rewrite/src/rewrite/rpc/python_receiver.py | 1304 | # No additional fields to consume - just return the unknown object | COMMENT |
| LOW | …rewrite/javascript/internal/lock/npm/YarnLockTest.java | 129 | "# Note: do not require a \\n at the end of the file, just add it if missing\n" + | CODE |
| MEDIUM | …ava/org/openrewrite/java/search/SemanticallyEqual.java | 737 | // Definitely does not account for every possible edge case around "this", but handles the common ca | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | rewrite-python/rewrite/src/rewrite/discovery.py | 32 | logger = logging.getLogger(__name__) | CODE |
| LOW | rewrite-python/rewrite/src/rewrite/__init__.py | 32 | __all__ = [ | CODE |
| LOW | rewrite-python/rewrite/src/rewrite/visitor.py | 127 | def set_cursor(self, cursor: Cursor) -> None: | CODE |
| LOW | …-python/rewrite/src/rewrite/test/content_validation.py | 32 | __all__ = ["ContentFinding", "validate_recipe_content"] | CODE |
| LOW | rewrite-python/rewrite/src/rewrite/test/__init__.py | 51 | __all__ = [ | CODE |
| LOW | …write-python/rewrite/src/rewrite/python/type_report.py | 41 | __all__ = [ | CODE |
| LOW | rewrite-python/rewrite/src/rewrite/python/type_utils.py | 39 | __all__ = [ | CODE |
| LOW | rewrite-python/rewrite/src/rewrite/python/__init__.py | 141 | __all__ = [ | CODE |
| LOW | …ite-python/rewrite/src/rewrite/python/binding_utils.py | 274 | __all__ = ['Binding', 'ImportBindings', 'dotted_path', 'import_bindings', 'is_reference', | CODE |
| LOW | …hon/rewrite/src/rewrite/python/dependency_workspace.py | 35 | logger = logging.getLogger(__name__) | CODE |
| LOW | rewrite-python/rewrite/src/rewrite/python/binding.py | 906 | __all__ = ['maybe_bind', 'maybe_rebind'] | CODE |
| LOW | rewrite-python/rewrite/src/rewrite/python/printer.py | 160 | def set_cursor(self, cursor: Optional[Cursor]) -> None: | CODE |
| LOW | rewrite-python/rewrite/src/rewrite/python/printer.py | 856 | def set_cursor(self, cursor: Optional[Cursor]) -> None: | CODE |
| LOW | rewrite-python/rewrite/src/rewrite/python/ty_client.py | 42 | logger = logging.getLogger(__name__) | CODE |
| LOW | …python/rewrite/src/rewrite/python/template/__init__.py | 50 | __all__ = [ | CODE |
| LOW | …te/src/rewrite/python/template/dependency_workspace.py | 51 | logger = logging.getLogger(__name__) | CODE |
| LOW | …e-python/rewrite/src/rewrite/python/search/__init__.py | 54 | logger = logging.getLogger(__name__) | CODE |
| LOW | …e-python/rewrite/src/rewrite/python/search/__init__.py | 355 | __all__ = ["IsSourceFile", "UsesType", "UsesMethod", "UsesImport"] | CODE |
| LOW | …-python/rewrite/src/rewrite/python/recipes/__init__.py | 38 | __all__ = [ | CODE |
| LOW | …e-python/rewrite/src/rewrite/python/format/__init__.py | 29 | __all__ = [ | CODE |
| LOW | rewrite-python/rewrite/src/rewrite/java/__init__.py | 8 | __all__ = [ | CODE |
| LOW | rewrite-python/rewrite/src/rewrite/rpc/rpc_recipe.py | 39 | logger = logging.getLogger(__name__) | CODE |
| LOW | rewrite-python/rewrite/src/rewrite/rpc/server.py | 68 | logger = logging.getLogger(__name__) | CODE |
| LOW | rewrite-python/rewrite/src/rewrite/rpc/__init__.py | 23 | __all__ = [ | CODE |
| LOW | …rite-python/rewrite/src/rewrite/rpc/bundle_children.py | 53 | def set_data_table_store(self, params: dict) -> None: | CODE |
| LOW | …rite-python/rewrite/src/rewrite/rpc/java_rpc_client.py | 47 | logger = logging.getLogger(__name__) | CODE |
| LOW | …rite-python/rewrite/src/rewrite/rpc/java_rpc_client.py | 58 | def set_java_rpc_client(client: Optional["JavaRpcClient"]) -> None: | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | …avascript/rewrite/test/javascript/type-mapping.test.ts | 2440 | print(): string; | CODE |
| HIGH | …avascript/rewrite/test/javascript/type-mapping.test.ts | 2469 | print(): string { | CODE |
| HIGH | …cript/rewrite/test/javascript/parser/interface.test.ts | 397 | print(prefix: string): string | CODE |
| HIGH | rewrite-javascript/rewrite/src/print.ts | 143 | print(tree: Tree, out?: PrintOutputCapture, cursor?: Cursor): Promise<string>; | CODE |
| HIGH | rewrite-javascript/rewrite/src/javascript/tree-debug.ts | 644 | print(tree: Tree | J.Container<any> | J.LeftPadded<any> | J.RightPadded<any>, cursor?: Cursor, label?: string): void | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | rewrite-python/rewrite/tests/test_rewrite_test.py | 692 | COMPAT = 'def helper():\n return None\n' | CODE |
| LOW⚡ | …n/rewrite/tests/python/test_method_matcher_bindings.py | 98 | 'def helper(socket):\n' | CODE |
| LOW⚡ | …n/rewrite/tests/python/test_method_matcher_bindings.py | 104 | source = 'from .socket import getfqdn\ngetfqdn()\ndef helper():\n global getfqdn\n getfqdn = None\n' | CODE |
| LOW⚡ | …n/rewrite/tests/python/test_method_matcher_bindings.py | 137 | 'def helper():\n' | CODE |
| LOW⚡ | …n/rewrite/tests/python/test_method_matcher_bindings.py | 145 | plain = 'from socket import getfqdn\ngetfqdn()\ndef helper():\n global getfqdn\n getfqdn = None\n' | CODE |
| LOW⚡ | …n/rewrite/tests/python/test_method_matcher_bindings.py | 150 | 'def helper():\n' | CODE |
| LOW⚡ | …n/rewrite/tests/python/test_method_matcher_bindings.py | 157 | plain = 'import os.path\nos.getcwd()\ndef helper():\n global os\n os = None\n' | CODE |
| LOW⚡ | …n/rewrite/tests/python/test_method_matcher_bindings.py | 161 | aliased = 'import os.path as p\np.join(1)\ndef helper():\n global p\n p = None\n' | CODE |
| LOW⚡ | …n/rewrite/tests/python/test_method_matcher_bindings.py | 166 | shadowing_alias = 'import os.path as os\nos.join(1)\ndef helper():\n global os\n os = None\n' | CODE |
| LOW | …n/rewrite/tests/python/test_method_matcher_bindings.py | 33 | SHADOW = 'def helper():\n global socket\n socket = None\n' | CODE |
| LOW | …e-python/rewrite/tests/python/test_type_attribution.py | 4061 | def helper(self) -> int: | CODE |
| LOW⚡ | …e-python/rewrite/tests/python/test_type_attribution.py | 2710 | cu, tmpdir, client = _parse_with_types({'m.py': '\ufeffdef helper(x: int) -> int:\n return x\n\n\nhelper(1)\n'}) | STRING |
| LOW⚡ | …e-python/rewrite/tests/python/test_type_attribution.py | 2720 | cu, tmpdir, client = _parse_with_types({'m.py': 'def helper(x: int) -> int:\n return x\n\n\ns = "é"; helper(1)\n' | STRING |
| LOW⚡ | …e-python/rewrite/tests/python/test_type_attribution.py | 2729 | cu, tmpdir, client = _parse_with_types({'m.py': 'def helper(x: int) -> int:\n return x\n\x0c\n\nhelper(1)\n'}) | STRING |
| LOW⚡ | …sts/python/all/format/tabs_and_indents_visitor_test.py | 386 | def my_function(): | STRING |
| LOW⚡ | …sts/python/all/format/tabs_and_indents_visitor_test.py | 390 | def my_function(): | STRING |
| LOW⚡ | …sts/python/all/format/tabs_and_indents_visitor_test.py | 854 | def my_function(a, b): | STRING |
| LOW⚡ | …sts/python/all/format/tabs_and_indents_visitor_test.py | 862 | def my_function(a, b): | STRING |
| LOW⚡ | …sts/python/all/format/tabs_and_indents_visitor_test.py | 897 | def my_function(): | STRING |
| LOW⚡ | …sts/python/all/format/tabs_and_indents_visitor_test.py | 905 | def my_function(): | STRING |
| LOW | …sts/python/all/format/tabs_and_indents_visitor_test.py | 820 | def my_function(a, b): | STRING |
| LOW | …sts/python/all/format/tabs_and_indents_visitor_test.py | 832 | def my_function(a, b): | STRING |
| LOW | …sts/python/all/format/tabs_and_indents_visitor_test.py | 953 | def my_function(): | STRING |
| LOW | …sts/python/all/format/tabs_and_indents_visitor_test.py | 961 | def my_function(): | STRING |
| LOW | rewrite-python/rewrite/tests/python/py27/sweep_test.py | 150 | def helper(*items): | CODE |
| LOW | rewrite-python/rewrite/src/rewrite/rpc/server.py | 2806 | def handle_request(method: str, params: dict) -> Any: | CODE |
| LOW | …vascript/cleanup/use-object-property-shorthand.test.ts | 67 | `function getData() { return doSomething({ name: name, value: value }); }`, | CODE |
| LOW | …vascript/cleanup/use-object-property-shorthand.test.ts | 68 | `function getData() { return doSomething({ name, value }); }` | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | …rp/csharp/OpenRewrite/CSharp/Format/RoslynFormatter.cs | 144 | // TODO: implement string-level indent normalization fallback | COMMENT |