MetaCredo. Config
(MetaCredo v0.1.0)
View Source
Parses and manages .metacredo.exs configuration files.
Configuration follows the same shape as .credo.exs:
%{
configs: [
%{
name: "default",
files: %{
included: ["lib/", "src/"],
excluded: ["deps/", "_build/"]
},
checks: %{
enabled: [
{MetaCredo.Check.Security.HardcodedValue, []},
{MetaCredo.Check.Warning.MissingErrorHandling, []}
],
disabled: []
}
}
]
}
Summary
Functions
Returns the default configuration.
Returns the path to the default configuration file.
Returns the list of enabled checks from config.
Returns the file patterns from config.
Reads and parses the configuration file, falling back to defaults.
Types
Functions
@spec default() :: config()
Returns the default configuration.
@spec default_config_path() :: String.t()
Returns the path to the default configuration file.
Returns the list of enabled checks from config.
Returns the file patterns from config.
Reads and parses the configuration file, falling back to defaults.