For AI agents: the complete documentation index is available at https://mfdoctor.kevinbeier.com/llms.txt, the full documentation bundle is available at https://mfdoctor.kevinbeier.com/llms-full.txt, and this page is available as Markdown at https://mfdoctor.kevinbeier.com/rules/config/share-scope-undeclared.md.

config/share-scope-undeclared

  • Category: correctness
  • Default severity: error

Issue

A dependency placed in a scope the container does not initialize cannot be reused there.

How to fix it

Declare the scope at top level or move the shared item into an initialized scope.

Suppress or retarget with rules["config/share-scope-undeclared"] set to "off" or a severity — see Suppressions and allowlists.

Sources