Dunolint_engine.ContextSourceAuto-discovery and accumulation of contextual information during tree traversal.
This module provides a context that is built up as the linting engine traverses the directory tree, accumulating information that affects how linting is performed.
The context currently holds a list of dunolint configurations. The order follows the principle of a functional stack: data is added at the head as it is discovered when going deeper in the directory structure, and the configs function returns them in rule processing order (shallowest to deepest).
The context is designed to support future enhancements:
Configuration with its location in the directory tree.
Add a discovered config at the specified location.
Get the list of discovered configs with their locations. Returns configs in rule processing order: from least specific (root) to most specific (closest to current location), so that deeper configs can override rules from shallower configs.