Executive summary
Preview (pre-1.0). This repo hasn't declared a stable release, so it's judged against a relaxed, pre-production bar.
The system holds a strong overall standing with a 74% health score, indicating a well-engineered asset that is largely stable and maintainable. However, this confidence masks a critical operational vulnerability in its production readiness, which sits at 64%. While the codebase is robust, the gap between development quality and operational safety creates a tangible risk to business continuity and incident response speed.
The value at stake is significant, with nearly 50,000 lines of production code representing a medium-sized asset. Rebuilding this logic from scratch would require approximately 0.7 person-years, costing around €110,000, which underscores the importance of preserving and protecting the existing investment. The code is highly structured, with no boilerplate or straight-line logic, suggesting a mature architectural foundation that supports complex business rules effectively.
The primary risk lies in operational fragility. Despite strong code health and architecture, the low readiness score means the system lacks the observability and disaster recovery protocols needed for safe, continuous operation. Without tested restore procedures and comprehensive logging, a failure could lead to extended outages and significant revenue loss, as teams would struggle to diagnose issues quickly in production. This is not a code quality issue but an operational exposure that threatens reliability.
Conversely, the system demonstrates genuine strength in its architectural integrity. The high scores in code health, architecture, and domain modeling indicate that the software is clean, well-structured, and easy for new teams to understand. This reduces long-term maintenance costs and accelerates feature delivery, provided the operational gaps are addressed. The high performance and domain modeling scores further confirm that the core logic is sound and efficient.
To maximize leverage, the immediate focus must be on dependency management. Enabling automated dependency updates or a review gate is the highest-return action, as it mitigates security risks and reduces technical debt with minimal effort. This should be followed by documenting recovery procedures and extending logging. While some areas like event sourcing were not measured, the current picture is sufficient to prioritize these critical operational improvements.
Raise Readiness 64 → 70 (the Healthy floor) ⇒ headline 74 → ~77.
New since the last scan (18+)
- D1 · prek::hooks::pre_commit_hooks::check_merge_conflict::check_file (cyclomatic 20) crates/prek/src/hooks/pre_commit_hooks/check_merge_conflict.rs
- D2 · prek::hooks::pre_commit_hooks::check_merge_conflict::check_file (cognitive 35) crates/prek/src/hooks/pre_commit_hooks/check_merge_conflict.rs
- D4 · Members sharing a duplicated core (6 members, 50+ identical tokens) crates/prek/src/languages/bun/installer.rs
- D4 · Members sharing a duplicated core (4 members, 50+ identical tokens) crates/prek/src/languages/docker.rs
- D4 · Duplicated block (9–10 lines × 2) crates/prek/src/hooks/pre_commit_hooks/check_json.rs
- D4 · Duplicated block (10 lines × 4) crates/prek/src/hooks/pre_commit_hooks/check_json.rs
- D4 · Duplicated block (10 lines × 3) crates/prek/src/hooks/pre_commit_hooks/fix_byte_order_marker.rs
- D4 · Duplicated block (8 lines × 4) crates/prek/src/languages/bun/installer.rs
- D4 · Duplicated block (6 lines × 2) crates/prek/src/languages/bun/installer.rs
- D4 · Duplicated block (18 lines × 2) scripts/update-macports-portfile.py
- D4 · Duplicated block (9 lines × 2) scripts/update-macports-portfile.py
- D5 · Off the main sequence: prek-identify
- D5 · Off the main sequence: prek-pty
- D15 · Hotspot: crates/prek/src/hooks/pre_commit_hooks/check_merge_conflict.rs crates/prek/src/hooks/pre_commit_hooks/check_merge_conflict.rs
- D17 · TodoComment crates/prek/src/cli/run/filter.rs
- D17 · TodoComment crates/prek/src/languages/node/installer.rs
- D22 · Redundant method exposure across split types. `Pty` splits into `ReadPty` and `WritePty`. Since resizing a PTY is a property of the underlying file descriptor (shared by both ends), exposing `resize` on `WritePty` and `OwnedWritePty` is redundant if `Pty` already exposes it. Furthermore, `OwnedWritePty` duplicates the functionality of `WritePty` (which is likely a reference-counted or borrowed view), creating API surface bloat where `WritePty.resize` should suffice for both owned and borrowed contexts, or `Pty.resize` should be the canonical entry point.
- D30 · REDACTED
Rebuild cost & value ~ Modeled — €36,000–€180,000
| Cost to rebuild | €36,000–€180,000 |
|---|---|
| Domain complexity | Standard |
| Quality factor | 1.1× (at 74% quality) |
| Size & shape | Medium · effort split not classified (source measured from disk; the effort-tier breakdown is a C#-only syntax walk) |
This codebase represents roughly ~0.7 person-years of build effort (about ~€110,000 to rebuild). Its weakest lens is Readiness at 64% — the part of that asset most exposed by the findings below.
Top priorities
Diagnosis — what's actually going on
Architecture — module dependency graph
Architecture — module dependency matrix
| depends on → | 1 config.pattern | 2 printer | 3 cli | 4 cli.run.selector | 5 config.repo | 6 git | 7 process | 8 store | 9 workspace | 10 cli.run.reporter | 11 languages | 12 config.hook | 13 cli.install | 14 cli.list | 15 cli.try_repo | 16 config | 17 languages.version | 18 hook | 19 settings | 20 cli.cache_gc | 21 cli.reporter | 22 cli.run.filter | 23 cli.update | 24 hooks | 25 hooks.builtin_hooks | 26 cli.run.install | 27 cli.run.run | 28 hooks.meta_hooks | 29 languages.docker | 30 languages.docker_image | 31 languages.fail | 32 languages.julia | 33 languages.node.node | 34 languages.php | 35 languages.pygrep.pygrep | 36 languages.r | 37 languages.rust.rust | 38 archive | 39 languages.python.uv | 40 languages.python.python |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 1 config.pattern | ||||||||||||||||||||||||||||||||||||||||
| 2 printer | ||||||||||||||||||||||||||||||||||||||||
| 3 cli | 8 | 1 | ||||||||||||||||||||||||||||||||||||||
| 4 cli.run.selector | 3 | |||||||||||||||||||||||||||||||||||||||
| 5 config.repo | 9 | |||||||||||||||||||||||||||||||||||||||
| 6 git | 1 | 1 | ||||||||||||||||||||||||||||||||||||||
| 7 process | 4 | 1 | 1 | |||||||||||||||||||||||||||||||||||||
| 8 store | 2 | 1 | ||||||||||||||||||||||||||||||||||||||
| 9 workspace | 4 | 3 | 4 | 1 | ||||||||||||||||||||||||||||||||||||
| 10 cli.run.reporter | 1 | 1 | 1 | 4 | 2 | 1 | ||||||||||||||||||||||||||||||||||
| 11 languages | 1 | 1 | 1 | 5 | 1 | |||||||||||||||||||||||||||||||||||
| 12 config.hook | 2 | 1 | 1 | 1 | 3 | 1 | ||||||||||||||||||||||||||||||||||
| 13 cli.install | 1 | 1 | 1 | 1 | 1 | |||||||||||||||||||||||||||||||||||
| 14 cli.list | 1 | 1 | 1 | 4 | ||||||||||||||||||||||||||||||||||||
| 15 cli.try_repo | 1 | 1 | 1 | 1 | ||||||||||||||||||||||||||||||||||||
| 16 config | 1 | 1 | 2 | |||||||||||||||||||||||||||||||||||||
| 17 languages.version | 5 | 3 | ||||||||||||||||||||||||||||||||||||||
| 18 hook | 1 | 2 | 1 | 1 | 14 | 2 | 3 | 1 | ||||||||||||||||||||||||||||||||
| 19 settings | 1 | |||||||||||||||||||||||||||||||||||||||
| 20 cli.cache_gc | 1 | 2 | 1 | 2 | ||||||||||||||||||||||||||||||||||||
| 21 cli.reporter | 5 | 1 | ||||||||||||||||||||||||||||||||||||||
| 22 cli.run.filter | 1 | 1 | 1 | 2 | 2 | 2 | ||||||||||||||||||||||||||||||||||
| 23 cli.update | 1 | 1 | 1 | 1 | 7 | 3 | ||||||||||||||||||||||||||||||||||
| 24 hooks | 1 | 1 | 1 | |||||||||||||||||||||||||||||||||||||
| 25 hooks.builtin_hooks | 1 | 1 | 1 | 1 | ||||||||||||||||||||||||||||||||||||
| 26 cli.run.install | 2 | 1 | 4 | 1 | ||||||||||||||||||||||||||||||||||||
| 27 cli.run.run | 3 | 2 | 1 | 2 | 6 | 2 | 1 | 1 | 3 | 1 | 9 | 1 | ||||||||||||||||||||||||||||
| 28 hooks.meta_hooks | 1 | 2 | 1 | 2 | 1 | |||||||||||||||||||||||||||||||||||
| 29 languages.docker | 1 | 1 | 1 | 1 | 3 | 1 | ||||||||||||||||||||||||||||||||||
| 30 languages.docker_image | 1 | 1 | 1 | 3 | 1 | |||||||||||||||||||||||||||||||||||
| 31 languages.fail | 1 | 1 | 1 | 3 | 1 | |||||||||||||||||||||||||||||||||||
| 32 languages.julia | 1 | 1 | 1 | 3 | 1 | |||||||||||||||||||||||||||||||||||
| 33 languages.node.node | 1 | 1 | 1 | 4 | 1 | |||||||||||||||||||||||||||||||||||
| 34 languages.php | 1 | 1 | 1 | 3 | 1 | |||||||||||||||||||||||||||||||||||
| 35 languages.pygrep.pygrep | 1 | 1 | 1 | 3 | 1 | |||||||||||||||||||||||||||||||||||
| 36 languages.r | 1 | 2 | 4 | 1 | ||||||||||||||||||||||||||||||||||||
| 37 languages.rust.rust | 1 | 1 | 1 | 4 | 1 | |||||||||||||||||||||||||||||||||||
| 38 archive | 1 | |||||||||||||||||||||||||||||||||||||||
| 39 languages.python.uv | 1 | 2 | 1 | |||||||||||||||||||||||||||||||||||||
| 40 languages.python.python | 1 | 1 | 1 | 2 | 3 | 1 | 1 | 1 |
3→12 cli depends on config.hook cycle✕
- Type pairs
- 8 distinct (type in cli → type in config.hook) references.
- Which types
prek.cli.HookImplArgs→prek.config.hook.HookTypeprek.cli.InitTemplateDirArgs→prek.config.hook.HookTypeprek.cli.InstallArgs→prek.config.hook.HookTypeprek.cli.ListArgs→prek.config.hook.Languageprek.cli.ListArgs→prek.config.hook.Stageprek.cli.RunArgs→prek.config.hook.Stageprek.cli.TryRepoArgs→prek.config.hook.Stageprek.cli.UninstallArgs→prek.config.hook.HookType
- Direction
- cli uses config.hook. Changing config.hook can break cli, not the reverse.
- Position
- Above the diagonal — a cycle. Neither module can be changed, tested or deployed independently until one of these dependencies goes.
3→16 cli depends on config cycle✕
- Type pairs
- 1 distinct (type in cli → type in config) reference.
- Which types
prek.cli.RunOptions→prek.config.HideStatus
- Direction
- cli uses config. Changing config can break cli, not the reverse.
- Position
- Above the diagonal — a cycle. Neither module can be changed, tested or deployed independently until one of these dependencies goes.
4→18 cli.run.selector depends on hook cycle✕
- Type pairs
- 3 distinct (type in cli.run.selector → type in hook) references.
- Which types
prek.cli.run.selector.GroupFilters→prek.hook.Hookprek.cli.run.selector.Selector→prek.hook.Hookprek.cli.run.selector.Selectors→prek.hook.Hook
- Direction
- cli.run.selector uses hook. Changing hook can break cli.run.selector, not the reverse.
- Position
- Above the diagonal — a cycle. Neither module can be changed, tested or deployed independently until one of these dependencies goes.
5→12 config.repo depends on config.hook cycle✕
- Type pairs
- 9 distinct (type in config.repo → type in config.hook) references.
- Which types
prek.config.repo.BuiltinRepo→prek.config.hook.BuiltinHookprek.config.repo.HookConfigRef→prek.config.hook.BuiltinHookprek.config.repo.HookConfigRef→prek.config.hook.HookOptionsprek.config.repo.HookConfigRef→prek.config.hook.LocalHookprek.config.repo.HookConfigRef→prek.config.hook.MetaHookprek.config.repo.HookConfigRef→prek.config.hook.RemoteHookprek.config.repo.LocalRepo→prek.config.hook.LocalHookprek.config.repo.MetaRepo→prek.config.hook.MetaHookprek.config.repo.RemoteRepo→prek.config.hook.RemoteHook
- Direction
- config.repo uses config.hook. Changing config.hook can break config.repo, not the reverse.
- Position
- Above the diagonal — a cycle. Neither module can be changed, tested or deployed independently until one of these dependencies goes.
6→3 git depends on cli✕
- Type pairs
- 1 distinct (type in git → type in cli) reference.
- Which types
prek.git.git$module→prek.cli.Command
- Direction
- git uses cli. Changing cli can break git, not the reverse.
- Position
- Below the diagonal — points down the layering, which is what you want.
6→38 git depends on archive cycle✕
- Type pairs
- 1 distinct (type in git → type in archive) reference.
- Which types
prek.git.git$module→prek.archive.Error
- Direction
- git uses archive. Changing archive can break git, not the reverse.
- Position
- Above the diagonal — a cycle. Neither module can be changed, tested or deployed independently until one of these dependencies goes.
7→3 process depends on cli✕
- Type pairs
- 4 distinct (type in process → type in cli) references.
- Which types
prek.process.Cmd→prek.cli.Commandprek.process.Cmd→prek.cli.ExitStatusprek.process.MergedOutput→prek.cli.ExitStatusprek.process.StatusError→prek.cli.ExitStatus
- Direction
- process uses cli. Changing cli can break process, not the reverse.
- Position
- Below the diagonal — points down the layering, which is what you want.
7→6 process depends on git✕
- Type pairs
- 1 distinct (type in process → type in git) reference.
- Which types
prek.process.Cmd→prek.git.GitCommandExt
- Direction
- process uses git. Changing git can break process, not the reverse.
- Position
- Below the diagonal — points down the layering, which is what you want.
7→38 process depends on archive cycle✕
- Type pairs
- 1 distinct (type in process → type in archive) reference.
- Which types
prek.process.Cmd→prek.archive.Error
- Direction
- process uses archive. Changing archive can break process, not the reverse.
- Position
- Above the diagonal — a cycle. Neither module can be changed, tested or deployed independently until one of these dependencies goes.
8→5 store depends on config.repo✕
- Type pairs
- 2 distinct (type in store → type in config.repo) references.
- Which types
prek.store.PendingClone→prek.config.repo.RemoteRepoprek.store.Store→prek.config.repo.RemoteRepo
- Direction
- store uses config.repo. Changing config.repo can break store, not the reverse.
- Position
- Below the diagonal — points down the layering, which is what you want.
8→6 store depends on git✕
- Type pairs
- 1 distinct (type in store → type in git) reference.
- Which types
prek.store.Store→prek.git.TerminalPrompt
- Direction
- store uses git. Changing git can break store, not the reverse.
- Position
- Below the diagonal — points down the layering, which is what you want.
9→4 workspace depends on cli.run.selector✕
- Type pairs
- 4 distinct (type in workspace → type in cli.run.selector) references.
- Which types
prek.workspace.HookInitFilters→prek.cli.run.selector.ConfiguredHookprek.workspace.HookInitFilters→prek.cli.run.selector.GroupFiltersprek.workspace.HookInitFilters→prek.cli.run.selector.Selectorsprek.workspace.Workspace→prek.cli.run.selector.Selectors
- Direction
- workspace uses cli.run.selector. Changing cli.run.selector can break workspace, not the reverse.
- Position
- Below the diagonal — points down the layering, which is what you want.
9→5 workspace depends on config.repo✕
- Type pairs
- 3 distinct (type in workspace → type in config.repo) references.
- Which types
prek.workspace.HookInitFilters→prek.config.repo.RemoteRepoprek.workspace.ProjectInitPlan→prek.config.repo.Repoprek.workspace.workspace$module→prek.config.repo.RemoteRepo
- Direction
- workspace uses config.repo. Changing config.repo can break workspace, not the reverse.
- Position
- Below the diagonal — points down the layering, which is what you want.
9→8 workspace depends on store✕
- Type pairs
- 4 distinct (type in workspace → type in store) references.
- Which types
prek.workspace.Project→prek.store.Storeprek.workspace.Workspace→prek.store.Storeprek.workspace.WorkspaceCache→prek.store.Storeprek.workspace.workspace$module→prek.store.Store
- Direction
- workspace uses store. Changing store can break workspace, not the reverse.
- Position
- Below the diagonal — points down the layering, which is what you want.
9→16 workspace depends on config cycle✕
- Type pairs
- 1 distinct (type in workspace → type in config) reference.
- Which types
prek.workspace.Project→prek.config.Config
- Direction
- workspace uses config. Changing config can break workspace, not the reverse.
- Position
- Above the diagonal — a cycle. Neither module can be changed, tested or deployed independently until one of these dependencies goes.
10→2 cli.run.reporter depends on printer✕
- Type pairs
- 1 distinct (type in cli.run.reporter → type in printer) reference.
- Which types
prek.cli.run.reporter.HookRunReporter→prek.printer.Printer
- Direction
- cli.run.reporter uses printer. Changing printer can break cli.run.reporter, not the reverse.
- Position
- Below the diagonal — points down the layering, which is what you want.
10→7 cli.run.reporter depends on process✕
- Type pairs
- 1 distinct (type in cli.run.reporter → type in process) reference.
- Which types
prek.cli.run.reporter.HookOutputSink→prek.process.OutputSink
- Direction
- cli.run.reporter uses process. Changing process can break cli.run.reporter, not the reverse.
- Position
- Below the diagonal — points down the layering, which is what you want.
10→9 cli.run.reporter depends on workspace✕
- Type pairs
- 1 distinct (type in cli.run.reporter → type in workspace) reference.
- Which types
prek.cli.run.reporter.HookRunReporter→prek.workspace.Project
- Direction
- cli.run.reporter uses workspace. Changing workspace can break cli.run.reporter, not the reverse.
- Position
- Below the diagonal — points down the layering, which is what you want.
10→18 cli.run.reporter depends on hook cycle✕
- Type pairs
- 4 distinct (type in cli.run.reporter → type in hook) references.
- Which types
prek.cli.run.reporter.CompletedBars→prek.hook.HookKeyprek.cli.run.reporter.HookBar→prek.hook.Hookprek.cli.run.reporter.HookBar→prek.hook.HookKeyprek.cli.run.reporter.HookRunReporter→prek.hook.Hook
- Direction
- cli.run.reporter uses hook. Changing hook can break cli.run.reporter, not the reverse.
- Position
- Above the diagonal — a cycle. Neither module can be changed, tested or deployed independently until one of these dependencies goes.
10→21 cli.run.reporter depends on cli.reporter cycle✕
- Type pairs
- 2 distinct (type in cli.run.reporter → type in cli.reporter) references.
- Which types
prek.cli.run.reporter.HookBar→prek.cli.reporter.ProgressReporterprek.cli.run.reporter.HookRunReporter→prek.cli.reporter.ProgressReporter
- Direction
- cli.run.reporter uses cli.reporter. Changing cli.reporter can break cli.run.reporter, not the reverse.
- Position
- Above the diagonal — a cycle. Neither module can be changed, tested or deployed independently until one of these dependencies goes.
10→36 cli.run.reporter depends on languages.r cycle✕
- Type pairs
- 1 distinct (type in cli.run.reporter → type in languages.r) reference.
- Which types
prek.cli.run.reporter.HookRunReporter→prek.languages.r.R
- Direction
- cli.run.reporter uses languages.r. Changing languages.r can break cli.run.reporter, not the reverse.
- Position
- Above the diagonal — a cycle. Neither module can be changed, tested or deployed independently until one of these dependencies goes.
11→7 languages depends on process✕
- Type pairs
- 1 distinct (type in languages → type in process) reference.
- Which types
prek.languages.EnvironmentPatch→prek.process.Cmd
- Direction
- languages uses process. Changing process can break languages, not the reverse.
- Position
- Below the diagonal — points down the layering, which is what you want.
11→8 languages depends on store✕
- Type pairs
- 1 distinct (type in languages → type in store) reference.
- Which types
prek.languages.LanguageBackend→prek.store.Store
- Direction
- languages uses store. Changing store can break languages, not the reverse.
- Position
- Below the diagonal — points down the layering, which is what you want.
11→10 languages depends on cli.run.reporter✕
- Type pairs
- 1 distinct (type in languages → type in cli.run.reporter) reference.
- Which types
prek.languages.LanguageBackend→prek.cli.run.reporter.HookRunReporter
- Direction
- languages uses cli.run.reporter. Changing cli.run.reporter can break languages, not the reverse.
- Position
- Below the diagonal — points down the layering, which is what you want.
11→18 languages depends on hook cycle✕
- Type pairs
- 5 distinct (type in languages → type in hook) references.
- Which types
prek.languages.ExecutionEnvironment→prek.hook.InstalledHookprek.languages.LanguageBackend→prek.hook.Hookprek.languages.LanguageBackend→prek.hook.InstallInfoprek.languages.LanguageBackend→prek.hook.InstalledHookprek.languages.languages$module→prek.hook.Hook
- Direction
- languages uses hook. Changing hook can break languages, not the reverse.
- Position
- Above the diagonal — a cycle. Neither module can be changed, tested or deployed independently until one of these dependencies goes.
11→21 languages depends on cli.reporter cycle✕
- Type pairs
- 1 distinct (type in languages → type in cli.reporter) reference.
- Which types
prek.languages.LanguageBackend→prek.cli.reporter.HookInstallReporter
- Direction
- languages uses cli.reporter. Changing cli.reporter can break languages, not the reverse.
- Position
- Above the diagonal — a cycle. Neither module can be changed, tested or deployed independently until one of these dependencies goes.
12→1 config.hook depends on config.pattern✕
- Type pairs
- 2 distinct (type in config.hook → type in config.pattern) references.
- Which types
prek.config.hook.HookOptions→prek.config.pattern.FilePatternprek.config.hook.HookWire→prek.config.pattern.FilePattern
- Direction
- config.hook uses config.pattern. Changing config.pattern can break config.hook, not the reverse.
- Position
- Below the diagonal — points down the layering, which is what you want.
12→8 config.hook depends on store✕
- Type pairs
- 1 distinct (type in config.hook → type in store) reference.
- Which types
prek.config.hook.Language→prek.store.Store
- Direction
- config.hook uses store. Changing store can break config.hook, not the reverse.
- Position
- Below the diagonal — points down the layering, which is what you want.
12→10 config.hook depends on cli.run.reporter✕
- Type pairs
- 1 distinct (type in config.hook → type in cli.run.reporter) reference.
- Which types
prek.config.hook.Language→prek.cli.run.reporter.HookRunReporter
- Direction
- config.hook uses cli.run.reporter. Changing cli.run.reporter can break config.hook, not the reverse.
- Position
- Below the diagonal — points down the layering, which is what you want.
12→11 config.hook depends on languages✕
- Type pairs
- 1 distinct (type in config.hook → type in languages) reference.
- Which types
prek.config.hook.Language→prek.languages.ShellSupport
- Direction
- config.hook uses languages. Changing languages can break config.hook, not the reverse.
- Position
- Below the diagonal — points down the layering, which is what you want.
12→18 config.hook depends on hook cycle✕
- Type pairs
- 3 distinct (type in config.hook → type in hook) references.
- Which types
prek.config.hook.Language→prek.hook.Hookprek.config.hook.Language→prek.hook.InstallInfoprek.config.hook.Language→prek.hook.InstalledHook
- Direction
- config.hook uses hook. Changing hook can break config.hook, not the reverse.
- Position
- Above the diagonal — a cycle. Neither module can be changed, tested or deployed independently until one of these dependencies goes.
12→21 config.hook depends on cli.reporter cycle✕
- Type pairs
- 1 distinct (type in config.hook → type in cli.reporter) reference.
- Which types
prek.config.hook.Language→prek.cli.reporter.HookInstallReporter
- Direction
- config.hook uses cli.reporter. Changing cli.reporter can break config.hook, not the reverse.
- Position
- Above the diagonal — a cycle. Neither module can be changed, tested or deployed independently until one of these dependencies goes.
13→2 cli.install depends on printer✕
- Type pairs
- 1 distinct (type in cli.install → type in printer) reference.
- Which types
prek.cli.install.install$module→prek.printer.Printer
- Direction
- cli.install uses printer. Changing printer can break cli.install, not the reverse.
- Position
- Below the diagonal — points down the layering, which is what you want.
13→4 cli.install depends on cli.run.selector✕
- Type pairs
- 1 distinct (type in cli.install → type in cli.run.selector) reference.
- Which types
prek.cli.install.install$module→prek.cli.run.selector.Selectors
- Direction
- cli.install uses cli.run.selector. Changing cli.run.selector can break cli.install, not the reverse.
- Position
- Below the diagonal — points down the layering, which is what you want.
13→8 cli.install depends on store✕
- Type pairs
- 1 distinct (type in cli.install → type in store) reference.
- Which types
prek.cli.install.install$module→prek.store.Store
- Direction
- cli.install uses store. Changing store can break cli.install, not the reverse.
- Position
- Below the diagonal — points down the layering, which is what you want.
13→9 cli.install depends on workspace✕
- Type pairs
- 1 distinct (type in cli.install → type in workspace) reference.
- Which types
prek.cli.install.install$module→prek.workspace.Project
- Direction
- cli.install uses workspace. Changing workspace can break cli.install, not the reverse.
- Position
- Below the diagonal — points down the layering, which is what you want.
13→12 cli.install depends on config.hook✕
- Type pairs
- 1 distinct (type in cli.install → type in config.hook) reference.
- Which types
prek.cli.install.install$module→prek.config.hook.HookType
- Direction
- cli.install uses config.hook. Changing config.hook can break cli.install, not the reverse.
- Position
- Below the diagonal — points down the layering, which is what you want.
14→2 cli.list depends on printer✕
- Type pairs
- 1 distinct (type in cli.list → type in printer) reference.
- Which types
prek.cli.list.list$module→prek.printer.Printer
- Direction
- cli.list uses printer. Changing printer can break cli.list, not the reverse.
- Position
- Below the diagonal — points down the layering, which is what you want.
14→3 cli.list depends on cli✕
- Type pairs
- 1 distinct (type in cli.list → type in cli) reference.
- Which types
prek.cli.list.list$module→prek.cli.ListOutputFormat
- Direction
- cli.list uses cli. Changing cli can break cli.list, not the reverse.
- Position
- Below the diagonal — points down the layering, which is what you want.
14→8 cli.list depends on store✕
- Type pairs
- 1 distinct (type in cli.list → type in store) reference.
- Which types
prek.cli.list.list$module→prek.store.Store
- Direction
- cli.list uses store. Changing store can break cli.list, not the reverse.
- Position
- Below the diagonal — points down the layering, which is what you want.
14→12 cli.list depends on config.hook✕
- Type pairs
- 4 distinct (type in cli.list → type in config.hook) references.
- Which types
prek.cli.list.SerializableHook→prek.config.hook.Languageprek.cli.list.SerializableHook→prek.config.hook.Stageprek.cli.list.list$module→prek.config.hook.Languageprek.cli.list.list$module→prek.config.hook.Stage
- Direction
- cli.list uses config.hook. Changing config.hook can break cli.list, not the reverse.
- Position
- Below the diagonal — points down the layering, which is what you want.
15→2 cli.try_repo depends on printer✕
- Type pairs
- 1 distinct (type in cli.try_repo → type in printer) reference.
- Which types
prek.cli.try_repo.try_repo$module→prek.printer.Printer
- Direction
- cli.try_repo uses printer. Changing printer can break cli.try_repo, not the reverse.
- Position
- Below the diagonal — points down the layering, which is what you want.
15→3 cli.try_repo depends on cli✕
- Type pairs
- 1 distinct (type in cli.try_repo → type in cli) reference.
- Which types
prek.cli.try_repo.try_repo$module→prek.cli.RunOptions
- Direction
- cli.try_repo uses cli. Changing cli can break cli.try_repo, not the reverse.
- Position
- Below the diagonal — points down the layering, which is what you want.
15→4 cli.try_repo depends on cli.run.selector✕
- Type pairs
- 1 distinct (type in cli.try_repo → type in cli.run.selector) reference.
- Which types
prek.cli.try_repo.try_repo$module→prek.cli.run.selector.Selectors
- Direction
- cli.try_repo uses cli.run.selector. Changing cli.run.selector can break cli.try_repo, not the reverse.
- Position
- Below the diagonal — points down the layering, which is what you want.
15→12 cli.try_repo depends on config.hook✕
- Type pairs
- 1 distinct (type in cli.try_repo → type in config.hook) reference.
- Which types
prek.cli.try_repo.try_repo$module→prek.config.hook.Stage
- Direction
- cli.try_repo uses config.hook. Changing config.hook can break cli.try_repo, not the reverse.
- Position
- Below the diagonal — points down the layering, which is what you want.
16→1 config depends on config.pattern✕
- Type pairs
- 1 distinct (type in config → type in config.pattern) reference.
- Which types
prek.config.Config→prek.config.pattern.FilePattern
- Direction
- config uses config.pattern. Changing config.pattern can break config, not the reverse.
- Position
- Below the diagonal — points down the layering, which is what you want.
16→5 config depends on config.repo✕
- Type pairs
- 1 distinct (type in config → type in config.repo) reference.
- Which types
prek.config.Config→prek.config.repo.Repo
- Direction
- config uses config.repo. Changing config.repo can break config, not the reverse.
- Position
- Below the diagonal — points down the layering, which is what you want.
16→12 config depends on config.hook✕
- Type pairs
- 2 distinct (type in config → type in config.hook) references.
- Which types
prek.config.Config→prek.config.hook.HookTypeprek.config.Config→prek.config.hook.Stages
- Direction
- config uses config.hook. Changing config.hook can break config, not the reverse.
- Position
- Below the diagonal — points down the layering, which is what you want.
17→12 languages.version depends on config.hook✕
- Type pairs
- 5 distinct (type in languages.version → type in config.hook) references.
- Which types
prek.languages.version.LanguageRequest→prek.config.hook.Languageprek.languages.version.LanguageRequest→prek.config.hook.LanguageVersionprek.languages.version.LanguageRequest→prek.config.hook.ToolchainPreferenceprek.languages.version.ToolchainPolicy→prek.config.hook.ToolchainPreferenceprek.languages.version.VersionRequest→prek.config.hook.Language
- Direction
- languages.version uses config.hook. Changing config.hook can break languages.version, not the reverse.
- Position
- Below the diagonal — points down the layering, which is what you want.
17→18 languages.version depends on hook cycle✕
- Type pairs
- 3 distinct (type in languages.version → type in hook) references.
- Which types
prek.languages.version.LanguageRequest→prek.hook.InstallInfoprek.languages.version.SemverRequest→prek.hook.InstallInfoprek.languages.version.VersionRequest→prek.hook.InstallInfo
- Direction
- languages.version uses hook. Changing hook can break languages.version, not the reverse.
- Position
- Above the diagonal — a cycle. Neither module can be changed, tested or deployed independently until one of these dependencies goes.
18→1 hook depends on config.pattern✕
- Type pairs
- 1 distinct (type in hook → type in config.pattern) reference.
- Which types
prek.hook.Hook→prek.config.pattern.FilePattern
- Direction
- hook uses config.pattern. Changing config.pattern can break hook, not the reverse.
- Position
- Below the diagonal — points down the layering, which is what you want.
18→5 hook depends on config.repo✕
- Type pairs
- 2 distinct (type in hook → type in config.repo) references.
- Which types
prek.hook.Hook→prek.config.repo.Repoprek.hook.HookSpec→prek.config.repo.Repo
- Direction
- hook uses config.repo. Changing config.repo can break hook, not the reverse.
- Position
- Below the diagonal — points down the layering, which is what you want.
18→8 hook depends on store✕
- Type pairs
- 1 distinct (type in hook → type in store) reference.
- Which types
prek.hook.InstalledHook→prek.store.Store
- Direction
- hook uses store. Changing store can break hook, not the reverse.
- Position
- Below the diagonal — points down the layering, which is what you want.
18→9 hook depends on workspace✕
- Type pairs
- 1 distinct (type in hook → type in workspace) reference.
- Which types
prek.hook.Hook→prek.workspace.Project
- Direction
- hook uses workspace. Changing workspace can break hook, not the reverse.
- Position
- Below the diagonal — points down the layering, which is what you want.
18→12 hook depends on config.hook✕
- Type pairs
- 14 distinct (type in hook → type in config.hook) references.
- Which types
prek.hook.Hook→prek.config.hook.Languageprek.hook.Hook→prek.config.hook.PassFilenamesprek.hook.Hook→prek.config.hook.Stagesprek.hook.HookEnvRequirement→prek.config.hook.Languageprek.hook.HookEnvRequirementRef→prek.config.hook.Languageprek.hook.HookSpec→prek.config.hook.BuiltinHookprek.hook.HookSpec→prek.config.hook.HookOptionsprek.hook.HookSpec→prek.config.hook.Languageprek.hook.HookSpec→prek.config.hook.LocalHookprek.hook.HookSpec→prek.config.hook.ManifestHookprek.hook.HookSpec→prek.config.hook.MetaHookprek.hook.HookSpec→prek.config.hook.RemoteHookprek.hook.InstallInfo→prek.config.hook.Languageprek.hook.Repo→prek.config.hook.ManifestHook
- Direction
- hook uses config.hook. Changing config.hook can break hook, not the reverse.
- Position
- Below the diagonal — points down the layering, which is what you want.
18→16 hook depends on config✕
- Type pairs
- 2 distinct (type in hook → type in config) references.
- Which types
prek.hook.HookEnvRequirement→prek.config.Configprek.hook.HookSpec→prek.config.Config
- Direction
- hook uses config. Changing config can break hook, not the reverse.
- Position
- Below the diagonal — points down the layering, which is what you want.
18→17 hook depends on languages.version✕
- Type pairs
- 3 distinct (type in hook → type in languages.version) references.
- Which types
prek.hook.Hook→prek.languages.version.LanguageRequestprek.hook.HookEnvRequirement→prek.languages.version.LanguageRequestprek.hook.HookEnvRequirementRef→prek.languages.version.LanguageRequest
- Direction
- hook uses languages.version. Changing languages.version can break hook, not the reverse.
- Position
- Below the diagonal — points down the layering, which is what you want.
18→38 hook depends on archive cycle✕
- Type pairs
- 1 distinct (type in hook → type in archive) reference.
- Which types
prek.hook.hook$module→prek.archive.Error
- Direction
- hook uses archive. Changing archive can break hook, not the reverse.
- Position
- Above the diagonal — a cycle. Neither module can be changed, tested or deployed independently until one of these dependencies goes.
19→16 settings depends on config✕
- Type pairs
- 1 distinct (type in settings → type in config) reference.
- Which types
prek.settings.Options→prek.config.HideStatus
- Direction
- settings uses config. Changing config can break settings, not the reverse.
- Position
- Below the diagonal — points down the layering, which is what you want.
20→2 cli.cache_gc depends on printer✕
- Type pairs
- 1 distinct (type in cli.cache_gc → type in printer) reference.
- Which types
prek.cli.cache_gc.cache_gc$module→prek.printer.Printer
- Direction
- cli.cache_gc uses printer. Changing printer can break cli.cache_gc, not the reverse.
- Position
- Below the diagonal — points down the layering, which is what you want.
20→8 cli.cache_gc depends on store✕
- Type pairs
- 2 distinct (type in cli.cache_gc → type in store) references.
- Which types
prek.cli.cache_gc.cache_gc$module→prek.store.Storeprek.cli.cache_gc.cache_gc$module→prek.store.ToolBucket
- Direction
- cli.cache_gc uses store. Changing store can break cli.cache_gc, not the reverse.
- Position
- Below the diagonal — points down the layering, which is what you want.
20→16 cli.cache_gc depends on config✕
- Type pairs
- 1 distinct (type in cli.cache_gc → type in config) reference.
- Which types
prek.cli.cache_gc.cache_gc$module→prek.config.Config
- Direction
- cli.cache_gc uses config. Changing config can break cli.cache_gc, not the reverse.
- Position
- Below the diagonal — points down the layering, which is what you want.
20→18 cli.cache_gc depends on hook✕
- Type pairs
- 2 distinct (type in cli.cache_gc → type in hook) references.
- Which types
prek.cli.cache_gc.cache_gc$module→prek.hook.HookEnvRequirementprek.cli.cache_gc.cache_gc$module→prek.hook.InstallInfo
- Direction
- cli.cache_gc uses hook. Changing hook can break cli.cache_gc, not the reverse.
- Position
- Below the diagonal — points down the layering, which is what you want.
21→2 cli.reporter depends on printer✕
- Type pairs
- 5 distinct (type in cli.reporter → type in printer) references.
- Which types
prek.cli.reporter.CleaningReporter→prek.printer.Printerprek.cli.reporter.HookInitReporter→prek.printer.Printerprek.cli.reporter.HookInstallReporter→prek.printer.Printerprek.cli.reporter.ProgressReporter→prek.printer.Printerprek.cli.reporter.UpdateReporter→prek.printer.Printer
- Direction
- cli.reporter uses printer. Changing printer can break cli.reporter, not the reverse.
- Position
- Below the diagonal — points down the layering, which is what you want.
21→18 cli.reporter depends on hook✕
- Type pairs
- 1 distinct (type in cli.reporter → type in hook) reference.
- Which types
prek.cli.reporter.HookInstallReporter→prek.hook.Hook
- Direction
- cli.reporter uses hook. Changing hook can break cli.reporter, not the reverse.
- Position
- Below the diagonal — points down the layering, which is what you want.
22→1 cli.run.filter depends on config.pattern✕
- Type pairs
- 1 distinct (type in cli.run.filter → type in config.pattern) reference.
- Which types
prek.cli.run.filter.FilenameFilter→prek.config.pattern.FilePattern
- Direction
- cli.run.filter uses config.pattern. Changing config.pattern can break cli.run.filter, not the reverse.
- Position
- Below the diagonal — points down the layering, which is what you want.
22→3 cli.run.filter depends on cli✕
- Type pairs
- 1 distinct (type in cli.run.filter → type in cli) reference.
- Which types
prek.cli.run.filter.FileSelection→prek.cli.FileSelectionArgs
- Direction
- cli.run.filter uses cli. Changing cli can break cli.run.filter, not the reverse.
- Position
- Below the diagonal — points down the layering, which is what you want.
22→6 cli.run.filter depends on git✕
- Type pairs
- 1 distinct (type in cli.run.filter → type in git) reference.
- Which types
prek.cli.run.filter.filter$module→prek.git.FileMode
- Direction
- cli.run.filter uses git. Changing git can break cli.run.filter, not the reverse.
- Position
- Below the diagonal — points down the layering, which is what you want.
22→9 cli.run.filter depends on workspace✕
- Type pairs
- 2 distinct (type in cli.run.filter → type in workspace) references.
- Which types
prek.cli.run.filter.ProjectFiles→prek.workspace.Projectprek.cli.run.filter.RunFileIndex→prek.workspace.Project
- Direction
- cli.run.filter uses workspace. Changing workspace can break cli.run.filter, not the reverse.
- Position
- Below the diagonal — points down the layering, which is what you want.
22→12 cli.run.filter depends on config.hook✕
- Type pairs
- 2 distinct (type in cli.run.filter → type in config.hook) references.
- Which types
prek.cli.run.filter.RunInputMode→prek.config.hook.Stageprek.cli.run.filter.filter$module→prek.config.hook.Stage
- Direction
- cli.run.filter uses config.hook. Changing config.hook can break cli.run.filter, not the reverse.
- Position
- Below the diagonal — points down the layering, which is what you want.
22→18 cli.run.filter depends on hook✕
- Type pairs
- 2 distinct (type in cli.run.filter → type in hook) references.
- Which types
prek.cli.run.filter.HookFileFilter→prek.hook.Hookprek.cli.run.filter.ProjectFiles→prek.hook.Hook
- Direction
- cli.run.filter uses hook. Changing hook can break cli.run.filter, not the reverse.
- Position
- Below the diagonal — points down the layering, which is what you want.
23→1 cli.update depends on config.pattern✕
- Type pairs
- 1 distinct (type in cli.update → type in config.pattern) reference.
- Which types
prek.cli.update.TagFilters→prek.config.pattern.GlobPatterns
- Direction
- cli.update uses config.pattern. Changing config.pattern can break cli.update, not the reverse.
- Position
- Below the diagonal — points down the layering, which is what you want.
23→2 cli.update depends on printer✕
- Type pairs
- 1 distinct (type in cli.update → type in printer) reference.
- Which types
prek.cli.update.update$module→prek.printer.Printer
- Direction
- cli.update uses printer. Changing printer can break cli.update, not the reverse.
- Position
- Below the diagonal — points down the layering, which is what you want.
23→3 cli.update depends on cli✕
- Type pairs
- 1 distinct (type in cli.update → type in cli) reference.
- Which types
prek.cli.update.update$module→prek.cli.RepoTagPattern
- Direction
- cli.update uses cli. Changing cli can break cli.update, not the reverse.
- Position
- Below the diagonal — points down the layering, which is what you want.
23→8 cli.update depends on store✕
- Type pairs
- 1 distinct (type in cli.update → type in store) reference.
- Which types
prek.cli.update.update$module→prek.store.Store
- Direction
- cli.update uses store. Changing store can break cli.update, not the reverse.
- Position
- Below the diagonal — points down the layering, which is what you want.
23→9 cli.update depends on workspace✕
- Type pairs
- 7 distinct (type in cli.update → type in workspace) references.
- Which types
prek.cli.update.DisplayEvent→prek.workspace.Projectprek.cli.update.FrozenMismatch→prek.workspace.Projectprek.cli.update.FrozenWarningEvent→prek.workspace.Projectprek.cli.update.ProjectUpdateKey→prek.workspace.Projectprek.cli.update.RepoUsage→prek.workspace.Projectprek.cli.update.update$module→prek.workspace.Projectprek.cli.update.update$module→prek.workspace.Workspace
- Direction
- cli.update uses workspace. Changing workspace can break cli.update, not the reverse.
- Position
- Below the diagonal — points down the layering, which is what you want.
23→19 cli.update depends on settings✕
- Type pairs
- 3 distinct (type in cli.update → type in settings) references.
- Which types
prek.cli.update.TagFilters→prek.settings.TagFilterOptionsprek.cli.update.update$module→prek.settings.CliTagFilterOptionsprek.cli.update.update$module→prek.settings.FilesystemOptions
- Direction
- cli.update uses settings. Changing settings can break cli.update, not the reverse.
- Position
- Below the diagonal — points down the layering, which is what you want.
24→8 hooks depends on store✕
- Type pairs
- 1 distinct (type in hooks → type in store) reference.
- Which types
prek.hooks.hooks$module→prek.store.Store
- Direction
- hooks uses store. Changing store can break hooks, not the reverse.
- Position
- Below the diagonal — points down the layering, which is what you want.
24→10 hooks depends on cli.run.reporter✕
- Type pairs
- 1 distinct (type in hooks → type in cli.run.reporter) reference.
- Which types
prek.hooks.hooks$module→prek.cli.run.reporter.HookRunReporter
- Direction
- hooks uses cli.run.reporter. Changing cli.run.reporter can break hooks, not the reverse.
- Position
- Below the diagonal — points down the layering, which is what you want.
24→18 hooks depends on hook✕
- Type pairs
- 1 distinct (type in hooks → type in hook) reference.
- Which types
prek.hooks.hooks$module→prek.hook.Hook
- Direction
- hooks uses hook. Changing hook can break hooks, not the reverse.
- Position
- Below the diagonal — points down the layering, which is what you want.
25→3 hooks.builtin_hooks depends on cli✕
- Type pairs
- 1 distinct (type in hooks.builtin_hooks → type in cli) reference.
- Which types
prek.hooks.builtin_hooks.BuiltinHooks→prek.cli.Command
- Direction
- hooks.builtin_hooks uses cli. Changing cli can break hooks.builtin_hooks, not the reverse.
- Position
- Below the diagonal — points down the layering, which is what you want.
25→8 hooks.builtin_hooks depends on store✕
- Type pairs
- 1 distinct (type in hooks.builtin_hooks → type in store) reference.
- Which types
prek.hooks.builtin_hooks.BuiltinHooks→prek.store.Store
- Direction
- hooks.builtin_hooks uses store. Changing store can break hooks.builtin_hooks, not the reverse.
- Position
- Below the diagonal — points down the layering, which is what you want.
25→10 hooks.builtin_hooks depends on cli.run.reporter✕
- Type pairs
- 1 distinct (type in hooks.builtin_hooks → type in cli.run.reporter) reference.
- Which types
prek.hooks.builtin_hooks.BuiltinHooks→prek.cli.run.reporter.HookRunReporter
- Direction
- hooks.builtin_hooks uses cli.run.reporter. Changing cli.run.reporter can break hooks.builtin_hooks, not the reverse.
- Position
- Below the diagonal — points down the layering, which is what you want.
25→18 hooks.builtin_hooks depends on hook✕
- Type pairs
- 1 distinct (type in hooks.builtin_hooks → type in hook) reference.
- Which types
prek.hooks.builtin_hooks.BuiltinHooks→prek.hook.Hook
- Direction
- hooks.builtin_hooks uses hook. Changing hook can break hooks.builtin_hooks, not the reverse.
- Position
- Below the diagonal — points down the layering, which is what you want.
26→8 cli.run.install depends on store✕
- Type pairs
- 2 distinct (type in cli.run.install → type in store) references.
- Which types
prek.cli.run.install.InstallCache→prek.store.Storeprek.cli.run.install.install$module→prek.store.Store
- Direction
- cli.run.install uses store. Changing store can break cli.run.install, not the reverse.
- Position
- Below the diagonal — points down the layering, which is what you want.
26→12 cli.run.install depends on config.hook✕
- Type pairs
- 1 distinct (type in cli.run.install → type in config.hook) reference.
- Which types
prek.cli.run.install.install$module→prek.config.hook.Language
- Direction
- cli.run.install uses config.hook. Changing config.hook can break cli.run.install, not the reverse.
- Position
- Below the diagonal — points down the layering, which is what you want.
26→18 cli.run.install depends on hook✕
- Type pairs
- 4 distinct (type in cli.run.install → type in hook) references.
- Which types
prek.cli.run.install.CachedInstallInfo→prek.hook.InstallInfoprek.cli.run.install.InstallCache→prek.hook.Hookprek.cli.run.install.InstallCache→prek.hook.InstalledHookprek.cli.run.install.install$module→prek.hook.Hook
- Direction
- cli.run.install uses hook. Changing hook can break cli.run.install, not the reverse.
- Position
- Below the diagonal — points down the layering, which is what you want.
26→21 cli.run.install depends on cli.reporter✕
- Type pairs
- 1 distinct (type in cli.run.install → type in cli.reporter) reference.
- Which types
prek.cli.run.install.install$module→prek.cli.reporter.HookInstallReporter
- Direction
- cli.run.install uses cli.reporter. Changing cli.reporter can break cli.run.install, not the reverse.
- Position
- Below the diagonal — points down the layering, which is what you want.
27→2 cli.run.run depends on printer✕
- Type pairs
- 3 distinct (type in cli.run.run → type in printer) references.
- Which types
prek.cli.run.run.HookRunSession→prek.printer.Printerprek.cli.run.run.StatusPrinter→prek.printer.Printerprek.cli.run.run.run$module→prek.printer.Printer
- Direction
- cli.run.run uses printer. Changing printer can break cli.run.run, not the reverse.
- Position
- Below the diagonal — points down the layering, which is what you want.
27→3 cli.run.run depends on cli✕
- Type pairs
- 2 distinct (type in cli.run.run → type in cli) references.
- Which types
prek.cli.run.run.run$module→prek.cli.RunArgsprek.cli.run.run.run$module→prek.cli.RunExtraArgs
- Direction
- cli.run.run uses cli. Changing cli can break cli.run.run, not the reverse.
- Position
- Below the diagonal — points down the layering, which is what you want.
27→4 cli.run.run depends on cli.run.selector✕
- Type pairs
- 1 distinct (type in cli.run.run → type in cli.run.selector) reference.
- Which types
prek.cli.run.run.run$module→prek.cli.run.selector.Selectors
- Direction
- cli.run.run uses cli.run.selector. Changing cli.run.selector can break cli.run.run, not the reverse.
- Position
- Below the diagonal — points down the layering, which is what you want.
27→8 cli.run.run depends on store✕
- Type pairs
- 2 distinct (type in cli.run.run → type in store) references.
- Which types
prek.cli.run.run.HookRunSession→prek.store.Storeprek.cli.run.run.run$module→prek.store.Store
- Direction
- cli.run.run uses store. Changing store can break cli.run.run, not the reverse.
- Position
- Below the diagonal — points down the layering, which is what you want.
27→9 cli.run.run depends on workspace✕
- Type pairs
- 6 distinct (type in cli.run.run → type in workspace) references.
- Which types
prek.cli.run.run.HookRunSession→prek.workspace.Projectprek.cli.run.run.HookRunSession→prek.workspace.Workspaceprek.cli.run.run.ProjectHookInput→prek.workspace.Projectprek.cli.run.run.ProjectRun→prek.workspace.Projectprek.cli.run.run.ProjectRunResult→prek.workspace.Projectprek.cli.run.run.run$module→prek.workspace.Workspace
- Direction
- cli.run.run uses workspace. Changing workspace can break cli.run.run, not the reverse.
- Position
- Below the diagonal — points down the layering, which is what you want.
27→10 cli.run.run depends on cli.run.reporter✕
- Type pairs
- 2 distinct (type in cli.run.run → type in cli.run.reporter) references.
- Which types
prek.cli.run.run.HookRunSession→prek.cli.run.reporter.HookRunReporterprek.cli.run.run.run$module→prek.cli.run.reporter.HookRunReporter
- Direction
- cli.run.run uses cli.run.reporter. Changing cli.run.reporter can break cli.run.run, not the reverse.
- Position
- Below the diagonal — points down the layering, which is what you want.
27→12 cli.run.run depends on config.hook✕
- Type pairs
- 1 distinct (type in cli.run.run → type in config.hook) reference.
- Which types
prek.cli.run.run.run$module→prek.config.hook.Stage
- Direction
- cli.run.run uses config.hook. Changing config.hook can break cli.run.run, not the reverse.
- Position
- Below the diagonal — points down the layering, which is what you want.
27→16 cli.run.run depends on config✕
- Type pairs
- 1 distinct (type in cli.run.run → type in config) reference.
- Which types
prek.cli.run.run.RunStatus→prek.config.HideStatus
- Direction
- cli.run.run uses config. Changing config can break cli.run.run, not the reverse.
- Position
- Below the diagonal — points down the layering, which is what you want.
27→18 cli.run.run depends on hook✕
- Type pairs
- 3 distinct (type in cli.run.run → type in hook) references.
- Which types
prek.cli.run.run.ProjectHookInput→prek.hook.Hookprek.cli.run.run.run$module→prek.hook.Hookprek.cli.run.run.run$module→prek.hook.InstalledHook
- Direction
- cli.run.run uses hook. Changing hook can break cli.run.run, not the reverse.
- Position
- Below the diagonal — points down the layering, which is what you want.
27→19 cli.run.run depends on settings✕
- Type pairs
- 1 distinct (type in cli.run.run → type in settings) reference.
- Which types
prek.cli.run.run.run$module→prek.settings.FilesystemOptions
- Direction
- cli.run.run uses settings. Changing settings can break cli.run.run, not the reverse.
- Position
- Below the diagonal — points down the layering, which is what you want.
27→22 cli.run.run depends on cli.run.filter✕
- Type pairs
- 9 distinct (type in cli.run.run → type in cli.run.filter) references.
- Which types
prek.cli.run.run.HookRunSession→prek.cli.run.filter.FileTagCacheprek.cli.run.run.HookRunSession→prek.cli.run.filter.RunFileIndexprek.cli.run.run.HookRunSession→prek.cli.run.filter.RunInputprek.cli.run.run.ProjectHookInput→prek.cli.run.filter.FileTagCacheprek.cli.run.run.ProjectHookInput→prek.cli.run.filter.RunFileIndexprek.cli.run.run.ProjectHookInput→prek.cli.run.filter.RunInputprek.cli.run.run.run$module→prek.cli.run.filter.FileTagCacheprek.cli.run.run.run$module→prek.cli.run.filter.RunFileIndexprek.cli.run.run.run$module→prek.cli.run.filter.RunInput
- Direction
- cli.run.run uses cli.run.filter. Changing cli.run.filter can break cli.run.run, not the reverse.
- Position
- Below the diagonal — points down the layering, which is what you want.
27→24 cli.run.run depends on hooks✕
- Type pairs
- 1 distinct (type in cli.run.run → type in hooks) reference.
- Which types
prek.cli.run.run.HookRunResult→prek.hooks.FileChanges
- Direction
- cli.run.run uses hooks. Changing hooks can break cli.run.run, not the reverse.
- Position
- Below the diagonal — points down the layering, which is what you want.
28→1 hooks.meta_hooks depends on config.pattern✕
- Type pairs
- 1 distinct (type in hooks.meta_hooks → type in config.pattern) reference.
- Which types
prek.hooks.meta_hooks.meta_hooks$module→prek.config.pattern.FilePattern
- Direction
- hooks.meta_hooks uses config.pattern. Changing config.pattern can break hooks.meta_hooks, not the reverse.
- Position
- Below the diagonal — points down the layering, which is what you want.
28→8 hooks.meta_hooks depends on store✕
- Type pairs
- 2 distinct (type in hooks.meta_hooks → type in store) references.
- Which types
prek.hooks.meta_hooks.MetaHooks→prek.store.Storeprek.hooks.meta_hooks.meta_hooks$module→prek.store.Store
- Direction
- hooks.meta_hooks uses store. Changing store can break hooks.meta_hooks, not the reverse.
- Position
- Below the diagonal — points down the layering, which is what you want.
28→10 hooks.meta_hooks depends on cli.run.reporter✕
- Type pairs
- 1 distinct (type in hooks.meta_hooks → type in cli.run.reporter) reference.
- Which types
prek.hooks.meta_hooks.MetaHooks→prek.cli.run.reporter.HookRunReporter
- Direction
- hooks.meta_hooks uses cli.run.reporter. Changing cli.run.reporter can break hooks.meta_hooks, not the reverse.
- Position
- Below the diagonal — points down the layering, which is what you want.
28→18 hooks.meta_hooks depends on hook✕
- Type pairs
- 2 distinct (type in hooks.meta_hooks → type in hook) references.
- Which types
prek.hooks.meta_hooks.MetaHooks→prek.hook.Hookprek.hooks.meta_hooks.meta_hooks$module→prek.hook.Hook
- Direction
- hooks.meta_hooks uses hook. Changing hook can break hooks.meta_hooks, not the reverse.
- Position
- Below the diagonal — points down the layering, which is what you want.
28→24 hooks.meta_hooks depends on hooks✕
- Type pairs
- 1 distinct (type in hooks.meta_hooks → type in hooks) reference.
- Which types
prek.hooks.meta_hooks.meta_hooks$module→prek.hooks.HookOutput
- Direction
- hooks.meta_hooks uses hooks. Changing hooks can break hooks.meta_hooks, not the reverse.
- Position
- Below the diagonal — points down the layering, which is what you want.
29→7 languages.docker depends on process✕
- Type pairs
- 1 distinct (type in languages.docker → type in process) reference.
- Which types
prek.languages.docker.Docker→prek.process.Cmd
- Direction
- languages.docker uses process. Changing process can break languages.docker, not the reverse.
- Position
- Below the diagonal — points down the layering, which is what you want.
29→8 languages.docker depends on store✕
- Type pairs
- 1 distinct (type in languages.docker → type in store) reference.
- Which types
prek.languages.docker.Docker→prek.store.Store
- Direction
- languages.docker uses store. Changing store can break languages.docker, not the reverse.
- Position
- Below the diagonal — points down the layering, which is what you want.
29→10 languages.docker depends on cli.run.reporter✕
- Type pairs
- 1 distinct (type in languages.docker → type in cli.run.reporter) reference.
- Which types
prek.languages.docker.Docker→prek.cli.run.reporter.HookRunReporter
- Direction
- languages.docker uses cli.run.reporter. Changing cli.run.reporter can break languages.docker, not the reverse.
- Position
- Below the diagonal — points down the layering, which is what you want.
29→11 languages.docker depends on languages✕
- Type pairs
- 1 distinct (type in languages.docker → type in languages) reference.
- Which types
prek.languages.docker.Docker→prek.languages.LanguageBackend
- Direction
- languages.docker uses languages. Changing languages can break languages.docker, not the reverse.
- Position
- Below the diagonal — points down the layering, which is what you want.
29→18 languages.docker depends on hook✕
- Type pairs
- 3 distinct (type in languages.docker → type in hook) references.
- Which types
prek.languages.docker.Docker→prek.hook.Hookprek.languages.docker.Docker→prek.hook.InstallInfoprek.languages.docker.Docker→prek.hook.InstalledHook
- Direction
- languages.docker uses hook. Changing hook can break languages.docker, not the reverse.
- Position
- Below the diagonal — points down the layering, which is what you want.
29→21 languages.docker depends on cli.reporter✕
- Type pairs
- 1 distinct (type in languages.docker → type in cli.reporter) reference.
- Which types
prek.languages.docker.Docker→prek.cli.reporter.HookInstallReporter
- Direction
- languages.docker uses cli.reporter. Changing cli.reporter can break languages.docker, not the reverse.
- Position
- Below the diagonal — points down the layering, which is what you want.
30→8 languages.docker_image depends on store✕
- Type pairs
- 1 distinct (type in languages.docker_image → type in store) reference.
- Which types
prek.languages.docker_image.DockerImage→prek.store.Store
- Direction
- languages.docker_image uses store. Changing store can break languages.docker_image, not the reverse.
- Position
- Below the diagonal — points down the layering, which is what you want.
30→10 languages.docker_image depends on cli.run.reporter✕
- Type pairs
- 1 distinct (type in languages.docker_image → type in cli.run.reporter) reference.
- Which types
prek.languages.docker_image.DockerImage→prek.cli.run.reporter.HookRunReporter
- Direction
- languages.docker_image uses cli.run.reporter. Changing cli.run.reporter can break languages.docker_image, not the reverse.
- Position
- Below the diagonal — points down the layering, which is what you want.
30→11 languages.docker_image depends on languages✕
- Type pairs
- 1 distinct (type in languages.docker_image → type in languages) reference.
- Which types
prek.languages.docker_image.DockerImage→prek.languages.LanguageBackend
- Direction
- languages.docker_image uses languages. Changing languages can break languages.docker_image, not the reverse.
- Position
- Below the diagonal — points down the layering, which is what you want.
30→18 languages.docker_image depends on hook✕
- Type pairs
- 3 distinct (type in languages.docker_image → type in hook) references.
- Which types
prek.languages.docker_image.DockerImage→prek.hook.Hookprek.languages.docker_image.DockerImage→prek.hook.InstallInfoprek.languages.docker_image.DockerImage→prek.hook.InstalledHook
- Direction
- languages.docker_image uses hook. Changing hook can break languages.docker_image, not the reverse.
- Position
- Below the diagonal — points down the layering, which is what you want.
30→21 languages.docker_image depends on cli.reporter✕
- Type pairs
- 1 distinct (type in languages.docker_image → type in cli.reporter) reference.
- Which types
prek.languages.docker_image.DockerImage→prek.cli.reporter.HookInstallReporter
- Direction
- languages.docker_image uses cli.reporter. Changing cli.reporter can break languages.docker_image, not the reverse.
- Position
- Below the diagonal — points down the layering, which is what you want.
31→8 languages.fail depends on store✕
- Type pairs
- 1 distinct (type in languages.fail → type in store) reference.
- Which types
prek.languages.fail.Fail→prek.store.Store
- Direction
- languages.fail uses store. Changing store can break languages.fail, not the reverse.
- Position
- Below the diagonal — points down the layering, which is what you want.
31→10 languages.fail depends on cli.run.reporter✕
- Type pairs
- 1 distinct (type in languages.fail → type in cli.run.reporter) reference.
- Which types
prek.languages.fail.Fail→prek.cli.run.reporter.HookRunReporter
- Direction
- languages.fail uses cli.run.reporter. Changing cli.run.reporter can break languages.fail, not the reverse.
- Position
- Below the diagonal — points down the layering, which is what you want.
31→11 languages.fail depends on languages✕
- Type pairs
- 1 distinct (type in languages.fail → type in languages) reference.
- Which types
prek.languages.fail.Fail→prek.languages.LanguageBackend
- Direction
- languages.fail uses languages. Changing languages can break languages.fail, not the reverse.
- Position
- Below the diagonal — points down the layering, which is what you want.
31→18 languages.fail depends on hook✕
- Type pairs
- 3 distinct (type in languages.fail → type in hook) references.
- Which types
prek.languages.fail.Fail→prek.hook.Hookprek.languages.fail.Fail→prek.hook.InstallInfoprek.languages.fail.Fail→prek.hook.InstalledHook
- Direction
- languages.fail uses hook. Changing hook can break languages.fail, not the reverse.
- Position
- Below the diagonal — points down the layering, which is what you want.
31→21 languages.fail depends on cli.reporter✕
- Type pairs
- 1 distinct (type in languages.fail → type in cli.reporter) reference.
- Which types
prek.languages.fail.Fail→prek.cli.reporter.HookInstallReporter
- Direction
- languages.fail uses cli.reporter. Changing cli.reporter can break languages.fail, not the reverse.
- Position
- Below the diagonal — points down the layering, which is what you want.
32→8 languages.julia depends on store✕
- Type pairs
- 1 distinct (type in languages.julia → type in store) reference.
- Which types
prek.languages.julia.Julia→prek.store.Store
- Direction
- languages.julia uses store. Changing store can break languages.julia, not the reverse.
- Position
- Below the diagonal — points down the layering, which is what you want.
32→10 languages.julia depends on cli.run.reporter✕
- Type pairs
- 1 distinct (type in languages.julia → type in cli.run.reporter) reference.
- Which types
prek.languages.julia.Julia→prek.cli.run.reporter.HookRunReporter
- Direction
- languages.julia uses cli.run.reporter. Changing cli.run.reporter can break languages.julia, not the reverse.
- Position
- Below the diagonal — points down the layering, which is what you want.
32→11 languages.julia depends on languages✕
- Type pairs
- 1 distinct (type in languages.julia → type in languages) reference.
- Which types
prek.languages.julia.Julia→prek.languages.LanguageBackend
- Direction
- languages.julia uses languages. Changing languages can break languages.julia, not the reverse.
- Position
- Below the diagonal — points down the layering, which is what you want.
32→18 languages.julia depends on hook✕
- Type pairs
- 3 distinct (type in languages.julia → type in hook) references.
- Which types
prek.languages.julia.Julia→prek.hook.Hookprek.languages.julia.Julia→prek.hook.InstallInfoprek.languages.julia.Julia→prek.hook.InstalledHook
- Direction
- languages.julia uses hook. Changing hook can break languages.julia, not the reverse.
- Position
- Below the diagonal — points down the layering, which is what you want.
32→21 languages.julia depends on cli.reporter✕
- Type pairs
- 1 distinct (type in languages.julia → type in cli.reporter) reference.
- Which types
prek.languages.julia.Julia→prek.cli.reporter.HookInstallReporter
- Direction
- languages.julia uses cli.reporter. Changing cli.reporter can break languages.julia, not the reverse.
- Position
- Below the diagonal — points down the layering, which is what you want.
33→7 languages.node.node depends on process✕
- Type pairs
- 1 distinct (type in languages.node.node → type in process) reference.
- Which types
prek.languages.node.node.Npm→prek.process.Cmd
- Direction
- languages.node.node uses process. Changing process can break languages.node.node, not the reverse.
- Position
- Below the diagonal — points down the layering, which is what you want.
33→8 languages.node.node depends on store✕
- Type pairs
- 1 distinct (type in languages.node.node → type in store) reference.
- Which types
prek.languages.node.node.Node→prek.store.Store
- Direction
- languages.node.node uses store. Changing store can break languages.node.node, not the reverse.
- Position
- Below the diagonal — points down the layering, which is what you want.
33→11 languages.node.node depends on languages✕
- Type pairs
- 1 distinct (type in languages.node.node → type in languages) reference.
- Which types
prek.languages.node.node.Node→prek.languages.LanguageBackend
- Direction
- languages.node.node uses languages. Changing languages can break languages.node.node, not the reverse.
- Position
- Below the diagonal — points down the layering, which is what you want.
33→18 languages.node.node depends on hook✕
- Type pairs
- 4 distinct (type in languages.node.node → type in hook) references.
- Which types
prek.languages.node.node.Node→prek.hook.Hookprek.languages.node.node.Node→prek.hook.InstallInfoprek.languages.node.node.Node→prek.hook.InstalledHookprek.languages.node.node.node$module→prek.hook.Hook
- Direction
- languages.node.node uses hook. Changing hook can break languages.node.node, not the reverse.
- Position
- Below the diagonal — points down the layering, which is what you want.
33→21 languages.node.node depends on cli.reporter✕
- Type pairs
- 1 distinct (type in languages.node.node → type in cli.reporter) reference.
- Which types
prek.languages.node.node.Node→prek.cli.reporter.HookInstallReporter
- Direction
- languages.node.node uses cli.reporter. Changing cli.reporter can break languages.node.node, not the reverse.
- Position
- Below the diagonal — points down the layering, which is what you want.
34→7 languages.php depends on process✕
- Type pairs
- 1 distinct (type in languages.php → type in process) reference.
- Which types
prek.languages.php.php$module→prek.process.Cmd
- Direction
- languages.php uses process. Changing process can break languages.php, not the reverse.
- Position
- Below the diagonal — points down the layering, which is what you want.
34→8 languages.php depends on store✕
- Type pairs
- 1 distinct (type in languages.php → type in store) reference.
- Which types
prek.languages.php.Php→prek.store.Store
- Direction
- languages.php uses store. Changing store can break languages.php, not the reverse.
- Position
- Below the diagonal — points down the layering, which is what you want.
34→11 languages.php depends on languages✕
- Type pairs
- 1 distinct (type in languages.php → type in languages) reference.
- Which types
prek.languages.php.Php→prek.languages.LanguageBackend
- Direction
- languages.php uses languages. Changing languages can break languages.php, not the reverse.
- Position
- Below the diagonal — points down the layering, which is what you want.
34→18 languages.php depends on hook✕
- Type pairs
- 3 distinct (type in languages.php → type in hook) references.
- Which types
prek.languages.php.Php→prek.hook.Hookprek.languages.php.Php→prek.hook.InstallInfoprek.languages.php.Php→prek.hook.InstalledHook
- Direction
- languages.php uses hook. Changing hook can break languages.php, not the reverse.
- Position
- Below the diagonal — points down the layering, which is what you want.
34→21 languages.php depends on cli.reporter✕
- Type pairs
- 1 distinct (type in languages.php → type in cli.reporter) reference.
- Which types
prek.languages.php.Php→prek.cli.reporter.HookInstallReporter
- Direction
- languages.php uses cli.reporter. Changing cli.reporter can break languages.php, not the reverse.
- Position
- Below the diagonal — points down the layering, which is what you want.
35→8 languages.pygrep.pygrep depends on store✕
- Type pairs
- 1 distinct (type in languages.pygrep.pygrep → type in store) reference.
- Which types
prek.languages.pygrep.pygrep.Pygrep→prek.store.Store
- Direction
- languages.pygrep.pygrep uses store. Changing store can break languages.pygrep.pygrep, not the reverse.
- Position
- Below the diagonal — points down the layering, which is what you want.
35→10 languages.pygrep.pygrep depends on cli.run.reporter✕
- Type pairs
- 1 distinct (type in languages.pygrep.pygrep → type in cli.run.reporter) reference.
- Which types
prek.languages.pygrep.pygrep.Pygrep→prek.cli.run.reporter.HookRunReporter
- Direction
- languages.pygrep.pygrep uses cli.run.reporter. Changing cli.run.reporter can break languages.pygrep.pygrep, not the reverse.
- Position
- Below the diagonal — points down the layering, which is what you want.
35→11 languages.pygrep.pygrep depends on languages✕
- Type pairs
- 1 distinct (type in languages.pygrep.pygrep → type in languages) reference.
- Which types
prek.languages.pygrep.pygrep.Pygrep→prek.languages.LanguageBackend
- Direction
- languages.pygrep.pygrep uses languages. Changing languages can break languages.pygrep.pygrep, not the reverse.
- Position
- Below the diagonal — points down the layering, which is what you want.
35→18 languages.pygrep.pygrep depends on hook✕
- Type pairs
- 3 distinct (type in languages.pygrep.pygrep → type in hook) references.
- Which types
prek.languages.pygrep.pygrep.Pygrep→prek.hook.Hookprek.languages.pygrep.pygrep.Pygrep→prek.hook.InstallInfoprek.languages.pygrep.pygrep.Pygrep→prek.hook.InstalledHook
- Direction
- languages.pygrep.pygrep uses hook. Changing hook can break languages.pygrep.pygrep, not the reverse.
- Position
- Below the diagonal — points down the layering, which is what you want.
35→21 languages.pygrep.pygrep depends on cli.reporter✕
- Type pairs
- 1 distinct (type in languages.pygrep.pygrep → type in cli.reporter) reference.
- Which types
prek.languages.pygrep.pygrep.Pygrep→prek.cli.reporter.HookInstallReporter
- Direction
- languages.pygrep.pygrep uses cli.reporter. Changing cli.reporter can break languages.pygrep.pygrep, not the reverse.
- Position
- Below the diagonal — points down the layering, which is what you want.
36→8 languages.r depends on store✕
- Type pairs
- 1 distinct (type in languages.r → type in store) reference.
- Which types
prek.languages.r.R→prek.store.Store
- Direction
- languages.r uses store. Changing store can break languages.r, not the reverse.
- Position
- Below the diagonal — points down the layering, which is what you want.
36→11 languages.r depends on languages✕
- Type pairs
- 2 distinct (type in languages.r → type in languages) references.
- Which types
prek.languages.r.R→prek.languages.ExecutionEnvironmentprek.languages.r.R→prek.languages.LanguageBackend
- Direction
- languages.r uses languages. Changing languages can break languages.r, not the reverse.
- Position
- Below the diagonal — points down the layering, which is what you want.
36→18 languages.r depends on hook✕
- Type pairs
- 4 distinct (type in languages.r → type in hook) references.
- Which types
prek.languages.r.R→prek.hook.Hookprek.languages.r.R→prek.hook.InstallInfoprek.languages.r.R→prek.hook.InstalledHookprek.languages.r.r$module→prek.hook.InstalledHook
- Direction
- languages.r uses hook. Changing hook can break languages.r, not the reverse.
- Position
- Below the diagonal — points down the layering, which is what you want.
36→21 languages.r depends on cli.reporter✕
- Type pairs
- 1 distinct (type in languages.r → type in cli.reporter) reference.
- Which types
prek.languages.r.R→prek.cli.reporter.HookInstallReporter
- Direction
- languages.r uses cli.reporter. Changing cli.reporter can break languages.r, not the reverse.
- Position
- Below the diagonal — points down the layering, which is what you want.
37→7 languages.rust.rust depends on process✕
- Type pairs
- 1 distinct (type in languages.rust.rust → type in process) reference.
- Which types
prek.languages.rust.rust.CargoInstaller→prek.process.Cmd
- Direction
- languages.rust.rust uses process. Changing process can break languages.rust.rust, not the reverse.
- Position
- Below the diagonal — points down the layering, which is what you want.
37→8 languages.rust.rust depends on store✕
- Type pairs
- 1 distinct (type in languages.rust.rust → type in store) reference.
- Which types
prek.languages.rust.rust.Rust→prek.store.Store
- Direction
- languages.rust.rust uses store. Changing store can break languages.rust.rust, not the reverse.
- Position
- Below the diagonal — points down the layering, which is what you want.
37→11 languages.rust.rust depends on languages✕
- Type pairs
- 1 distinct (type in languages.rust.rust → type in languages) reference.
- Which types
prek.languages.rust.rust.Rust→prek.languages.LanguageBackend
- Direction
- languages.rust.rust uses languages. Changing languages can break languages.rust.rust, not the reverse.
- Position
- Below the diagonal — points down the layering, which is what you want.
37→18 languages.rust.rust depends on hook✕
- Type pairs
- 4 distinct (type in languages.rust.rust → type in hook) references.
- Which types
prek.languages.rust.rust.Rust→prek.hook.Hookprek.languages.rust.rust.Rust→prek.hook.InstallInfoprek.languages.rust.rust.Rust→prek.hook.InstalledHookprek.languages.rust.rust.rust$module→prek.hook.InstallInfo
- Direction
- languages.rust.rust uses hook. Changing hook can break languages.rust.rust, not the reverse.
- Position
- Below the diagonal — points down the layering, which is what you want.
37→21 languages.rust.rust depends on cli.reporter✕
- Type pairs
- 1 distinct (type in languages.rust.rust → type in cli.reporter) reference.
- Which types
prek.languages.rust.rust.Rust→prek.cli.reporter.HookInstallReporter
- Direction
- languages.rust.rust uses cli.reporter. Changing cli.reporter can break languages.rust.rust, not the reverse.
- Position
- Below the diagonal — points down the layering, which is what you want.
38→36 archive depends on languages.r✕
- Type pairs
- 1 distinct (type in archive → type in languages.r) reference.
- Which types
prek.archive.archive$module→prek.languages.r.R
- Direction
- archive uses languages.r. Changing languages.r can break archive, not the reverse.
- Position
- Below the diagonal — points down the layering, which is what you want.
39→7 languages.python.uv depends on process✕
- Type pairs
- 1 distinct (type in languages.python.uv → type in process) reference.
- Which types
prek.languages.python.uv.Uv→prek.process.Cmd
- Direction
- languages.python.uv uses process. Changing process can break languages.python.uv, not the reverse.
- Position
- Below the diagonal — points down the layering, which is what you want.
39→8 languages.python.uv depends on store✕
- Type pairs
- 2 distinct (type in languages.python.uv → type in store) references.
- Which types
prek.languages.python.uv.InstallSource→prek.store.Storeprek.languages.python.uv.Uv→prek.store.Store
- Direction
- languages.python.uv uses store. Changing store can break languages.python.uv, not the reverse.
- Position
- Below the diagonal — points down the layering, which is what you want.
39→38 languages.python.uv depends on archive✕
- Type pairs
- 1 distinct (type in languages.python.uv → type in archive) reference.
- Which types
prek.languages.python.uv.uv$module→prek.archive.Error
- Direction
- languages.python.uv uses archive. Changing archive can break languages.python.uv, not the reverse.
- Position
- Below the diagonal — points down the layering, which is what you want.
40→7 languages.python.python depends on process✕
- Type pairs
- 1 distinct (type in languages.python.python → type in process) reference.
- Which types
prek.languages.python.python.Python→prek.process.Cmd
- Direction
- languages.python.python uses process. Changing process can break languages.python.python, not the reverse.
- Position
- Below the diagonal — points down the layering, which is what you want.
40→8 languages.python.python depends on store✕
- Type pairs
- 1 distinct (type in languages.python.python → type in store) reference.
- Which types
prek.languages.python.python.Python→prek.store.Store
- Direction
- languages.python.python uses store. Changing store can break languages.python.python, not the reverse.
- Position
- Below the diagonal — points down the layering, which is what you want.
40→11 languages.python.python depends on languages✕
- Type pairs
- 1 distinct (type in languages.python.python → type in languages) reference.
- Which types
prek.languages.python.python.Python→prek.languages.LanguageBackend
- Direction
- languages.python.python uses languages. Changing languages can break languages.python.python, not the reverse.
- Position
- Below the diagonal — points down the layering, which is what you want.
40→17 languages.python.python depends on languages.version✕
- Type pairs
- 2 distinct (type in languages.python.python → type in languages.version) references.
- Which types
prek.languages.python.python.Python→prek.languages.version.LanguageRequestprek.languages.python.python.python$module→prek.languages.version.LanguageRequest
- Direction
- languages.python.python uses languages.version. Changing languages.version can break languages.python.python, not the reverse.
- Position
- Below the diagonal — points down the layering, which is what you want.
40→18 languages.python.python depends on hook✕
- Type pairs
- 3 distinct (type in languages.python.python → type in hook) references.
- Which types
prek.languages.python.python.Python→prek.hook.Hookprek.languages.python.python.Python→prek.hook.InstallInfoprek.languages.python.python.Python→prek.hook.InstalledHook
- Direction
- languages.python.python uses hook. Changing hook can break languages.python.python, not the reverse.
- Position
- Below the diagonal — points down the layering, which is what you want.
40→21 languages.python.python depends on cli.reporter✕
- Type pairs
- 1 distinct (type in languages.python.python → type in cli.reporter) reference.
- Which types
prek.languages.python.python.Python→prek.cli.reporter.HookInstallReporter
- Direction
- languages.python.python uses cli.reporter. Changing cli.reporter can break languages.python.python, not the reverse.
- Position
- Below the diagonal — points down the layering, which is what you want.
40→38 languages.python.python depends on archive✕
- Type pairs
- 1 distinct (type in languages.python.python → type in archive) reference.
- Which types
prek.languages.python.python.Python→prek.archive.Error
- Direction
- languages.python.python uses archive. Changing archive can break languages.python.python, not the reverse.
- Position
- Below the diagonal — points down the layering, which is what you want.
40→39 languages.python.python depends on languages.python.uv✕
- Type pairs
- 1 distinct (type in languages.python.python → type in languages.python.uv) reference.
- Which types
prek.languages.python.python.Python→prek.languages.python.uv.Uv
- Direction
- languages.python.python uses languages.python.uv. Changing languages.python.uv can break languages.python.python, not the reverse.
- Position
- Below the diagonal — points down the layering, which is what you want.
At a glance — Code Health
At a glance — Architecture
At a glance — Maturity
At a glance — Readiness
At a glance — Security
At a glance — Domain Modelling
At a glance — Performance
Security & Compliance — OWASP Top-10 mapping
| OWASP category | Findings | Severity |
|---|---|---|
| A03:2021 — Injection | 13 | High / Critical |
| A06:2021 — Vulnerable & Outdated Components | 4 | Medium |
| A05:2021 — Security Misconfiguration | 3 | High / Critical |
Roadmap
First, enable automated dependency review to strengthen security and performance, while documenting disaster recovery procedures to ensure tested restore capabilities. Next, extend structured logging across all runnable modules to guarantee full production diagnosability and resolve the single gap in architectural decision records. Finally, add a testing section to the root README to clarify how to run the test suite.
| Do this | Helps | Effort | Dimension |
|---|---|---|---|
| Enable Dependabot/Renovate or a dependency-review gate. | +8.7 pts | Medium | Security & performance tooling |
| Document RTO/RPO and a tested restore procedure (a backup config alone isn't disaster recovery). | +8.7 pts | Medium | DR & Backup |
| Extend structured logging to the remaining runnable modules so everything you run is diagnosable in production. | +7.4 pts | Medium | Observability |
| Resolve the 1 No ADRs found finding(s) in ADR Quality. | +3.5 pts | Low | ADR Quality |
| Add a 'Testing' section to the root README — how to run the test suite. | +3.5 pts | Medium | Documentation (README) |
| Record significant decisions one document per decision — dated, stating the context, the decision and its consequences — and keep them together wherever your design docs already live (a conventional `docs/adr/` tree, with each file named `NNNN-title` in whatever markup those docs already use, is the most discoverable form). | +3.5 pts | Medium | Architecture documentation |
| Resolve the 2 Documentation finding(s) in Documentation Quality — start with README.md, security.md. | +0.8 pts | Low | Documentation Quality |
| Resolve the 8 REDACTED finding(s) in Static Analysis (SAST) — start with REDACTED (8). | +0.8 pts | Low | Static Analysis (SAST) |
File quality
| File | Score | Band | Worst signal |
|---|---|---|---|
| REDACTED | 3.7 | Mixed | IaC & Container Security: High IaC: REDACTED |
| REDACTED | 4.4 | Mixed | Static Analysis (SAST): High: REDACTED |
| REDACTED | 5.1 | Mixed | Static Analysis (SAST): High: REDACTED |
| crates/prek/src/languages/python/uv.rs | 6.0 | Mixed | Explicit Debt: TodoComment |
| REDACTED | 6.1 | Mixed | Dependency Vulnerabilities: Medium advisory (unsound): REDACTED |
| crates/prek/src/languages/golang/gomod.rs | 6.7 | Mixed | Explicit Debt: TodoComment |
| crates/prek/src/cli/run/filter.rs | 6.7 | Mixed | Explicit Debt: TodoComment |
| crates/prek/src/cli/list.rs | 6.7 | Mixed | Explicit Debt: TodoComment |
| crates/prek/src/hook.rs | 6.7 | Mixed | Explicit Debt: TodoComment |
| crates/prek/src/cli/sample_config.rs | 6.7 | Mixed | Explicit Debt: TodoComment |
| crates/prek/src/cli/cache_gc.rs | 7.0 | Near-clean | Cyclomatic Complexity: prek::cli::cache_gc::cache_gc (cyclomatic 18) |
| crates/prek/src/languages/bun/installer.rs | 7.0 | Near-clean | Code Duplication: Members sharing a duplicated core (6 members, 50+ identical tokens) |
| crates/prek/src/cli/run/run.rs | 7.0 | Near-clean | Cyclomatic Complexity: prek::cli::run::run::run (cyclomatic 18) |
| crates/prek/src/config/hook.rs | 7.1 | Near-clean | Cyclomatic Complexity: HookOptions::update (cyclomatic 24) |
| crates/prek/src/languages/docker.rs | 7.2 | Near-clean | Code Duplication: Members sharing a duplicated core (4 members, 50+ identical tokens) |
| REDACTED | 7.2 | Near-clean | Static Analysis (SAST): High: REDACTED |
| REDACTED | 7.2 | Near-clean | Static Analysis (SAST): High: REDACTED |
| crates/prek/src/cli/run/keeper.rs | 7.3 | Near-clean | Explicit Debt: TodoComment |
| crates/prek/src/languages/conda.rs | 7.3 | Near-clean | Explicit Debt: TodoComment |
| crates/prek/src/languages/golang/version.rs | 7.3 | Near-clean | Explicit Debt: TodoComment |
How the grades work
A definite problem that already costs you something and drags the score down: a missing authorisation check, a dependency with a known exploit, a build that does not reproduce. Failure here tends to cause failures elsewhere.
Likely wrong, but not failing yet. It degrades the codebase over a longer horizon and can cause failures elsewhere — not urgent this week, not something to carry for two years either.
Recorded, with no effect on how the codebase functions. Present so the survey is complete, not because it needs doing.
Something this survey could not settle from the outside, and which could be critical or serious. Either a control was required and no positive evidence of it exists in the repository — a backup job that nothing shows was ever restored from proves nothing about restores — or our own analysis could not run over that part of the tree. This is not a clean result. These are excluded from the score rather than awarded a pass, so the number on the cover neither rewards nor penalises them: if you act on this survey without resolving them, you carry that risk yourself. Each one is named under Limitations.
Methodology & how to trust this report
Watchdog is a deep, periodic assessment — run each sprint, monthly, or quarterly, taking the time to go wider and deeper than a quick check and surfacing in one coherent report what you'd otherwise piece together from a dozen separate tools. It scores deterministically: the same commit yields the same score, every run. 37 of 42 evaluated dimensions are computed purely by tools and static analysis (confidence 1.0); 5 documentation/naming judgement(s) are LLM-assisted and labelled advisory. Overall confidence is 0.9 — the weighted average across measured dimensions; it falls as more of the score leans on LLM-assisted judgement and rises when it's fully tool-backed.
What we checked — 42 dimensions across the health lenses
- Can you open the finding? Real findings cite a repo-relative file and line you can open at the cited line — never an absolute scratch path. Here, 167 of 178 do; the remainder are repo-wide signals — a dimension-level measurement, not a single line.
- Is there a tool behind the number? Every score below names the method that produced it — Roslyn, git, a scanner, or (for a handful of documentation/naming dimensions) an LLM labelled sampled · advisory — not a narrative.
- Does re-running give the same result? Run it again on the same commit and the score — and this report, byte for byte — is identical. A report whose numbers move between runs is describing the run, not the code.
Tools & methods
| Method | Backs | Version | Evaluator |
|---|---|---|---|
| Roslyn static analysis | Complexity, cohesion, coupling, dead code, API surface, layering | 5.3.0 | ✓ deterministic |
| Native secret scanner | Hardcoded secrets / credentials | 1.0.0 | ✓ deterministic |
| Watchdog duplication detector (in-process) | Code duplication | 1.0.0 | ✓ deterministic |
| Coverage (coverlet / dotnet-coverage) | Line & branch coverage | 10.0.400 | ✓ deterministic |
| NuGet / dotnet | Outdated, vulnerable & deprecated dependencies | 10.0.400 | ✓ deterministic |
| git / LibGit2Sharp | Churn hotspots, knowledge concentration, history | 2.43.0 · 0.31.0 | ✓ deterministic |
| gitleaks · semgrep · trivy · checkov | Secrets in history, SAST, CVEs, IaC & container, PII / GDPR | 1.86.0 · 0.69.3 · 3.2.533 | ✓ deterministic |
| LLM (sampled · advisory) | Documentation quality, ADR conformance, naming — sampled over a bounded sample; advisory, never a deterministic measurement | Local LLM | ◐ LLM · sampled · advisory |
Run transparency — what happened this run
- D8 Code Coverage — not measured this run — Watchdog could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. Coverage NOT READ here — but this repository measures it: a Codecov configuration (.github/codecov.yml) and a coverage step in CI (`cargo llvm-cov`) shows that coverage is collected and tracked in your own CI. The built-in collector has no runner for this ecosystem (.rs), so the analyzer could not read the number — a gap in the analyzer's language coverage, not an unmeasured repo. Not scored. To have the real number read, produce a coverage report in a standard format (lcov — `cargo install cargo-llvm-cov`, then `cargo llvm-cov --lcov --output-path lcov.info`) and commit it — a hosted scan measures a clone of the repository, so a report that exists only in a working tree, a CI runner's or your own, never reaches it; the artefact is commonly gitignored, so `git add -f` that one file (or un-ignore its path) and commit it alongside the code it measures. You can widen what we reach: optional: produce a coverage report in a standard format (lcov — `cargo install cargo-llvm-cov`, then `cargo llvm-cov --lcov --output-path lcov.info`) and commit it — a hosted scan measures a clone of the repository, so a report that exists only in a working tree, a CI runner's or your own, never reaches it; the artefact is commonly gitignored, so `git add -f` that one file (or un-ignore its path) and commit it alongside the code it measures — then the real number is read on the next scan.
- D11 Test Reliability — not measured this run — Watchdog could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. Test source is present (.rs) and this repository declares a Cargo test suite (repository root, 144 test files), but it was not re-run: the analyzer environment could not run it. Not scored — this is a gap in the analyzer's language coverage, not a finding about this repository.
- D12 Dependency Hygiene — not measured this run — Watchdog could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. Not scored — 0 shipped Python distribution(s) were read, but the outdated signal needs pypi.org, and no declaration here carries an exact pin to ask about — a floor or a range installs the newest release it admits and cannot be behind one, so this dimension's own question is only partly answered. NOT a finding that these dependencies are current or healthy.
- D14 License Compliance — measured, with a gap in what it reached — Watchdog measured this, but not all of it. What it did not reach is a gap on our side — a collector, parser or image we have not built yet — so the numbers on that dimension cover less than the repository, and the part left out is not evidence that it would have passed. This repository declares a Python REDACTED/requirements.txt (pip/uv/Poetry), but the licence verdict published here was taken over its crate dependencies. Nothing was read about its Python dependencies' licensing in either direction, and a clean score on this card must not be read as covering them.
- D16 Bus Factor — not measured this run — This is a true statement about the repository that carries nothing for its owner to act on, so it is reported here rather than as a defect in their code. Single-maintainer repository — bus factor is not applicable (117 contributor(s) across 2125 commit(s) sampled, automation and bot accounts excluded). One of them holds 86% of the history; the other 116 hold 0.1% each on average, below the 5% at which there is somebody to hand the work to. That is a single maintainer with drive-by contributors, not a team whose knowledge has concentrated — so the bus factor is not applicable and there is nothing here for the owner to act on.
- AX1 Captive dependencies — not measured this run — Watchdog could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. This check is implemented over the C# syntax tree, and no C# was loaded on this run, so it had nothing to read. That is a gap in this analyzer's language reach — not a finding that the repository is free of what this check looks for.
- AX2 Stateful singletons — not measured this run — Watchdog could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. This check is implemented over the C# syntax tree, and no C# was loaded on this run, so it had nothing to read. That is a gap in this analyzer's language reach — not a finding that the repository is free of what this check looks for.
- AX6 Interface segregation — not measured this run — Watchdog could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. This check is computed over the public interfaces this run's compilations declare, and none was loaded, so it had nothing to read. That is a gap in this analyzer's language reach — not a finding that the repository is free of what this check looks for.
- C1 Data Protection — not measured this run — Watchdog could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. These personal data controls are read from declarative annotations, request middleware, entity/column names and guard methods in a C# source model, and none was loaded on this run, so there was nothing to gather. That is a gap in this analyzer's language reach — not a finding that the repository lacks personal data controls.
- C2 Access Controls — not measured this run — Watchdog could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. These authorization controls are read from declarative annotations, request middleware, entity/column names and guard methods in a C# source model, and none was loaded on this run, so there was nothing to gather. That is a gap in this analyzer's language reach — not a finding that the repository lacks authorization controls.
- C3 Audit Trail — not measured this run — Watchdog could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. These audit controls are read from declarative annotations, request middleware, entity/column names and guard methods in a C# source model, and none was loaded on this run, so there was nothing to gather. That is a gap in this analyzer's language reach — not a finding that the repository lacks audit controls.
- C4 Data Retention — not measured this run — Watchdog could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. These retention controls are read from declarative annotations, request middleware, entity/column names and guard methods in a C# source model, and none was loaded on this run, so there was nothing to gather. That is a gap in this analyzer's language reach — not a finding that the repository lacks retention controls.
- C5 Data-Subject Rights — not measured this run — Watchdog could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. These data-subject rights controls are read from declarative annotations, request middleware, entity/column names and guard methods in a C# source model, and none was loaded on this run, so there was nothing to gather. That is a gap in this analyzer's language reach — not a finding that the repository lacks data-subject rights controls.
- DM3 Integration-event coupling — not measured this run — Watchdog could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. Not scored — a domain type leaking across a crate boundary cannot be told apart from source alone from a legitimate shared-kernel crate. Reported as guidance rather than measured.
- DM7 Repository granularity — not measured this run — Watchdog could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. Not scored — detecting 'a repository per CHILD entity' needs the aggregate-root structure, which is not resolvable from source alone here. Reported as guidance rather than measured.
- ED5 Idempotency — not measured this run — Watchdog could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. This check finds retry-prone mutations by walking the repository's declared types, and NONE was loaded on this run, so it had nothing to look at. That is a limit of the analyzer's reach — it reads .NET projects — not a finding that this repository has no command handlers or message consumers.
- GD1 Unfinished & placeholder code — not measured this run — Watchdog could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. This check is implemented over the C# syntax tree, and no C# was loaded on this run, so it had nothing to read. That is a gap in this analyzer's language reach — not a finding that the repository is free of what this check looks for.
- IC1 Incompleteness & stubs — not measured this run — Watchdog could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. This check is implemented over the C# syntax tree, and no C# was loaded on this run, so it had nothing to read. That is a gap in this analyzer's language reach — not a finding that the repository is free of what this check looks for.
- P10 Library API & versioning — not measured this run — Watchdog could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. This check reads NuGet packaging and C# public API only, and no .NET project was loaded for this repository, so it had nothing of this repository's product to read. That is a gap in this analyzer's language reach — not a finding that the repository is free of what this check looks for.
- PF1 Benchmark discipline — not measured this run — Watchdog could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. This check is implemented over the C# syntax tree, and no C# was loaded on this run, so it had nothing to read. That is a gap in this analyzer's language reach — not a finding that the repository is free of what this check looks for.
- PF2 Allocation hygiene — not measured this run — Watchdog could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. This check is implemented over the C# syntax tree, and no C# was loaded on this run, so it had nothing to read. That is a gap in this analyzer's language reach — not a finding that the repository is free of what this check looks for.
- S1 Web-Security Posture — not measured this run — Watchdog could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. These web-security controls are read from declarative annotations, request middleware, entity/column names and guard methods in a C# source model, and none was loaded on this run, so there was nothing to gather. That is a gap in this analyzer's language reach — not a finding that the repository lacks web-security controls.
- X1 Async correctness — not measured this run — Watchdog could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. This check is implemented over the C# syntax tree, and no C# was loaded on this run, so it had nothing to read. That is a gap in this analyzer's language reach — not a finding that the repository is free of what this check looks for.
- X10 Duplicated predicate — not measured this run — Watchdog could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. This check is implemented over the C# syntax tree, and no C# was loaded on this run, so it had nothing to read. That is a gap in this analyzer's language reach — not a finding that the repository is free of what this check looks for.
- X12 Unreachable branch — not measured this run — Watchdog could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. This check is implemented over the C# syntax tree, and no C# was loaded on this run, so it had nothing to read. That is a gap in this analyzer's language reach — not a finding that the repository is free of what this check looks for.
- X13 Undrained process stream — not measured this run — Watchdog could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. This check is implemented over the C# syntax tree, and no C# was loaded on this run, so it had nothing to read. That is a gap in this analyzer's language reach — not a finding that the repository is free of what this check looks for.
- X14 Bypassable address classification — not measured this run — Watchdog could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. This check is implemented over the C# syntax tree, and no C# was loaded on this run, so it had nothing to read. That is a gap in this analyzer's language reach — not a finding that the repository is free of what this check looks for.
- X15 Unvalidated length from an untrusted reader — not measured this run — Watchdog could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. This check is implemented over the C# syntax tree, and no C# was loaded on this run, so it had nothing to read. That is a gap in this analyzer's language reach — not a finding that the repository is free of what this check looks for.
- X16 Unfloored truncation loop — not measured this run — Watchdog could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. This check is implemented over the C# syntax tree, and no C# was loaded on this run, so it had nothing to read. That is a gap in this analyzer's language reach — not a finding that the repository is free of what this check looks for.
- X17 Uncapped recursion over a caller-supplied document — not measured this run — Watchdog could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. This check is implemented over the C# syntax tree, and no C# was loaded on this run, so it had nothing to read. That is a gap in this analyzer's language reach — not a finding that the repository is free of what this check looks for.
- X18 Disposal-pattern correctness — not measured this run — Watchdog could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. This check is implemented over the C# syntax tree, and no C# was loaded on this run, so it had nothing to read. That is a gap in this analyzer's language reach — not a finding that the repository is free of what this check looks for.
- X19 Unrestored process-global state — not measured this run — Watchdog could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. This check is implemented over the C# syntax tree, and no C# was loaded on this run, so it had nothing to read. That is a gap in this analyzer's language reach — not a finding that the repository is free of what this check looks for.
- X2 Cancellation propagation — not measured this run — Watchdog could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. This check is implemented over the C# syntax tree, and no C# was loaded on this run, so it had nothing to read. That is a gap in this analyzer's language reach — not a finding that the repository is free of what this check looks for.
- X20 Mistyped argument guard — not measured this run — Watchdog could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. This check is implemented over the C# syntax tree, and no C# was loaded on this run, so it had nothing to read. That is a gap in this analyzer's language reach — not a finding that the repository is free of what this check looks for.
- X21 Side-effecting pattern guard — not measured this run — Watchdog could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. This check is implemented over the C# syntax tree, and no C# was loaded on this run, so it had nothing to read. That is a gap in this analyzer's language reach — not a finding that the repository is free of what this check looks for.
- X22 Contradicted release guard — not measured this run — Watchdog could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. This check is implemented over the C# syntax tree, and no C# was loaded on this run, so it had nothing to read. That is a gap in this analyzer's language reach — not a finding that the repository is free of what this check looks for.
- X23 Unguarded diagnostic materialisation — not measured this run — Watchdog could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. This check is implemented over the C# syntax tree, and no C# was loaded on this run, so it had nothing to read. That is a gap in this analyzer's language reach — not a finding that the repository is free of what this check looks for.
- X24 Document value interpolated into markup unescaped — not measured this run — Watchdog could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. This check is implemented over the C# syntax tree, and no C# was loaded on this run, so it had nothing to read. That is a gap in this analyzer's language reach — not a finding that the repository is free of what this check looks for.
- X25 Inert configuration knob — not measured this run — Watchdog could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. This check is implemented over the C# syntax tree, and no C# was loaded on this run, so it had nothing to read. That is a gap in this analyzer's language reach — not a finding that the repository is free of what this check looks for.
- X26 Unsynchronised callback handoff — not measured this run — Watchdog could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. This check is implemented over the C# syntax tree, and no C# was loaded on this run, so it had nothing to read. That is a gap in this analyzer's language reach — not a finding that the repository is free of what this check looks for.
- X27 Collection changed while being enumerated — not measured this run — Watchdog could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. This check is implemented over the C# syntax tree, and no C# was loaded on this run, so it had nothing to read. That is a gap in this analyzer's language reach — not a finding that the repository is free of what this check looks for.
- X28 Index access outside its own emptiness guard — not measured this run — Watchdog could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. This check is implemented over the C# syntax tree, and no C# was loaded on this run, so it had nothing to read. That is a gap in this analyzer's language reach — not a finding that the repository is free of what this check looks for.
- X29 Per-element action decided by a fixed element — not measured this run — Watchdog could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. This check is implemented over the C# syntax tree, and no C# was loaded on this run, so it had nothing to read. That is a gap in this analyzer's language reach — not a finding that the repository is free of what this check looks for.
- X3 Exception handling — not measured this run — Watchdog could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. This check is implemented over the C# syntax tree, and no C# was loaded on this run, so it had nothing to read. That is a gap in this analyzer's language reach — not a finding that the repository is free of what this check looks for.
- X30 Support guard that admits what it rejects — not measured this run — Watchdog could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. This check is implemented over the C# syntax tree, and no C# was loaded on this run, so it had nothing to read. That is a gap in this analyzer's language reach — not a finding that the repository is free of what this check looks for.
- X32 Type resolved by simple name across every loaded assembly — not measured this run — Watchdog could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. This check is implemented over the C# syntax tree, and no C# was loaded on this run, so it had nothing to read. That is a gap in this analyzer's language reach — not a finding that the repository is free of what this check looks for.
- X4 Structured logging — not measured this run — Watchdog could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. This check is implemented over the C# syntax tree, and no C# was loaded on this run, so it had nothing to read. That is a gap in this analyzer's language reach — not a finding that the repository is free of what this check looks for.
- X5 Nullable reference types — not measured this run — Watchdog could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. This check is implemented over the C# syntax tree, and no C# was loaded on this run, so it had nothing to read. That is a gap in this analyzer's language reach — not a finding that the repository is free of what this check looks for.
- X6 Hand-rolled structured-format parsing — not measured this run — Watchdog could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. This check is implemented over the C# syntax tree, and no C# was loaded on this run, so it had nothing to read. That is a gap in this analyzer's language reach — not a finding that the repository is free of what this check looks for.
- X7 Silent fallback defaults — not measured this run — Watchdog could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. This check is implemented over the C# syntax tree, and no C# was loaded on this run, so it had nothing to read. That is a gap in this analyzer's language reach — not a finding that the repository is free of what this check looks for.
Limitations & what we did not check
Watchdog assesses the repository exactly as committed, and only the repository. By design it does not reach outside the source tree: the live cloud account, the running CI/CD pipeline, the host's branch-protection and approval rules, the production configuration, or a restore actually exercised against a backup are all out of scope. That boundary is a feature, not a gap — a repo-relative, deterministic scan re-runs identically on any commit and every finding opens at a real file and line, where a live audit can neither be reproduced nor traced. The visible consequence is that controls which leave no in-repo evidence are reported as "not evidenced" and excluded from the score rather than awarded a number a static scan cannot justify.
Per-dimension blind spots
- D1 Cyclomatic Complexity: Cyclomatic complexity counts branches statically — it cannot tell an essential decision tree from accidental tangle, nor see complexity that lives in data or configuration (large switch-case token tables, DSL lexers/parsers, data-as-code rule tables) rather than control flow: a tokenizer's many single-character cases read as high complexity though each branch is trivial.
- D2 Cognitive Complexity: Cognitive-complexity heuristics approximate how hard code is to follow; genuine domain difficulty and well-named intent that eases reading are not captured.
- D3 God Classes: "God class" is sized by members and responsibilities visible in the type — a deliberately broad facade over a coherent subsystem can read the same as an accidental grab-bag. For front-end JS the file-length check is cohesion-aware (a single-responsibility module — one class/IIFE — earns a 3× threshold), but cohesion is approximated from top-level declarations, not true dependency structure.
- D4 Code Duplication: Duplication is token-similarity — an in-process token-stream comparison over sliding windows, with type-aware normalization — so it finds copy-paste, not semantic duplication expressed differently. Committed machine-written code (scaffolded migrations, designer/codegen output, protobuf/OpenAPI stubs, model snapshots) is EXCLUDED — its repetition is the tool's, not the team's — so the score reflects hand-written duplication only.
- D5 Coupling: Coupling is measured between projects/assemblies — runtime coupling through DI, reflection, messaging or shared databases is invisible to a static reference graph.
- D6 Cohesion (LCOM4): LCOM4 cohesion is syntactic — it infers connectivity from which methods touch which fields/methods by name, not from real runtime behaviour or intent.
- D9 Test Distribution: The test-pyramid shape is inferred from project/folder naming and references, with a single test host bucketed per-file by its path tier and content signals — a suite that names tiers unconventionally and gives no per-file signal can still be mis-bucketed.
- D13 Secret Scanning: Secret detection is signature- and entropy-based on the current tree — a secret that does not match a known pattern, or one already rotated, will not be flagged (a clean scan is "nothing matched", not "no secrets exist").
- D14 License Compliance: License compatibility is checked against declared package metadata and a policy — mislabelled or missing license metadata, and obligations that depend on how you distribute, are not resolved here.
- D15 Churn × Complexity Hotspots: Churn hotspots come from git history — a freshly imported or squashed repository has no churn signal, and recent rewrites can mask a historically risky file.
- D17 Explicit Debt: Acknowledged-debt signals (TODO/FIXME, suppressions, dead code) are textual — undocumented debt that nobody marked, and debt that lives in design rather than annotations, is invisible. Committed machine-written code (scaffolded migrations, designer/codegen output, generated stubs) is excluded — it is never the team's dead code to delete.
- D19 Documentation Quality: Documentation quality is judged by an LLM over a bounded sample of docs — it reads what is written, not whether the docs match the running system, and it is advisory, not a measurement. Its critique rows are drawn from a closed category vocabulary and each row means the same thing in every run, so two scans can be compared row by row; the SET that fires is still a sample, and does not repeat exactly. Measured on one frozen input, six scans at one engine SHA: 2-5 critique rows per scan, 8 distinct rows across the six, 3 of those 8 seen in only one scan. So a D19 row is evidence about the documentation, but a COUNT of D19 rows is not a quantity — never read a change in it as an improvement or a regression.
- D20 ADR Quality: ADR quality is an LLM read of the decision records present — it cannot know about decisions made and never recorded, and its verdict is sampled and advisory.
- D21 Naming Consistency: Naming quality is an LLM judgement over a bounded sample — it assesses clarity/consistency of the names it sees, not domain-correctness, and is advisory.
- D22 Internal API Consistency: API-surface coherence is an LLM judgement over a sample of the public surface — consistency of intent across the whole API is approximated, not exhaustively verified.
- D26 Project Cohesion: Project focus is sized from members/namespaces per project — a project that is broad by deliberate design reads the same as one that has sprawled.
- D28 Secrets (history): Secret-history scanning sweeps the git log for known patterns — a secret that predates the available history, or never matched a signature, is not found (clean means "nothing matched in the history we can see").
- D29 Static Analysis (SAST): SAST findings are pattern-based (semgrep) — it finds classes of bug it has rules for; logic flaws, auth/authorization gaps and issues needing runtime context are out of reach (and clean means "no rule matched").
- D30 Dependency Vulnerabilities: CVE matching depends on accurate package/version metadata and on the advisory databases — a vulnerability with no published advisory, or in code not declared as a dependency, is not seen. Coverage needs a RESOLVED graph: an unpinned requirements.txt, or a pom without a resolved build, yields partial coverage rather than a clean verdict. An ecosystem the analyzer cannot scan is reported as unmeasured, never as clean.
- D31 IaC & Container Security: IaC scanning checks Dockerfiles/Terraform/Kubernetes against best-practice rules — it cannot see the live cloud account, runtime configuration, or drift between the committed config and what is actually deployed.
- D34 Knowledge Freshness: Freshness is decayed commit RECENCY, not comprehension — code read often but rarely committed reads as orphaned, and stable code that genuinely needs no changes is penalised the same as forgotten code; bot/squash commits distort it like the bus factor.
- D35 Change Coupling: Change coupling is co-change in COMMITS — files split across separate commits, or coupled only through a shared config/build step, read as uncoupled, and a sweeping commit (rename/format) is excluded so it doesn't couple everything. It shows that files change together, not WHY: a high coupling can be a healthy cohesive pair as readily as a hidden leak.
- D43 Malicious Dependencies: Only packages some vulnerability database has already NAMED as malicious are seen — a compromise published in the last hours, or never reported at all, is invisible here, and this dimension reading 10 is not evidence that a dependency is trustworthy. There is no typosquat or dependency-confusion analysis: a package nobody has reported is simply absent from the feeds. Coverage is the dependency scan's: an ecosystem that could not be scanned is disclosed as unmeasured, never as clean.
- D44 Platform End-of-Life: The support table is FROZEN, so it goes out of date by losing RECALL: a release that ended support after the table was written is missed until the table is refreshed, and this dimension reading 10 is not evidence that a platform is current. Only platforms the repository DECLARES in a place this pass reads are seen — a runtime named only in a REDACTED (D31's subject), in a CI workflow (D29's), or in a file this pass does not parse (go.mod, a Gemfile ruby directive) is invisible here, which is why a repository declaring none of them abstains rather than scoring. Only frameworks with a PUBLISHED support policy are tracked: React, Flask and Express publish none, so their age cannot be judged and their absence from a report is not a statement that they are supported.
- AX10 Code composition: Role is inferred from namespace/folder convention, not semantics — a domain concept living in a folder named "Services" reads as application, and the split is lines-of-code, not business value. The business-logic-share score is a SOFT, FLOORED signal: it contributes to the Architecture lens but is floored at the Critical gate, so an infrastructure-heavy design (a gateway, an ETL, a driver) is legitimately low without being nuked to zero.
- AX9 CQS / query purity: Handlers are found by interface/name convention — a query handler using neither is not seen. Mutation is a resolved write/publish invocation (SaveChanges/repository/bus), so a write hidden behind a hand-rolled wrapper, reflection, or a string-keyed service locator resolves to a non-persistence type and isn't flagged; it detects that a query writes state, not whether the write is a legitimate read-side cache update. Clean means "no resolved write/publish in a query body", not a proof of CQS purity.
- DM4 Rich vs anemic domain model: Behaviour is detected as state mutation inside a method body — a method that enforces an invariant by validating-and-throwing without mutating reads as a query, and mutation delegated through an interface the scan can't resolve isn't credited; entities with zero public properties still drop out of the population. It detects that state changes, not whether the rule is correct.
- M4 Documentation accuracy: Onboarding quality is an LLM read of the docs/setup present — it cannot run the onboarding or measure how long a real new joiner takes; the verdict is sampled and advisory.
- P4 Deployment & Rollback: Approval/branch-protection rules live in repository settings the scan cannot see — only their in-repo evidence (config files, workflows) is checked, so a control enforced purely in the host's settings reads as "not evidenced".
- P5 DR & Backup: Backup/restore and disaster-recovery readiness is judged from in-repo evidence — a config that exists is not a tested restore, so the absence of positive evidence is reported as "not evidenced", never scored as present.
- P6 Release Hygiene: Rollback/observability controls are inferred from repo artefacts (pipelines, dashboards-as-code) — controls configured in external tooling, with no in-repo trace, cannot be credited.
The LLM boundary
Dimensions
D1 · Cyclomatic Complexity
12 method(s) exceeded the cyclomatic complexity threshold of 15; the worst was prek::run at 43. A further 7 method(s) were over the threshold but excluded as flat dispatchers (a long switch/match over independent cases: many branches, almost no nesting), the largest being BuiltinHook::from_id at 29 — they are counted neither in the figure above nor in this dimension's score. 6 files carry no cyclomatic complexity row at all for this reason — every one of their over-threshold functions was excluded, so the exclusion is disclosed nowhere in the file itself: crates/prek/src/hooks/builtin_hooks/mod.rs (BuiltinHook::from_id at 29), crates/prek/src/languages/mod.rs (Language::backend at 25), crates/prek/src/hooks/pre_commit_hooks/mod.rs (PreCommitHooks::run at 22), crates/prek/src/languages/golang/installer.rs (GoInstaller::download at 18), crates/prek/src/languages/python/uv.rs (prek::languages::python::uv::wheel_platform_tag_for_host at 18), and 1 more not listed here. They are named here because the per-file figures other dimensions report are taken BEFORE this exclusion, so such a file can show a high maximum complexity elsewhere in this report and nothing here, with nothing to reconcile the two.
What to do
- Resolve the 9 prek finding(s) in Cyclomatic Complexity — start with cache_gc.rs (3), main.rs, schema.rs. — One of this dimension's main actionable groups (9 warning-level).
- Resolve the 1 HookOptions finding(s) in Cyclomatic Complexity — start with hook.rs. — One of this dimension's main actionable groups (1 warning-level).
- Resolve the 1 Repo finding(s) in Cyclomatic Complexity — start with repo.rs. — One of this dimension's main actionable groups (1 warning-level).
- Enforce Cyclomatic Complexity in CI to reach Verified (currently Documented). — Hardens enforcement from Documented toward Prevented — provenance only; does not change the score.
D2 · Cognitive Complexity
36 method(s) exceeded the cognitive complexity threshold of 15; the worst was prek::schema::strip_null_acceptance at 51.
What to do
- Resolve the 24 prek finding(s) in Cognitive Complexity — start with cache_gc.rs (5), display.rs (2), install.rs (2). — One of this dimension's main actionable groups (24 warning-level).
- Resolve the 2 HookRunSession finding(s) in Cognitive Complexity — start with run.rs (2). — One of this dimension's main actionable groups (2 warning-level).
- Resolve the 1 HookOptions finding(s) in Cognitive Complexity — start with hook.rs. — One of this dimension's main actionable groups (1 warning-level).
- Enforce Cognitive Complexity in CI to reach Verified (currently Documented). — Hardens enforcement from Documented toward Prevented — provenance only; does not change the score.
D3 · God Classes
16 god class(es) detected.
What to do
- Resolve the 10 FileTooLong finding(s) in God Classes — start with mod.rs (2), hook.rs (2), run.rs. — One of this dimension's main actionable groups (10 warning-level).
- Resolve the 4 FunctionTooLong finding(s) in God Classes — start with main.rs, run.rs, cache_gc.rs. — One of this dimension's main actionable groups (4 warning-level).
- Resolve the 1 MethodTooLong finding(s) in God Classes — start with mod.rs. — One of this dimension's main actionable groups (1 warning-level).
- Enforce God Classes in CI to reach Verified (currently Documented). — Hardens enforcement from Documented toward Prevented — provenance only; does not change the score.
D4 · Code Duplication
41 duplicated block group(s) detected. A further 2 rows report members as variants of one another; they aggregate block groups already counted above and are not themselves counted.
What to do
- Resolve the 4 Duplicated block (8 lines × 2) finding(s) in Code Duplication — start with mod.rs, docker.rs, self_update.rs. — One of this dimension's main actionable groups (4 warning-level).
- Resolve the 4 Duplicated block (5 lines × 2) finding(s) in Code Duplication — start with check_executables_have_shebangs.rs, pty.rs, sample_config.rs. — One of this dimension's main actionable groups (4 warning-level).
- Resolve the 3 Duplicated block (11 lines × 2) finding(s) in Code Duplication — start with uv.rs, git.rs, cache_gc.rs. — One of this dimension's main actionable groups (3 warning-level).
- Enforce Code Duplication in CI to reach Verified (currently Documented). — Hardens enforcement from Documented toward Verified — provenance only; does not change the score.
D5 · Coupling
4 production modules (Cargo), 0 dependency cycle(s), 0 unstable depended-on module(s). Read from the build's own module declarations; 2 module(s) off the main sequence.
What to do
- Resolve the 2 Off the main sequence finding(s) in Coupling. — One of this dimension's main actionable groups (2 warning-level).
- Enforce Coupling in CI to reach Verified (currently Documented). — Hardens enforcement from Documented toward Prevented — provenance only; does not change the score.
D6 · Cohesion (LCOM4)
0 of 80 classes have LCOM4 above 3.
D9 · Test Distribution
1173 test methods: 630 unit, 543 integration, 0 BDD, 0 e2e. The Rust suite contributes 1173 `#[test]` function(s) across 144 file(s) declaring at least one; its unit/integration split is Cargo's own — 56 of those file(s) are integration-test targets under a crate's tests/ directory, and the rest are #[test] functions compiled into the crate they test.
D13 · Secret Scanning
Secret scan ran and found no leaked secrets.
D14 · License Compliance
0 of 376 shipped crate(s) use a banned license. Licences were resolved from crates.io over the crates a consumer compiles — this repository's REDACTED closed over its manifests' `[dependencies]` and `[build-dependencies]`. Crates it asks for ONLY under `[dev-dependencies]` are excluded: they are not compiled by anything that depends on this repository. This repository publishes itself under MIT, which is its own choice and is not judged here. ★ COVERAGE OF THIS VERDICT: it grades this repository's crate dependencies and nothing else. The repository also declares a Python REDACTED/requirements.txt (pip/uv/Poetry), and the licences of those dependencies were NOT read by this pass — a gap in this engine's coverage, not a statement about them. So this result says the graded closure carries no banned licence; it does NOT say this repository's licensing is clear.
D15 · Churn × Complexity Hotspots
Top hotspots: crates/prek/src/main.rs (14×43=602); crates/prek/src/cli/run/run.rs (27×18=486); crates/prek/src/languages/mod.rs (15×25=375)
What to do
- Resolve the 10 Hotspot finding(s) in Churn × Complexity Hotspots — start with mod.rs (3), installer.rs (2), main.rs. — One of this dimension's main actionable groups (10 warning-level).
D17 · Explicit Debt
25 deducted task-comment markers across 49179 LoC (0.0/KLoC) → score 9.9. Task comments only: this repository's language is read without a compiler, so D17's suppression, dead-code and commented-out-code arms did not run and this score counts fewer marker kinds than a .NET repository's would.
What to do
- Resolve the 25 TodoComment finding(s) in Explicit Debt — start with version.rs (5), mod.rs (4), keeper.rs (2). — One of this dimension's main actionable groups (25 warning-level).
- Enforce Explicit Debt in CI to reach Verified (currently Documented). — Hardens enforcement from Documented toward Prevented — provenance only; does not change the score.
D19 · Documentation Quality
The repository's root README (README.md) gives a strong overview of prek as a Rust framework for running hooks on code, its compatibility with pre-commit, and links to architecture/Docs markdown files. The docs are well-organized: the root README covers installation, usage, contributing, and licensing; the authoring-hooks.md page explains hook repository structure and the .pre-commit-hooks.yaml manifest; benchmark.md compares prek against pre-commit for speed; built-in-hooks.md lists Rust-native fast hooks with opt-out guidance; compatibility.md documents drop-in replacement behavior across formats; configuration.md covers config selection and YAML-to-TOML conversion; a cookbook shows enabling global Git hooks via config-based hooks; and debugging.md walks through recording versions, tracing failures, and verifying hook eligibility. The visible content is complete and well-structured. This project is a well-structured documentation suite with a strong README (quickstart.md) that explains the tool and its two main use cases (replacing pre-commit commands and migrating from pre-commit), plus a dedicated running-hooks.md architecture doc. The proposals series covers priority-based parallel hook execution and hook-grouped run selection, both of which are well-documented in design docs with concrete configuration examples. All four outlined documents exist and are complete within the visible text. (9 of 25 sampled documents could not be assessed: 1 of 3 evaluation groups failed.)
D20 · ADR Quality
No architecture decision records were found.
What to do
- Resolve the 1 No ADRs found finding(s) in ADR Quality. — One of this dimension's main actionable groups (1 recommendation-level).
D21 · Naming Consistency
0 naming inconsistencies across 0 sampled symbols.
D22 · Internal API Consistency
1 API inconsistencies across 17 exposed types.
What to do
- Resolve the 1 Redundant method exposure across split types. `Pty` splits into… finding(s) in Internal API Consistency. — One of this dimension's main actionable groups (1 warning-level).
D26 · Project Cohesion
1 of 4 build units (Cargo) flagged as possibly oversized/incoherent.
What to do
- Resolve the 1 Projects may be oversized for their cohesion finding(s) in Project Cohesion. — One of this dimension's main actionable groups (1 recommendation-level).
D28 · Secrets (history)
gitleaks scanned the full history AND the current working tree and found no secrets.
D29 · Static Analysis (SAST)
13 finding(s): 0 critical, 13 high, 0 medium, 0 low. semgrep hit a parse error in 5 file(s) — `crates/prek/src/cli/update/mod.rs` (line 487), `crates/prek/src/languages/bun/installer.rs` (line 211), `crates/prek/src/languages/mod.rs` (line 129), `crates/prek/src/languages/python/uv.rs` (line 342, line 474), `crates/prek/src/workspace.rs` (line 379) — so no absence of findings in the named regions is evidence of anything; rows reported elsewhere in those files are real. Fix the syntax error (or exclude the file deliberately) and re-scan to cover them. Separately, one or more rules could not re-parse an embedded snippet in 4 file(s) (e.g. a workflow `run:` block read as shell). Those files WERE scanned and their other rows are unaffected; only those rules' view of those snippets is missing.
What to do
- Resolve the 8 REDACTED finding(s) in Static Analysis (SAST) — start with REDACTED (8). — One of this dimension's main actionable groups (8 issue-level).
- Resolve the 2 REDACTED finding(s) in Static Analysis (SAST) — start with REDACTED, REDACTED. — One of this dimension's main actionable groups (2 issue-level).
- Resolve the 1 REDACTED finding(s) in Static Analysis (SAST) — start with REDACTED. — One of this dimension's main actionable groups (1 issue-level).
D30 · Dependency Vulnerabilities
4 finding(s): 0 critical, 0 high, 4 medium, 0 low.
What to do
- Resolve the 3 Medium vulnerability finding(s) in Dependency Vulnerabilities — start with REDACTED (3). — One of this dimension's main actionable groups (3 warning-level).
- Resolve the 1 Medium advisory (unsound) finding(s) in Dependency Vulnerabilities — start with REDACTED. — One of this dimension's main actionable groups (1 warning-level).
D31 · IaC & Container Security
3 finding(s): 0 critical, 2 high, 1 medium, 0 low.
What to do
- Resolve the 2 High IaC finding(s) in IaC & Container Security — start with REDACTED (2). — One of this dimension's main actionable groups (2 issue-level).
- Resolve the 1 Medium IaC finding(s) in IaC & Container Security — start with REDACTED. — One of this dimension's main actionable groups (1 warning-level).
D34 · Knowledge Freshness
1 of 134 significant source file(s) are orphaned — their living knowledge has decayed to nothing, so no one currently understands them. The largest is python/prek/_find_prek.py. Counted over 134 of the 160 production source files in this repository: the rest are under the ~2,400-byte size floor this dimension measures over.
D35 · Change Coupling
Strongest change-coupling: node.rs↔ruby.rs 50%; golang.rs↔ruby.rs 50%
What to do
- Resolve the 2 Change coupling finding(s) in Change Coupling — start with node.rs, golang.rs. — One of this dimension's main actionable groups (2 warning-level).
D36 · Supply-chain Provenance & Signing
Build pipeline generates provenance, signs artifacts and produces an SBOM.
What to do
- Resolve the 1 REDACTED finding(s) in Supply-chain Provenance & Signing — start with REDACTED. — One of this dimension's main actionable groups (1 warning-level).
- Resolve the 1 REDACTED finding(s) in Supply-chain Provenance & Signing. — One of this dimension's main actionable groups (1 warning-level).
- Resolve the 1 REDACTED finding(s) in Supply-chain Provenance & Signing. — One of this dimension's main actionable groups (1 recommendation-level).
D43 · Malicious Dependencies
No dependency in any ecosystem this repository declares is published as malicious.
D44 · Platform End-of-Life
0 end-of-life runtime(s) and 0 end-of-life framework(s), read from 3 platform declaration(s) and 0 dependency declaration(s). This dimension reads what the repository says about ITSELF — a pinned target framework, a version file, a capped requires-python, a Rust toolchain pin, a framework major a constraint cannot move off. A FLOOR is deliberately never charged: `requires-python = ">=3.8"` states what the package SUPPORTS, not what it runs on, and a well-maintained library declares exactly that while running its own CI on a current release. The end-of-life facts are FROZEN and dated, so this dimension needs no network and answers identically inside a closed scan fence; as the table ages it loses recall and never precision, because a statement about support that ended in the past cannot become false. The OS layer of a container image is D31's question and the toolchain a CI workflow installs is D29's; this row is neither.
Frontend & cross-cutting dimensions
AX10 · Code composition
What to do
- The domain core is a small share of production code, but most of the rest matched no layer vocabulary at all — so this is not yet an anemic-domain finding. The namespace/path convention could not place that code, which makes the composition above a statement about the naming, not about the design. Name the layers (or check that the repository's conventions differ from the ones this check knows) before reading a thin domain into it.
AX3 · Project dependency cycles
AX4 · Dependency direction
AX9 · CQS / query purity
DM4 · Rich vs anemic domain model
DM5 · Encapsulated state
M1 · Documentation (README)
What to do
- Add a 'Testing' section to the root README — how to run the test suite.
- Add an 'Architecture' / 'How it works' section to the root README — the high-level shape.
- Add a README to the 4 of 4 project(s) that lack one — worth up to 2 pts.
M2 · Architecture documentation
- No Architecture Decision Records found — no conventional ADR directory, no numbered `NNNN-title` documents in any markup this check reads, and nothing ADR-shaped by content. Design rationale recorded elsewhere (a design-notes tree, a mailing list, pull-request discussion) is not visible to this check and is not re-findable per decision, so a future maintainer cannot ask why one choice was made and get an answer.
What to do
- Record significant decisions one document per decision — dated, stating the context, the decision and its consequences — and keep them together wherever your design docs already live (a conventional `docs/adr/` tree, with each file named `NNNN-title` in whatever markup those docs already use, is the most discoverable form).
M3 · Folder & project structure
M4 · Documentation accuracy
P1 · CI/CD gates
P2 · Observability
- Only 2/3 runnable modules use logging (modules with no entry point or server are excluded — they are libraries a runnable module hosts). Silent: `.`.
What to do
- Extend structured logging to the remaining runnable modules so everything you run is diagnosable in production.
- Add a health-check endpoint (a /health route on your axum/actix router) so orchestrators and load balancers can probe liveness/readiness.
P3 · Security & performance tooling
What to do
- Enable Dependabot/Renovate or a dependency-review gate.
- Add gitleaks/trufflehog in CI to block PRs that introduce committed secrets.
P4 · Deployment & Rollback
P5 · DR & Backup
What to do
- Document RTO/RPO and a tested restore procedure (a backup config alone isn't disaster recovery).
- Enable purge protection / soft-delete (and prevent_destroy on critical resources) so data stores can't be lost to an accidental or malicious delete.
P6 · Release Hygiene
PF3 · Async & latency hygiene
Reference — by lens
| Lens | Score | Rating | Impact |
|---|---|---|---|
| Code Health | 89% | Exemplary | Solid. |
| Architecture | 90% | Exemplary | Solid. |
| Maturity | 75% | Strong | Solid. |
| Readiness | 64% | Strong | Largest drag on the score — prioritise here. |
| Security | 85% | Adequate — gated by D29 | Capped at Fair by a Critical contributor — resolve it before relying on this lens. |
| Domain Modelling | 100% | Exemplary | Strongest area. |
| Performance | 100% | Exemplary | Solid. |
Unscored — 1 check(s) recorded observations but carry no score
- P12 CI test-gate honesty — 1 observation(s) recorded · Reported, not scored — this card publishes what the CI gate does with the test inventory rather than grading it. The findings above are its output.
Not evidenced — 3 control(s) we could not find positive evidence for
- C3 Audit Trail — Not assessed: these audit controls are read from a source model (declarative annotations, request middleware, entity/column names, guard methods) that was not loaded for this repository — because the repository is written in a language this check does not yet model, or because its projects failed to load. Absence of an idiom this check recognises is NOT evidence that this repository lacks audit controls: it may implement them entirely in its own ecosystem. This is a gap in the analyzer's language coverage, not a finding about this repository.
- C4 Data Retention — Not assessed: these retention controls are read from a source model (declarative annotations, request middleware, entity/column names, guard methods) that was not loaded for this repository — because the repository is written in a language this check does not yet model, or because its projects failed to load. Absence of an idiom this check recognises is NOT evidence that this repository lacks retention controls: it may implement them entirely in its own ecosystem. This is a gap in the analyzer's language coverage, not a finding about this repository.
- C5 Data-Subject Rights — Not assessed: these data-subject rights controls are read from a source model (declarative annotations, request middleware, entity/column names, guard methods) that was not loaded for this repository — because the repository is written in a language this check does not yet model, or because its projects failed to load. Absence of an idiom this check recognises is NOT evidence that this repository lacks data-subject rights controls: it may implement them entirely in its own ecosystem. This is a gap in the analyzer's language coverage, not a finding about this repository.
Not included — 80 check(s) not relevant to this codebase
- AC1 Text alternatives — No web markup found — accessibility is not applicable to this repository.
- AC2 Forms & labels — No web markup found — accessibility is not applicable to this repository.
- AC3 Page structure — No web markup found — accessibility is not applicable to this repository.
- AC4 Keyboard semantics — No web markup found — accessibility is not applicable to this repository.
- AC5 ARIA correctness — No web markup found — accessibility is not applicable to this repository.
- AC6 Visual & motion safety — No web markup found — accessibility is not applicable to this repository.
- AC7 A11y enforcement — No web markup found — accessibility is not applicable to this repository.
- AX1 Captive dependencies — not analysed — these correctness checks read a source model that was not loaded for this repository, because the repository is written in a language this check does not yet model, or because its projects failed to load. This is a gap in the analyzer, not a finding about this repository
- AX2 Stateful singletons — not analysed — these correctness checks read a source model that was not loaded for this repository, because the repository is written in a language this check does not yet model, or because its projects failed to load. This is a gap in the analyzer, not a finding about this repository
- AX5 Architecture & structure — not assessed — architecture style/structure is computed from a project graph (projects, types, module namespaces) that was not loaded for this repository, because the repository is written in a language this check does not yet model, or because its projects failed to load. This is a gap in the analyzer, not a finding about this repository
- AX6 Interface segregation — not assessed — interface segregation is computed over a type surface that was not loaded for this repository, because the repository is written in a language this check does not yet model, or because its projects failed to load. This is a gap in the analyzer, not a finding about this repository
- AX7 Slice cohesion — not applicable — not a vertical-slice architecture
- AX8 Test isolation — no test/production split to check
- AXB2 Runtime readiness — Advisory — this card reports evidence and never carries a score, so there is nothing missing here.
- AXR1 Runtime accessibility — docker build failed (exit 1) — DEPRECATED: The legacy builder is deprecated and will be removed in a future release. Install the buildx component to build images with BuildKit: https://docs.docker.com/go/bui…; runtime evidence skipped This is a statement about this run, not a statement about your application: nothing here says the surface is inaccessible, only that it was never rendered.
- C1 Data Protection — Not assessed: these personal data controls are read from a source model (declarative annotations, request middleware, entity/column names, guard methods) that was not loaded for this repository — because the repository is written in a language this check does not yet model, or because its projects failed to load. Absence of an idiom this check recognises is NOT evidence that this repository lacks personal data controls: it may implement them entirely in its own ecosystem. This is a gap in the analyzer's language coverage, not a finding about this repository.
- C2 Access Controls — Not assessed: these authorization controls are read from a source model (declarative annotations, request middleware, entity/column names, guard methods) that was not loaded for this repository — because the repository is written in a language this check does not yet model, or because its projects failed to load. Absence of an idiom this check recognises is NOT evidence that this repository lacks authorization controls: it may implement them entirely in its own ecosystem. This is a gap in the analyzer's language coverage, not a finding about this repository.
- D10 Test Quality — ~25951 lines of test source are present (.rs) but no test cases reached the test census for this repository — no test root we could resolve declared them, or the files we read declare no cases in a test framework we recognise — so skipped/assertion-free tests couldn't be counted. Not scored — this is a gap in the analyzer, not a finding about this repository.
- D11 Test Reliability — Test reliability not included — the .rs suite was found but not re-run
- D12 Dependency Hygiene — Not scored — 0 shipped Python distribution(s) were read, but the outdated signal needs pypi.org, and no declaration here carries an exact pin to ask about — a floor or a range installs the newest release it admits and cannot be behind one, so this dimension's own question is only partly answered. NOT a finding that these dependencies are current or healthy.
- D16 Bus Factor — single-maintainer repository — bus factor is not applicable
- D18 Solution Shape — D18 scores the shape of a .NET solution; this repository has no .NET solution or project files, so the dimension does not apply.
- D23 Boundary Type-Coupling — No bounded-context organisation was detected either — neither a context-shaped layout nor 2+ sibling source directories each declaring an aggregate root. Declaring this codebase's bounded contexts (≥2) would let cross-boundary type coupling be assessed. Declare them in `.codehealth/config.yaml` at the repository root (create it if absent), mapping each context name to the module-path or namespace prefixes that belong to it — e.g. `architecture:` → `contexts:` → `Billing: ["src/billing", "Acme.Billing"]`, `Catalog: ["src/catalog", "Acme.Catalog"]`.
- D24 Comment Value — No inline comments to assess — comment value is not applicable here.
- D25 ADR Conformance — no ADRs to check
- D27 Navigability — symbol resolution incomplete — navigability not assessed
- D32 Data Compliance (PII/GDPR) — No personal data was found crossing a boundary the PII/GDPR ruleset checks — nothing written to a log or console sink, placed in a URL or query string, or persisted to browser storage. That is a clean result for the LEAK surface only: this ruleset detects personal data escaping, it does not inventory the personal data a repository holds, so it is not evidence that this repository has no personal-data surface. The personal-data map (Appendix C) and the C1-C5 compliance cards are what speak to that.
- D37 Vulnerability-disclosure Policy — No vulnerability-disclosure policy file found (SECURITY.md/.markdown/.rst/.txt at root or under .github/.forgejo/.gitea/docs, .well-known/security.txt). A coordinated-disclosure policy may live off-repo, so this is not evidenced rather than failed.
- D39 IL Efficiency — D39 measures the IL emitted by a .NET build; this repository has no .NET solution or project files, so the dimension does not apply.
- D40 Network Egress Confinement — No Kubernetes/orchestration workloads found in the repository manifests; network egress policy is a cluster-native control that may live at the platform/firewall layer, so there is nothing to assess here.
- D41 Kernel & Syscall Confinement — No Kubernetes/orchestration workloads found in the repository manifests; seccomp/AppArmor/SELinux confinement is a workload-level control, so there is nothing to assess here.
- D42 Runtime Threat Enforcement — No Kubernetes/orchestration workloads found in the repository manifests; runtime threat-detection and admission-control policy are cluster-level controls, so there is nothing to assess here.
- D7 Architectural Integrity — no checkable ADRs, and no project-reference graph for the cycle pass to read — so this dimension makes no claim about dependency cycles in either direction (where this repository's language has an import-cycle lens, cycles are reported there). Architectural integrity not assessed
- D8 Code Coverage — Coverage not included — suite not readable by the collector
- DM1 Aggregate boundaries — this Rust crate declares no domain aggregate (a struct with private state and its own command methods), so DM1's aggregate-boundary read has no population to be taken over
- DM2 Strongly-typed ids — the crate defines newtype typed-ids but declares no domain aggregate that could carry an id — so DM2's adoption ratio has no population to be taken over
- DM3 Integration-event coupling — not scored — a domain type leaking across a crate boundary cannot be told apart from source alone from a legitimate shared-kernel crate. Reported as guidance rather than measured
- DM6 Domain ↔ infrastructure boundary — this Rust crate maps no type to a persistence framework (diesel/sea-orm/sqlx), so DM6's domain↔infrastructure fusion read has no population to be taken over
- DM7 Repository granularity — not scored — detecting 'a repository per CHILD entity' needs the aggregate-root structure, which is not resolvable from source alone here. Reported as guidance rather than measured
- ED2 Event/command shape — not scored — deciding whether a command has more than one competing handler requires resolving the call graph, and a call made through an inferred or generic receiver has no resolvable owner in the source. Reported as guidance rather than measured
- ED5 Idempotency — This check finds retry-prone mutations (command handlers and message/event consumers) by walking the repository's declared types, and none was loaded here, so it has nothing to report. That is a limit of the analyzer, not a finding about your code.
- ES1 Event Sourcing — not scored — this repository shows none of the 3 signals this lens looks for
- GD1 Unfinished & placeholder code — no source files were read — this check reads C# syntax, and none was loaded for this repository. That is a limit of the analyzer, not a finding about your code.
- IC1 Incompleteness & stubs — not analysed — these correctness checks read a source model that was not loaded for this repository, because the repository is written in a language this check does not yet model, or because its projects failed to load. This is a gap in the analyzer, not a finding about this repository
- P10 Library API & versioning — not analysed — these correctness checks read a source model that was not loaded for this repository, because the repository is written in a language this check does not yet model, or because its projects failed to load. This is a gap in the analyzer, not a finding about this repository
- P7 Outbound HTTP resilience — not applicable — no HTTP server, API framework or worker entry point was found in the Python, Rust source, so there is no service whose uptime a failing dependency could take down
- P8 Schema migrations — no ORM, schema-migration tool or schema auto-create was found in this repository's dependency manifests or source, so there is no database schema for this check to judge
- P9 Domain vs controller coverage — no coverage report found on disk — produce a coverage report in a standard format (lcov — `cargo install cargo-llvm-cov`, then `cargo llvm-cov --lcov --output-path lcov.info`) and commit it — a hosted scan measures a clone of the repository, so a report that exists only in a working tree, a CI runner's or your own, never reaches it; the artefact is commonly gitignored, so `git add -f` that one file (or un-ignore its path) and commit it alongside the code it measures, or wire coverage collection into CI, to enable this cross-layer check
- PF1 Benchmark discipline — not analysed — these correctness checks read a source model that was not loaded for this repository, because the repository is written in a language this check does not yet model, or because its projects failed to load. This is a gap in the analyzer, not a finding about this repository
- PF2 Allocation hygiene — not analysed — these correctness checks read a source model that was not loaded for this repository, because the repository is written in a language this check does not yet model, or because its projects failed to load. This is a gap in the analyzer, not a finding about this repository
- S1 Web-Security Posture — Not assessed: these web-security controls are read from a source model (declarative annotations, request middleware, entity/column names, guard methods) that was not loaded for this repository — because the repository is written in a language this check does not yet model, or because its projects failed to load. Absence of an idiom this check recognises is NOT evidence that this repository lacks web-security controls: it may implement them entirely in its own ecosystem. This is a gap in the analyzer's language coverage, not a finding about this repository.
- X1 Async correctness — not analysed — these correctness checks read a source model that was not loaded for this repository, because the repository is written in a language this check does not yet model, or because its projects failed to load. This is a gap in the analyzer, not a finding about this repository
- X10 Duplicated predicate — not analysed — these correctness checks read a source model that was not loaded for this repository, because the repository is written in a language this check does not yet model, or because its projects failed to load. This is a gap in the analyzer, not a finding about this repository
- X12 Unreachable branch — This check reads C# syntax; no C# was loaded for this repository, so it has nothing to report. That is a limit of the analyzer, not a finding about your code.
- X13 Undrained process stream — This check reads C# syntax; no C# was loaded for this repository, so it has nothing to report. That is a limit of the analyzer, not a finding about your code.
- X14 Bypassable address classification — This check reads C# syntax; no C# was loaded for this repository, so it has nothing to report. That is a limit of the analyzer, not a finding about your code.
- X15 Unvalidated length from an untrusted reader — This check reads C# syntax; no C# was loaded for this repository, so it has nothing to report. That is a limit of the analyzer, not a finding about your code.
- X16 Unfloored truncation loop — This check reads C# syntax; no C# was loaded for this repository, so it has nothing to report. That is a limit of the analyzer, not a finding about your code.
- X17 Uncapped recursion over a caller-supplied document — This check reads C# syntax; no C# was loaded for this repository, so it has nothing to report. That is a limit of the analyzer, not a finding about your code.
- X18 Disposal-pattern correctness — This check reads C# syntax; no C# was loaded for this repository, so it has nothing to report. That is a limit of the analyzer, not a finding about your code.
- X19 Unrestored process-global state — This check reads C# syntax; no C# was loaded for this repository, so it has nothing to report. That is a limit of the analyzer, not a finding about your code.
- X2 Cancellation propagation — not analysed — these correctness checks read a source model that was not loaded for this repository, because the repository is written in a language this check does not yet model, or because its projects failed to load. This is a gap in the analyzer, not a finding about this repository
- X20 Mistyped argument guard — This check reads C# syntax; no C# was loaded for this repository, so it has nothing to report. That is a limit of the analyzer, not a finding about your code.
- X21 Side-effecting pattern guard — This check reads C# syntax; no C# was loaded for this repository, so it has nothing to report. That is a limit of the analyzer, not a finding about your code.
- X22 Contradicted release guard — This check reads C# syntax; no C# was loaded for this repository, so it has nothing to report. That is a limit of the analyzer, not a finding about your code.
- X23 Unguarded diagnostic materialisation — This check reads C# syntax; no C# was loaded for this repository, so it has nothing to report. That is a limit of the analyzer, not a finding about your code.
- X24 Document value interpolated into markup unescaped — This check reads C# syntax; no C# was loaded for this repository, so it has nothing to report. That is a limit of the analyzer, not a finding about your code.
- X25 Inert configuration knob — This check reads C# syntax; no C# was loaded for this repository, so it has nothing to report. That is a limit of the analyzer, not a finding about your code.
- X26 Unsynchronised callback handoff — This check reads C# syntax; no C# was loaded for this repository, so it has nothing to report. That is a limit of the analyzer, not a finding about your code.
- X27 Collection changed while being enumerated — This check reads C# syntax; no C# was loaded for this repository, so it has nothing to report. That is a limit of the analyzer, not a finding about your code.
- X28 Index access outside its own emptiness guard — This check reads C# syntax; no C# was loaded for this repository, so it has nothing to report. That is a limit of the analyzer, not a finding about your code.
- X29 Per-element action decided by a fixed element — This check reads C# syntax; no C# was loaded for this repository, so it has nothing to report. That is a limit of the analyzer, not a finding about your code.
- X3 Exception handling — not analysed — these correctness checks read a source model that was not loaded for this repository, because the repository is written in a language this check does not yet model, or because its projects failed to load. This is a gap in the analyzer, not a finding about this repository
- X30 Support guard that admits what it rejects — This check reads C# syntax; no C# was loaded for this repository, so it has nothing to report. That is a limit of the analyzer, not a finding about your code.
- X32 Type resolved by simple name across every loaded assembly — This check reads C# syntax; no C# was loaded for this repository, so it has nothing to report. That is a limit of the analyzer, not a finding about your code.
- X4 Structured logging — not analysed — these correctness checks read a source model that was not loaded for this repository, because the repository is written in a language this check does not yet model, or because its projects failed to load. This is a gap in the analyzer, not a finding about this repository
- X5 Nullable reference types — not analysed — these correctness checks read a source model that was not loaded for this repository, because the repository is written in a language this check does not yet model, or because its projects failed to load. This is a gap in the analyzer, not a finding about this repository
- X6 Hand-rolled structured-format parsing — not analysed — these correctness checks read a source model that was not loaded for this repository, because the repository is written in a language this check does not yet model, or because its projects failed to load. This is a gap in the analyzer, not a finding about this repository
- X7 Silent fallback defaults — not analysed — these correctness checks read a source model that was not loaded for this repository, because the repository is written in a language this check does not yet model, or because its projects failed to load. This is a gap in the analyzer, not a finding about this repository
- X9 Subsumed condition operand — Advisory — this card reports evidence and never carries a score, so there is nothing missing here.
Appendix A — Findings (grouped)
Critical — 15 finding(s)
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
Serious — 155 finding(s)
- TodoComment crates/prek/src/hook.rs:658
- TodoComment crates/prek/src/cli/sample_config.rs:75
- TodoComment crates/prek/src/cli/list.rs:74
- TodoComment crates/prek/src/cli/run/keeper.rs:44
- TodoComment crates/prek/src/cli/run/keeper.rs:69
- TodoComment crates/prek/src/cli/run/filter.rs:742
- TodoComment crates/prek/src/cli/update/mod.rs:451
- TodoComment crates/prek/src/config/mod.rs:45
- TodoComment crates/prek/src/hooks/mod.rs:82
- TodoComment crates/prek/src/hooks/pre_commit_hooks/mod.rs:199
- TodoComment crates/prek/src/hooks/pre_commit_hooks/check_yaml.rs:144
- TodoComment crates/prek/src/languages/version.rs:93
- TodoComment crates/prek/src/languages/conda.rs:48
- TodoComment crates/prek/src/languages/conda.rs:84
- TodoComment crates/prek/src/languages/golang/version.rs:30
- TodoComment crates/prek/src/languages/golang/version.rs:52
- TodoComment crates/prek/src/languages/golang/gomod.rs:66
- TodoComment crates/prek/src/languages/mise/mise.rs:97
- TodoComment crates/prek/src/languages/mise/mise.rs:200
- TodoComment crates/prek/src/languages/node/installer.rs:198
- TodoComment crates/prek/src/languages/pygrep/pygrep.rs:220
- TodoComment crates/prek/src/languages/python/version.rs:29
- TodoComment crates/prek/src/languages/python/version.rs:192
- TodoComment crates/prek/src/languages/python/uv.rs:219
- TodoComment crates/prek/src/languages/python/uv.rs:220
- prek::schema::strip_null_acceptance (cognitive 51) crates/prek/src/schema.rs:17
- prek::cli::update::display::apply_repo_updates (cognitive 41) crates/prek/src/cli/update/display.rs:201
- prek::cli::update::display::write_display_events (cognitive 36) crates/prek/src/cli/update/display.rs:114
- prek::hooks::pre_commit_hooks::check_merge_conflict::check_file (cognitive 35) crates/prek/src/hooks/pre_commit_hooks/check_merge_conflict.rs:63
- prek::cli::cache_gc::sweep_dir_by_name (cognitive 34) crates/prek/src/cli/cache_gc.rs:546
- prek::cli::cache_gc::cache_gc (cognitive 32) crates/prek/src/cli/cache_gc.rs:145
- prek::cli::install::install_hook_script (cognitive 31) crates/prek/src/cli/install.rs:220
- prek::archive::unzip (cognitive 31) crates/prek/src/archive.rs:148
- prek::cli::cache_gc::sweep_stale_patch_files (cognitive 28) crates/prek/src/cli/cache_gc.rs:632
- prek::cli::cache_gc::hook_env_requirements_from_config (cognitive 27) crates/prek/src/cli/cache_gc.rs:360
- prek::cli::cache_gc::sweep_tool_bucket_versions (cognitive 26) crates/prek/src/cli/cache_gc.rs:470
- prek::languages::golang::gomod::parse_go_mod_directives (cognitive 26) crates/prek/src/languages/golang/gomod.rs:11
- prek::languages::rust::rust::install_local_project (cognitive 25) crates/prek/src/languages/rust/rust.rs:267
- prek::cli::hook_impl::hook_impl (cognitive 24) crates/prek/src/cli/hook_impl.rs:25
- prek::run (cognitive 24) crates/prek/src/main.rs:154
- prek::hooks::meta_hooks::check_useless_excludes (cognitive 24) crates/prek/src/hooks/meta_hooks.rs:242
- prek::hooks::meta_hooks::check_hooks_apply (cognitive 23) crates/prek/src/hooks/meta_hooks.rs:108
- prek::cli::run::run::run (cognitive 23) crates/prek/src/cli/run/run.rs:77
- prek::cli::run::run::select_runnable_env_hooks (cognitive 21) crates/prek/src/cli/run/run.rs:419
- prek::cli::list::list (cognitive 20) crates/prek/src/cli/list.rs:28
- prek::cli::install::uninstall (cognitive 19) crates/prek/src/cli/install.rs:402
- prek::cli::self_update::self_update (cognitive 19) crates/prek/src/cli/self_update.rs:53
- prek::hooks::pre_commit_hooks::fix_trailing_whitespace::fix_file (cognitive 18) crates/prek/src/hooks/pre_commit_hooks/fix_trailing_whitespace.rs:94
- prek::cli::hook_impl::parse_pre_push_info (cognitive 17) crates/prek/src/cli/hook_impl.rs:301
- Hotspot: crates/prek/src/main.rs crates/prek/src/main.rs:154
- Hotspot: crates/prek/src/cli/run/run.rs crates/prek/src/cli/run/run.rs:77
- Hotspot: crates/prek/src/languages/mod.rs crates/prek/src/languages/mod.rs:300
- Hotspot: crates/prek/src/hooks/builtin_hooks/mod.rs crates/prek/src/hooks/builtin_hooks/mod.rs:159
- Hotspot: crates/prek/src/hooks/pre_commit_hooks/mod.rs crates/prek/src/hooks/pre_commit_hooks/mod.rs:158
- Hotspot: crates/prek/src/hooks/pre_commit_hooks/check_merge_conflict.rs crates/prek/src/hooks/pre_commit_hooks/check_merge_conflict.rs:63
- Hotspot: crates/prek/src/config/hook.rs crates/prek/src/config/hook.rs:532
- Hotspot: crates/prek/src/languages/node/installer.rs crates/prek/src/languages/node/installer.rs:200
- Hotspot: crates/prek/src/cli/install.rs crates/prek/src/cli/install.rs:220
- Hotspot: crates/prek/src/languages/golang/installer.rs crates/prek/src/languages/golang/installer.rs:209
- FileTooLong: run/run.rs crates/prek/src/cli/run/run.rs
- FileTooLong: src/git.rs crates/prek/src/git.rs
- FileTooLong: cli/mod.rs crates/prek/src/cli/mod.rs
- FileTooLong: config/hook.rs crates/prek/src/config/hook.rs
- FileTooLong: src/workspace.rs crates/prek/src/workspace.rs
- FileTooLong: src/hook.rs crates/prek/src/hook.rs
- FileTooLong: run/selector.rs crates/prek/src/cli/run/selector.rs
- FileTooLong: languages/mod.rs crates/prek/src/languages/mod.rs
- FileTooLong: cli/cache_gc.rs crates/prek/src/cli/cache_gc.rs
- FileTooLong: run/reporter.rs crates/prek/src/cli/run/reporter.rs
- prek::run (cyclomatic 43) crates/prek/src/main.rs:154
- prek::schema::strip_null_acceptance (cyclomatic 27) crates/prek/src/schema.rs:17
- prek::hooks::pre_commit_hooks::check_merge_conflict::check_file (cyclomatic 20) crates/prek/src/hooks/pre_commit_hooks/check_merge_conflict.rs:63
- prek::cli::cache_gc::cache_gc (cyclomatic 18) crates/prek/src/cli/cache_gc.rs:145
- prek::cli::run::run::run (cyclomatic 18) crates/prek/src/cli/run/run.rs:77
- prek::cli::install::install_hook_script (cyclomatic 17) crates/prek/src/cli/install.rs:220
- prek::archive::unzip (cyclomatic 17) crates/prek/src/archive.rs:148
- prek::cli::cache_gc::sweep_dir_by_name (cyclomatic 17) crates/prek/src/cli/cache_gc.rs:546
- prek::cli::cache_gc::sweep_stale_patch_files (cyclomatic 16) crates/prek/src/cli/cache_gc.rs:632
- FunctionTooLong: prek::run crates/prek/src/main.rs:154
- FunctionTooLong: prek::cli::run::run::run crates/prek/src/cli/run/run.rs:77
- FunctionTooLong: prek::cli::cache_gc::cache_gc crates/prek/src/cli/cache_gc.rs:145
- FunctionTooLong: prek::cli::update::display::apply_repo_updates crates/prek/src/cli/update/display.rs:201
- Duplicated block (8 lines × 2) crates/prek/src/hooks/builtin_hooks/mod.rs:112
- Duplicated block (8 lines × 2) crates/prek/src/languages/docker.rs:447
- Duplicated block (8 lines × 2) crates/prek/src/cli/self_update.rs:74
- Duplicated block (8 lines × 2) crates/prek/src/languages/dotnet/installer.rs:275
- Duplicated block (5 lines × 2) crates/prek/src/hooks/pre_commit_hooks/check_executables_have_shebangs.rs:19
- Duplicated block (5 lines × 2) crates/prek-pty/src/pty.rs:336
- Duplicated block (5 lines × 2) crates/prek/src/cli/sample_config.rs:95
- Duplicated block (5 lines × 2) crates/prek/src/languages/coursier.rs:69
- REDACTED
- REDACTED
- REDACTED
- Duplicated block (11 lines × 2) crates/prek/src/languages/python/uv.rs:618
- Duplicated block (11 lines × 2) crates/prek/src/git.rs:771
- Duplicated block (11 lines × 2) crates/prek/src/cli/cache_gc.rs:534
- Duplicated block (10 lines × 2) crates/prek/src/config/hook.rs:673
- Duplicated block (10 lines × 2) crates/prek/src/languages/bun/installer.rs:208
- Duplicated block (10 lines × 2) crates/prek/src/languages/bun/version.rs:105
- Duplicated block (6 lines × 2) crates/prek/src/languages/mod.rs:91
- Duplicated block (6 lines × 2) crates/prek/src/languages/bun/installer.rs:207
- Duplicated block (6 lines × 2) crates/prek/src/languages/bun/bun.rs:48
- Duplicated block (9 lines × 2) crates/prek/src/cli/cache_gc.rs:527
- Duplicated block (9 lines × 2) crates/prek/src/languages/golang/installer.rs:214
- Duplicated block (9 lines × 2) scripts/update-macports-portfile.py:113
- HookRunSession::render_priority_group (cognitive 23) crates/prek/src/cli/run/run.rs:967
- HookRunSession::render_hook_details (cognitive 20) crates/prek/src/cli/run/run.rs:1040
- Change coupling: node.rs ↔ ruby.rs crates/prek/src/languages/node/node.rs
- Change coupling: golang.rs ↔ ruby.rs crates/prek/src/languages/golang/golang.rs
- Duplicated block (16 lines × 2) crates/prek/src/config/hook.rs:867
- Duplicated block (16 lines × 2) crates/prek/src/cli/validate.rs:24
- Duplicated block (7 lines × 2) crates/prek/src/languages/bun/installer.rs:283
- Duplicated block (7 lines × 2) crates/prek/src/languages/python/uv.rs:592
- Off the main sequence: prek-identify
- Off the main sequence: prek-pty
- HookOptions::update (cyclomatic 24) crates/prek/src/config/hook.rs:532
- Repo::deserialize (cyclomatic 21) crates/prek/src/config/repo.rs:236
- HookRunSession::render_hook_details (cyclomatic 17) crates/prek/src/cli/run/run.rs:1040
- HookOptions::update (cognitive 27) crates/prek/src/config/hook.rs:532
- ProjectFiles::visit_for_project (cognitive 24) crates/prek/src/cli/run/filter.rs:218
- Repo::deserialize (cognitive 21) crates/prek/src/config/repo.rs:236
- Project::build_hooks (cognitive 21) crates/prek/src/workspace.rs:373
- ParsedRequirements::parse (cognitive 18) crates/prek/src/hooks/pre_commit_hooks/requirements_txt_fixer.rs:112
- CargoCliDependency::from_str (cognitive 18) crates/prek/src/languages/rust/rust.rs:51
- Store::clone_repos (cognitive 18) crates/prek/src/store.rs:156
- SelectorCompleter::project_candidates (cognitive 17) crates/prek/src/cli/completion.rs:143
- Selectors::matches_path (cognitive 17) crates/prek/src/cli/run/selector.rs:384
- Workspace::discover (cognitive 16) crates/prek/src/workspace.rs:644
- Redundant method exposure across split types. `Pty` splits into `ReadPty` and `WritePty`. Since resizing a PTY is a property of the underlying file descriptor (shared by both ends), exposing `resize` on `WritePty` and `OwnedWritePty` is redundant if `Pty` already exposes it. Furthermore, `OwnedWritePty` duplicates the functionality of `WritePty` (which is likely a reference-counted or borrowed view), creating API surface bloat where `WritePty.resize` should suffice for both owned and borrowed contexts, or `Pty.resize` should be the canonical entry point.
- MethodTooLong: BuiltinHook.from_id crates/prek/src/hooks/builtin_hooks/mod.rs:159
- TooManyMethods: Cmd crates/prek/src/process.rs:128
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- Members sharing a duplicated core (6 members, 50+ identical tokens) crates/prek/src/languages/bun/installer.rs:114
- Members sharing a duplicated core (4 members, 50+ identical tokens) crates/prek/src/languages/docker.rs:446
- Duplicated block (20 lines × 2) crates/prek/src/languages/rust/rustup.rs:194
- Duplicated block (15–16 lines × 2) crates/prek/src/cli/cache_gc.rs:492
- Duplicated block (15 lines × 2) crates/prek/src/cli/run/selector.rs:359
- Duplicated block (10–14 lines × 2) crates/prek/src/hooks/meta_hooks.rs:113
- Duplicated block (13 lines × 4) crates/prek/src/languages/docker.rs:480
- Duplicated block (11 lines × 5) crates/prek/src/languages/bun/installer.rs:115
- Duplicated block (9–10 lines × 2) crates/prek/src/hooks/pre_commit_hooks/check_json.rs:25
- Duplicated block (6–8 lines × 2) crates/prek/src/languages/docker.rs:463
- Duplicated block (7 lines × 4) crates/prek/src/languages/bun/installer.rs:130
- Duplicated block (10 lines × 4) crates/prek/src/hooks/pre_commit_hooks/check_json.rs:13
- Duplicated block (10 lines × 3) crates/prek/src/hooks/pre_commit_hooks/fix_byte_order_marker.rs:13
- Duplicated block (12 lines × 2) crates/prek/src/languages/bun/installer.rs:146
- Duplicated block (10 lines × 6) crates/prek/src/languages/bun/installer.rs:116
- Duplicated block (8 lines × 4) crates/prek/src/languages/bun/installer.rs:211
- Duplicated block (6 lines × 3) crates/prek/src/languages/bun/bun.rs:46
- Duplicated block (5 lines × 7) crates/prek/src/languages/bun/installer.rs:88
- Duplicated block (18 lines × 2) scripts/update-macports-portfile.py:183
- Coverage collected but not gated
Minor — 8 finding(s)
- Documentation: no project overview README.md
- Documentation: no licence statement docs/security.md
- No ADRs found
- Projects may be oversized for their cohesion
- Orphaned files with no living knowledge
- REDACTED
- No ADRs
- Logging is not universal
Appendix B — Reproduction & audit trail
| Dimension | Tool | Version | Command | Findings | Raw output |
|---|---|---|---|---|---|
| D28 · Secrets (history) | gitleaks | — | gitleaks detect --no-banner --config /opt/gitleaks-rules/watchdog-gitleaks.toml --report-format json --report-path /tmp/watchdog-gitleaks-473f5dd38df44f76b418dfcb92e7b0bf/history.json --exit-code 0 --source . | 0 | artifacts/raw/gitleaks-history.json |
| D28 · Secrets (history) | gitleaks | — | gitleaks detect --no-git --no-banner --config /opt/gitleaks-rules/watchdog-gitleaks.toml --report-format json --report-path /tmp/watchdog-gitleaks-473f5dd38df44f76b418dfcb92e7b0bf/tree.json --exit-code 0 --source . | 0 | artifacts/raw/gitleaks-tree.json |
| D29 · Static Analysis (SAST) | semgrep | — | semgrep --config /opt/semgrep-rules/security-audit.yml --config /opt/semgrep-rules/owasp-top-ten.yml --config /opt/semgrep-rules/watchdog-sast.yml --json --quiet --timeout 10 --timeout-threshold 3 --metrics off . | 13 | artifacts/raw/semgrep.json |
| D30 · Dependency Vulnerabilities | osv-scanner | — | osv-scanner --format json --recursive . | 4 | artifacts/raw/osv-scanner.json |
| D31 · IaC & Container Security | trivy | — | trivy config --format json --quiet . | 3 | artifacts/raw/trivy-config.json |
| D32 · Data Compliance (PII/GDPR) | semgrep | — | semgrep: not applicable — No personal data was found crossing a boundary the PII/GDPR ruleset checks — nothing written to a log or console sink, placed in a URL or query string, or persisted to browser storage. That is a clean result for the LEAK surface only: this ruleset detects personal data escaping, it does not inventory the personal data a repository holds, so it is not evidence that this repository has no personal-data surface. The personal-data map (Appendix C) and the C1-C5 compliance cards are what speak to that. | 0 | — |
| D37 · Vulnerability-disclosure Policy | disclosure | — | disclosure: not applicable — No vulnerability-disclosure policy file found (SECURITY.md/.markdown/.rst/.txt at root or under .github/.forgejo/.gitea/docs, .well-known/security.txt). A coordinated-disclosure policy may live off-repo, so this is not evidenced rather than failed. | 0 | — |
| D40 · Network Egress Confinement | runtime-hardening | — | runtime-hardening: not applicable — No Kubernetes/orchestration workloads found in the repository manifests; network egress policy is a cluster-native control that may live at the platform/firewall layer, so there is nothing to assess here. | 0 | — |
| D41 · Kernel & Syscall Confinement | runtime-hardening | — | runtime-hardening: not applicable — No Kubernetes/orchestration workloads found in the repository manifests; seccomp/AppArmor/SELinux confinement is a workload-level control, so there is nothing to assess here. | 0 | — |
| D42 · Runtime Threat Enforcement | runtime-hardening | — | runtime-hardening: not applicable — No Kubernetes/orchestration workloads found in the repository manifests; runtime threat-detection and admission-control policy are cluster-level controls, so there is nothing to assess here. | 0 | — |
| D43 · Malicious Dependencies | osv-scanner | — | osv-scanner --format json --recursive . | 0 | artifacts/raw/osv-scanner.json |