ShtukbaseStandard
HK-R03/norms/rules/hooks/HK-R03.md

Este texto aún no está traducido. Debajo está el original en inglés.

One commit touches one project

MUSTobservahookactiva
The staged files with an owner belong to at most one project
Por qué: A commit for one project is easier to review and revert on its own.
Campos de la página (17)
ruleIdHK-R03
requirementThe staged files with an owner belong to at most one project
levelMUST
floorfalse
statusactive
spherehooks
appliesTostaged files
enforcers.shtukbase/packages/hooks/hooks/one-project.ts
enforcerKindhook
modeobserve
followsFrom
becauseA commit for one project is easier to review and revert on its own.
baseline0
reviewBy2027-05-28
packhooks
evidenceowner task 2026-11-29: projects in one repository
sourcesowner

Before a commit, the one-project hook counts distinct project owners among staged files. Files with no owner do not count.

Why. A commit for one project is easier to review and revert on its own.

How to fix. Stage the files for one project at a time and commit each project separately.

Mode. The rule ships in observe mode and reports mixed commits. Set mode: enforce on the project's copy to block them.

El paquete Repository hooks coloca esta página en /norms/rules/hooks/HK-R03.md.Texto fuente