ALL-FILE0004 · directory_pathway
Report a directory that only leads to one child directory.
This is a deterministic rule for all languages. Read its implementation.
Definition
Section titled “Definition”Report a directory with exactly one direct child directory and no other direct unignored file. A package initializer does not count as content because it states the package surface rather than giving the directory an independent responsibility.
Evidence
Section titled “Evidence”Each finding names the directory and records its direct file and child directory counts. The Boolean value is true only for a pure one-step pathway.
Exceptions
Section titled “Exceptions”A directory with a source file, configuration, guide, fixture, or second child directory has
its own readable role and remains unreported. A source root and its top-level import package
are structural boundaries rather than navigation steps. A language bucket under rules may
lead into one deterministic, contextual, or external execution lane because the lane is
part of rule selection. Git-ignored entries never reach either count.
Examples
Section titled “Examples”Bad
A `services` directory containing only `services/payments` returns `true`.
Goodservices containing service.py beside payments returns false.
References
Section titled “References”- Cites “A Philosophy of Software Design”, chapters 4 and 7