AI Slop Code Risk Monitor

openrewrite/rewrite

SlopCodeMonitor badge for openrewrite/rewrite Adjusted legacy signal; badge bands: 25 / 50 / 75 (different from dashboard bands).
4.1 Low pattern signal View on GitHub

Open-Source Code Quality, Security and Technical Debt Review

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.

4.1
Adjusted Signal
4.1
Raw Pattern Score
100%
Time Factor
—
Last Push
—
Stars
—
Language
1.6M
Lines of Code
6.1K
Files
3.9K
Pattern Hits
2026-10-31
Scan Date
0.07
HC Hit Rate

Risk Review · Payload v1

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.

Cognitive Ownership Risk 9.4/100 · LOW

Can maintainers explain intent, assumptions, and trade-offs? 2982 finding(s).

Hallucinated Dependency & Supply Chain Risk 4.3/100 · LOW

Are imports declared and package/API names verified? 484 finding(s).

Agent Over-Engineering Ratio 11.4/100 · LOW

Are wrappers, guards, and repeated structures necessary? 2550 finding(s).

PR Review Velocity Impact 19.8/100 · LOW

Which changes need focused human review? 3925 finding(s).

What These Metrics Mean

Adjusted Signal
Legacy pattern score normalized per 1,000 scanned lines and multiplied by the repository-level time factor. It is not an estimate of AI authorship.
Raw Pattern Score
Sum of severity- and context-weighted pattern findings before applying the time factor.
Time Factor
A coarse multiplier based on repository last-push metadata. It does not identify when individual code was written.
Pattern Hits
Count of configured pattern findings. Review each location and surrounding code before acting.
HC Hit Rate
High- and critical-severity findings per scanned file. Severity is a configured detector weight, not proof of a vulnerability or authorship.
Lines / Files
Scan coverage denominators used by the legacy normalized score.

Pattern-Signal History

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.

Severity Breakdown

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.

CRITICAL 94HIGH 362MEDIUM 158LOW 3311

Directory Score Breakdown

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.

Pattern Findings

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.

