View Source Credo.ConfigFile (Credo v1.7.11)
ConfigFile structs represent all loaded and merged config files in a run.
Summary
Functions
Merges the given structs from left to right, meaning that later entries overwrites earlier ones.
Returns the provided config_file merged into the default configuration.
Returns Execution struct representing a consolidated Execution for all .credo.exs
files in relevant_directories/1 merged into the default configuration.
Returns all parent directories of the given dir as well as each ./config
sub-directory.
Functions
Merges the given structs from left to right, meaning that later entries overwrites earlier ones.
merge(base, other)Any options in other will overwrite those in base.
The files: field is merged, meaning that you can define included and/or
excluded and only override the given one.
The checks: field is merged.
Returns the provided config_file merged into the default configuration.
config_file: full path to the custom configuration fileconfig_name: name of the configuration to loadsafe: if +true+, the config files are loaded using static analysis ratherthan `Code.eval_string/1`
Returns Execution struct representing a consolidated Execution for all .credo.exs
files in relevant_directories/1 merged into the default configuration.
config_name: name of the configuration to loadsafe: if +true+, the config files are loaded using static analysis ratherthan `Code.eval_string/1`
Returns all parent directories of the given dir as well as each ./config
sub-directory.