AI Slop Code Risk Monitor

immunant/c2rust

SlopCodeMonitor badge for immunant/c2rust Adjusted legacy signal; badge bands: 25 / 50 / 75 (different from dashboard bands).

Migrate C code to Rust

3.6 Low pattern signal View on GitHub

Open-Source Code Quality, Security and Technical Debt Review

This report summarizes scanner evidence for immunant/c2rust, a Rust project with 4,832 GitHub stars. SynthScan examined 269,082 lines of code across 1334 source files, recording 695 pattern matches distributed across 18 syntactic categories. The legacy adjusted pattern signal is 3.6 (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.

3.6
Adjusted Signal
3.6
Raw Pattern Score
100%
Time Factor
2026-10-26
Last Push
4.8K
Stars
Rust
Language
269.1K
Lines of Code
1.3K
Files
695
Pattern Hits
2026-10-31
Scan Date
0.04
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 10.4/100 · LOW

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

Hallucinated Dependency & Supply Chain Risk 2.6/100 · LOW

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

Agent Over-Engineering Ratio 5.8/100 · LOW

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

PR Review Velocity Impact 16.9/100 · LOW

Which changes need focused human review? 695 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 1HIGH 47MEDIUM 28LOW 619

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 695 distinct pattern matches across 18 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.

Over-Commented Block378 hits · 368 pts
SeverityFileLineSnippetContext
LOWanalysis/runtime/src/handlers.rs61}COMMENT
LOWanalysis/runtime/src/runtime/global_runtime.rs21 /// as it depends on [`super::FINISHED`], which is also a global.COMMENT
LOWanalysis/runtime/src/runtime/scoped_runtime.rs161COMMENT
LOWanalysis/tests/misc/src/pointers.rs21 fn free(__ptr: *mut libc::c_void);COMMENT
LOWanalysis/tests/lighttpd-minimal/src/main.rs1141 // );COMMENT
LOWc2rust-analyze/tests/filecheck/fixed.rs1use std::ptr;COMMENT
LOWc2rust-analyze/tests/filecheck/test_attrs.rs1#![feature(register_tool)]COMMENT
LOWc2rust-analyze/tests/filecheck/call1.rs1// With a naive iteration order, reaching a fixpoint used to take 3 iterations. By following aCOMMENT
LOWc2rust-analyze/tests/filecheck/non_null_rewrites.rs161 //COMMENT
LOWc2rust-analyze/tests/filecheck/non_null_rewrites.rs181 //COMMENT
LOWc2rust-analyze/tests/filecheck/fields.rs1// CHECK-LABEL: === ADT Metadata ===COMMENT
LOWc2rust-analyze/tests/filecheck/fields.rs41COMMENT
LOWc2rust-analyze/tests/filecheck/fields.rs81// CHECK-DAG: pub struct Data<'d,'h0,'h1,'h2> {COMMENT
LOWc2rust-analyze/tests/filecheck/trivial.rs1use std::cell::{Cell, RefCell};COMMENT
LOWc2rust-analyze/tests/filecheck/call_cast.rs1#![feature(register_tool)]COMMENT
LOWc2rust-analyze/tests/filecheck/alias3.rs1use std::ptr;COMMENT
LOWc2rust-analyze/tests/filecheck/alloc.rs1#![feature(extern_types)]COMMENT
LOWc2rust-analyze/tests/filecheck/unrewritten_calls.rs21// CHECK-LABEL: fn good2<'h0,'h1>(x: &'h0 mut (i32)) -> &'h1 (i32)COMMENT
LOWc2rust-analyze/tests/common/mod.rs41}COMMENT
LOWc2rust-analyze/tests/common/mod.rs61COMMENT
LOWc2rust-analyze/tests/analyze/rust_intrinsic.rs1/// Check that `extern "rust-intrinsic"` (which can be generic) foreign `fn`sCOMMENT
LOWc2rust-analyze/src/util.rs21 /// A pointer projection, such as `&(*x.y).z`. The rvalue is split into a base pointerCOMMENT
LOWc2rust-analyze/src/util.rs121 /// A [`Trivial`] library function is one that has no effect on pointer permissions in its caller.COMMENT
LOWc2rust-analyze/src/util.rs141 ///COMMENT
LOWc2rust-analyze/src/util.rs461/// which is defined as `*(from as *const To)` being a safe operation,COMMENT
LOWc2rust-analyze/src/util.rs481/// which we cannot check unlike for arrays, which we need for translated string literals.COMMENT
LOWc2rust-analyze/src/util.rs541 Some(is_transmutable_to(from, to))COMMENT
LOWc2rust-analyze/src/labeled_ty.rs1//! Provides a wrapper around `rustc::ty::Ty` with a label attached to each type constructor. WeCOMMENT
LOWc2rust-analyze/src/labeled_ty.rs221 /// Label multiple `Ty`s using a callback.COMMENT
LOWc2rust-analyze/src/log.rs21/// Initialize an [`env_logger::Logger`].COMMENT
LOWc2rust-analyze/src/analyze.rs141 Some(s) => s,COMMENT
LOWc2rust-analyze/src/analyze.rs581 /// [`GlobalAnalysisCtxt`] to get a complete [`AnalysisCtxt`] for use within this function.COMMENT
LOWc2rust-analyze/src/analyze.rs721COMMENT
LOWc2rust-analyze/src/main.rs61 /// Set `$RUSTFLAGS` for the wrapped `cargo`.COMMENT
LOWc2rust-analyze/src/main.rs81 rewrite_paths: Vec<OsString>,COMMENT
LOWc2rust-analyze/src/main.rs101 /// Add "start/end of def" annotations as comments around each definition. These annotationsCOMMENT
LOWc2rust-analyze/src/main.rs161fn exit_with_status(status: ExitStatus) {COMMENT
LOWc2rust-analyze/src/main.rs281/// Note that despite setting `--crate-type bin` and [`is_bin_crate`] being true,COMMENT
LOWc2rust-analyze/src/main.rs301///COMMENT
LOWc2rust-analyze/src/last_use.rs1//! Analysis to find the last use of a MIR local. For non-`Copy` types, the last use can be madeCOMMENT
LOWc2rust-analyze/src/last_use.rs41 ///COMMENT
LOWc2rust-analyze/src/known_fn.rs101 /// We skip non-ptr [`PointerId`]s in such iteration,COMMENT
LOWc2rust-analyze/src/known_fn.rs201 /// Determine the [`PermissionSet`]s that should constrain [`PointerId`]sCOMMENT
LOWc2rust-analyze/src/known_fn.rs241 matchingCOMMENT
LOWc2rust-analyze/src/context.rs41bitflags! {COMMENT
LOWc2rust-analyze/src/context.rs61 const WRITE = 0x0002;COMMENT
LOWc2rust-analyze/src/context.rs81COMMENT
LOWc2rust-analyze/src/context.rs101 /// Non-zero but invalid pointers, such as those produced by:COMMENT
LOWc2rust-analyze/src/context.rs121 /// * [`core::ptr::null`]COMMENT
LOWc2rust-analyze/src/context.rs181 pub const STRING_LITERAL: Self = Self::union_all([Self::READ, Self::OFFSET_ADD, Self::STACK]);COMMENT
LOWc2rust-analyze/src/context.rs1141 /// the `LTy`s of other value, rather than using the `PointerId`s assigned in `rvalue_tys`.COMMENT
LOWc2rust-analyze/src/dataflow/mod.rs21 /// must also contain `OFFSET`. This is sufficient because all assignments andCOMMENT
LOWc2rust-analyze/src/dataflow/type_check.rs21COMMENT
LOWc2rust-analyze/src/dataflow/type_check.rs41/// different modes, one for computing equivalence constraints and the other for computing allCOMMENT
LOWc2rust-analyze/src/dataflow/type_check.rs161 // We support only one case here, which is the case of null pointersCOMMENT
LOWc2rust-analyze/src/dataflow/type_check.rs421 /// this function unifies the [`PointerId`]s that `lty1` and `lty2` have at that position.COMMENT
LOWc2rust-analyze/src/rewrite/mod.rs1//! The overall implementation strategy for rewriting is:COMMENT
LOWc2rust-analyze/src/rewrite/mod.rs61 /// Emit some fixed text.COMMENT
LOWc2rust-analyze/src/rewrite/mod.rs81 RemovedCast(Box<Rewrite>),COMMENT
LOWc2rust-analyze/src/rewrite/mod.rs101 Let1(String, Box<Rewrite>),COMMENT
318 more matches not shown…
Cross-File Repetition40 hits · 200 pts
SeverityFileLineSnippetContext
HIGHexamples/libxml2/common.py0reflect changes to all configuration variables that depend on llvm_verSTRING
HIGHexamples/tinycc/common.py0reflect changes to all configuration variables that depend on llvm_verSTRING
HIGHexamples/snudown/common.py0reflect changes to all configuration variables that depend on llvm_verSTRING
HIGHexamples/tmux/common.py0reflect changes to all configuration variables that depend on llvm_verSTRING
HIGHscripts/common.py0reflect changes to all configuration variables that depend on llvm_verSTRING
HIGHexamples/libxml2/common.py0add common command-line arguments that commonglobals understands to construct necessary paths.STRING
HIGHexamples/tinycc/common.py0add common command-line arguments that commonglobals understands to construct necessary paths.STRING
HIGHexamples/snudown/common.py0add common command-line arguments that commonglobals understands to construct necessary paths.STRING
HIGHexamples/tmux/common.py0add common command-line arguments that commonglobals understands to construct necessary paths.STRING
HIGHscripts/common.py0add common command-line arguments that commonglobals understands to construct necessary paths.STRING
HIGHexamples/libxml2/common.py0ask rustc for the correct path to its {lib,bin} directory.STRING
HIGHexamples/tinycc/common.py0ask rustc for the correct path to its {lib,bin} directory.STRING
HIGHexamples/snudown/common.py0ask rustc for the correct path to its {lib,bin} directory.STRING
HIGHexamples/tmux/common.py0ask rustc for the correct path to its {lib,bin} directory.STRING
HIGHscripts/common.py0ask rustc for the correct path to its {lib,bin} directory.STRING
HIGHexamples/libxml2/common.py0log fatal error and exit with specified error code.STRING
HIGHexamples/tinycc/common.py0log fatal error and exit with specified error code.STRING
HIGHexamples/snudown/common.py0log fatal error and exit with specified error code.STRING
HIGHexamples/tmux/common.py0log fatal error and exit with specified error code.STRING
HIGHscripts/common.py0log fatal error and exit with specified error code.STRING
HIGHexamples/libxml2/common.py0estimate the highest number of parallel link jobs we can run without causing the machine to swap. we conservatively estiSTRING
HIGHexamples/tinycc/common.py0estimate the highest number of parallel link jobs we can run without causing the machine to swap. we conservatively estiSTRING
HIGHexamples/snudown/common.py0estimate the highest number of parallel link jobs we can run without causing the machine to swap. we conservatively estiSTRING
HIGHexamples/tmux/common.py0estimate the highest number of parallel link jobs we can run without causing the machine to swap. we conservatively estiSTRING
HIGHscripts/common.py0estimate the highest number of parallel link jobs we can run without causing the machine to swap. we conservatively estiSTRING
HIGHexamples/libxml2/common.py0make sure directory has a `.gitignore` file with a wildcard pattern in it.STRING
HIGHexamples/tinycc/common.py0make sure directory has a `.gitignore` file with a wildcard pattern in it.STRING
HIGHexamples/snudown/common.py0make sure directory has a `.gitignore` file with a wildcard pattern in it.STRING
HIGHexamples/tmux/common.py0make sure directory has a `.gitignore` file with a wildcard pattern in it.STRING
HIGHscripts/common.py0make sure directory has a `.gitignore` file with a wildcard pattern in it.STRING
HIGHexamples/libxml2/common.py0run c2rust-ast-exporter for a single compiler invocation. :param ast_expo: command object representing c2rust-ast-exportSTRING
HIGHexamples/tinycc/common.py0run c2rust-ast-exporter for a single compiler invocation. :param ast_expo: command object representing c2rust-ast-exportSTRING
HIGHexamples/snudown/common.py0run c2rust-ast-exporter for a single compiler invocation. :param ast_expo: command object representing c2rust-ast-exportSTRING
HIGHexamples/tmux/common.py0run c2rust-ast-exporter for a single compiler invocation. :param ast_expo: command object representing c2rust-ast-exportSTRING
HIGHscripts/common.py0run c2rust-ast-exporter for a single compiler invocation. :param ast_expo: command object representing c2rust-ast-exportSTRING
HIGHexamples/libxml2/common.py0run the transpiler on all c files in a compile commands database.STRING
HIGHexamples/tinycc/common.py0run the transpiler on all c files in a compile commands database.STRING
HIGHexamples/snudown/common.py0run the transpiler on all c files in a compile commands database.STRING
HIGHexamples/tmux/common.py0run the transpiler on all c files in a compile commands database.STRING
HIGHscripts/common.py0run the transpiler on all c files in a compile commands database.STRING
Hyper-Verbose Identifiers89 hits · 92 pts
SeverityFileLineSnippetContext
LOWc2rust-analyze/rename_nll_facts.py70def match_path_assigned_at_base():CODE
LOWc2rust-analyze/rename_nll_facts.py95def match_use_of_var_derefs_origin():CODE
LOWtests/integration/tests/__init__.py180 def ensure_submodule_checkout(self):CODE
LOWtests/integration/tests/requirements.py102 def collect_packages_for_host(yaml: Dict):CODE
LOWc2rust-refactor/gen/rewrite.py238def type_needs_generated_impl(d, trait):CODE
LOWc2rust-refactor/gen/rewrite.py445def do_recover_children_match(d):CODE
LOWc2rust-refactor/gen/rewrite.py512def generate_recover_children_impls(decls):CODE
LOWc2rust-refactor/gen/rewrite.py543def do_maybe_rewrite_seq_impl(d):CODE
LOWc2rust-refactor/gen/rewrite.py560def generate_maybe_rewrite_seq_impls(decls):CODE
LOWc2rust-refactor/doc/literate/refactor.py706def run_refactor_for_playground(args: argparse.Namespace,CODE
LOWc2rust-refactor/doc/literate/marks.py213def init_file_keep_mark_lines(f: File):CODE
LOWc2rust-refactor/doc/literate/file.py245 def set_drop_irrelevant_lines(self, drop_irrelevant_lines: Annot[None]):CODE
LOW⚡examples/libxml2/common.py216def get_rust_toolchain_libpath() -> str:CODE
LOW⚡examples/libxml2/common.py220def get_rust_toolchain_binpath() -> str:CODE
LOW⚡examples/tinycc/common.py216def get_rust_toolchain_libpath() -> str:CODE
LOW⚡examples/tinycc/common.py220def get_rust_toolchain_binpath() -> str:CODE
LOWexamples/snudown/translate.py34def generate_html_entries_header(snudown: str):CODE
LOW⚡examples/snudown/common.py216def get_rust_toolchain_libpath() -> str:CODE
LOW⚡examples/snudown/common.py220def get_rust_toolchain_binpath() -> str:CODE
LOW⚡examples/tmux/common.py216def get_rust_toolchain_libpath() -> str:CODE
LOW⚡examples/tmux/common.py220def get_rust_toolchain_binpath() -> str:CODE
LOW⚡scripts/common.py216def get_rust_toolchain_libpath() -> str:CODE
LOW⚡scripts/common.py220def get_rust_toolchain_binpath() -> str:CODE
LOWscripts/test_cross_checks.py18def checkout_and_build_libclevrbuf():CODE
LOW⚡c2rust-postprocess/tests/test_utils.py10def test_existing_file_returns_path(tmp_path: Path) -> None:CODE
LOW⚡c2rust-postprocess/tests/test_utils.py20def test_existing_file_rejects_missing_file(tmp_path: Path) -> None:CODE
LOW⚡c2rust-postprocess/tests/test_utils.py29def test_existing_file_rejects_directory(tmp_path: Path) -> None:CODE
LOW⚡c2rust-postprocess/tests/test_utils.py34def test_get_rust_files_raises_on_missing_path():CODE
LOWc2rust-postprocess/tests/test_utils.py45def test_get_rust_files_happy_path(tmp_path):CODE
LOWc2rust-postprocess/tests/test_utils.py55def test_test_rust_files_finds_qsort_rs(transpile_qsort):CODE
LOWc2rust-postprocess/tests/conftest.py20def generate_compile_commands_for_qsort(ensure_bear):CODE
LOWc2rust-postprocess/tests/test_apply_file.py115def test_accepted_batch_is_applied(patched_io, rust_file: Path) -> None:CODE
LOWc2rust-postprocess/tests/test_apply_file.py130def test_rejection_counts_failure_and_invalidates_final_response(CODE
LOWc2rust-postprocess/tests/test_apply_file.py149def test_rejection_raises_without_keep_going(patched_io, rust_file: Path) -> None:CODE
LOWc2rust-postprocess/tests/test_apply_file.py164def test_no_update_rust_is_purely_generative(patched_io, rust_file: Path) -> None:CODE
LOWc2rust-postprocess/tests/test_apply_file.py182def test_without_validator_candidates_are_applied(patched_io, rust_file: Path) -> None:CODE
LOWc2rust-postprocess/tests/test_apply_file.py196def test_format_exclude_entries_groups_by_file(tmp_path: Path) -> None:CODE
LOWc2rust-postprocess/tests/test_apply_file.py228def split_merge_tools_available() -> bool:CODE
LOWc2rust-postprocess/tests/test_apply_file.py238def test_end_to_end_type_invalid_rewrite_is_isolated(tmp_path: Path) -> None:CODE
LOWc2rust-postprocess/tests/test_definitions.py18def test_get_c_sourcefile_qsort(generate_compile_commands_for_qsort, transpile_qsort):CODE
LOWc2rust-postprocess/tests/test_definitions.py31def test_get_rust_function_spans(transpile_qsort, pytestconfig):CODE
LOWc2rust-postprocess/tests/test_definitions.py68def test_c_function_splitting(generate_compile_commands_for_qsort, transpile_qsort):CODE
LOWc2rust-postprocess/tests/test_definitions.py89def test_demote_misplaced_doc_comments():CODE
LOW⚡c2rust-postprocess/tests/test_definitions.py123def test_demote_misplaced_doc_comments_inner_doc():STRING
LOW⚡c2rust-postprocess/tests/test_definitions.py128def test_rust_parse_has_errors():STRING
LOW⚡c2rust-postprocess/tests/test_definitions.py133def test_comment_insertion_qsort():STRING
LOWc2rust-postprocess/tests/test_validate.py46def test_valid_batch_is_retained_with_one_check(source: Path) -> None:CODE
LOWc2rust-postprocess/tests/test_validate.py58def test_mixed_batch_retains_only_valid_candidates(source: Path) -> None:CODE
LOWc2rust-postprocess/tests/test_validate.py74def test_single_rejected_candidate_restores_baseline_exactly(source: Path) -> None:CODE
LOWc2rust-postprocess/tests/test_validate.py84def test_interacting_candidates_reject_only_one(source: Path) -> None:CODE
LOWc2rust-postprocess/tests/test_validate.py102def test_check_exception_restores_file(source: Path) -> None:CODE
LOWc2rust-postprocess/tests/test_validate.py111def test_apply_exception_restores_file(source: Path) -> None:CODE
LOWc2rust-postprocess/tests/test_validate.py124def test_empty_batch_runs_no_check(source: Path) -> None:CODE
LOWc2rust-postprocess/tests/test_validate.py130def test_find_manifest_returns_nearest(tmp_path: Path) -> None:CODE
LOW⚡c2rust-postprocess/tests/test_validate.py161def test_cargo_checker_passes_valid_crate(tmp_path: Path) -> None:STRING
LOW⚡c2rust-postprocess/tests/test_validate.py167def test_cargo_checker_reports_type_error(tmp_path: Path) -> None:STRING
LOW⚡c2rust-postprocess/tests/test_validate.py175def test_main_aborts_on_broken_baseline(tmp_path: Path) -> None:STRING
LOWc2rust-postprocess/tests/test_comments_transform.py50def test_directive_line_comment_survives_preprocessed_check() -> None:CODE
LOWc2rust-postprocess/tests/test_comments_transform.py113def test_body_doc_comments_are_demoted(monkeypatch) -> None:STRING
LOWc2rust-postprocess/tests/test_comments_transform.py142def test_syntactically_invalid_response_is_rejected() -> None:STRING
29 more matches not shown…
Unused Imports89 hits · 89 pts
SeverityFileLineSnippetContext
LOWc2rust-analyze/scripts/auto_fix_errors.py7CODE
LOWc2rust-analyze/scripts/pointwise_metrics.py25CODE
LOWc2rust-analyze/scripts/extract_working_defs.py13CODE
LOWtests/integration/tests/__init__.py12CODE
LOWtests/integration/tests/__init__.py13CODE
LOWtests/integration/tests/requirements.py5CODE
LOWc2rust-refactor/gen/ast_equiv.py21CODE
LOWc2rust-refactor/gen/ast_equiv.py23CODE
LOWc2rust-refactor/gen/ast_equiv.py24CODE
LOWc2rust-refactor/gen/process_ast.py7CODE
LOWc2rust-refactor/gen/matcher.py21CODE
LOWc2rust-refactor/gen/matcher.py23CODE
LOWc2rust-refactor/gen/matcher.py24CODE
LOWc2rust-refactor/gen/ast_deref.py3CODE
LOWc2rust-refactor/gen/nt_match.py21CODE
LOWc2rust-refactor/gen/nt_match.py22CODE
LOWc2rust-refactor/gen/get_span.py22CODE
LOWc2rust-refactor/gen/get_span.py22CODE
LOWc2rust-refactor/gen/get_span.py24CODE
LOWc2rust-refactor/gen/get_span.py25CODE
LOWc2rust-refactor/gen/get_node_id.py19CODE
LOWc2rust-refactor/gen/get_node_id.py19CODE
LOWc2rust-refactor/gen/get_node_id.py21CODE
LOWc2rust-refactor/gen/get_node_id.py22CODE
LOWc2rust-refactor/gen/mac_match.py18CODE
LOWc2rust-refactor/gen/mac_match.py19CODE
LOWc2rust-refactor/gen/lr_expr.py20CODE
LOWc2rust-refactor/gen/lr_expr.py22CODE
LOWc2rust-refactor/gen/lr_expr.py23CODE
LOWc2rust-refactor/gen/mac_table.py36CODE
LOWc2rust-refactor/gen/mac_table.py37CODE
LOWc2rust-refactor/gen/ast_names.py3CODE
LOWc2rust-refactor/gen/ast_names.py4CODE
LOWc2rust-refactor/gen/list_node_ids.py10CODE
LOWc2rust-refactor/gen/list_node_ids.py12CODE
LOWc2rust-refactor/gen/list_node_ids.py13CODE
LOWc2rust-refactor/gen/rewrite.py148CODE
LOWc2rust-refactor/gen/rewrite.py150CODE
LOWc2rust-refactor/gen/rewrite.py153CODE
LOWc2rust-refactor/doc/literate/refactor.py7CODE
LOWc2rust-refactor/doc/literate/refactor.py13CODE
LOWc2rust-refactor/doc/literate/refactor.py14CODE
LOWc2rust-refactor/doc/literate/render.py1CODE
LOWc2rust-refactor/doc/literate/render.py8CODE
LOWc2rust-refactor/doc/literate/render.py8CODE
LOWc2rust-refactor/doc/literate/render.py10CODE
LOWc2rust-refactor/doc/literate/annot.py12CODE
LOWc2rust-refactor/doc/literate/marks.py3CODE
LOWc2rust-refactor/doc/literate/diff.py1CODE
LOWc2rust-refactor/doc/literate/highlight.py5CODE
LOWexamples/json-c/translate.py6CODE
LOWexamples/json-c/translate.py6CODE
LOWexamples/json-c/translate.py13CODE
LOWexamples/libxml2/translate.py4CODE
LOWexamples/libxml2/translate.py4CODE
LOWexamples/libxml2/translate.py13CODE
LOWexamples/libxml2/translate.py16CODE
LOWexamples/libxml2/common.py15CODE
LOWexamples/libxml2/patch_translated_code.py5CODE
LOWexamples/libxml2/patch_translated_code.py6CODE
29 more matches not shown…
Self-Referential Comments15 hits · 43 pts
SeverityFileLineSnippetContext
MEDIUMexamples/json-c/repo/ltmain.sh1229# This function is only a basic sanity check; it will hardly flush outCOMMENT
MEDIUMexamples/json-c/repo/ltmain.sh1240# This function implements the same check as func_lalib_p withoutCOMMENT
MEDIUMexamples/json-c/repo/ltmain.sh1263# This function is only a basic sanity check; it will hardly flush outCOMMENT
MEDIUMexamples/json-c/repo/ltmain.sh1272# This function is only a basic sanity check; it will hardly flush outCOMMENT
MEDIUMexamples/json-c/repo/ltmain.sh1297# This function is only a basic sanity check; it will hardly flush outCOMMENT
MEDIUMexamples/json-c/repo/ltmain.sh1433# Create a libtool object file (analogous to a ".la" file),COMMENT
MEDIUMexamples/json-c/repo/ltmain.sh6028 # Create the object directory.COMMENT
MEDIUMexamples/json-c/repo/ltmain.sh8656 # Create the old-style object.COMMENT
MEDIUMexamples/json-c/repo/ltmain.sh8676 # Create an invalid libtool object if no PIC, so that we don'tCOMMENT
MEDIUMexamples/tinycc/translate.py88 # Create the src dir if it doesn't already existSTRING
MEDIUMexamples/robotfindskitten/repo/ltmain.sh888 # Create a libtool object file (analogous to a ".la" file),COMMENT
MEDIUMexamples/robotfindskitten/repo/ltmain.sh1982 # Create the object directory.COMMENT
MEDIUMexamples/robotfindskitten/repo/ltmain.sh4265 # Create the old-style object.COMMENT
MEDIUMexamples/robotfindskitten/repo/ltmain.sh4295 # Create an invalid libtool object if no PIC, so that we don'tCOMMENT
MEDIUMscripts/test_examples.py152 # Create a link to the example data filesCOMMENT
Cross-Language Confusion5 hits · 38 pts
SeverityFileLineSnippetContext
HIGH⚡examples/json-c/translate.py39 mk_select('crate; desc(fn && pub);') + [';', 'wrap_api'],CODE
HIGH⚡examples/json-c/translate.py43 mk_select('crate; desc(foreign_item && fn && !name(".*locale.*"));') +CODE
HIGH⚡examples/json-c/translate.py46 mk_select(r'crate; desc(foreign_item && fn && name("__isnan(l|f)?"));') +CODE
HIGH⚡examples/json-c/translate.py49 mk_select(r'crate; desc(foreign_item && fn && name("__isinf(l|f)?"));') +CODE
HIGHc2rust-postprocess/tests/conftest.py24 # compile to /dev/null, we just want compile_commands.jsonCOMMENT
AI Slop Vocabulary12 hits · 35 pts
SeverityFileLineSnippetContext
MEDIUMc2rust-analyze/src/analyze.rs133/// but I'll soon replace it with a more robust (but complex) versionCOMMENT
MEDIUMc2rust-analyze/src/borrowck/type_check.rs377 // Here we relabel `expect_ty` to utilize the permissions it carriesCOMMENT
MEDIUMc2rust-analyze/src/borrowck/type_check.rs389 // Here we relabel `expect_ty` to utilize the permissions it carriesCOMMENT
MEDIUMc2rust-refactor/src/driver.rs55/// robust against broken code. (For example, phase 3 provides typechecking results, but can't beCOMMENT
MEDIUMexamples/json-c/repo/ltmain.sh397# Sed substitution that helps us do robust quoting. It backslashifiesCOMMENT
MEDIUMexamples/json-c/repo/ltmain.sh3852# Sed substitution that helps us do robust quoting. It backslashifiesCOMMENT
MEDIUMexamples/json-c/repo/ltmain.sh7681 # This code stresses the "libraries are programs" paradigm to itsCOMMENT
MEDIUMexamples/json-c/repo/doc/html/printbuf_8h.html194<p>This is an optimization wrapper around <a class="el" href="printbuf_8h.html#a22f09779a19db59a83e7cb8c2ce4c75f">printbCODE
MEDIUMexamples/robotfindskitten/repo/ltmain.sh86# Sed substitution that helps us do robust quoting. It backslashifiesCOMMENT
MEDIUMexamples/robotfindskitten/repo/ltmain.sh3517 # This code stresses the "libraries are programs" paradigm to itsCOMMENT
MEDIUMexamples/robotfindskitten/repo/ltmain.sh5259# Sed substitution that helps us do robust quoting. It backslashifiesCOMMENT
MEDIUMscripts/test_examples.py87 # Should be used on projects that utilize GNU Build SystemsCOMMENT
Deep Nesting30 hits · 30 pts
SeverityFileLineSnippetContext
LOWc2rust-analyze/scripts/auto_fix_errors.py64CODE
LOWc2rust-analyze/scripts/extract_working_defs.py52CODE
LOWtests/integration/tests/__init__.py55CODE
LOWtests/integration/tests/__init__.py212CODE
LOWc2rust-refactor/gen/ast_equiv.py90CODE
LOWc2rust-refactor/gen/process_ast.py29CODE
LOWc2rust-refactor/gen/matcher.py82CODE
LOWc2rust-refactor/gen/lr_expr.py26CODE
LOWc2rust-refactor/gen/lr_expr.py95CODE
LOWc2rust-refactor/gen/rewrite.py344CODE
LOWc2rust-refactor/gen/rewrite.py445CODE
LOWc2rust-refactor/doc/literate/refactor.py356CODE
LOWc2rust-refactor/doc/literate/refactor.py209CODE
LOWc2rust-refactor/doc/literate/render.py62CODE
LOWc2rust-refactor/doc/literate/render.py243CODE
LOWc2rust-refactor/doc/literate/__init__.py99CODE
LOWc2rust-refactor/doc/literate/__init__.py146CODE
LOWc2rust-refactor/doc/literate/__init__.py237CODE
LOWc2rust-refactor/doc/literate/marks.py84CODE
LOWc2rust-refactor/doc/literate/diff.py38CODE
LOWc2rust-refactor/doc/literate/diff.py124CODE
LOWc2rust-refactor/doc/literate/highlight.py98CODE
LOWscripts/package.py144CODE
LOWscripts/test_translator.py229CODE
LOWscripts/convert_build_commands.py27CODE
LOWscripts/build_cross_checks.py29CODE
LOWscripts/test_rust_refactor.py39CODE
LOWc2rust-postprocess/postprocess/cache.py83CODE
LOWc2rust-postprocess/postprocess/cache.py91CODE
LOWc2rust-postprocess/postprocess/definitions/__init__.py151CODE
Modern Structural Boilerplate11 hits · 14 pts
SeverityFileLineSnippetContext
LOWexamples/libxml2/common.py159 def update_args(self, args: Optional[Any] = None) -> None:CODE
LOW⚡examples/libxml2/common.py210def update_or_init_submodule(submodule_path: str) -> None:CODE
LOWexamples/tinycc/common.py159 def update_args(self, args: Optional[Any] = None) -> None:CODE
LOW⚡examples/tinycc/common.py210def update_or_init_submodule(submodule_path: str) -> None:CODE
LOWexamples/snudown/common.py159 def update_args(self, args: Optional[Any] = None) -> None:CODE
LOW⚡examples/snudown/common.py210def update_or_init_submodule(submodule_path: str) -> None:CODE
LOWexamples/tmux/common.py159 def update_args(self, args: Optional[Any] = None) -> None:CODE
LOW⚡examples/tmux/common.py210def update_or_init_submodule(submodule_path: str) -> None:CODE
LOWscripts/common.py159 def update_args(self, args: Optional[Any] = None) -> None:CODE
LOW⚡scripts/common.py210def update_or_init_submodule(submodule_path: str) -> None:CODE
LOW⚡c2rust-postprocess/tests/test_cache.py32def set_age_days(entry_dir: Path, days: int) -> None:CODE
Hallucination Indicators1 hit · 10 pts
SeverityFileLineSnippetContext
CRITICALc2rust-analyze/src/borrowck/type_check.rs119 let field_adt_metadata = if let Some(field_adt_metadata) = self.acx.gacx.adt_metadata.table.get(CODE
Empty Error Handlers2 hits · 10 pts
SeverityFileLineSnippetContext
HIGHscripts/package.py54except ValueError:CODE
HIGHscripts/test_translator.py622except OSError:CODE
TODO Padding4 hits · 6 pts
SeverityFileLineSnippetContext
LOWcross-checks/c-checks/clang-plugin/runtime/hash.c52// TODO: implement more types, e.g., bool, char, double, floatCOMMENT
LOWc2rust-refactor/src/analysis/ownership/intra.rs445 // TODO: implement these; we shouldn't see them in transpiledCOMMENT
LOWscripts/test_rust_refactor.py90 # TODO: implement rustfmt and diff actions from `run-test.sh`COMMENT
LOWc2rust-postprocess/postprocess/models/gpt.py25 # TODO: implement tool calling supportCOMMENT
Redundant / Tautological Comments4 hits · 6 pts
SeverityFileLineSnippetContext
LOWexamples/json-c/repo/ltmain.sh2593 # Check if any of the arguments is a wrapper script.COMMENT
LOWexamples/json-c/repo/ltmain.sh8382 # Loop over the list of objects to be linked.COMMENT
LOWexamples/robotfindskitten/repo/ltmain.sh4062 # Loop over the list of objects to be linked.COMMENT
LOWexamples/robotfindskitten/repo/ltmain.sh6392 # Check if any of the arguments is a wrapper script.COMMENT
AI Structural Patterns5 hits · 5 pts
SeverityFileLineSnippetContext
LOWexamples/libxml2/common.py467CODE
LOWexamples/tinycc/common.py467CODE
LOWexamples/snudown/common.py467CODE
LOWexamples/tmux/common.py467CODE
LOWscripts/common.py467CODE
Fake / Example Data4 hits · 4 pts
SeverityFileLineSnippetContext
LOWtests/unit/example/src/test_file_xfail.rs6 Lorem ipsum dolor sit amet, consectetur adipiscing elit. Etiam non maurisCODE
LOWtests/unit/example/src/test_file_xfail.rs6 Lorem ipsum dolor sit amet, consectetur adipiscing elit. Etiam non maurisCODE
LOWtests/unit/example/src/skip_me.c5Lorem ipsum dolor sit amet, consectetur adipiscing elit. Etiam non maurisCODE
LOWtests/unit/example/src/skip_me.c5Lorem ipsum dolor sit amet, consectetur adipiscing elit. Etiam non maurisCODE
Slop Phrases3 hits · 4 pts
SeverityFileLineSnippetContext
LOWc2rust-refactor/src/driver.rs48// TODO: don't forget to call span_fix after parsingCOMMENT
LOWexamples/json-c/repo/json_object.h460 * ownership through json_object_get (& don't forget to do a json_object_putCOMMENT
LOWexamples/json-c/repo/doc/html/json__object_8h.html1851<p><em>No</em> reference counts will be changed. There is no need to manually adjust reference counts through the json_oCODE
Excessive Try-Catch Wrapping2 hits · 3 pts
SeverityFileLineSnippetContext
LOWtests/integration/tests/__init__.py171 except Exception: # noqaCODE
MEDIUMc2rust-postprocess/postprocess/definitions/clang.py52 print(f"Error running clang on {source_file}: {e.stderr}")CODE
Verbosity Indicators1 hit · 2 pts
SeverityFileLineSnippetContext
LOWc2rust-transpile/src/translator/mod.rs1846 /// The purpose of this function is to decide on whether or not a static initializer'sCOMMENT