Function dylint_linting::config_toml
source · pub fn config_toml(name: &str) -> ConfigResult<Option<Value>>
Expand description
Reads an entry from the workspace’s dylint.toml
file as a raw toml::Value
.
Returns:
Ok(Some(...))
if the target workspace’sdylint.toml
file contains keyname
Ok(None)
if the target workspace’sdylint.toml
file does not exist or does not contain keyname
Err(...)
if an error occurs (e.g.,init_config
was not called)
Note: init_config
or try_init_config
must be called before config_toml
is called. However,
the register_lints
function generated by impl_late_lint
, etc. includes a call to
init_config
.