Skip to main content

Module project_config

Module project_config 

Source
Expand description

Project config resolution owned by the engine boundary.

Structs§

ConfigChainSnapshot
The bytes of a config file and of each local file of its extends chain. The loader reads them before and after it parses the file, so a long-lived caller can see that the parsed config is out of date.
ConfigFile
The config file of a project, before resolution.
ConfigFileOptions
The options of load_config_file.
ProductionFlags
The production flags of a config load without a resolved run: the global --production override and one override per analysis (--production-dead-code, --production-health, --production-dupes).
ProductionModes
The production mode of each analysis of one run.
ResolveOptions
The run settings that resolution records on the config.

Enums§

ConfigLoadError
The error of load_config_file.

Functions§

find_config_file
The config file that discovery finds from root up to the repository root, without a load. A caller that only checks whether a project has a config file, or that writes to the config file, calls this function.
load_config_file
Load the config file of a project: the file at config_path, else the first config file that discovery finds from root up to the repository root. A project without a config file gets the default config.
register_tracked_link_probe
Give config discovery the git probe for a config file link out of the project: discovery allows such a link when git does not track it. A host calls it at startup, so that each config discovery, also one outside the project load, gets the same answer.