AI Slop Code Risk Monitor

j178/prek

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

⚡ A fast Git hook manager written in Rust, designed as a drop-in alternative to pre-commit, reimagined.

1.4 Low pattern signal View on GitHub

Open-Source Code Quality, Security and Technical Debt Review

This report summarizes scanner evidence for j178/prek, a Rust project with 8,711 GitHub stars. SynthScan examined 112,712 lines of code across 330 source files, recording 129 pattern matches distributed across 12 syntactic categories. The legacy adjusted pattern signal is 1.4 (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.

1.4
Adjusted Signal
1.4
Raw Pattern Score
100%
Time Factor
2026-10-31
Last Push
8.7K
Stars
Rust
Language
112.7K
Lines of Code
330
Files
129
Pattern Hits
2026-10-31
Scan Date
0.01
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 5.8/100 · LOW

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

Hallucinated Dependency & Supply Chain Risk 0.8/100 · LOW

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

Agent Over-Engineering Ratio 0.4/100 · LOW

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

PR Review Velocity Impact 6.6/100 · LOW

Which changes need focused human review? 129 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 0HIGH 3MEDIUM 5LOW 121

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 129 distinct pattern matches across 12 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 Block79 hits · 76 pts
SeverityFileLineSnippetContext
LOWcrates/prek-ignore/src/gitignore.rs61 }COMMENT
LOWcrates/prek-ignore/src/walk.rs21COMMENT
LOWcrates/prek/tests/run/git.rs1061}COMMENT
LOWcrates/prek/src/concurrency.rs61COMMENT
LOWcrates/prek/src/warnings.rs1// MIT LicenseCOMMENT
LOWcrates/prek/src/terminal.rs1//! Terminal capability setup, progress rendering, and output sanitization.COMMENT
LOWcrates/prek/src/printer.rs1// MIT LicenseCOMMENT
LOWcrates/prek/src/fs.rs1// MIT LicenseCOMMENT
LOWcrates/prek/src/process.rs1// Copyright (c) 2023 Axo Developer Co.COMMENT
LOWcrates/prek/src/process.rs61}COMMENT
LOWcrates/prek/src/process.rs221 }COMMENT
LOWcrates/prek/src/resource_limit.rs1// MIT LicenseCOMMENT
LOWcrates/prek/src/resource_limit.rs21//! Helper for adjusting Unix resource limits.COMMENT
LOWcrates/prek/src/resource_limit.rs61/// 1. Some code breaks if `RLIMIT_NOFILE` exceeds `i32::MAX` (despite the type being `u64`)COMMENT
LOWcrates/prek/src/archive.rs1// MIT LicenseCOMMENT
LOWcrates/prek/src/config/hook.rs481 /// Default is `[file]`, which matches all files.COMMENT
LOWcrates/prek/src/config/hook.rs501 /// Append filenames that would be checked to the hook entry as arguments.COMMENT
LOWcrates/prek/src/config/hook.rs701pub(crate) struct Manifest {COMMENT
LOWcrates/prek/src/config/hook.rs801/// It's the same as the manifest hook definition but with only a few predefined id allowed.COMMENT
LOWcrates/prek/src/config/hook.rs881 Ok(meta_hook)COMMENT
LOWcrates/prek/src/config/mod.rs61 pub priorities: BTreeMap<PriorityAlias, u32>,COMMENT
LOWcrates/prek/src/cli/self_update.rs1// MIT LicenseCOMMENT
LOWcrates/prek/src/cli/mod.rs201COMMENT
LOWcrates/prek/src/cli/mod.rs241 /// Create a prek configuration and install Git hook shims.COMMENT
LOWcrates/prek/src/cli/mod.rs261 /// Run configured hooks.COMMENT
LOWcrates/prek/src/cli/mod.rs281 /// Validate prek configuration files.COMMENT
LOWcrates/prek/src/cli/mod.rs301 InitTemplateDir(InitTemplateDirArgs),COMMENT
LOWcrates/prek/src/cli/mod.rs361#[derive(Debug, Args)]COMMENT
LOWcrates/prek/src/cli/mod.rs381 /// Skip the specified hooks or projects.COMMENT
LOWcrates/prek/src/cli/mod.rs401COMMENT
LOWcrates/prek/src/cli/mod.rs441 ///COMMENT
LOWcrates/prek/src/cli/mod.rs461 ///COMMENT
LOWcrates/prek/src/cli/mod.rs481COMMENT
LOWcrates/prek/src/cli/mod.rs541 pub(crate) all_files: bool,COMMENT
LOWcrates/prek/src/cli/mod.rs641}COMMENT
LOWcrates/prek/src/cli/mod.rs661 display_order = 0,COMMENT
LOWcrates/prek/src/cli/mod.rs721COMMENT
LOWcrates/prek/src/cli/mod.rs741 /// ignored.COMMENT
LOWcrates/prek/src/cli/mod.rs761 /// When combined with `--group`, it must also match at least one `--group`.COMMENT
LOWcrates/prek/src/cli/mod.rs841 /// Supports flexible selector syntax:COMMENT
LOWcrates/prek/src/cli/mod.rs861 /// - `hook-id`: Skip all hooks with the specified ID across all projectsCOMMENT
LOWcrates/prek/src/cli/mod.rs881 #[arg(long = "require-group", value_name = "GROUP")]COMMENT
LOWcrates/prek/src/cli/mod.rs981 #[arg(COMMENT
LOWcrates/prek/src/cli/mod.rs1001 /// `--exclude-tag '*-{alpha,beta,rc}*'` to skip common prerelease tags.COMMENT
LOWcrates/prek/src/cli/mod.rs1021 ///COMMENT
LOWcrates/prek/src/cli/mod.rs1081 ///COMMENT
LOWcrates/prek/src/cli/mod.rs1101 ///COMMENT
LOWcrates/prek/src/cli/mod.rs1141 /// Convert a YAML configuration file to prek.toml.COMMENT
LOWcrates/prek/src/cli/mod.rs1241}COMMENT
LOWcrates/prek/src/cli/install.rs41 // `git config core.hooksPath` resolves to a non-empty value. It does notCOMMENT
LOWcrates/prek/src/cli/update/repository.rs61///COMMENT
LOWcrates/prek/src/cli/run/selector.rs781/// 'project/sub/' -> 'project/sub'COMMENT
LOWcrates/prek/src/cli/run/reporter.rs1//! Progress UI for concurrent hook execution.COMMENT
LOWcrates/prek/src/cli/run/reporter.rs21//!COMMENT
LOWcrates/prek/src/cli/run/reporter.rs41//! later collapse hides one more row and reuses the existing summary.COMMENT
LOWcrates/prek/src/cli/run/reporter.rs81/// `HOOK_OUTPUT_PREVIEW_LINES` preview lines inserted directly below it.COMMENT
LOWcrates/prek/src/languages/dart.rs1//! A Dart package is described by `pubspec.yaml`. The package `name` is whatCOMMENT
LOWcrates/prek/src/languages/mod.rs281// docker: only system version, support env, no additional depsCOMMENT
LOWcrates/prek/src/languages/deno/deno.rs21}COMMENT
LOWcrates/prek/src/languages/deno/deno.rs101 //COMMENT
19 more matches not shown…
Redundant / Tautological Comments18 hits · 27 pts
SeverityFileLineSnippetContext
LOWcrates/prek/tests/install.rs34 # Check if the full path to prek is executable, otherwise fallback to PATHCOMMENT
LOWcrates/prek/tests/install.rs64 # Check if the full path to prek is executable, otherwise fallback to PATHCOMMENT
LOWcrates/prek/tests/install.rs85 # Check if the full path to prek is executable, otherwise fallback to PATHCOMMENT
LOWcrates/prek/tests/install.rs114 # Check if the full path to prek is executable, otherwise fallback to PATHCOMMENT
LOWcrates/prek/tests/install.rs129 # Check if the full path to prek is executable, otherwise fallback to PATHCOMMENT
LOWcrates/prek/tests/install.rs196 # Check if the full path to prek is executable, otherwise fallback to PATHCOMMENT
LOWcrates/prek/tests/install.rs237 # Check if the full path to prek is executable, otherwise fallback to PATHCOMMENT
LOWcrates/prek/tests/install.rs590 # Check if the full path to prek is executable, otherwise fallback to PATHCOMMENT
LOWcrates/prek/tests/install.rs1184 # Check if the full path to prek is executable, otherwise fallback to PATHCOMMENT
LOWcrates/prek/tests/install.rs1213 # Check if the full path to prek is executable, otherwise fallback to PATHCOMMENT
LOWcrates/prek/tests/install.rs1239 # Check if the full path to prek is executable, otherwise fallback to PATHCOMMENT
LOWcrates/prek/tests/install.rs1273 # Check if the full path to prek is executable, otherwise fallback to PATHCOMMENT
LOWcrates/prek/tests/install.rs1363 # Check if the full path to prek is executable, otherwise fallback to PATHCOMMENT
LOWcrates/prek/tests/install.rs1391 # Check if the full path to prek is executable, otherwise fallback to PATHCOMMENT
LOWcrates/prek/tests/install.rs1417 # Check if the full path to prek is executable, otherwise fallback to PATHCOMMENT
LOWcrates/prek/tests/install.rs1455 # Check if the full path to prek is executable, otherwise fallback to PATHCOMMENT
LOWcrates/prek/tests/install.rs1654 # Check if the full path to prek is executable, otherwise fallback to PATHCOMMENT
LOWcrates/prek/src/cli/install.rs379# Check if the full path to prek is executable, otherwise fallback to PATHCOMMENT
Self-Referential Comments5 hits · 15 pts
SeverityFileLineSnippetContext
MEDIUMcrates/prek/tests/languages/rust.rs462 # This file is automatically @generated by Cargo.COMMENT
MEDIUMscripts/hyperfine-setup-test-env.sh6# Create a clean test directory with files to run builtin hooks againstCOMMENT
MEDIUMscripts/hyperfine-setup-test-env.sh69# Create a config that uses all builtin hooksCOMMENT
MEDIUM.github/workflows/release.yml271 # Create a GitHub Release while uploading all files to itCOMMENT
MEDIUM.github/workflows/release.yml295 # Create a GitHub Release while uploading all files to itCOMMENT
Unused Imports8 hits · 8 pts
SeverityFileLineSnippetContext
LOWcrates/prek/src/languages/pygrep/script.py1CODE
LOWscripts/build-npm-packages.py5CODE
LOWscripts/update-macports-portfile.py5CODE
LOWscripts/update-schemastore-schema.py5CODE
LOWscripts/check-release-artifact-sboms.py7CODE
LOWscripts/generate-ci-matrix.py5CODE
LOWscripts/pgo/workloads.py3CODE
LOWscripts/pgo/train.py8CODE
Synthetic Comment Markers1 hit · 8 pts
SeverityFileLineSnippetContext
HIGHdist-workspace.toml14# Whether CI should include auto-generated code to build local artifactsCOMMENT
Cross-Language Confusion2 hits · 8 pts
SeverityFileLineSnippetContext
HIGHscripts/pgo/workloads.py158 ("json", f'{{"index": {i}, "items": [true, null, "text"]}}\n'),STRING
HIGHscripts/pgo/train.py36 small.write("invalid.json", '{"staged": [true, null, 42]}\n')CODE
Hyper-Verbose Identifiers7 hits · 6 pts
SeverityFileLineSnippetContext
LOWcrates/prek/src/languages/pygrep/script.py29def _process_filename_by_line(CODE
LOWcrates/prek/src/languages/pygrep/script.py44def _process_filename_at_once(CODE
LOWcrates/prek/src/languages/pygrep/script.py65def _process_filename_by_line_negated(CODE
LOWcrates/prek/src/languages/pygrep/script.py76def _process_filename_at_once_negated(CODE
LOWscripts/update-macports-portfile.py218def create_macports_pull_request(version: str, portfile_text: str) -> str:STRING
LOWscripts/update-schemastore-schema.py140def create_schemastore_pull_request(version: str, schema: str) -> str | None:CODE
LOWscripts/generate-ci-matrix.py117def generate_language_test_matrix(group_size: int) -> dict[str, list[dict[str, str | int]]]:CODE
Excessive Try-Catch Wrapping4 hits · 4 pts
SeverityFileLineSnippetContext
LOWcrates/prek/src/languages/pygrep/script.py25 except Exception as e:CODE
LOWcrates/prek/src/languages/pygrep/script.py144 except Exception as e:CODE
LOWscripts/build-npm-packages.py381 except Exception as exc:CODE
LOWscripts/update-macports-portfile.py335 except Exception as exc:STRING
Fake / Example Data2 hits · 2 pts
SeverityFileLineSnippetContext
LOWcrates/prek/tests/languages/node.rs454 user_npmrc.write_str("//registry.example.test/:_authToken=fake-token\n")?;CODE
LOWcrates/prek/src/cli/update/repository.rs455 .args(["config", "user.email", "test@test.com"])CODE
Verbosity Indicators1 hit · 2 pts
SeverityFileLineSnippetContext
LOWcrates/prek/tests/languages/ruby.rs805 // Step 2: Re-run with a looser version match that should reuse theCOMMENT
Structural Annotation Overuse1 hit · 2 pts
SeverityFileLineSnippetContext
LOWcrates/prek/tests/languages/ruby.rs805 // Step 2: Re-run with a looser version match that should reuse theCOMMENT
Deep Nesting1 hit · 1 pts
SeverityFileLineSnippetContext
LOWscripts/check-release-artifact-sboms.py18CODE