ALL-HIST0003 · coupled_files_that_never_name_each_other
Count file pairs that keep changing together with no import between them.
This is a deterministic rule for all languages. Read its implementation.
Definition
Section titled “Definition”Report a pair that arrived together in at least minimum_shared_commits focused commits, where
focused means no more than maximum_commit_files changed files. Require the pair to reach
minimum_confidence of the rarer file’s own focused commits and no import line in either file
to name the other. Confidence is the share that matters rather than the raw count, because a
file touched three hundred times shares a commit with everything by accident while one touched
eight times and always beside the same neighbor is telling us something.
Two files that change together are coupled whether or not the code says so. Where an import explains it, the structure already reported it and every other family here can see it. Where nothing explains it, the dependency lives in an assumption two files share, and that is the one kind of coupling no import graph can find.
Continue with evidence and references, or open the examples.