Hyper-Verbose Identifiers2091 hits · 1909 pts
SeverityFileLineSnippetContext
LOW…te/maven/ChangeDependencyGroupIdAndArtifactIdTest.java4312 public class DataHandler {}CODE
LOW…by/src/test/java/org/openrewrite/ruby/tree/IfTest.java256 def registry_source_details_from(source_string)STRING
LOWrewrite-python/rewrite/README.md47def test_reports_deprecated_usages():CODE
LOWrewrite-python/rewrite/tests/test_data_table.py45 def test_descriptor_has_columns(self):CODE
LOWrewrite-python/rewrite/tests/test_data_table.py71 def test_insert_row_creates_store(self):CODE
LOW⚡rewrite-python/rewrite/tests/test_data_table.py89 def test_instance_name_defaults_to_display_name(self):CODE
LOW⚡rewrite-python/rewrite/tests/test_data_table.py98 def test_instance_name_can_be_set(self):CODE
LOW⚡rewrite-python/rewrite/tests/test_data_table.py108 def test_group_is_none_by_default(self):CODE
LOWrewrite-python/rewrite/tests/test_data_table.py143 def test_writes_csv_with_comments_and_header(self):CODE
LOWrewrite-python/rewrite/tests/test_data_table.py175 def test_escapes_special_characters(self):CODE
LOWrewrite-python/rewrite/tests/test_data_table.py217 def test_writes_prefix_and_suffix_columns(self):CODE
LOWrewrite-python/rewrite/tests/test_data_table.py243 def test_two_stores_share_one_file_with_single_header(self):CODE
LOWrewrite-python/rewrite/tests/test_data_table.py275 def test_default_table_uses_bare_fully_qualified_name(self):CODE
LOWrewrite-python/rewrite/tests/test_data_table.py286 def test_custom_instance_name_appends_sanitized_suffix(self):CODE
LOWrewrite-python/rewrite/tests/test_data_table.py301 def test_grouped_table_appends_sanitized_group(self):CODE
LOWrewrite-python/rewrite/tests/test_data_table.py316 def test_group_equal_to_name_uses_bare_name(self):CODE
LOWrewrite-python/rewrite/tests/test_data_table.py327 def test_sanitize_scope_is_byte_identical_to_java(self):CODE
LOWrewrite-python/rewrite/tests/test_data_table.py345 def test_reconstructs_csv_store_that_writes_prefix_columns(self):CODE
LOWrewrite-python/rewrite/tests/test_data_table.py375 def test_noop_does_not_write_to_disk(self):CODE
LOWrewrite-python/rewrite/tests/test_utils.py19def test_list_flat_map_keeps_items_before_the_first_change():CODE
LOWrewrite-python/rewrite/tests/conftest.py123def pytest_collection_modifyitems(config, items):CODE
LOW…e-python/rewrite/tests/test_data_table_column_types.py46def test_every_column_reports_a_type():CODE
LOW…e-python/rewrite/tests/test_data_table_column_types.py62def test_annotation_maps_to_java_type_name(field_name, expected):CODE
LOW…e-python/rewrite/tests/test_data_table_column_types.py75def test_optional_unwraps_to_the_underlying_type():CODE
LOW…e-python/rewrite/tests/test_data_table_column_types.py90def test_unrecognized_annotation_falls_back_to_the_default():CODE
LOW…e-python/rewrite/tests/test_data_table_column_types.py97def test_type_is_preserved_alongside_the_other_column_metadata():CODE
LOW…e-python/rewrite/tests/test_data_table_column_types.py146def test_types_survive_aggregation_onto_a_composite():CODE
LOW…e-python/rewrite/tests/test_data_table_column_types.py166def test_string_annotations_are_mapped(annotation, expected):CODE
LOW⚡rewrite-python/rewrite/tests/test_id_normalization.py38 def test_constructor_accepts_uuid(self):CODE
LOW⚡rewrite-python/rewrite/tests/test_id_normalization.py44 def test_constructor_accepts_int(self):CODE
LOW⚡rewrite-python/rewrite/tests/test_id_normalization.py50 def test_equality_and_hash_across_id_forms(self):CODE
LOW⚡rewrite-python/rewrite/tests/test_id_normalization.py60 def test_marker_constructor_accepts_uuid(self):CODE
LOW⚡rewrite-python/rewrite/tests/test_id_normalization.py66 def test_markers_constructor_accepts_uuid(self):CODE
LOW⚡rewrite-python/rewrite/tests/test_id_normalization.py72 def test_search_result_found_yields_usable_markers(self):CODE
LOW⚡rewrite-python/rewrite/tests/test_id_normalization.py86 def test_tree_factory_accepts_none_id(self):CODE
LOW⚡rewrite-python/rewrite/tests/test_id_normalization.py93 def test_marker_factory_accepts_none_id(self):CODE
LOW⚡rewrite-python/rewrite/tests/test_id_normalization.py98 def test_markers_factory_accepts_none_id(self):CODE
LOW⚡rewrite-python/rewrite/tests/test_recipe_run.py174 def test_scanning_recipe_one_level_under_a_plain_composite(self):CODE
LOW⚡rewrite-python/rewrite/tests/test_recipe_run.py180 def test_scanning_recipe_several_levels_deep(self):CODE
LOW⚡rewrite-python/rewrite/tests/test_recipe_run.py189 def test_scanning_recipe_positioned_after_a_plain_sibling(self):CODE
LOW⚡rewrite-python/rewrite/tests/test_recipe_run.py216 def test_scanning_recipe_instantiated_inside_recipe_list(self):CODE
LOW⚡rewrite-python/rewrite/tests/test_recipe_run.py225 def test_accumulator_sees_every_file_before_any_file_is_edited(self):CODE
LOW⚡rewrite-python/rewrite/tests/test_recipe_run.py233 def test_scanner_returning_none_does_not_halt_the_run(self):CODE
LOWrewrite-python/rewrite/tests/test_recipe_run.py269 def test_generated_file_is_edited_by_later_recipes(self):CODE
LOWrewrite-python/rewrite/tests/test_recipe_run.py300 def test_deleted_file_stops_being_visited(self):CODE
LOWrewrite-python/rewrite/tests/test_recipe_run.py310 def test_deleted_file_stops_being_visited_when_the_run_also_scans(self):CODE
LOWrewrite-python/rewrite/tests/test_recipe_run.py322 def test_edit_of_earlier_file_survives_unchanged_later_file(self):CODE
LOW…te-python/rewrite/tests/test_marketplace_first_wins.py16def test_registry_is_first_wins_on_duplicate_name():CODE
LOWrewrite-python/rewrite/tests/test_cursor.py19def test_get_message_returns_default_for_absent_key():CODE
LOW⚡rewrite-python/rewrite/tests/test_rewrite_test.py44 def test_dedent_removes_leading_newline(self):CODE
LOW⚡rewrite-python/rewrite/tests/test_rewrite_test.py48 def test_dedent_removes_common_indentation(self):CODE
LOW⚡rewrite-python/rewrite/tests/test_rewrite_test.py57 def test_dedent_preserves_relative_indentation(self):CODE
LOW⚡rewrite-python/rewrite/tests/test_rewrite_test.py160 def test_recipe_makes_changes(self):CODE
LOW⚡rewrite-python/rewrite/tests/test_rewrite_test.py421 def test_pyproject_returns_toml_spec(self):CODE
LOW⚡rewrite-python/rewrite/tests/test_rewrite_test.py429 def test_pyproject_with_after(self):CODE
LOW⚡rewrite-python/rewrite/tests/test_rewrite_test.py439 def test_uv_returns_list_of_specs(self):CODE
LOW⚡rewrite-python/rewrite/tests/test_rewrite_test.py447 def test_uv_without_pyproject_or_root_returns_untagged(self):CODE
LOW⚡rewrite-python/rewrite/tests/test_rewrite_test.py453 def test_uv_with_explicit_root(self, tmp_path):CODE
LOW⚡rewrite-python/rewrite/tests/test_rewrite_test.py459 def test_source_spec_project_root_default_none(self):CODE
LOW⚡rewrite-python/rewrite/tests/test_rewrite_test.py465 def test_uv_creates_workspace_from_pyproject(self):CODE
2031 more matches not shown…
Cross-File Repetition283 hits · 1415 pts
SeverityFileLineSnippetContext
HIGH…t/java/org/openrewrite/maven/UpdateMavenModelTest.java0<project> <groupid>com.mycompany.app</groupid> <artifactid>my-app</artifactid> <version>1</version> </project>STRING
HIGH…test/java/org/openrewrite/maven/AddDependencyTest.java0<project> <groupid>com.mycompany.app</groupid> <artifactid>my-app</artifactid> <version>1</version> </project>STRING
HIGH…t/java/org/openrewrite/maven/AddRuntimeConfigTest.java0<project> <groupid>com.mycompany.app</groupid> <artifactid>my-app</artifactid> <version>1</version> </project>STRING
HIGH…t/java/org/openrewrite/maven/AddManagedPluginTest.java0<project> <groupid>com.mycompany.app</groupid> <artifactid>my-app</artifactid> <version>1</version> </project>STRING
HIGH…src/test/java/org/openrewrite/maven/AddPluginTest.java0<project> <groupid>com.mycompany.app</groupid> <artifactid>my-app</artifactid> <version>1</version> </project>STRING
HIGH…openrewrite/maven/AddDevelocityMavenExtensionTest.java0<project> <groupid>com.mycompany.app</groupid> <artifactid>my-app</artifactid> <version>1</version> </project>STRING
HIGH…va/org/openrewrite/maven/AddManagedDependencyTest.java0<project> <groupid>com.mycompany.app</groupid> <artifactid>my-app</artifactid> <version>1</version> </project>STRING
HIGH…test/java/org/openrewrite/maven/AddRepositoryTest.java0<project> <groupid>com.mycompany.app</groupid> <artifactid>my-app</artifactid> <version>1</version> </project>STRING
HIGH…openrewrite/maven/AddManagedDependencyVisitorTest.java0<project> <groupid>com.mycompany.app</groupid> <artifactid>my-app</artifactid> <version>1</version> </project>STRING
HIGH…java/org/openrewrite/maven/ReproducibleBuildsTest.java0<project> <groupid>com.mycompany.app</groupid> <artifactid>my-app</artifactid> <version>1</version> </project>STRING
HIGH…/maven/cleanup/AddProjectBuildOutputTimestampTest.java0<project> <groupid>com.mycompany.app</groupid> <artifactid>my-app</artifactid> <version>1</version> </project>STRING
HIGH…org/openrewrite/maven/UpgradePluginsForMaven4Test.java0<project> <groupid>com.example</groupid> <artifactid>my-app</artifactid> <version>1.0.0</version> <build> <pluginmanagemSTRING
HIGH…write/maven/RemoveDuplicatePluginDeclarationsTest.java0<project> <groupid>com.example</groupid> <artifactid>my-app</artifactid> <version>1.0.0</version> <build> <pluginmanagemSTRING
HIGH…openrewrite/maven/ExtractVersionsAsPropertiesTest.java0<project> <groupid>com.example</groupid> <artifactid>my-app</artifactid> <version>1.0.0</version> <build> <pluginmanagemSTRING
HIGH…org/openrewrite/maven/RemoveManagedDependencyTest.java0<project> <modelversion>4.0.0</modelversion> <groupid>com.mycompany.app</groupid> <artifactid>my-app</artifactid> <versiSTRING
HIGH…n/ChangeManagedDependencyGroupIdAndArtifactIdTest.java0<project> <modelversion>4.0.0</modelversion> <groupid>com.mycompany.app</groupid> <artifactid>my-app</artifactid> <versiSTRING
HIGH…te/maven/ChangeDependencyGroupIdAndArtifactIdTest.java0<project> <modelversion>4.0.0</modelversion> <groupid>com.mycompany.app</groupid> <artifactid>my-app</artifactid> <versiSTRING
HIGH…org/openrewrite/maven/RemoveManagedDependencyTest.java0<project> <modelversion>4.0.0</modelversion> <groupid>com.mycompany.app</groupid> <artifactid>my-app</artifactid> <versiSTRING
HIGH…n/ChangeManagedDependencyGroupIdAndArtifactIdTest.java0<project> <modelversion>4.0.0</modelversion> <groupid>com.mycompany.app</groupid> <artifactid>my-app</artifactid> <versiSTRING
HIGH…te/maven/ChangeDependencyGroupIdAndArtifactIdTest.java0<project> <modelversion>4.0.0</modelversion> <groupid>com.mycompany.app</groupid> <artifactid>my-app</artifactid> <versiSTRING
HIGH…org/openrewrite/maven/RemoveManagedDependencyTest.java0<project> <modelversion>4.0.0</modelversion> <groupid>com.mycompany.app</groupid> <artifactid>my-app</artifactid> <versiSTRING
HIGH…openrewrite/maven/RemoveDuplicateDependenciesTest.java0<project> <modelversion>4.0.0</modelversion> <groupid>com.mycompany.app</groupid> <artifactid>my-app</artifactid> <versiSTRING
HIGH…/test/java/org/openrewrite/maven/AddParentPomTest.java0<project> <modelversion>4.0.0</modelversion> <groupid>com.mycompany.app</groupid> <artifactid>my-app</artifactid> <versiSTRING
HIGH…est/java/org/openrewrite/maven/RemovePropertyTest.java0<project> <modelversion>4.0.0</modelversion> <groupid>com.mycompany.app</groupid> <artifactid>my-app</artifactid> <versiSTRING
HIGH…enrewrite/maven/UpdateProjectUrlFromGitOriginTest.java0<project> <modelversion>4.0.0</modelversion> <groupid>com.mycompany.app</groupid> <artifactid>my-app</artifactid> <versiSTRING
HIGH…/org/openrewrite/maven/UpdateScmFromGitOriginTest.java0<project> <modelversion>4.0.0</modelversion> <groupid>com.mycompany.app</groupid> <artifactid>my-app</artifactid> <versiSTRING
HIGH…/org/openrewrite/maven/AddAnnotationProcessorTest.java0<project> <modelversion>4.0.0</modelversion> <groupid>com.mycompany.app</groupid> <artifactid>my-app</artifactid> <versiSTRING
HIGH…org/openrewrite/maven/search/ParentPomInsightTest.java0<project> <modelversion>4.0.0</modelversion> <groupid>com.mycompany.app</groupid> <artifactid>my-app</artifactid> <versiSTRING
HIGH…openrewrite/maven/RemoveDuplicateDependenciesTest.java0<project> <modelversion>4.0.0</modelversion> <groupid>com.example</groupid> <artifactid>my-app</artifactid> <version>1</STRING
HIGH…t/java/org/openrewrite/maven/SortDependenciesTest.java0<project> <modelversion>4.0.0</modelversion> <groupid>com.example</groupid> <artifactid>my-app</artifactid> <version>1</STRING
HIGH…openrewrite/maven/AddCommentToMavenDependencyTest.java0<project> <modelversion>4.0.0</modelversion> <groupid>com.example</groupid> <artifactid>my-app</artifactid> <version>1</STRING
HIGH…t/java/org/openrewrite/maven/RemoveDependencyTest.java0<project> <modelversion>4.0.0</modelversion> <groupid>com.example</groupid> <artifactid>my-app</artifactid> <version>1</STRING
HIGH…t/java/org/openrewrite/xml/AddCommentToXmlTagTest.java0<project> <modelversion>4.0.0</modelversion> <groupid>com.example</groupid> <artifactid>my-app</artifactid> <version>1</STRING
HIGH…openrewrite/maven/DirtyJavaSourceSetsProducerTest.java0<project> <modelversion>4.0.0</modelversion> <groupid>com.example</groupid> <artifactid>my-app</artifactid> <version>1</STRING
HIGH…openrewrite/maven/RemoveDuplicateDependenciesTest.java0<project> <groupid>com.mycompany.app</groupid> <artifactid>my-app</artifactid> <version>1</version> <dependencies> <depeSTRING
HIGH…t/java/org/openrewrite/maven/RemoveDependencyTest.java0<project> <groupid>com.mycompany.app</groupid> <artifactid>my-app</artifactid> <version>1</version> <dependencies> <depeSTRING
HIGH…test/java/org/openrewrite/maven/AddDependencyTest.java0<project> <groupid>com.mycompany.app</groupid> <artifactid>my-app</artifactid> <version>1</version> <dependencies> <depeSTRING
HIGH…rg/openrewrite/maven/UpgradeDependencyVersionTest.java0<project> <groupid>com.mycompany.app</groupid> <artifactid>my-app</artifactid> <version>1</version> <dependencies> <depeSTRING
HIGH…st/java/org/openrewrite/maven/RemoveExclusionTest.java0<project> <groupid>com.mycompany.app</groupid> <artifactid>my-app</artifactid> <version>1</version> <dependencies> <depeSTRING
HIGH…rg/openrewrite/maven/search/DependencyInsightTest.java0<project> <groupid>com.mycompany.app</groupid> <artifactid>my-app</artifactid> <version>1</version> <dependencies> <depeSTRING
HIGH…write/maven/cleanup/ExplicitDependencyVersionTest.java0<project> <groupid>com.mycompany.app</groupid> <artifactid>my-app</artifactid> <version>1</version> <dependencies> <depeSTRING
HIGH…n/ChangeManagedDependencyGroupIdAndArtifactIdTest.java0<project> <groupid>com.mycompany.app</groupid> <artifactid>my-app</artifactid> <version>1</version> <dependencies> <depeSTRING
HIGH…a/org/openrewrite/maven/ChangeDependencyScopeTest.java0<project> <groupid>com.mycompany.app</groupid> <artifactid>my-app</artifactid> <version>1</version> <dependencies> <depeSTRING
HIGH…openrewrite/maven/DirtyJavaSourceSetsProducerTest.java0<project> <groupid>com.mycompany.app</groupid> <artifactid>my-app</artifactid> <version>1</version> <dependencies> <depeSTRING
HIGH…te/maven/ChangeDependencyGroupIdAndArtifactIdTest.java0<project> <groupid>com.mycompany.app</groupid> <artifactid>my-app</artifactid> <version>1</version> <dependencies> <depeSTRING
HIGH…a/org/openrewrite/maven/trait/MavenDependencyTest.java0<project> <groupid>com.mycompany.app</groupid> <artifactid>my-app</artifactid> <version>1</version> <dependencies> <depeSTRING
HIGH…c/test/java/org/openrewrite/maven/AddPropertyTest.java0<project> <groupid>com.mycompany.app</groupid> <artifactid>my-app</artifactid> <version>1</version> <dependencies> %s </STRING
HIGH…ava/org/openrewrite/maven/ChangePropertyValueTest.java0<project> <groupid>com.mycompany.app</groupid> <artifactid>my-app</artifactid> <version>1</version> <dependencies> %s </STRING
HIGH…c/test/java/org/openrewrite/maven/MavenParserTest.java0<project> <groupid>com.mycompany.app</groupid> <artifactid>my-app</artifactid> <version>1</version> <dependencies> %s </STRING
HIGH…c/test/java/org/openrewrite/maven/AddPropertyTest.java0<project> <modelversion>4.0.0</modelversion> <parent> <groupid>com.mycompany.app</groupid> <artifactid>my-parent</artifaSTRING
HIGH…test/java/org/openrewrite/maven/AddDependencyTest.java0<project> <modelversion>4.0.0</modelversion> <parent> <groupid>com.mycompany.app</groupid> <artifactid>my-parent</artifaSTRING
HIGH…c/test/java/org/openrewrite/maven/MavenParserTest.java0<project> <modelversion>4.0.0</modelversion> <parent> <groupid>com.mycompany.app</groupid> <artifactid>my-parent</artifaSTRING
HIGH…st/java/org/openrewrite/maven/internal/RawPomTest.java0<project> <modelversion>4.0.0</modelversion> <parent> <groupid>com.mycompany.app</groupid> <artifactid>my-parent</artifaSTRING
HIGH…/test/java/org/openrewrite/maven/AddParentPomTest.java0<project> <modelversion>4.0.0</modelversion> <groupid>org.sample</groupid> <artifactid>sample</artifactid> <version>1.0.STRING
HIGH…st/java/org/openrewrite/maven/ChangeParentPomTest.java0<project> <modelversion>4.0.0</modelversion> <groupid>org.sample</groupid> <artifactid>sample</artifactid> <version>1.0.STRING
HIGH…org/openrewrite/maven/search/ParentPomInsightTest.java0<project> <modelversion>4.0.0</modelversion> <groupid>org.sample</groupid> <artifactid>sample</artifactid> <version>1.0.STRING
HIGH…/test/java/org/openrewrite/maven/AddParentPomTest.java0<project> <modelversion>4.0.0</modelversion> <parent> <groupid>org.sample</groupid> <artifactid>sample</artifactid> <verSTRING
HIGH…st/java/org/openrewrite/maven/ChangeParentPomTest.java0<project> <modelversion>4.0.0</modelversion> <parent> <groupid>org.sample</groupid> <artifactid>sample</artifactid> <verSTRING
HIGH…org/openrewrite/maven/search/ParentPomInsightTest.java0<project> <modelversion>4.0.0</modelversion> <parent> <groupid>org.sample</groupid> <artifactid>sample</artifactid> <verSTRING
HIGH…/test/java/org/openrewrite/maven/AddParentPomTest.java0<project> <modelversion>4.0.0</modelversion> <parent> <groupid>org.sample</groupid> <artifactid>sample</artifactid> <verSTRING
223 more matches not shown…
Hallucination Indicators94 hits · 945 pts
SeverityFileLineSnippetContext
CRITICAL⚡…ite/maven/marketplace/MavenRecipeBundleReaderTest.java90 .anyMatch(r -> r.getName().contains(org.openrewrite.text.Find.class.getName()));CODE
CRITICAL⚡…ite/maven/marketplace/MavenRecipeBundleReaderTest.java99 .filter(r -> r.getName().equals(org.openrewrite.text.Find.class.getName()))CODE
CRITICAL⚡…ite/maven/marketplace/MavenRecipeBundleReaderTest.java105 assertThat(descriptor.getName()).isEqualTo(org.openrewrite.text.Find.class.getName());CODE
CRITICAL⚡…ite/maven/marketplace/MavenRecipeBundleReaderTest.java115 .filter(r -> r.getName().equals(org.openrewrite.text.Find.class.getName()))CODE
CRITICAL⚡…ite/maven/marketplace/MavenRecipeBundleReaderTest.java124 assertThat(recipe.getName()).isEqualTo(org.openrewrite.text.Find.class.getName());CODE
CRITICAL…ite/maven/marketplace/MavenRecipeBundleReaderTest.java176 .anyMatch(r -> r.getName().contains(org.openrewrite.text.Find.class.getName()));CODE
CRITICAL…c/main/java/org/openrewrite/maven/internal/RawPom.java482 licenses.add(org.openrewrite.maven.tree.License.fromName(l.getName()));CODE
CRITICAL…c/main/java/org/openrewrite/maven/internal/RawPom.java581 org.openrewrite.maven.tree.Dependency.builder()CODE
CRITICAL…c/main/java/org/openrewrite/maven/internal/RawPom.java601 dependencies.add(org.openrewrite.maven.tree.Dependency.builder()CODE
CRITICAL…c/main/java/org/openrewrite/maven/internal/RawPom.java648 executions.add(new org.openrewrite.maven.tree.Plugin.Execution(CODE
CRITICAL…va/org/openrewrite/maven/internal/RawGradleModule.java128 org.openrewrite.maven.tree.Dependency.DependencyBuilder builder = org.openrewrite.maven.tree.DependeCODE
CRITICAL…/openrewrite/java/isolated/ReloadableJava25Parser.java331 modules.initModules(com.sun.tools.javac.util.List.from(cus));CODE
CRITICAL…/openrewrite/java/isolated/ReloadableJava25Parser.java339 com.sun.tools.javac.util.List<JCTree.JCCompilationUnit> compilationUnits = com.sun.tools.javac.util.List.from(CODE
CRITICAL…rite/java/isolated/ReloadableJava25JavadocVisitor.java695 // at com.sun.tools.javac.comp.Attr.attribType(Attr.java:404)COMMENT
CRITICAL⚡…ite/android/UpgradeAndroidGradlePluginVersionTest.java167 org.assertj.core.api.Assertions.assertThat(recipe.getRecipeList())CODE
CRITICAL⚡…ite/android/UpgradeAndroidGradlePluginVersionTest.java170 org.assertj.core.api.Assertions.assertThat(udv.getGroupId()).isEqualTo("com.android.tools.build");CODE
CRITICAL⚡…ite/android/UpgradeAndroidGradlePluginVersionTest.java171 org.assertj.core.api.Assertions.assertThat(udv.getArtifactId()).isEqualTo("gradle");CODE
CRITICAL⚡…ite/android/UpgradeAndroidGradlePluginVersionTest.java172 org.assertj.core.api.Assertions.assertThat(udv.getNewVersion()).isEqualTo("8.5.0");CODE
CRITICAL…a/org/openrewrite/groovy/tree/RealWorldGroovyTest.java38 new net.one.gtu.jenkins.helper.ConsoleLogger(steps)STRING
CRITICAL…a/org/openrewrite/groovy/tree/RealWorldGroovyTest.java40 throw new org.jenkinsci.plugins.workflow.steps.FlowInterruptedException(hudson.model.Result.SUCCESSTRING
CRITICAL…n/java/org/openrewrite/groovy/GroovyParserVisitor.java2036 org.codehaus.groovy.ast.stmt.ExpressionStatement wrapped = new org.codehaus.groovy.ast.stmt.ExpressiCODE
CRITICAL…main/java/org/openrewrite/groovy/style/Autodetect.java47 org.openrewrite.java.style.Autodetect.Detector javaDetector = new org.openrewrite.java.style.Autodetect.DetectorCODE
CRITICAL…rp/csharp/OpenRewrite/CSharp/Format/RoslynFormatter.cs551 Microsoft.CodeAnalysis.Host.Mef.MefHostServices.Create(CODE
CRITICAL…/java/org/openrewrite/gradle/AddDependencyVisitor.java112 sourceFile = org.openrewrite.gradle.internal.AddDependencyVisitor.addDependency(CODE
CRITICAL…main/java/org/openrewrite/gradle/style/Autodetect.java46 org.openrewrite.java.style.Autodetect.Detector javaDetector = new org.openrewrite.java.style.Autodetect.DetectorCODE
CRITICAL…ava/org/openrewrite/gradle/trait/GradleDependency.java1756 return org.openrewrite.maven.tree.Dependency.builder()CODE
CRITICAL…rite/java/isolated/ReloadableJava11JavadocVisitor.java600 // at com.sun.tools.javac.comp.Attr.attribType(Attr.java:404)COMMENT
CRITICAL…/openrewrite/java/isolated/ReloadableJava11Parser.java332 modules.initModules(com.sun.tools.javac.util.List.from(cus));CODE
CRITICAL…/openrewrite/java/isolated/ReloadableJava11Parser.java340 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.java47 org.openrewrite.toml.internal.grammar.TomlParser parser = new org.openrewrite.toml.internal.grammar.TomlCODE
CRITICAL…java/org/openrewrite/kotlin/AnnotationMatcherTest.java70 var javaStyleMatcher = new AnnotationMatcher("@org.junit.jupiter.api.extension.ExtendWith(MyExtension.clCODE
CRITICAL…java/org/openrewrite/kotlin/AnnotationMatcherTest.java74 var kotlinStyleMatcher = new AnnotationMatcher("@org.junit.jupiter.api.extension.ExtendWith(MyExtension:CODE
CRITICAL…java/org/openrewrite/kotlin/AnnotationMatcherTest.java95 var javaStyleMatcher = new AnnotationMatcher("@org.junit.jupiter.api.extension.ExtendWith(org.junit.jupiCODE
CRITICAL…java/org/openrewrite/kotlin/AnnotationMatcherTest.java99 var kotlinStyleMatcher = new AnnotationMatcher("@org.junit.jupiter.api.extension.ExtendWith(org.junit.juCODE
CRITICAL…g/openrewrite/kotlin/format/AutoFormatVisitorTest.java618 org.openrewrite.java.tree.JRightPadded.build(false),STRING
CRITICAL…g/openrewrite/kotlin/format/AutoFormatVisitorTest.java620 org.openrewrite.java.tree.JRightPadded.build(iff.getThenPart())STRING
CRITICAL…g/openrewrite/kotlin/format/AutoFormatVisitorTest.java658 new org.openrewrite.kotlin.style.TabsAndIndentsStyle.FunctionDeclarationParameters(true)STRING
CRITICAL…g/openrewrite/kotlin/format/AutoFormatVisitorTest.java696 org.openrewrite.java.tree.JRightPadded.build(false),STRING
CRITICAL…g/openrewrite/kotlin/format/AutoFormatVisitorTest.java698 org.openrewrite.java.tree.JRightPadded.build(iff.getThenPart())STRING
CRITICAL…enrewrite/kotlin/format/NormalizeTabsOrSpacesTest.java66 return spec -> spec.recipe(toRecipe(() -> new NormalizeTabsOrSpacesVisitor<>(with.apply(org.openrewrite.kotlin.sCODE
CRITICAL…enrewrite/kotlin/format/NormalizeTabsOrSpacesTest.java70 singletonList(with.apply(org.openrewrite.kotlin.style.IntelliJ.tabsAndIndents()))CODE
CRITICAL…lin/recipe/internal/MappedTypeFallbackBodyGenerator.kt112 val javaClassId = org.jetbrains.kotlin.name.ClassId.topLevel(FqName(javaClassFqn))CODE
CRITICAL…lin/recipe/internal/MappedTypeFallbackBodyGenerator.kt147 private fun org.jetbrains.kotlin.ir.types.IrType.isUnit(): Boolean =CODE
CRITICAL…/openrewrite/java/isolated/ReloadableJava17Parser.java331 modules.initModules(com.sun.tools.javac.util.List.from(cus));CODE
CRITICAL…/openrewrite/java/isolated/ReloadableJava17Parser.java339 com.sun.tools.javac.util.List<JCTree.JCCompilationUnit> compilationUnits = com.sun.tools.javac.util.List.from(CODE
CRITICAL…rite/java/isolated/ReloadableJava17JavadocVisitor.java602 // at com.sun.tools.javac.comp.Attr.attribType(Attr.java:404)COMMENT
CRITICAL…/openrewrite/java/isolated/ReloadableJava21Parser.java331 modules.initModules(com.sun.tools.javac.util.List.from(cus));CODE
CRITICAL…/openrewrite/java/isolated/ReloadableJava21Parser.java339 com.sun.tools.javac.util.List<JCTree.JCCompilationUnit> compilationUnits = com.sun.tools.javac.util.List.from(CODE
CRITICAL…rite/java/isolated/ReloadableJava21JavadocVisitor.java603 // at com.sun.tools.javac.comp.Attr.attribType(Attr.java:404)COMMENT
CRITICAL…rg/openrewrite/java/ReloadableJava8JavadocVisitor.java560 // at com.sun.tools.javac.comp.Attr.attribType(Attr.java:404)COMMENT
CRITICAL…n/java/org/openrewrite/java/ReloadableJava8Parser.java220 com.sun.tools.javac.util.List<JCTree.JCCompilationUnit> jcCompilationUnits = com.sun.tools.javac.util.List.fCODE
CRITICAL…n/java/org/openrewrite/java/ReloadableJava8Parser.java298 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.java214 if (org.openrewrite.java.service.AutoFormatService.class.getName().equals(service.getName())) {CODE
CRITICAL…e-go/src/main/java/org/openrewrite/golang/tree/Go.java219 if (org.openrewrite.java.service.ImportService.class.getName().equals(service.getName())) {CODE
CRITICAL…enrewrite/marketplace/RecipeMarketplaceReaderTest.java92 org.assertj.core.api.Assertions.tuple("groupId", "Group ID", "The group ID of the dependency", true, "org.opSTRING
CRITICAL…enrewrite/marketplace/RecipeMarketplaceReaderTest.java93 org.assertj.core.api.Assertions.tuple("artifactId", "Artifact ID", "The artifact ID of the dependency", falsSTRING
CRITICAL…enrewrite/marketplace/RecipeMarketplaceReaderTest.java113 org.assertj.core.api.Assertions.tuple("org.openrewrite.java.dependencies.DependencyListTable", "DependenciesSTRING
CRITICAL…enrewrite/marketplace/RecipeMarketplaceReaderTest.java114 org.assertj.core.api.Assertions.tuple("org.openrewrite.java.dependencies.RepositoryTable", "Repositories", "STRING
CRITICAL…enrewrite/marketplace/RecipeMarketplaceReaderTest.java134 org.assertj.core.api.Assertions.tuple("groupId", "String", "Group ID", "The dependency group"),STRING
CRITICAL…enrewrite/marketplace/RecipeMarketplaceReaderTest.java135 org.assertj.core.api.Assertions.tuple("artifactId", "String", "Artifact ID", null)STRING
34 more matches not shown…
Over-Commented Block526 hits · 518 pts
SeverityFileLineSnippetContext
LOWrewrite.yml1#COMMENT
LOWrewrite.yml141 # before UseDiamondOperator, as they need the explicit type arguments on constructorsCOMMENT
LOWrewrite.yml161 methodPattern: 'org.openrewrite..Assertions *(..)'COMMENT
LOW…/org/openrewrite/maven/AddAnnotationProcessorTest.java2641 void orphanModuleSharedLstWithExternalParent() {COMMENT
LOW…te-maven/src/main/resources/META-INF/rewrite/maven.yml1#COMMENT
LOW…c/main/resources/META-INF/rewrite/maven-categories.yml1#COMMENT
LOW…java/org/openrewrite/maven/AddAnnotationProcessor.java221 // Resolve each <module> string relative to the aggregator'sCOMMENT
LOW…rc/main/resources/META-INF/rewrite/json-categories.yml1#COMMENT
LOW…est/java/org/openrewrite/yaml/JsonPathMatcherTest.java1041 @TestCOMMENT
LOW…rc/main/resources/META-INF/rewrite/yaml-categories.yml1#COMMENT
LOW…/main/resources/META-INF/rewrite/groovy-categories.yml1#COMMENT
LOW…te-csharp/csharp/OpenRewrite/Core/CategoryAttribute.cs21/// <see cref="CategoryDescriptorAttribute"/> instances (in declaration order) form the levelsCOMMENT
LOW…te-csharp/csharp/OpenRewrite/Core/RecipeMarketplace.cs61 /// their marketplace placement via <see cref="CategoryAttribute"/> + <see cref="CategoryDescriptorAttribute"/>.COMMENT
LOWrewrite-csharp/csharp/OpenRewrite/Core/TreeVisitor.cs21/// Subclasses override <see cref="Accept"/> to dispatch to type-specific visit methods.COMMENT
LOWrewrite-csharp/csharp/OpenRewrite/Core/TreeVisitor.cs81 /// <summary>COMMENT
LOWrewrite-csharp/csharp/OpenRewrite/Core/RecipeRef.cs21/// Recipe-identity placeholder for use as a precondition.COMMENT
LOWrewrite-csharp/csharp/OpenRewrite/Core/RecipeRef.cs41///COMMENT
LOW…rite-csharp/csharp/OpenRewrite/Core/IDataTableStore.cs21/// </summary>COMMENT
LOW…csharp/OpenRewrite/Core/CategoryDescriptorAttribute.cs21/// <see cref="Recipe"/> classes — preceded by a <see cref="CategoryAttribute"/>COMMENT
LOWrewrite-csharp/csharp/OpenRewrite/Core/SearchResult.cs21/// <summary>COMMENT
LOW…ite-csharp/csharp/OpenRewrite/Core/IRecipeActivator.cs21/// <para>COMMENT
LOWrewrite-csharp/csharp/OpenRewrite/Core/Rpc/RpcJson.cs21COMMENT
LOWrewrite-csharp/csharp/OpenRewrite/Test/RpcFixture.cs101 /// <p>COMMENT
LOWrewrite-csharp/csharp/OpenRewrite/Test/Validations.cs21/// when a recipe is known to produce results that don't satisfy a particular invariant.COMMENT
LOWrewrite-csharp/csharp/OpenRewrite/Test/Validations.cs41 /// <summary>COMMENT
LOWrewrite-csharp/csharp/OpenRewrite/Java/J.cs2381}COMMENT
LOW…te-csharp/csharp/OpenRewrite/Java/Search/UsesMethod.cs21COMMENT
LOW…-csharp/csharp/OpenRewrite/Java/Search/IsSourceFile.cs21/// <summary>COMMENT
LOW…csharp/csharp/OpenRewrite/Java/Search/Preconditions.cs21/// Search-based precondition helpers that name a Java recipe to evaluateCOMMENT
LOW…rite-csharp/csharp/OpenRewrite/Java/Search/UsesType.cs21/// <summary>COMMENT
LOW…arp/csharp/OpenRewrite/Xml/Grammar/XMLParserVisitor.cs21// Changes to this file may cause incorrect behavior and will be lost ifCOMMENT
LOW…arp/csharp/OpenRewrite/Xml/Grammar/XMLParserVisitor.cs41COMMENT
LOW…arp/csharp/OpenRewrite/Xml/Grammar/XMLParserVisitor.cs61 Result VisitProlog([NotNull] XMLParser.PrologContext context);COMMENT
LOW…arp/csharp/OpenRewrite/Xml/Grammar/XMLParserVisitor.cs81 /// Visit a parse tree produced by <see cref="XMLParser.intsubset"/>.COMMENT
LOW…arp/csharp/OpenRewrite/Xml/Grammar/XMLParserVisitor.cs101 /// <param name="context">The parse tree.</param>COMMENT
LOW…arp/csharp/OpenRewrite/Xml/Grammar/XMLParserVisitor.cs121 Result VisitElement([NotNull] XMLParser.ElementContext context);COMMENT
LOW…arp/csharp/OpenRewrite/Xml/Grammar/XMLParserVisitor.cs141 /// Visit a parse tree produced by <see cref="XMLParser.jspdeclaration"/>.COMMENT
LOW…arp/csharp/OpenRewrite/Xml/Grammar/XMLParserVisitor.cs161 /// <param name="context">The parse tree.</param>COMMENT
LOW…rp/csharp/OpenRewrite/Xml/Grammar/XMLParserListener.cs21// Changes to this file may cause incorrect behavior and will be lost ifCOMMENT
LOW…rp/csharp/OpenRewrite/Xml/Grammar/XMLParserListener.cs41COMMENT
LOW…rp/csharp/OpenRewrite/Xml/Grammar/XMLParserListener.cs61 /// </summary>COMMENT
LOW…rp/csharp/OpenRewrite/Xml/Grammar/XMLParserListener.cs81 /// </summary>COMMENT
LOW…rp/csharp/OpenRewrite/Xml/Grammar/XMLParserListener.cs101 /// </summary>COMMENT
LOW…rp/csharp/OpenRewrite/Xml/Grammar/XMLParserListener.cs121 /// </summary>COMMENT
LOW…rp/csharp/OpenRewrite/Xml/Grammar/XMLParserListener.cs141 /// </summary>COMMENT
LOW…rp/csharp/OpenRewrite/Xml/Grammar/XMLParserListener.cs161 /// </summary>COMMENT
LOW…rp/csharp/OpenRewrite/Xml/Grammar/XMLParserListener.cs181 /// </summary>COMMENT
LOW…rp/csharp/OpenRewrite/Xml/Grammar/XMLParserListener.cs201 /// </summary>COMMENT
LOW…rp/csharp/OpenRewrite/Xml/Grammar/XMLParserListener.cs221 /// </summary>COMMENT
LOW…rp/csharp/OpenRewrite/Xml/Grammar/XMLParserListener.cs241 /// </summary>COMMENT
LOW…ite-csharp/csharp/OpenRewrite/Xml/Grammar/XMLParser.cs21// Changes to this file may cause incorrect behavior and will be lost ifCOMMENT
LOW…rite-csharp/csharp/OpenRewrite/Xml/Grammar/XMLLexer.cs21// Changes to this file may cause incorrect behavior and will be lost ifCOMMENT
LOW…csharp/OpenRewrite/Xml/Grammar/XMLParserBaseVisitor.cs21// Changes to this file may cause incorrect behavior and will be lost ifCOMMENT
LOW…csharp/OpenRewrite/Xml/Grammar/XMLParserBaseVisitor.cs41using ParserRuleContext = Antlr4.Runtime.ParserRuleContext;COMMENT
LOW…csharp/OpenRewrite/Xml/Grammar/XMLParserBaseVisitor.cs61 /// <return>The visitor result.</return>COMMENT
LOW…csharp/OpenRewrite/Xml/Grammar/XMLParserBaseVisitor.cs81 /// <return>The visitor result.</return>COMMENT
LOW…csharp/OpenRewrite/Xml/Grammar/XMLParserBaseVisitor.cs101 /// <return>The visitor result.</return>COMMENT
LOW…csharp/OpenRewrite/Xml/Grammar/XMLParserBaseVisitor.cs121 /// <return>The visitor result.</return>COMMENT
LOW…csharp/OpenRewrite/Xml/Grammar/XMLParserBaseVisitor.cs141 /// <return>The visitor result.</return>COMMENT
LOW…csharp/OpenRewrite/Xml/Grammar/XMLParserBaseVisitor.cs161 /// <return>The visitor result.</return>COMMENT
466 more matches not shown…
Unused Imports328 hits · 269 pts
SeverityFileLineSnippetContext
LOWrewrite-python/rewrite/tests/test_data_table.py21CODE
LOWrewrite-python/rewrite/tests/test_rewrite_test.py32CODE
LOWrewrite-python/rewrite/tests/test_rewrite_test.py363CODE
LOWrewrite-python/rewrite/tests/test_replace_identity.py23CODE
LOWrewrite-python/rewrite/tests/test_replace_identity.py27CODE
LOWrewrite-python/rewrite/tests/test_preconditions.py21CODE
LOWrewrite-python/rewrite/tests/test_preconditions.py21CODE
LOWrewrite-python/rewrite/tests/test_preconditions.py25CODE
LOWrewrite-python/rewrite/tests/test_preconditions.py34CODE
LOWrewrite-python/rewrite/tests/test_preconditions.py35CODE
LOWrewrite-python/rewrite/tests/test_marketplace.py19CODE
LOW…rewrite/tests/python/test_declared_version_typeshed.py35CODE
LOW…e-python/rewrite/tests/python/test_type_attribution.py30CODE
LOW…e-python/rewrite/tests/python/test_type_attribution.py40CODE
LOW…e-python/rewrite/tests/python/test_type_attribution.py40CODE
LOW…e-python/rewrite/tests/python/test_type_attribution.py3769CODE
LOW…e-python/rewrite/tests/python/test_type_attribution.py3893CODE
LOW…e-python/rewrite/tests/python/test_type_attribution.py4284CODE
LOW…ite-python/rewrite/tests/python/version_detect_test.py18CODE
LOW…thon/rewrite/tests/python/template/test_placeholder.py20CODE
LOW…e-python/rewrite/tests/python/template/test_pattern.py20CODE
LOW…e-python/rewrite/tests/python/template/test_capture.py19CODE
LOW…e-python/rewrite/tests/python/template/test_capture.py19CODE
LOW…ython/rewrite/tests/python/template/test_comparator.py17CODE
LOW…-python/rewrite/tests/python/template/test_template.py22CODE
LOW…-python/rewrite/tests/python/template/test_template.py29CODE
LOW…on/rewrite/tests/python/all/tree/comprehension_test.py1CODE
LOW…rite-python/rewrite/tests/python/all/tree/with_test.py1CODE
LOW…write-python/rewrite/tests/python/all/tree/try_test.py1CODE
LOW…te-python/rewrite/tests/python/all/tree/import_test.py2CODE
LOW…write-python/rewrite/tests/python/all/tree/def_test.py1CODE
LOWrewrite-python/rewrite/tests/python/all/tree/if_test.py1CODE
LOW…on/rewrite/tests/python/all/format/blank_lines_test.py1CODE
LOW…on/rewrite/tests/python/all/format/blank_lines_test.py2CODE
LOW…-python/rewrite/tests/python/py312/with_parens_test.py1CODE
LOW…ite-python/rewrite/tests/python/py27/remaining_test.py19CODE
LOW…ite-python/rewrite/tests/python/py27/remaining_test.py25CODE
LOWrewrite-python/rewrite/tests/python/py27/sweep_test.py25CODE
LOW…write-python/rewrite/tests/python/py27/funcdef_test.py21CODE
LOW…write-python/rewrite/tests/recipes/test_remove_pass.py17CODE
LOW…-python/rewrite/tests/rpc/test_file_attributes_wire.py17CODE
LOW…/tests/rpc/test_recipes_that_made_changes_roundtrip.py18CODE
LOWrewrite-python/rewrite/tests/rpc/test_marker_codecs.py45CODE
LOW…rite-python/rewrite/tests/rpc/test_dependency_types.py33CODE
LOWrewrite-python/rewrite/src/rewrite/tree.py1CODE
LOWrewrite-python/rewrite/src/rewrite/tree.py19CODE
LOWrewrite-python/rewrite/src/rewrite/execution.py1CODE
LOWrewrite-python/rewrite/src/rewrite/execution.py11CODE
LOWrewrite-python/rewrite/src/rewrite/execution.py11CODE
LOWrewrite-python/rewrite/src/rewrite/style.py1CODE
LOWrewrite-python/rewrite/src/rewrite/discovery.py17CODE
LOWrewrite-python/rewrite/src/rewrite/__init__.py10CODE
LOWrewrite-python/rewrite/src/rewrite/__init__.py10CODE
LOWrewrite-python/rewrite/src/rewrite/__init__.py10CODE
LOWrewrite-python/rewrite/src/rewrite/__init__.py10CODE
LOWrewrite-python/rewrite/src/rewrite/__init__.py11CODE
LOWrewrite-python/rewrite/src/rewrite/__init__.py12CODE
LOWrewrite-python/rewrite/src/rewrite/__init__.py12CODE
LOWrewrite-python/rewrite/src/rewrite/__init__.py12CODE
LOWrewrite-python/rewrite/src/rewrite/__init__.py12CODE
268 more matches not shown…
Decorative Section Separators75 hits · 258 pts
SeverityFileLineSnippetContext
MEDIUM⚡rewrite-python/rewrite/tests/python/test_type_utils.py181# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡rewrite-python/rewrite/tests/python/test_type_utils.py183# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡rewrite-python/rewrite/tests/python/test_type_utils.py291# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡rewrite-python/rewrite/tests/python/test_type_utils.py293# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡rewrite-python/rewrite/tests/python/test_type_utils.py359# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡rewrite-python/rewrite/tests/python/test_type_utils.py361# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡rewrite-python/rewrite/tests/python/test_type_utils.py410# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡rewrite-python/rewrite/tests/python/test_type_utils.py412# ---------------------------------------------------------------------------COMMENT
MEDIUMrewrite-python/rewrite/tests/python/test_type_utils.py34# ---------------------------------------------------------------------------COMMENT
MEDIUMrewrite-python/rewrite/tests/python/test_type_utils.py36# ---------------------------------------------------------------------------COMMENT
MEDIUMrewrite-python/rewrite/tests/python/test_type_utils.py112# ---------------------------------------------------------------------------COMMENT
MEDIUMrewrite-python/rewrite/tests/python/test_type_utils.py114# ---------------------------------------------------------------------------COMMENT
MEDIUMrewrite-python/rewrite/tests/python/test_type_utils.py131# ---------------------------------------------------------------------------COMMENT
MEDIUMrewrite-python/rewrite/tests/python/test_type_utils.py133# ---------------------------------------------------------------------------COMMENT
MEDIUMrewrite-python/rewrite/tests/python/test_type_utils.py153# ---------------------------------------------------------------------------COMMENT
MEDIUMrewrite-python/rewrite/tests/python/test_type_utils.py155# ---------------------------------------------------------------------------COMMENT
MEDIUMrewrite-python/rewrite/tests/python/test_type_utils.py227# ---------------------------------------------------------------------------COMMENT
MEDIUMrewrite-python/rewrite/tests/python/test_type_utils.py229# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡…-python/rewrite/tests/python/template/test_template.py682# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡…-python/rewrite/tests/python/template/test_template.py684# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡…-python/rewrite/tests/python/template/test_template.py692# ---------------------------------------------------------------------------COMMENT
MEDIUM…-python/rewrite/tests/python/template/test_template.py558# ---------------------------------------------------------------------------COMMENT
MEDIUM…-python/rewrite/tests/python/template/test_template.py560# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡…ite-python/rewrite/tests/python/py27/remaining_test.py202# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡…ite-python/rewrite/tests/python/py27/remaining_test.py204# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡…ite-python/rewrite/tests/python/py27/remaining_test.py294# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡…ite-python/rewrite/tests/python/py27/remaining_test.py296# ---------------------------------------------------------------------------COMMENT
MEDIUM…ite-python/rewrite/tests/python/py27/remaining_test.py41# ---------------------------------------------------------------------------COMMENT
MEDIUM…ite-python/rewrite/tests/python/py27/remaining_test.py43# ---------------------------------------------------------------------------COMMENT
MEDIUM…ite-python/rewrite/tests/python/py27/remaining_test.py74# ---------------------------------------------------------------------------COMMENT
MEDIUM…ite-python/rewrite/tests/python/py27/remaining_test.py76# ---------------------------------------------------------------------------COMMENT
MEDIUM…ite-python/rewrite/tests/python/py27/remaining_test.py140# ---------------------------------------------------------------------------COMMENT
MEDIUM…ite-python/rewrite/tests/python/py27/remaining_test.py142# ---------------------------------------------------------------------------COMMENT
MEDIUM…ite-python/rewrite/tests/python/py27/remaining_test.py183# ---------------------------------------------------------------------------COMMENT
MEDIUM…ite-python/rewrite/tests/python/py27/remaining_test.py185# ---------------------------------------------------------------------------COMMENT
MEDIUM…ite-python/rewrite/tests/python/py27/remaining_test.py226# ---------------------------------------------------------------------------COMMENT
MEDIUM…ite-python/rewrite/tests/python/py27/remaining_test.py228# ---------------------------------------------------------------------------COMMENT
MEDIUM…ite-python/rewrite/tests/python/py27/remaining_test.py256# ---------------------------------------------------------------------------COMMENT
MEDIUM…ite-python/rewrite/tests/python/py27/remaining_test.py258# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡…write-python/rewrite/tests/python/py27/comment_test.py69# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡…write-python/rewrite/tests/python/py27/comment_test.py71# ---------------------------------------------------------------------------COMMENT
MEDIUM…te-python/rewrite/tests/python/py27/round_trip_test.py35# ---------------------------------------------------------------------------COMMENT
MEDIUM…te-python/rewrite/tests/python/py27/round_trip_test.py37# ---------------------------------------------------------------------------COMMENT
MEDIUMrewrite-python/rewrite/src/rewrite/python/visitor.py86 # -------------------------------------------------------------------------COMMENT
MEDIUMrewrite-python/rewrite/src/rewrite/python/visitor.py88 # -------------------------------------------------------------------------COMMENT
MEDIUMrewrite-python/rewrite/src/rewrite/python/printer.py189 # -------------------------------------------------------------------------COMMENT
MEDIUMrewrite-python/rewrite/src/rewrite/python/printer.py191 # -------------------------------------------------------------------------COMMENT
MEDIUMrewrite-python/rewrite/src/rewrite/python/printer.py324 # -------------------------------------------------------------------------COMMENT
MEDIUMrewrite-python/rewrite/src/rewrite/python/printer.py326 # -------------------------------------------------------------------------COMMENT
MEDIUMrewrite-python/rewrite/src/rewrite/python/printer.py887 # -------------------------------------------------------------------------COMMENT
MEDIUMrewrite-python/rewrite/src/rewrite/python/printer.py889 # -------------------------------------------------------------------------COMMENT
MEDIUMrewrite-python/rewrite/src/rewrite/python/printer.py1049 # -------------------------------------------------------------------------COMMENT
MEDIUMrewrite-python/rewrite/src/rewrite/python/printer.py1051 # -------------------------------------------------------------------------COMMENT
MEDIUM…thon/rewrite/src/rewrite/python/template/comparator.py39# ──────────────────────────────────────────────────────────────────────────────COMMENT
MEDIUM…thon/rewrite/src/rewrite/python/template/comparator.py41# ──────────────────────────────────────────────────────────────────────────────COMMENT
MEDIUM…thon/rewrite/src/rewrite/python/template/comparator.py224# ──────────────────────────────────────────────────────────────────────────────COMMENT
MEDIUM…thon/rewrite/src/rewrite/python/template/comparator.py226# ──────────────────────────────────────────────────────────────────────────────COMMENT
MEDIUM…thon/rewrite/src/rewrite/python/template/comparator.py376# ──────────────────────────────────────────────────────────────────────────────COMMENT
MEDIUM…thon/rewrite/src/rewrite/python/template/comparator.py378# ──────────────────────────────────────────────────────────────────────────────COMMENT
MEDIUM⚡…/src/rewrite/python/format/tabs_and_indents_visitor.py684 # -------------------------------------------------------------------------COMMENT
15 more matches not shown…
Modern AI Meta-Vocabulary51 hits · 158 pts
SeverityFileLineSnippetContext
MEDIUMrewrite-csharp/csharp/OpenRewrite/CSharp/TypeUtils.cs64 /// when the target type comes from a parsed AST (e.g., a typed capture's scaffold).COMMENT
MEDIUM…p/csharp/OpenRewrite/CSharp/Template/CSharpTemplate.cs74 /// Create a template with auto-detected scaffold kind.COMMENT
MEDIUM…p/csharp/OpenRewrite/CSharp/Template/CSharpTemplate.cs76 /// <see cref="ClassMember"/>, or <see cref="Attribute"/> for explicit scaffold control.COMMENT
MEDIUM…rp/csharp/OpenRewrite/CSharp/Template/CSharpPattern.cs60 /// Create a pattern with auto-detected scaffold kind.COMMENT
MEDIUM…rp/csharp/OpenRewrite/CSharp/Template/CSharpPattern.cs62 /// <see cref="ClassMember"/>, or <see cref="Attribute"/> for explicit scaffold control.COMMENT
MEDIUM…p/csharp/OpenRewrite/CSharp/Template/TemplateEngine.cs35/// Controls how template code is wrapped in a scaffold and how the target node is extracted.COMMENT
MEDIUM…p/csharp/OpenRewrite/CSharp/Template/TemplateEngine.cs54/// Wraps template code in a parseable C# scaffold, parses with <see cref="CSharpParser"/>,COMMENT
MEDIUM…p/csharp/OpenRewrite/CSharp/Template/TemplateEngine.cs54/// Wraps template code in a parseable C# scaffold, parses with <see cref="CSharpParser"/>,COMMENT
MEDIUM…p/csharp/OpenRewrite/CSharp/Template/TemplateEngine.cs68 /// Parse a template code string into an AST node using the default scaffoldCOMMENT
MEDIUM…p/csharp/OpenRewrite/CSharp/Template/TemplateEngine.cs80 /// The code is wrapped in a scaffold controlled by <paramref name="scaffoldKind"/>,COMMENT
MEDIUM…p/csharp/OpenRewrite/CSharp/Template/TemplateEngine.cs84 /// When null, uses the legacy Statement scaffold with auto-unwrap of ExpressionStatements.</param>COMMENT
MEDIUM…p/csharp/OpenRewrite/CSharp/Template/TemplateEngine.cs118 // Compute preamble first — it affects the scaffold shape and must be part of the cache keyCOMMENT
MEDIUM⚡…p/csharp/OpenRewrite/CSharp/Template/TemplateEngine.cs255 // Always create a semantic model so the scaffold gets type attribution.COMMENT
MEDIUM⚡…p/csharp/OpenRewrite/CSharp/Template/TemplateEngine.cs265 // When the legacy scaffold (scaffoldKind == null) produces a VariableDeclarations,COMMENT
MEDIUM⚡…p/csharp/OpenRewrite/CSharp/Template/TemplateEngine.cs267 // Re-parse using the Expression scaffold where the code appears in an initializerCOMMENT
MEDIUM…p/csharp/OpenRewrite/CSharp/Template/TemplateEngine.cs279 /// for scaffold generation.COMMENT
MEDIUM…p/csharp/OpenRewrite/CSharp/Template/TemplateEngine.cs287 /// Build the scaffold preamble from captures: field declarations for expression captures,COMMENT
MEDIUM…p/csharp/OpenRewrite/CSharp/Template/TemplateEngine.cs358 // TODO: emit scaffold that places placeholder in a type positionCOMMENT
MEDIUM…p/csharp/OpenRewrite/CSharp/Template/TemplateEngine.cs380 /// The scaffold shape is controlled by <paramref name="scaffoldKind"/>.COMMENT
MEDIUM…p/csharp/OpenRewrite/CSharp/Template/TemplateEngine.cs415 // Typed capture declarations as class fields — in scope for all scaffold kindsCOMMENT
MEDIUM…p/csharp/OpenRewrite/CSharp/Template/TemplateEngine.cs464 /// Extract the template AST node from the scaffold's compilation unit.COMMENT
MEDIUM…p/csharp/OpenRewrite/CSharp/Template/TemplateEngine.cs494 /// Falls back to Expression scaffold when the statement is a VariableDeclarations,COMMENT
MEDIUM…p/csharp/OpenRewrite/CSharp/Template/TemplateEngine.cs550 // Find the scaffold field specifically: object __v__ = <code>;COMMENT
MEDIUM…p/csharp/OpenRewrite/CSharp/Template/TemplateEngine.cs671 /// Strip the scaffold-induced prefix from the extracted node,COMMENT
MEDIUM…penRewrite/CSharp/Template/CaptureConstraintContext.cs32/// type using the fully-resolved type from the scaffold rather than the raw type string.</param>COMMENT
MEDIUM…arp/OpenRewrite/CSharp/Template/DependencyWorkspace.cs28/// for template scaffold compilation. Uses <see cref="ReferenceAssemblies"/> fromCOMMENT
MEDIUM…arp/OpenRewrite/CSharp/Template/DependencyWorkspace.cs38 /// Added to scaffold compilations so types like <c>Dictionary&lt;,&gt;</c> resolveCOMMENT
MEDIUM…arp/OpenRewrite/CSharp/Template/DependencyWorkspace.cs68 /// resolve without explicit <c>using</c> directives in the scaffold.COMMENT
MEDIUM…e-csharp/csharp/OpenRewrite/CSharp/Template/Capture.cs23/// Used internally by the template engine to generate appropriate scaffold code.COMMENT
MEDIUM…e-csharp/csharp/OpenRewrite/CSharp/Template/Capture.cs126 // Prefer the Roslyn-resolved type from the pattern scaffold when available.COMMENT
MEDIUM…e-csharp/csharp/OpenRewrite/CSharp/Template/Capture.cs186 /// variable declaration in the scaffold preamble, giving the placeholder proper typeCOMMENT
MEDIUM…e-csharp/csharp/OpenRewrite/CSharp/Template/Capture.cs205 /// field declaration in the scaffold preamble for type attribution.COMMENT
MEDIUM…e-csharp/csharp/OpenRewrite/CSharp/Template/Capture.cs207 /// as generic type parameters on the scaffold class, allowing the capture to matchCOMMENT
MEDIUM…e-csharp/csharp/OpenRewrite/CSharp/Template/Capture.cs222 /// The template engine will use an appropriate scaffold strategy so Roslyn parsesCOMMENT
MEDIUM…csharp/OpenRewrite.Tests/Template/PatternMatchTests.cs1277 // Pattern: list.Contains(1) with explicit receiver (typed capture gives scaffold type info)COMMENT
MEDIUM…rp/OpenRewrite.Tests/Template/ScaffoldStrategyTests.cs260 // Same code string, different scaffold kinds — must produce different AST typesCOMMENT
MEDIUM…/main/kotlin/org/openrewrite/dsl/scopes/KotlinScope.kt16// Hand-written scaffold: KotlinScope mirrors JavaScope (generated from JavaVisitor `.class`)COMMENT
MEDIUMrewrite-go/pkg/template/matcher_audit_test.go33// fixture is one snippet of Go source, paired with the scaffold kind thatCOMMENT
MEDIUMrewrite-go/pkg/template/placeholder.go27// that can be used in scaffold source code.COMMENT
MEDIUMrewrite-go/pkg/template/scaffold.go39// go/parser can resolve placeholder identifiers in the scaffold source.COMMENT
MEDIUMrewrite-go/pkg/template/scaffold.go110// parseScaffold parses the scaffold source and extracts the target node.COMMENT
MEDIUMrewrite-go/pkg/template/scaffold.go132 // The target is the initializer of the one variable the scaffoldCOMMENT
MEDIUMrewrite-go/pkg/template/scaffold.go178// scaffoldEnd is the declaration the scaffold writes after the template code.COMMENT
MEDIUMrewrite-go/pkg/template/context_test.go130// The scaffold always declares something of its own.COMMENT
MEDIUMrewrite-go/pkg/template/field_plan.go71// clause and imports that a scaffold writes for itself.COMMENT
MEDIUMrewrite-go/pkg/template/capture.go74// WithType declares the Go type a capture stands for. The scaffold preambleCOMMENT
MEDIUMrewrite-go/pkg/template/go_template.go85 // other. The cache is what the scaffold parse produced, once.COMMENT
MEDIUMrewrite-go/pkg/template/go_template.go108 // The prefix is the gap the scaffold leaves before the template code,COMMENT
MEDIUMrewrite-go/pkg/template/go_pattern.go102// scaffold preamble declared for it. A name that did not resolve wouldCOMMENT
MEDIUMdoc/adr/0009-native-python-lock-regeneration.md332#### 7. Engine orchestrationCOMMENT
MEDIUMrewrite-python/rewrite/src/rewrite/rpc/rpc_recipe.py127 # Never reached when the JVM orchestrates (the server short-circuits toCOMMENT
Empty Error Handlers29 hits · 145 pts
SeverityFileLineSnippetContext
HIGH…e-python/rewrite/tests/python/test_type_attribution.py3772except ImportError:CODE
HIGH…e-python/rewrite/tests/python/test_type_attribution.py3896except ImportError:CODE
HIGH…e-python/rewrite/tests/python/test_type_attribution.py4287except ImportError:CODE
HIGHrewrite-python/rewrite/scripts/generate_stubs.py761except ValueError:CODE
HIGHrewrite-python/rewrite/src/rewrite/tree.py158except OSError:CODE
HIGHrewrite-python/rewrite/src/rewrite/__init__.py7except ImportError:CODE
HIGHrewrite-python/rewrite/src/rewrite/test/rewrite_test.py553except OSError:CODE
HIGH…rite-python/rewrite/src/rewrite/python/type_mapping.py431except RuntimeError:CODE
HIGH…rite-python/rewrite/src/rewrite/python/type_mapping.py1053except OSError:CODE
HIGH…hon/rewrite/src/rewrite/python/dependency_workspace.py224except OSError:CODE
HIGH…e-python/rewrite/src/rewrite/python/_parser_visitor.py2237except ValueError:CODE
HIGHrewrite-python/rewrite/src/rewrite/python/ty_client.py272except (ImportError, FileNotFoundError):CODE
HIGHrewrite-python/rewrite/src/rewrite/python/ty_client.py467except OSError:CODE
HIGH…e-python/rewrite/src/rewrite/python/template/engine.py482except (ValueError, AttributeError):CODE
HIGH…e-python/rewrite/src/rewrite/python/template/engine.py357except OSError:CODE
HIGHrewrite-python/rewrite/src/rewrite/rpc/server.py812except (ImportError, RuntimeError):CODE
HIGHrewrite-python/rewrite/src/rewrite/rpc/server.py3192except (OSError, ValueError, IndexError):CODE
HIGHrewrite-python/rewrite/src/rewrite/rpc/server.py388except ValueError:CODE
HIGHrewrite-python/rewrite/src/rewrite/rpc/server.py1056except OSError:CODE
HIGHrewrite-python/rewrite/src/rewrite/rpc/server.py740except OSError:CODE
HIGHrewrite-python/rewrite/src/rewrite/rpc/server.py746except OSError:CODE
HIGHrewrite-python/rewrite/src/rewrite/rpc/server.py1551except Exception:CODE
HIGHrewrite-python/rewrite/src/rewrite/rpc/server.py2664except Exception:CODE
HIGHrewrite-python/rewrite/src/rewrite/rpc/server.py3229except OSError:CODE
HIGHrewrite-python/rewrite/src/rewrite/rpc/server.py351except Exception:CODE
HIGHrewrite-python/rewrite/src/rewrite/rpc/server.py364except Exception:CODE
HIGHrewrite-python/rewrite/src/rewrite/rpc/json_codec.py40except TypeError:CODE
HIGHrewrite-python/rewrite/src/rewrite/rpc/json_codec.py51except orjson.JSONDecodeError:CODE
HIGH…ite-python/rewrite/src/rewrite/rpc/child_connection.py159except Exception:CODE
Deep Nesting143 hits · 117 pts
SeverityFileLineSnippetContext
LOWrewrite-python/rewrite/tests/conftest.py123CODE
LOW…hon/rewrite/tests/python/whitespace_attachment_test.py108CODE
LOW…hon/rewrite/tests/python/whitespace_attachment_test.py111CODE
LOW…python/rewrite/tests/python/all/tree/type_hint_test.py234CODE
LOW…python/rewrite/tests/python/all/tree/type_hint_test.py278CODE
LOW…python/rewrite/tests/python/all/tree/type_hint_test.py238CODE
LOW…python/rewrite/tests/python/all/tree/type_hint_test.py282CODE
LOW…python/rewrite/tests/python/all/tree/type_hint_test.py242CODE
LOW…python/rewrite/tests/python/all/tree/type_hint_test.py286CODE
LOW…ite-python/rewrite/tests/python/all/tree/class_test.py121CODE
LOW…ite-python/rewrite/tests/python/all/tree/class_test.py125CODE
LOW…ite-python/rewrite/tests/python/all/tree/class_test.py129CODE
LOW…write/tests/python/all/tree/method_declaration_test.py199CODE
LOW…write/tests/python/all/tree/method_declaration_test.py249CODE
LOW…write/tests/python/all/tree/method_declaration_test.py203CODE
LOW…write/tests/python/all/tree/method_declaration_test.py253CODE
LOW…write/tests/python/all/tree/method_declaration_test.py207CODE
LOW…write/tests/python/all/tree/method_declaration_test.py257CODE
LOW…write/tests/python/all/tree/collection_literal_test.py119CODE
LOW…write/tests/python/all/tree/collection_literal_test.py150CODE
LOW…write/tests/python/all/tree/collection_literal_test.py123CODE
LOW…write/tests/python/all/tree/collection_literal_test.py154CODE
LOW…write/tests/python/all/tree/collection_literal_test.py127CODE
LOW…write/tests/python/all/tree/collection_literal_test.py158CODE
LOW…ite-python/rewrite/tests/python/all/tree/match_test.py186CODE
LOW…te-python/rewrite/tests/python/all/tree/assign_test.py139CODE
LOW…te-python/rewrite/tests/python/all/tree/assign_test.py143CODE
LOW…te-python/rewrite/tests/python/all/tree/assign_test.py147CODE
LOW…te-python/rewrite/tests/python/all/tree/assign_test.py167CODE
LOWrewrite-python/rewrite/scripts/generate_stubs.py59CODE
LOWrewrite-python/rewrite/scripts/generate_stubs.py80CODE
LOWrewrite-python/rewrite/scripts/generate_stubs.py98CODE
LOWrewrite-python/rewrite/scripts/generate_stubs.py232CODE
LOWrewrite-python/rewrite/scripts/generate_stubs.py298CODE
LOWrewrite-python/rewrite/scripts/generate_stubs.py424CODE
LOWrewrite-python/rewrite/scripts/generate_stubs.py458CODE
LOWrewrite-python/rewrite/scripts/generate_stubs.py496CODE
LOWrewrite-python/rewrite/scripts/generate_stubs.py513CODE
LOWrewrite-python/rewrite/scripts/generate_stubs.py573CODE
LOWrewrite-python/rewrite/scripts/generate_stubs.py612CODE
LOWrewrite-python/rewrite/scripts/generate_stubs.py634CODE
LOWrewrite-python/rewrite/src/rewrite/style.py37CODE
LOWrewrite-python/rewrite/src/rewrite/visitor.py136CODE
LOWrewrite-python/rewrite/src/rewrite/utils.py236CODE
LOWrewrite-python/rewrite/src/rewrite/utils.py262CODE
LOWrewrite-python/rewrite/src/rewrite/test/well_formed.py42CODE
LOWrewrite-python/rewrite/src/rewrite/test/spec.py118CODE
LOWrewrite-python/rewrite/src/rewrite/test/rewrite_test.py362CODE
LOWrewrite-python/rewrite/src/rewrite/test/rewrite_test.py482CODE
LOWrewrite-python/rewrite/src/rewrite/test/rewrite_test.py606CODE
LOW…write-python/rewrite/src/rewrite/test/added_markers.py92CODE
LOW…rite-python/rewrite/src/rewrite/python/type_mapping.py44CODE
LOW…rite-python/rewrite/src/rewrite/python/type_mapping.py198CODE
LOW…rite-python/rewrite/src/rewrite/python/type_mapping.py210CODE
LOW…rite-python/rewrite/src/rewrite/python/type_mapping.py636CODE
LOW…rite-python/rewrite/src/rewrite/python/type_mapping.py722CODE
LOW…rite-python/rewrite/src/rewrite/python/type_mapping.py1170CODE
LOW…rite-python/rewrite/src/rewrite/python/type_mapping.py1313CODE
LOW…rite-python/rewrite/src/rewrite/python/type_mapping.py1518CODE
LOW…rite-python/rewrite/src/rewrite/python/type_mapping.py1787CODE
83 more matches not shown…
Cross-Language Confusion17 hits · 105 pts
SeverityFileLineSnippetContext
HIGHrewrite-python/rewrite/tests/test_undefined_names.py114 assert not undefined, (CODE
HIGHrewrite-python/rewrite/tests/test_undefined_names.py116 f"at runtime: {', '.join(undefined)}"CODE
HIGH⚡…ite-python/rewrite/tests/python/test_method_matcher.py186 assert str_arg.matches(JavaType.Union(_bounds=[string, null]))CODE
HIGH⚡rewrite-python/rewrite/tests/python/test_type_utils.py284 assert is_of_type(JavaType.Union(_bounds=[string, null]), JavaType.Union(_bounds=[null, string]))CODE
HIGH⚡rewrite-python/rewrite/tests/python/test_type_utils.py286 wider = JavaType.Union(_bounds=[string, null, JavaType.Primitive.Int])CODE
HIGH⚡rewrite-python/rewrite/tests/python/test_type_utils.py287 assert not is_of_type(JavaType.Union(_bounds=[string, null]), wider)CODE
HIGH⚡rewrite-python/rewrite/tests/python/test_type_utils.py288 assert not is_of_type(wider, JavaType.Union(_bounds=[string, null]))CODE
HIGH⚡rewrite-python/rewrite/tests/python/test_type_utils.py400 string, null, int_ = JavaType.Primitive.String, JavaType.Primitive.Null, JavaType.Primitive.IntCODE
HIGH⚡rewrite-python/rewrite/tests/python/test_type_utils.py401 optional_str = JavaType.Union(_bounds=[string, null])CODE
HIGH⚡rewrite-python/rewrite/tests/python/test_type_utils.py402 assert is_assignable_to(JavaType.Union(_bounds=[string, int_, null]), optional_str)CODE
HIGH⚡…on/rewrite/tests/python/template/test_typed_capture.py66 str(undefined)STRING
HIGH⚡…on/rewrite/tests/python/template/test_typed_capture.py74 str(undefined)STRING
HIGH⚡…on/rewrite/tests/python/template/test_typed_capture.py170 str(undefined)STRING
HIGH⚡…on/rewrite/tests/python/template/test_typed_capture.py173 repr(undefined)STRING
HIGH…hon/rewrite/src/rewrite/python/template/placeholder.py206 f"Placeholders reference undefined captures: {undefined}. "CODE
HIGHrewrite-python/rewrite/src/rewrite/rpc/python_sender.py393 # 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.py413 # Python's Slice doesn't have a type field, but Java sends one (always null)COMMENT
Docstring Block Structure21 hits · 105 pts
SeverityFileLineSnippetContext
HIGHrewrite-python/rewrite/src/rewrite/decorators.py29 Decorator to mark a Recipe class with category information for discovery. The category path specifies where inSTRING
HIGH…te-python/rewrite/src/rewrite/python/method_matcher.py94 Create a MethodMatcher from a pattern string. Pattern format: `type#method(args)` or `type method(argsSTRING
HIGH…hon/rewrite/src/rewrite/python/template/placeholder.py35 Convert a capture name to a placeholder identifier. Args: name: The capture name. Returns: STRING
HIGH…hon/rewrite/src/rewrite/python/template/placeholder.py54 Extract the capture name from a placeholder identifier. Args: identifier: A potential placeholder idenSTRING
HIGH…hon/rewrite/src/rewrite/python/template/placeholder.py97 Find all {name} placeholders in template code. Args: code: The template code string. Returns: STRING
HIGH…hon/rewrite/src/rewrite/python/template/placeholder.py127 Replace {name} placeholders with parseable identifiers. Converts template code with f-string style placeholderSTRING
HIGH…-python/rewrite/src/rewrite/python/template/pattern.py75 Get a captured value (dict-style access). Args: key: The capture name or Capture object. STRING
HIGH…-python/rewrite/src/rewrite/python/template/pattern.py210 Match this pattern against an AST node. Args: tree: The AST node to match against. STRING
HIGH…-python/rewrite/src/rewrite/python/template/pattern.py263 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.py108 Create a capture specification for use in patterns and templates. Args: name: Name for the capture (auSTRING
HIGH…-python/rewrite/src/rewrite/python/template/capture.py191 Create a RawCode instance for splice-time code insertion. Unlike captures (resolved at apply time), raw() spliSTRING
HIGH…e-python/rewrite/src/rewrite/python/template/engine.py108 Parse template code and return the extracted AST. Args: code: Template code with {name} plSTRING
HIGH…e-python/rewrite/src/rewrite/python/template/engine.py365 Extract the template content from the wrapper function. Args: cu: CompilationUnit containiSTRING
HIGH…python/rewrite/src/rewrite/python/template/template.py135 Apply this template, returning the generated AST node. Args: cursor: Where the result landSTRING
HIGH…python/rewrite/src/rewrite/python/template/template.py391 Create a template from Python code. This is the primary factory function for creating templates. Args: STRING
HIGHrewrite-python/rewrite/src/rewrite/rpc/rpc_recipe.py149Prepare a Java recipe for execution via RPC. This sends a PrepareRecipe RPC request to the Java side, which instantSTRING
HIGHrewrite-python/rewrite/src/rewrite/rpc/server.py204Send a JSON-RPC request to Java and wait for the response. This enables bidirectional communication - Python can reSTRING
HIGHrewrite-python/rewrite/src/rewrite/rpc/server.py3027Read a JSON-RPC message from stdin, bounding the wait for it to *start*. Args: timeout_seconds: Maximum timSTRING
HIGHrewrite-python/rewrite/src/rewrite/rpc/receive_queue.py156Receive and deserialize an object, asserting result is not None. Use this when the protocol guarantees a non-nuSTRING
HIGHrewrite-python/rewrite/src/rewrite/rpc/receive_queue.py299Receive 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.py191 Send a JSON-RPC request to the Java peer and wait for its response, answering any requests the peer makSTRING
Self-Referential Comments24 hits · 60 pts
SeverityFileLineSnippetContext
MEDIUM…src/test/java/org/openrewrite/yaml/YamlParserTest.java1015 # This file is machine-generated by `gh actions-lock`.STRING
MEDIUM…test/java/org/openrewrite/hcl/tree/HclCommentTest.java262 # This file contains only a commentSTRING
MEDIUM…test/java/org/openrewrite/hcl/tree/HclCommentTest.java271 hcl("# This file contains only a comment")CODE
MEDIUM…ython/rewrite/tests/python/template/test_comparator.py543 # Create a target where both sides reference the same identifier (same UUID)COMMENT
MEDIUMrewrite-python/rewrite/src/rewrite/utils.py217# Define a type that allows both single and two-argument callablesCOMMENT
MEDIUM…rite-python/rewrite/src/rewrite/python/type_mapping.py806 # Create a fresh JavaType.Class per type_id rather than deduplicatingCOMMENT
MEDIUM…python/rewrite/src/rewrite/python/template/__init__.py28 # Create a pattern to match print() callsSTRING
MEDIUM…python/rewrite/src/rewrite/python/template/__init__.py31 # Create a template to generate logging callsSTRING
MEDIUMrewrite-python/rewrite/src/rewrite/rpc/server.py508 # Create a ParseExceptionResult marker with the error infoCOMMENT
MEDIUMrewrite-python/rewrite/src/rewrite/rpc/server.py517 # Create the ParseError with the markerCOMMENT
MEDIUMrewrite-python/rewrite/src/rewrite/rpc/server.py658 # Create a ty-types client for this parse batchCOMMENT
MEDIUM…/openrewrite/python/internal/PoetryLockParserTest.java30 # This file is automatically @generated by Poetry 2.4.1 and should not be changed by hand.COMMENT
MEDIUM…org/openrewrite/python/internal/PdmLockParserTest.java30 # This file is @generated by PDM.COMMENT
MEDIUM…a/org/openrewrite/python/internal/pdmlock/PdmLock.java32 /** The two-line {@code # This file is @generated by PDM.} header, preserved verbatim. */COMMENT
MEDIUM…openrewrite/python/internal/poetrylock/PoetryLock.java34 * The full {@code # This file is automatically @generated by Poetry X.Y.Z ...} header line,COMMENT
MEDIUM…script/rewrite/test/javascript/package-manager.test.ts90# This file is generated by running "yarn install" inside your project.COMMENT
MEDIUM…script/rewrite/test/javascript/package-manager.test.ts176# This file is generated by running "yarn install" inside your project.COMMENT
MEDIUM…ite/javascript/internal/lock/NativeLockEngineTest.java744 return "# This file is generated by running \"yarn install\" inside your project.\n" +CODE
MEDIUM…/internal/lock/berry/YarnBerryLockRegeneratorTest.java229 String header = "# This file is generated by running \"yarn install\" inside your project.\n" +CODE
MEDIUM…penrewrite/javascript/internal/lock/berry/Project.java1161 String header = "# This file is generated by running \"yarn install\" inside your project.\n" +CODE
MEDIUM…/org/openrewrite/gradle/toolingapi/AssertionsTest.java132 # This file is expected to be part of source control.COMMENT
MEDIUM…/org/openrewrite/gradle/toolingapi/AssertionsTest.java158 # This file is expected to be part of source control.COMMENT
MEDIUM…/org/openrewrite/gradle/toolingapi/AssertionsTest.java196 # This file is expected to be part of source control.COMMENT
MEDIUM…/org/openrewrite/gradle/toolingapi/AssertionsTest.java210 # This file is expected to be part of source control.COMMENT
Synthetic Comment Markers7 hits · 52 pts
SeverityFileLineSnippetContext
HIGH…arp/csharp/OpenRewrite/Xml/Grammar/XMLParserVisitor.cs18// This code was generated by a tool.COMMENT
HIGH…rp/csharp/OpenRewrite/Xml/Grammar/XMLParserListener.cs18// This code was generated by a tool.COMMENT
HIGH…ite-csharp/csharp/OpenRewrite/Xml/Grammar/XMLParser.cs18// This code was generated by a tool.COMMENT
HIGH…rite-csharp/csharp/OpenRewrite/Xml/Grammar/XMLLexer.cs18// This code was generated by a tool.COMMENT
HIGH…csharp/OpenRewrite/Xml/Grammar/XMLParserBaseVisitor.cs18// This code was generated by a tool.COMMENT
HIGH…sharp/OpenRewrite/Xml/Grammar/XMLParserBaseListener.cs18// This code was generated by a tool.COMMENT
HIGH…rewrite/javascript/internal/lock/pnpm/PnpmRelease.java830 * {@code https://u:p@r.test/foo}), from 11.9.0 (redactUrlCredentials); before, as requested.COMMENT
Redundant / Tautological Comments32 hits · 49 pts
SeverityFileLineSnippetContext
LOWrewrite-python/rewrite/scripts/generate_stubs.py543 # Check if this is a sibling module import (same package)COMMENT
LOWrewrite-python/rewrite/scripts/generate_stubs.py774 # Check if we need TypeVarCOMMENT
LOWrewrite-python/rewrite/src/rewrite/discovery.py257 # Check if it's a Recipe subclass (but not Recipe itself)COMMENT
LOWrewrite-python/rewrite/src/rewrite/discovery.py259 # Check if it has the @recipe decoratorCOMMENT
LOWrewrite-python/rewrite/src/rewrite/test/rewrite_test.py291 # Check if there was a changeCOMMENT
LOW…thon/rewrite/src/rewrite/python/_py2_parser_visitor.py454 # Check if this is a trailing commaCOMMENT
LOW…te-python/rewrite/src/rewrite/python/method_matcher.py346 # Check if pattern contains ..COMMENT
LOW…e-python/rewrite/src/rewrite/python/_parser_visitor.py780 # 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.py1346 # Check if we're at an opening parenthesisCOMMENT
LOW…e-python/rewrite/src/rewrite/python/_parser_visitor.py1351 # Check if this is a parenthesized pattern (GROUP)COMMENT
LOW…e-python/rewrite/src/rewrite/python/_parser_visitor.py1461 # Check if there's a NAME token '_' nextCOMMENT
LOW…e-python/rewrite/src/rewrite/python/_parser_visitor.py2078 # Check if 'b' or 'B' appears in the prefixCOMMENT
LOW…e-python/rewrite/src/rewrite/python/_parser_visitor.py2562 # Check if we've consumed all content for this AST valueCOMMENT
LOW…e-python/rewrite/src/rewrite/python/_parser_visitor.py2906 # Check if '(' at current position actually belongs to the tuple or to the first elementCOMMENT
LOW…e-python/rewrite/src/rewrite/python/_parser_visitor.py2917 # Check if the matching ')' covers the whole tuple or just the first element.COMMENT
LOW…e-python/rewrite/src/rewrite/python/_parser_visitor.py2926 # Check if ')' comes before the second element startsCOMMENT
LOW…e-python/rewrite/src/rewrite/python/_parser_visitor.py2947 # Check if there's a comma inside the parensCOMMENT
LOW…e-python/rewrite/src/rewrite/python/_parser_visitor.py3190 # Check if next token after '[' is '(' to detect parenthesized tuples.COMMENT
LOW…e-python/rewrite/src/rewrite/python/_parser_visitor.py3289 # 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.py3554 # Check if this newline is escaped (line continuation: backslash before newline)COMMENT
LOW…e-python/rewrite/src/rewrite/python/_parser_visitor.py3737 # Set value to None when there are unicode escapes (surrogates)COMMENT
LOW…e-python/rewrite/src/rewrite/python/_parser_visitor.py3783 # Set value to None when there are unicode escapes (surrogates)COMMENT
LOWrewrite-python/rewrite/src/rewrite/python/printer.py1299 # Check if this is an elif (else with If body, where parent is also If)COMMENT
LOWrewrite-python/rewrite/src/rewrite/python/printer.py1761 # Check if name is an Identifier with empty simple_name (e.g., tuple unpacking)COMMENT
LOWrewrite-python/rewrite/src/rewrite/python/add_import.py143 # Check if import already existsCOMMENT
LOW…thon/rewrite/src/rewrite/python/template/comparator.py483 # Check if this capture already has a value. Uses AST node identityCOMMENT
LOW…hon/rewrite/src/rewrite/python/template/replacement.py176 # Check if this argument is a variadic placeholderCOMMENT
LOW…thon/rewrite/src/rewrite/python/recipes/remove_pass.py107 # Check if the literal value is a stringCOMMENT
LOW⚡rewrite-python/rewrite/src/rewrite/java/visitor.py121 # Check if filtering removed any elementsCOMMENT
LOWrewrite-python/rewrite/src/rewrite/rpc/server.py112# Set REWRITE_PYTHON_VERSION to "2" or "2.7" to parse Python 2 codeCOMMENT
LOWrewrite-python/rewrite/src/rewrite/rpc/server.py306 # Check if this batch contains END_OF_OBJECT (last item has state='END_OF_OBJECT')COMMENT
LOWrewrite-python/rewrite/src/rewrite/rpc/server.py1644 # Check if this entry point belongs to our packageCOMMENT
Fake / Example Data40 hits · 39 pts
SeverityFileLineSnippetContext
LOW…st/java/org/openrewrite/groovy/GroovyTemplateTest.java40 if (!"placeholder".equals(method.getSimpleName())) {CODE
LOW…st/java/org/openrewrite/groovy/GroovyTemplateTest.java55 if (!"placeholder".equals(method.getSimpleName())) {CODE
LOW…st/java/org/openrewrite/groovy/GroovyTemplateTest.java250 if (!"placeholder".equals(method.getSimpleName())) {CODE
LOW…Rewrite.Tests/CSharp/CSharpParenthesizeVisitorTests.cs29 var placeholder = MakeId("placeholder");CODE
LOW…Rewrite.Tests/CSharp/CSharpParenthesizeVisitorTests.cs44 var placeholder = MakeId("placeholder");CODE
LOW…Rewrite.Tests/CSharp/CSharpParenthesizeVisitorTests.cs59 var placeholder = MakeId("placeholder");CODE
LOW…Rewrite.Tests/CSharp/CSharpParenthesizeVisitorTests.cs74 var placeholder = MakeId("placeholder");CODE
LOW…Rewrite.Tests/CSharp/CSharpParenthesizeVisitorTests.cs89 var placeholder = MakeId("placeholder");CODE
LOW…Rewrite.Tests/CSharp/CSharpParenthesizeVisitorTests.cs104 var placeholder = MakeId("placeholder");CODE
LOW…Rewrite.Tests/CSharp/CSharpParenthesizeVisitorTests.cs119 var placeholder = MakeId("placeholder");CODE
LOW…Rewrite.Tests/CSharp/CSharpParenthesizeVisitorTests.cs134 var placeholder = MakeId("placeholder");CODE
LOW…Rewrite.Tests/CSharp/CSharpParenthesizeVisitorTests.cs149 var placeholder = MakeId("placeholder");CODE
LOW…Rewrite.Tests/CSharp/CSharpParenthesizeVisitorTests.cs164 var placeholder = MakeId("placeholder");CODE
LOW…Rewrite.Tests/CSharp/CSharpParenthesizeVisitorTests.cs180 var placeholder = MakeId("placeholder");CODE
LOW…/src/test/java/org/openrewrite/toml/DeleteKeyTest.java81 authors = ["John Doe"]STRING
LOW…/src/test/java/org/openrewrite/toml/DeleteKeyTest.java87 authors = ["John Doe"]STRING
LOW…/src/test/java/org/openrewrite/toml/DeleteKeyTest.java216 authors = ["John Doe", "Jane Smith"]STRING
LOW…ml/src/test/java/org/openrewrite/toml/FindKeyTest.java232 authors = ["John Doe", "Jane Smith"]STRING
LOW…ml/src/test/java/org/openrewrite/toml/FindKeyTest.java240 ~~>authors = ["John Doe", "Jane Smith"]STRING
LOW…/src/test/java/org/openrewrite/toml/ChangeKeyTest.java172 authors = ["John Doe", "Jane Smith"]STRING
LOW…/src/test/java/org/openrewrite/toml/ChangeKeyTest.java176 contributors = ["John Doe", "Jane Smith"]STRING
LOW…st/java/org/openrewrite/kotlin/KotlinTemplateTest.java333 if ("placeholder".equals(method.getSimpleName())) {CODE
LOW…st/java/org/openrewrite/kotlin/KotlinTemplateTest.java989 if ("placeholder".equals(method.getSimpleName())) {CODE
LOW…st/java/org/openrewrite/kotlin/KotlinTemplateTest.java1024 if ("placeholder".equals(method.getSimpleName())) {CODE
LOW…st/java/org/openrewrite/kotlin/KotlinTemplateTest.java1058 if ("placeholder".equals(method.getSimpleName())) {CODE
LOW…/java/org/openrewrite/kotlin/NewClassTemplateTest.java41 if ("placeholder".equals(method.getSimpleName())) {CODE
LOW…/java/org/openrewrite/kotlin/NewClassTemplateTest.java78 if ("placeholder".equals(method.getSimpleName())) {CODE
LOW…/java/org/openrewrite/kotlin/NewClassTemplateTest.java113 if ("placeholder".equals(method.getSimpleName())) {CODE
LOW…/java/org/openrewrite/kotlin/NewClassTemplateTest.java150 if ("placeholder".equals(method.getSimpleName())) {CODE
LOW…c/main/java/org/openrewrite/java/tree/JavadocTest.java2843 * var text = "placeholder"; // @replace substring="placeholder" replacement="..."COMMENT
LOW…ava/org/openrewrite/test/internal/RewriteTestTest.java3274 .text("placeholder")CODE
LOW…ava/org/openrewrite/test/internal/RewriteTestTest.java3288 return placeholderExists.get() && "placeholder".equals(text.getText()) ? text.withText("filled") : text;CODE
LOW…-javascript/rewrite/test/javascript/add-import.test.ts158 (methodInvocation.name as J.Identifier).simpleName === 'placeholder') {CODE
LOW…ite/javascript/internal/lock/pnpm/TrustChecksTest.java91 ",'_npmUser':{'name':'test-user','email':'user@example.com'}") + "}").get("1.0.0"))).isNull();CODE
LOW…ite/javascript/internal/lock/pnpm/PnpmOptionsTest.java113 private static final String HOME = "/srv/fake-user";CODE
LOW…ite/javascript/internal/lock/pnpm/PnpmOptionsTest.java115 "/bin:/usr/bin:/usr/local/bin:/srv/fake-user/.bin:/srv/fake-user/share/local/bin";CODE
LOW⚡…ite/javascript/internal/lock/pnpm/PnpmOptionsTest.java175 .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.java183 // Node 24.19.0: path.join('/srv/fake-user', '') is '/srv/fake-user'; with 'a/' it keeps the slashCOMMENT
LOW⚡…ite/javascript/internal/lock/pnpm/PnpmOptionsTest.java188 .isEqualTo("{'foo':'/srv/fake-user','bar':'/srv/fake-user/a/'}");CODE
LOW…test/java/org/openrewrite/scala/tree/NewClassTest.java126 val p = new Person(new Address("123 Main St"))STRING
Verbosity Indicators24 hits · 38 pts
SeverityFileLineSnippetContext
LOW…n/marketplace/MavenRecipeMarketplaceGeneratorTest.java318 // Step 1: Compile an abstract base recipe into a separate "dependency" directorySTRING
LOW…n/marketplace/MavenRecipeMarketplaceGeneratorTest.java356 // Step 2: Compile a concrete recipe that extends the base class, into the "recipe" directorySTRING
LOW…n/marketplace/MavenRecipeMarketplaceGeneratorTest.java385 // Step 3: Run the generator with recipe-classes as the scanned path,STRING
LOW…va/org/openrewrite/internal/InMemoryDiffEntryTest.java537 // Step 1: Generate diff using InMemoryDiffEntry (like the worker does)STRING
LOW…va/org/openrewrite/internal/InMemoryDiffEntryTest.java548 // Step 2: Simulate SCM service applying the diffSTRING
LOW⚡…/src/test/java/org/openrewrite/rpc/RewriteRpcTest.java192 // Step 1: successful sync — both sides establish remoteObjects baselineCOMMENT
LOW⚡…/src/test/java/org/openrewrite/rpc/RewriteRpcTest.java200 // Step 2: replace with a PlainText that has null sourcePath, causingCOMMENT
LOW⚡…/src/test/java/org/openrewrite/rpc/RewriteRpcTest.java208 // Step 3: client.getObject() should fail because the sender NPEs mid-serializationCOMMENT
LOW⚡…/src/test/java/org/openrewrite/rpc/RewriteRpcTest.java215 // Step 4: verify the sender cleaned up its stale remoteObjects entryCOMMENT
LOW⚡…/src/test/java/org/openrewrite/rpc/RewriteRpcTest.java225 // Step 5: put back a valid tree and retry — should succeed via full ADDCOMMENT
LOW…a/org/openrewrite/docker/trait/DockerTraitMatcher.java124 * When the text contains wildcards (from env vars), we need to check if eitherCOMMENT
LOWrewrite-javascript/rewrite/src/javascript/add-import.ts1290 // Step 1: Find the expected declaring type by examining existing imports from the same moduleCOMMENT
LOWrewrite-javascript/rewrite/src/javascript/add-import.ts1342 // Step 2: Look for references that matchCOMMENT
LOWrewrite-javascript/rewrite/src/javascript/parser.ts4992 // Step 1: Get all commentsCOMMENT
LOWrewrite-javascript/rewrite/src/javascript/parser.ts5011 // Step 2: Capture suffix (whitespace after the comment)COMMENT
LOWrewrite-javascript/rewrite/src/javascript/parser.ts5029 // Step 3: Extract leading whitespace (before the first comment)COMMENT
LOW⚡…cript/rewrite/src/javascript/format/prettier-format.ts157 // Step 1: Print the AST to string, leaving out what markers would print, such as search resultsCOMMENT
LOW⚡…cript/rewrite/src/javascript/format/prettier-format.ts160 // Step 2: Determine parser based on source pathCOMMENT
LOW⚡…cript/rewrite/src/javascript/format/prettier-format.ts163 // Step 3: Format with PrettierCOMMENT
LOW…cript/rewrite/src/javascript/format/prettier-format.ts177 // Step 4: Parse the formatted string using parseOnly() for maximum performanceCOMMENT
LOW⚡…-javascript/rewrite/src/rpc/request/install-recipes.ts221 // Step 1: Find where this package is currently loaded from (host)COMMENT
LOW⚡…-javascript/rewrite/src/rpc/request/install-recipes.ts224 // Step 2: Find the package root by looking for package.jsonCOMMENT
LOW…-javascript/rewrite/src/rpc/request/install-recipes.ts245 // Step 3: Find where the target's node_modules has this packageCOMMENT
LOW…-javascript/rewrite/src/rpc/request/install-recipes.ts289 // Step 4: Map all cached modules from host package to target packageCOMMENT
Excessive Try-Catch Wrapping45 hits · 38 pts
SeverityFileLineSnippetContext
LOWrewrite-python/rewrite/tests/test_rewrite_test.py365 except Exception:CODE
LOW…rewrite/tests/python/test_declared_version_typeshed.py37 except Exception:CODE
MEDIUM…rewrite/tests/python/test_declared_version_typeshed.py33def _ty_types_cli_available() -> bool:CODE
LOW…write-python/rewrite/tests/python/all/tree/try_test.py96 except Exception:STRING
LOW…te-python/rewrite/tests/python/all/tree/assign_test.py75 except Exception:STRING
MEDIUM…rite-python/rewrite/tests/rpc/test_dependency_types.py31def _ty_types_cli_available() -> bool:CODE
LOW…rite-python/rewrite/tests/rpc/test_dependency_types.py35 except Exception:CODE
LOWrewrite-python/rewrite/src/rewrite/discovery.py155 except Exception:CODE
LOW⚡rewrite-python/rewrite/src/rewrite/discovery.py222 except Exception as e:CODE
LOW⚡rewrite-python/rewrite/src/rewrite/discovery.py231 except Exception as e:CODE
LOWrewrite-python/rewrite/src/rewrite/visitor.py175 except Exception as e:CODE
LOWrewrite-python/rewrite/src/rewrite/marketplace.py84 except Exception as e:CODE
LOW…-python/rewrite/src/rewrite/test/content_validation.py91 except Exception as e:CODE
LOWrewrite-python/rewrite/src/rewrite/test/rewrite_test.py426 except Exception:CODE
LOW…write-python/rewrite/src/rewrite/test/added_markers.py145 except Exception:CODE
LOW…write-python/rewrite/src/rewrite/test/added_markers.py173 except Exception:CODE
LOW…thon/rewrite/src/rewrite/python/_py2_parser_visitor.py106 except Exception as e:CODE
LOW…write-python/rewrite/src/rewrite/python/type_report.py407 except Exception as exc:CODE
LOW…write-python/rewrite/src/rewrite/python/type_report.py634 except Exception as exc:CODE
LOW…write-python/rewrite/src/rewrite/python/type_report.py643 except Exception:CODE
LOWrewrite-python/rewrite/src/rewrite/python/type_utils.py233 except Exception:CODE
LOW…hon/rewrite/src/rewrite/python/dependency_workspace.py160 except Exception as e:CODE
LOW…e-python/rewrite/src/rewrite/python/_parser_visitor.py3051 except Exception:CODE
LOW…te/src/rewrite/python/template/dependency_workspace.py234 except Exception:CODE
LOWrewrite-python/rewrite/src/rewrite/rpc/server.py341 except Exception:CODE
LOWrewrite-python/rewrite/src/rewrite/rpc/server.py351 except Exception:CODE
LOWrewrite-python/rewrite/src/rewrite/rpc/server.py364 except Exception:CODE
LOWrewrite-python/rewrite/src/rewrite/rpc/server.py493 except Exception as e:CODE
LOWrewrite-python/rewrite/src/rewrite/rpc/server.py728 except Exception as e:CODE
LOWrewrite-python/rewrite/src/rewrite/rpc/server.py830 except Exception as e:CODE
LOWrewrite-python/rewrite/src/rewrite/rpc/server.py953 except Exception:CODE
LOWrewrite-python/rewrite/src/rewrite/rpc/server.py971 except Exception:CODE
LOWrewrite-python/rewrite/src/rewrite/rpc/server.py1410 except Exception:CODE
LOWrewrite-python/rewrite/src/rewrite/rpc/server.py1551 except Exception:CODE
LOWrewrite-python/rewrite/src/rewrite/rpc/server.py1597 except Exception as e:CODE
LOWrewrite-python/rewrite/src/rewrite/rpc/server.py1662 except Exception as e:CODE
LOWrewrite-python/rewrite/src/rewrite/rpc/server.py1951 except Exception:CODE
LOWrewrite-python/rewrite/src/rewrite/rpc/server.py2656 except Exception:CODE
LOWrewrite-python/rewrite/src/rewrite/rpc/server.py2664 except Exception:CODE
LOWrewrite-python/rewrite/src/rewrite/rpc/server.py3127 except Exception as e:CODE
LOWrewrite-python/rewrite/src/rewrite/rpc/server.py3293 except Exception as e:CODE
LOW…ite-python/rewrite/src/rewrite/rpc/child_connection.py147 except Exception as e:CODE
LOW…ite-python/rewrite/src/rewrite/rpc/child_connection.py159 except Exception:CODE
LOW…ite-python/rewrite/src/rewrite/rpc/child_connection.py164 except Exception:CODE
MEDIUM…ite-python/rewrite/src/rewrite/rpc/child_connection.py155def close(self) -> None:CODE
Structural Annotation Overuse23 hits · 37 pts
SeverityFileLineSnippetContext
LOW…n/marketplace/MavenRecipeMarketplaceGeneratorTest.java318 // Step 1: Compile an abstract base recipe into a separate "dependency" directorySTRING
LOW…n/marketplace/MavenRecipeMarketplaceGeneratorTest.java356 // Step 2: Compile a concrete recipe that extends the base class, into the "recipe" directorySTRING
LOW…n/marketplace/MavenRecipeMarketplaceGeneratorTest.java385 // Step 3: Run the generator with recipe-classes as the scanned path,STRING
LOW…va/org/openrewrite/internal/InMemoryDiffEntryTest.java537 // Step 1: Generate diff using InMemoryDiffEntry (like the worker does)STRING
LOW…va/org/openrewrite/internal/InMemoryDiffEntryTest.java548 // Step 2: Simulate SCM service applying the diffSTRING
LOW⚡…/src/test/java/org/openrewrite/rpc/RewriteRpcTest.java192 // Step 1: successful sync — both sides establish remoteObjects baselineCOMMENT
LOW⚡…/src/test/java/org/openrewrite/rpc/RewriteRpcTest.java200 // Step 2: replace with a PlainText that has null sourcePath, causingCOMMENT
LOW⚡…/src/test/java/org/openrewrite/rpc/RewriteRpcTest.java208 // Step 3: client.getObject() should fail because the sender NPEs mid-serializationCOMMENT
LOW⚡…/src/test/java/org/openrewrite/rpc/RewriteRpcTest.java215 // Step 4: verify the sender cleaned up its stale remoteObjects entryCOMMENT
LOW⚡…/src/test/java/org/openrewrite/rpc/RewriteRpcTest.java225 // Step 5: put back a valid tree and retry — should succeed via full ADDCOMMENT
LOWrewrite-javascript/rewrite/src/javascript/add-import.ts1290 // Step 1: Find the expected declaring type by examining existing imports from the same moduleCOMMENT
LOWrewrite-javascript/rewrite/src/javascript/add-import.ts1342 // Step 2: Look for references that matchCOMMENT
LOWrewrite-javascript/rewrite/src/javascript/parser.ts4992 // Step 1: Get all commentsCOMMENT
LOWrewrite-javascript/rewrite/src/javascript/parser.ts5011 // Step 2: Capture suffix (whitespace after the comment)COMMENT
LOWrewrite-javascript/rewrite/src/javascript/parser.ts5029 // Step 3: Extract leading whitespace (before the first comment)COMMENT
LOW⚡…cript/rewrite/src/javascript/format/prettier-format.ts157 // Step 1: Print the AST to string, leaving out what markers would print, such as search resultsCOMMENT
LOW⚡…cript/rewrite/src/javascript/format/prettier-format.ts160 // Step 2: Determine parser based on source pathCOMMENT
LOW⚡…cript/rewrite/src/javascript/format/prettier-format.ts163 // Step 3: Format with PrettierCOMMENT
LOW…cript/rewrite/src/javascript/format/prettier-format.ts177 // Step 4: Parse the formatted string using parseOnly() for maximum performanceCOMMENT
LOW⚡…-javascript/rewrite/src/rpc/request/install-recipes.ts221 // Step 1: Find where this package is currently loaded from (host)COMMENT
LOW⚡…-javascript/rewrite/src/rpc/request/install-recipes.ts224 // Step 2: Find the package root by looking for package.jsonCOMMENT
LOW…-javascript/rewrite/src/rpc/request/install-recipes.ts245 // Step 3: Find where the target's node_modules has this packageCOMMENT
LOW…-javascript/rewrite/src/rpc/request/install-recipes.ts289 // Step 4: Map all cached modules from host package to target packageCOMMENT
AI Slop Vocabulary11 hits · 27 pts
SeverityFileLineSnippetContext
MEDIUMrewrite.yml17# Apply a subset of best practices to OpenRewrite recipes; typically run before committing changes.COMMENT
MEDIUM⚡rewrite-python/rewrite/tests/test_rewrite_test.py169 # For now, just return unchanged - we're testing the harnessCOMMENT
MEDIUM⚡rewrite-python/rewrite/tests/test_rewrite_test.py172 # This test validates the harness can detect changesCOMMENT
LOW⚡rewrite-python/rewrite/tests/test_rewrite_test.py169 # For now, just return unchanged - we're testing the harnessCOMMENT
MEDIUM…write-python/rewrite/src/rewrite/test/added_markers.py40# 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.py2233 # Fallback: just return from col_offset to end of lineCOMMENT
LOW…e-python/rewrite/src/rewrite/python/template/engine.py424 # For now, just return the first statement (most common case)COMMENT
LOWrewrite-python/rewrite/src/rewrite/rpc/server.py1239 # For now, just return basic structureCOMMENT
LOW…rite-python/rewrite/src/rewrite/rpc/python_receiver.py1304 # No additional fields to consume - just return the unknown objectCOMMENT
LOW…rewrite/javascript/internal/lock/npm/YarnLockTest.java129 "# 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.java737 // Definitely does not account for every possible edge case around "this", but handles the common caCOMMENT
Modern Structural Boilerplate27 hits · 26 pts
SeverityFileLineSnippetContext
LOWrewrite-python/rewrite/src/rewrite/discovery.py32logger = logging.getLogger(__name__)CODE
LOWrewrite-python/rewrite/src/rewrite/__init__.py32__all__ = [CODE
LOWrewrite-python/rewrite/src/rewrite/visitor.py127 def set_cursor(self, cursor: Cursor) -> None:CODE
LOW…-python/rewrite/src/rewrite/test/content_validation.py32__all__ = ["ContentFinding", "validate_recipe_content"]CODE
LOWrewrite-python/rewrite/src/rewrite/test/__init__.py51__all__ = [CODE
LOW…write-python/rewrite/src/rewrite/python/type_report.py41__all__ = [CODE
LOWrewrite-python/rewrite/src/rewrite/python/type_utils.py39__all__ = [CODE
LOWrewrite-python/rewrite/src/rewrite/python/__init__.py141__all__ = [CODE
LOW…ite-python/rewrite/src/rewrite/python/binding_utils.py274__all__ = ['Binding', 'ImportBindings', 'dotted_path', 'import_bindings', 'is_reference',CODE
LOW…hon/rewrite/src/rewrite/python/dependency_workspace.py35logger = logging.getLogger(__name__)CODE
LOWrewrite-python/rewrite/src/rewrite/python/binding.py906__all__ = ['maybe_bind', 'maybe_rebind']CODE
LOWrewrite-python/rewrite/src/rewrite/python/printer.py160 def set_cursor(self, cursor: Optional[Cursor]) -> None:CODE
LOWrewrite-python/rewrite/src/rewrite/python/printer.py856 def set_cursor(self, cursor: Optional[Cursor]) -> None:CODE
LOWrewrite-python/rewrite/src/rewrite/python/ty_client.py42logger = logging.getLogger(__name__)CODE
LOW…python/rewrite/src/rewrite/python/template/__init__.py50__all__ = [CODE
LOW…te/src/rewrite/python/template/dependency_workspace.py51logger = logging.getLogger(__name__)CODE
LOW…e-python/rewrite/src/rewrite/python/search/__init__.py54logger = logging.getLogger(__name__)CODE
LOW…e-python/rewrite/src/rewrite/python/search/__init__.py355__all__ = ["IsSourceFile", "UsesType", "UsesMethod", "UsesImport"]CODE
LOW…-python/rewrite/src/rewrite/python/recipes/__init__.py38__all__ = [CODE
LOW…e-python/rewrite/src/rewrite/python/format/__init__.py29__all__ = [CODE
LOWrewrite-python/rewrite/src/rewrite/java/__init__.py8__all__ = [CODE
LOWrewrite-python/rewrite/src/rewrite/rpc/rpc_recipe.py39logger = logging.getLogger(__name__)CODE
LOWrewrite-python/rewrite/src/rewrite/rpc/server.py68logger = logging.getLogger(__name__)CODE
LOWrewrite-python/rewrite/src/rewrite/rpc/__init__.py23__all__ = [CODE
LOW…rite-python/rewrite/src/rewrite/rpc/bundle_children.py53 def set_data_table_store(self, params: dict) -> None:CODE
LOW…rite-python/rewrite/src/rewrite/rpc/java_rpc_client.py47logger = logging.getLogger(__name__)CODE
LOW…rite-python/rewrite/src/rewrite/rpc/java_rpc_client.py58def set_java_rpc_client(client: Optional["JavaRpcClient"]) -> None:CODE
Cross-Language Confusion (JS/TS)5 hits · 25 pts
SeverityFileLineSnippetContext
HIGH…avascript/rewrite/test/javascript/type-mapping.test.ts2440 print(): string;CODE
HIGH…avascript/rewrite/test/javascript/type-mapping.test.ts2469 print(): string {CODE
HIGH…cript/rewrite/test/javascript/parser/interface.test.ts397 print(prefix: string): stringCODE
HIGHrewrite-javascript/rewrite/src/print.ts143 print(tree: Tree, out?: PrintOutputCapture, cursor?: Cursor): Promise<string>;CODE
HIGHrewrite-javascript/rewrite/src/javascript/tree-debug.ts644 print(tree: Tree | J.Container<any> | J.LeftPadded<any> | J.RightPadded<any>, cursor?: Cursor, label?: string): voidCODE
Overly Generic Function Names28 hits · 24 pts
SeverityFileLineSnippetContext
LOWrewrite-python/rewrite/tests/test_rewrite_test.py692 COMPAT = 'def helper():\n return None\n'CODE
LOW⚡…n/rewrite/tests/python/test_method_matcher_bindings.py98 'def helper(socket):\n'CODE
LOW⚡…n/rewrite/tests/python/test_method_matcher_bindings.py104 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.py137 'def helper():\n'CODE
LOW⚡…n/rewrite/tests/python/test_method_matcher_bindings.py145 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.py150 'def helper():\n'CODE
LOW⚡…n/rewrite/tests/python/test_method_matcher_bindings.py157 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.py161 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.py166 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.py33SHADOW = 'def helper():\n global socket\n socket = None\n'CODE
LOW…e-python/rewrite/tests/python/test_type_attribution.py4061 def helper(self) -> int:CODE
LOW⚡…e-python/rewrite/tests/python/test_type_attribution.py2710 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.py2720 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.py2729 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.py386 def my_function():STRING
LOW⚡…sts/python/all/format/tabs_and_indents_visitor_test.py390 def my_function():STRING
LOW⚡…sts/python/all/format/tabs_and_indents_visitor_test.py854 def my_function(a, b):STRING
LOW⚡…sts/python/all/format/tabs_and_indents_visitor_test.py862 def my_function(a, b):STRING
LOW⚡…sts/python/all/format/tabs_and_indents_visitor_test.py897 def my_function():STRING
LOW⚡…sts/python/all/format/tabs_and_indents_visitor_test.py905 def my_function():STRING
LOW…sts/python/all/format/tabs_and_indents_visitor_test.py820 def my_function(a, b):STRING
LOW…sts/python/all/format/tabs_and_indents_visitor_test.py832 def my_function(a, b):STRING
LOW…sts/python/all/format/tabs_and_indents_visitor_test.py953 def my_function():STRING
LOW…sts/python/all/format/tabs_and_indents_visitor_test.py961 def my_function():STRING
LOWrewrite-python/rewrite/tests/python/py27/sweep_test.py150 def helper(*items):CODE
LOWrewrite-python/rewrite/src/rewrite/rpc/server.py2806def handle_request(method: str, params: dict) -> Any:CODE
LOW…vascript/cleanup/use-object-property-shorthand.test.ts67 `function getData() { return doSomething({ name: name, value: value }); }`,CODE
LOW…vascript/cleanup/use-object-property-shorthand.test.ts68 `function getData() { return doSomething({ name, value }); }`CODE
TODO Padding1 hit · 2 pts
SeverityFileLineSnippetContext
LOW…rp/csharp/OpenRewrite/CSharp/Format/RoslynFormatter.cs144 // TODO: implement string-level indent normalization fallbackCOMMENT