⚡ A fast Git hook manager written in Rust, designed as a drop-in alternative to pre-commit, reimagined.
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.
Use each vector to guide manual verification of the underlying findings.
Payload schema: 1.0.0 · Engine: 2.0.0 · Scoring: heuristic-density-v1 · Scan date: 2026-10-31.
Can maintainers explain intent, assumptions, and trade-offs? 113 finding(s).
Are imports declared and package/API names verified? 12 finding(s).
Are wrappers, guards, and repeated structures necessary? 11 finding(s).
Which changes need focused human review? 129 finding(s).
This chart tracks the legacy adjusted pattern score across scan runs. Changes can reflect source changes, scan coverage, or detector/scoring versions; they do not measure AI adoption or prove that a team refactored code. Compare runs only when their scoring versions are compatible. The dashed line tracks the raw pattern-hit count.
Groups findings by configured severity weight. Severity is not a confidence estimate, security rating, or proof that a package is missing. Verify imports against the project's manifests and inspect each finding in its local design context.
This horizontal bar chart shows where configured pattern scores accumulate across directories. Treat the bars as locations to inspect, not as evidence of authorship or code quality. Use the file-level findings to decide whether a directory needs a focused ownership, dependency, complexity, or review check.
The scanner identified 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.
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | crates/prek-ignore/src/gitignore.rs | 61 | } | COMMENT |
| LOW | crates/prek-ignore/src/walk.rs | 21 | COMMENT | |
| LOW | crates/prek/tests/run/git.rs | 1061 | } | COMMENT |
| LOW | crates/prek/src/concurrency.rs | 61 | COMMENT | |
| LOW | crates/prek/src/warnings.rs | 1 | // MIT License | COMMENT |
| LOW | crates/prek/src/terminal.rs | 1 | //! Terminal capability setup, progress rendering, and output sanitization. | COMMENT |
| LOW | crates/prek/src/printer.rs | 1 | // MIT License | COMMENT |
| LOW | crates/prek/src/fs.rs | 1 | // MIT License | COMMENT |
| LOW | crates/prek/src/process.rs | 1 | // Copyright (c) 2023 Axo Developer Co. | COMMENT |
| LOW | crates/prek/src/process.rs | 61 | } | COMMENT |
| LOW | crates/prek/src/process.rs | 221 | } | COMMENT |
| LOW | crates/prek/src/resource_limit.rs | 1 | // MIT License | COMMENT |
| LOW | crates/prek/src/resource_limit.rs | 21 | //! Helper for adjusting Unix resource limits. | COMMENT |
| LOW | crates/prek/src/resource_limit.rs | 61 | /// 1. Some code breaks if `RLIMIT_NOFILE` exceeds `i32::MAX` (despite the type being `u64`) | COMMENT |
| LOW | crates/prek/src/archive.rs | 1 | // MIT License | COMMENT |
| LOW | crates/prek/src/config/hook.rs | 481 | /// Default is `[file]`, which matches all files. | COMMENT |
| LOW | crates/prek/src/config/hook.rs | 501 | /// Append filenames that would be checked to the hook entry as arguments. | COMMENT |
| LOW | crates/prek/src/config/hook.rs | 701 | pub(crate) struct Manifest { | COMMENT |
| LOW | crates/prek/src/config/hook.rs | 801 | /// It's the same as the manifest hook definition but with only a few predefined id allowed. | COMMENT |
| LOW | crates/prek/src/config/hook.rs | 881 | Ok(meta_hook) | COMMENT |
| LOW | crates/prek/src/config/mod.rs | 61 | pub priorities: BTreeMap<PriorityAlias, u32>, | COMMENT |
| LOW | crates/prek/src/cli/self_update.rs | 1 | // MIT License | COMMENT |
| LOW | crates/prek/src/cli/mod.rs | 201 | COMMENT | |
| LOW | crates/prek/src/cli/mod.rs | 241 | /// Create a prek configuration and install Git hook shims. | COMMENT |
| LOW | crates/prek/src/cli/mod.rs | 261 | /// Run configured hooks. | COMMENT |
| LOW | crates/prek/src/cli/mod.rs | 281 | /// Validate prek configuration files. | COMMENT |
| LOW | crates/prek/src/cli/mod.rs | 301 | InitTemplateDir(InitTemplateDirArgs), | COMMENT |
| LOW | crates/prek/src/cli/mod.rs | 361 | #[derive(Debug, Args)] | COMMENT |
| LOW | crates/prek/src/cli/mod.rs | 381 | /// Skip the specified hooks or projects. | COMMENT |
| LOW | crates/prek/src/cli/mod.rs | 401 | COMMENT | |
| LOW | crates/prek/src/cli/mod.rs | 441 | /// | COMMENT |
| LOW | crates/prek/src/cli/mod.rs | 461 | /// | COMMENT |
| LOW | crates/prek/src/cli/mod.rs | 481 | COMMENT | |
| LOW | crates/prek/src/cli/mod.rs | 541 | pub(crate) all_files: bool, | COMMENT |
| LOW | crates/prek/src/cli/mod.rs | 641 | } | COMMENT |
| LOW | crates/prek/src/cli/mod.rs | 661 | display_order = 0, | COMMENT |
| LOW | crates/prek/src/cli/mod.rs | 721 | COMMENT | |
| LOW | crates/prek/src/cli/mod.rs | 741 | /// ignored. | COMMENT |
| LOW | crates/prek/src/cli/mod.rs | 761 | /// When combined with `--group`, it must also match at least one `--group`. | COMMENT |
| LOW | crates/prek/src/cli/mod.rs | 841 | /// Supports flexible selector syntax: | COMMENT |
| LOW | crates/prek/src/cli/mod.rs | 861 | /// - `hook-id`: Skip all hooks with the specified ID across all projects | COMMENT |
| LOW | crates/prek/src/cli/mod.rs | 881 | #[arg(long = "require-group", value_name = "GROUP")] | COMMENT |
| LOW | crates/prek/src/cli/mod.rs | 981 | #[arg( | COMMENT |
| LOW | crates/prek/src/cli/mod.rs | 1001 | /// `--exclude-tag '*-{alpha,beta,rc}*'` to skip common prerelease tags. | COMMENT |
| LOW | crates/prek/src/cli/mod.rs | 1021 | /// | COMMENT |
| LOW | crates/prek/src/cli/mod.rs | 1081 | /// | COMMENT |
| LOW | crates/prek/src/cli/mod.rs | 1101 | /// | COMMENT |
| LOW | crates/prek/src/cli/mod.rs | 1141 | /// Convert a YAML configuration file to prek.toml. | COMMENT |
| LOW | crates/prek/src/cli/mod.rs | 1241 | } | COMMENT |
| LOW | crates/prek/src/cli/install.rs | 41 | // `git config core.hooksPath` resolves to a non-empty value. It does not | COMMENT |
| LOW | crates/prek/src/cli/update/repository.rs | 61 | /// | COMMENT |
| LOW | crates/prek/src/cli/run/selector.rs | 781 | /// 'project/sub/' -> 'project/sub' | COMMENT |
| LOW | crates/prek/src/cli/run/reporter.rs | 1 | //! Progress UI for concurrent hook execution. | COMMENT |
| LOW | crates/prek/src/cli/run/reporter.rs | 21 | //! | COMMENT |
| LOW | crates/prek/src/cli/run/reporter.rs | 41 | //! later collapse hides one more row and reuses the existing summary. | COMMENT |
| LOW | crates/prek/src/cli/run/reporter.rs | 81 | /// `HOOK_OUTPUT_PREVIEW_LINES` preview lines inserted directly below it. | COMMENT |
| LOW | crates/prek/src/languages/dart.rs | 1 | //! A Dart package is described by `pubspec.yaml`. The package `name` is what | COMMENT |
| LOW | crates/prek/src/languages/mod.rs | 281 | // docker: only system version, support env, no additional deps | COMMENT |
| LOW | crates/prek/src/languages/deno/deno.rs | 21 | } | COMMENT |
| LOW | crates/prek/src/languages/deno/deno.rs | 101 | // | COMMENT |
| 19 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | crates/prek/tests/install.rs | 34 | # Check if the full path to prek is executable, otherwise fallback to PATH | COMMENT |
| LOW | crates/prek/tests/install.rs | 64 | # Check if the full path to prek is executable, otherwise fallback to PATH | COMMENT |
| LOW | crates/prek/tests/install.rs | 85 | # Check if the full path to prek is executable, otherwise fallback to PATH | COMMENT |
| LOW | crates/prek/tests/install.rs | 114 | # Check if the full path to prek is executable, otherwise fallback to PATH | COMMENT |
| LOW | crates/prek/tests/install.rs | 129 | # Check if the full path to prek is executable, otherwise fallback to PATH | COMMENT |
| LOW | crates/prek/tests/install.rs | 196 | # Check if the full path to prek is executable, otherwise fallback to PATH | COMMENT |
| LOW | crates/prek/tests/install.rs | 237 | # Check if the full path to prek is executable, otherwise fallback to PATH | COMMENT |
| LOW | crates/prek/tests/install.rs | 590 | # Check if the full path to prek is executable, otherwise fallback to PATH | COMMENT |
| LOW | crates/prek/tests/install.rs | 1184 | # Check if the full path to prek is executable, otherwise fallback to PATH | COMMENT |
| LOW | crates/prek/tests/install.rs | 1213 | # Check if the full path to prek is executable, otherwise fallback to PATH | COMMENT |
| LOW | crates/prek/tests/install.rs | 1239 | # Check if the full path to prek is executable, otherwise fallback to PATH | COMMENT |
| LOW | crates/prek/tests/install.rs | 1273 | # Check if the full path to prek is executable, otherwise fallback to PATH | COMMENT |
| LOW | crates/prek/tests/install.rs | 1363 | # Check if the full path to prek is executable, otherwise fallback to PATH | COMMENT |
| LOW | crates/prek/tests/install.rs | 1391 | # Check if the full path to prek is executable, otherwise fallback to PATH | COMMENT |
| LOW | crates/prek/tests/install.rs | 1417 | # Check if the full path to prek is executable, otherwise fallback to PATH | COMMENT |
| LOW | crates/prek/tests/install.rs | 1455 | # Check if the full path to prek is executable, otherwise fallback to PATH | COMMENT |
| LOW | crates/prek/tests/install.rs | 1654 | # Check if the full path to prek is executable, otherwise fallback to PATH | COMMENT |
| LOW | crates/prek/src/cli/install.rs | 379 | # Check if the full path to prek is executable, otherwise fallback to PATH | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | crates/prek/tests/languages/rust.rs | 462 | # This file is automatically @generated by Cargo. | COMMENT |
| MEDIUM | scripts/hyperfine-setup-test-env.sh | 6 | # Create a clean test directory with files to run builtin hooks against | COMMENT |
| MEDIUM | scripts/hyperfine-setup-test-env.sh | 69 | # Create a config that uses all builtin hooks | COMMENT |
| MEDIUM | .github/workflows/release.yml | 271 | # Create a GitHub Release while uploading all files to it | COMMENT |
| MEDIUM | .github/workflows/release.yml | 295 | # Create a GitHub Release while uploading all files to it | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | crates/prek/src/languages/pygrep/script.py | 1 | CODE | |
| LOW | scripts/build-npm-packages.py | 5 | CODE | |
| LOW | scripts/update-macports-portfile.py | 5 | CODE | |
| LOW | scripts/update-schemastore-schema.py | 5 | CODE | |
| LOW | scripts/check-release-artifact-sboms.py | 7 | CODE | |
| LOW | scripts/generate-ci-matrix.py | 5 | CODE | |
| LOW | scripts/pgo/workloads.py | 3 | CODE | |
| LOW | scripts/pgo/train.py | 8 | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | dist-workspace.toml | 14 | # Whether CI should include auto-generated code to build local artifacts | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | scripts/pgo/workloads.py | 158 | ("json", f'{{"index": {i}, "items": [true, null, "text"]}}\n'), | STRING |
| HIGH | scripts/pgo/train.py | 36 | small.write("invalid.json", '{"staged": [true, null, 42]}\n') | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | crates/prek/src/languages/pygrep/script.py | 29 | def _process_filename_by_line( | CODE |
| LOW | crates/prek/src/languages/pygrep/script.py | 44 | def _process_filename_at_once( | CODE |
| LOW | crates/prek/src/languages/pygrep/script.py | 65 | def _process_filename_by_line_negated( | CODE |
| LOW | crates/prek/src/languages/pygrep/script.py | 76 | def _process_filename_at_once_negated( | CODE |
| LOW | scripts/update-macports-portfile.py | 218 | def create_macports_pull_request(version: str, portfile_text: str) -> str: | STRING |
| LOW | scripts/update-schemastore-schema.py | 140 | def create_schemastore_pull_request(version: str, schema: str) -> str | None: | CODE |
| LOW | scripts/generate-ci-matrix.py | 117 | def generate_language_test_matrix(group_size: int) -> dict[str, list[dict[str, str | int]]]: | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | crates/prek/src/languages/pygrep/script.py | 25 | except Exception as e: | CODE |
| LOW | crates/prek/src/languages/pygrep/script.py | 144 | except Exception as e: | CODE |
| LOW | scripts/build-npm-packages.py | 381 | except Exception as exc: | CODE |
| LOW | scripts/update-macports-portfile.py | 335 | except Exception as exc: | STRING |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | crates/prek/tests/languages/node.rs | 454 | user_npmrc.write_str("//registry.example.test/:_authToken=fake-token\n")?; | CODE |
| LOW | crates/prek/src/cli/update/repository.rs | 455 | .args(["config", "user.email", "test@test.com"]) | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | crates/prek/tests/languages/ruby.rs | 805 | // Step 2: Re-run with a looser version match that should reuse the | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | crates/prek/tests/languages/ruby.rs | 805 | // Step 2: Re-run with a looser version match that should reuse the | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | scripts/check-release-artifact-sboms.py | 18 | CODE |