pub enum Reach {
Safety,
Convention,
}Expand description
How far a check reaches into repositories that never asked for it.
With git config --global amont.conventions declared, hooks installed by
a standing grant (init.templateDir) split in two: Safety checks run in
EVERY repository, because their findings are mistakes in any codebase — a
conflict marker, a leaked credential, a hundred-megabyte blob, a
debugger; left in the diff. Convention checks run only where the
repository has committed an amont.conf — they are one team’s house
rules (commit shapes, branch names, lint severities, test gates), and a
clone of somebody else’s project did not agree to them.
The default mode is everywhere, where this distinction is inert.
Variants§
Safety
A mistake anywhere: runs regardless of declaration.
Convention
A house rule: runs only where the repository declares amont.