noOrphanModules

Adds a rule that warns about "orphan" modules - modules that neither depend on anything nor are depended on by anything over production edges. Orphans are dead weight in the build. Default severity is WARNING. Override with rule("no-orphan-modules") { severity = ERROR }.