main (scripts/gate_hygiene.py)¶
Overview · 6 steps, 1 lane
All 6 steps
| # | caller | callee | what it does | frames | call site |
|---|---|---|---|---|---|
| 1 | main | untracked_but_covered | List untracked paths that the configured hooks would have covered. | — | scripts/gate_hygiene.py:255 |
| 2 | untracked_but_covered | global_exclude | Parse the global exclude: regex out of a pre-commit config. | — | scripts/gate_hygiene.py:127 |
| 3 | untracked_but_covered | untracked_paths | List the paths git reports as untracked, honouring ignore rules. | — | scripts/gate_hygiene.py:128 |
| 4 | main | commit_hook_installed | Version 2 (gh#64): the hooks directory is git's answer ( rev-parse --git-path hooks ), so a linked worktree and core.hooksPath are found where git actually runs the hook from. | — | scripts/gate_hygiene.py:256 |
| 5 | main | _report_unseen | Report untracked files the hooks would have covered. | if (line 259) | scripts/gate_hygiene.py:259 |
| 6 | main | _report_missing_hook | Report that the commit-time hook is absent, and whether that is being enforced. | if (line 261) | scripts/gate_hygiene.py:261 |
Functions¶
7 functions
_report_missing_hookscripts/gate_hygiene.py_report_unseenscripts/gate_hygiene.pycommit_hook_installedscripts/gate_hygiene.pyglobal_excludescripts/gate_hygiene.pymainscripts/gate_hygiene.pyuntracked_but_coveredscripts/gate_hygiene.pyuntracked_pathsscripts/gate_hygiene.py
This diagram as Mermaid · PlantUML · Graphviz DOT
Quick views¶
7 functions, each with its quick view
- _report_missing_hook
Report that the commit-time hook is absent, and whether that is being enforced.
Map
Show it on the map, in its block's wedge.
Block
Tooling: scripts is the block holding
scripts/gate_hygiene.py.Flow
Replay
No recorded run reaches this function.
Source
Its page: signature, body, callers and callees. Its activity diagram.
Tests
No test calls this function directly.
Reqs
No requirement names this function as an implementer.
- _report_unseen
Report untracked files the hooks would have covered.
Map
Show it on the map, in its block's wedge.
Block
Tooling: scripts is the block holding
scripts/gate_hygiene.py.Flow
Replay
No recorded run reaches this function.
Source
Its page: signature, body, callers and callees. Its activity diagram.
Tests
No test calls this function directly.
Reqs
No requirement names this function as an implementer.
- commit_hook_installed
Version 2 (gh#64): the hooks directory is git's answer ( rev-parse --git-path hooks ), so a linked worktree and core.hooksPath are found where git actually runs the hook from.
Map
Show it on the map, in its block's wedge.
Block
Tooling: scripts is the block holding
scripts/gate_hygiene.py.Flow
Replay
No recorded run reaches this function.
Source
Its page: signature, body, callers and callees. Its activity diagram.
Tests
No test calls this function directly.
Reqs
No requirement names this function as an implementer.
- global_exclude
Parse the global exclude: regex out of a pre-commit config.
Map
Show it on the map, in its block's wedge.
Block
Tooling: scripts is the block holding
scripts/gate_hygiene.py.Flow
Replay
No recorded run reaches this function.
Source
Its page: signature, body, callers and callees. Its activity diagram.
Tests
No test calls this function directly.
Reqs
No requirement names this function as an implementer.
- main
Print both findings and return the exit code the gate should take.
Map
Show it on the map, in its block's wedge.
Block
Tooling: scripts is the block holding
scripts/gate_hygiene.py.Flow
Replay
No recorded run reaches this function.
Source
Its page: signature, body, callers and callees. Its activity diagram.
Tests
No test calls this function directly.
Reqs
No requirement names this function as an implementer.
- untracked_but_covered
List untracked paths that the configured hooks would have covered.
Map
Show it on the map, in its block's wedge.
Block
Tooling: scripts is the block holding
scripts/gate_hygiene.py.Flow
Replay
No recorded run reaches this function.
Source
Its page: signature, body, callers and callees. Its activity diagram.
Tests
No test calls this function directly.
Reqs
No requirement names this function as an implementer.
- untracked_paths
List the paths git reports as untracked, honouring ignore rules.
Map
Show it on the map, in its block's wedge.
Block
Tooling: scripts is the block holding
scripts/gate_hygiene.py.Flow
Replay
No recorded run reaches this function.
Source
Its page: signature, body, callers and callees. Its activity diagram.
Tests
No test calls this function directly.
Reqs
No requirement names this function as an implementer.