pub struct Config {Show 20 fields
pub root: PathBuf,
pub manifest_path: PathBuf,
pub locales_dir: PathBuf,
pub locales: Vec<String>,
pub reference_locale: String,
pub src: Vec<PathBuf>,
pub templates: Vec<PathBuf>,
pub template_ext: Vec<String>,
pub filters: Vec<String>,
pub functions: Vec<String>,
pub unused: Severity,
pub ignore_unused: Vec<String>,
pub attributes: bool,
pub include_comments: bool,
pub require_locales: bool,
pub exclude: Vec<String>,
pub follow_links: bool,
pub format: OutputFormat,
pub color: ColorChoice,
pub quiet: bool,
}Expand description
A fully resolved configuration. Every path is absolute.
Fields§
§root: PathBufThe directory being linted. Paths in the report are relative to it.
manifest_path: PathBufThe root Cargo.toml.
locales_dir: PathBufDirectory holding one subdirectory per locale.
locales: Vec<String>Locales to check, sorted.
reference_locale: StringLocale the unused-key check runs against.
src: Vec<PathBuf>Rust source directories to scan.
templates: Vec<PathBuf>Template directories to scan.
template_ext: Vec<String>Template file extensions, lowercase and without a leading dot.
filters: Vec<String>Askama filter names that take a key.
functions: Vec<String>Rust function names that take a key.
unused: SeveritySeverity for the unused-key check.
ignore_unused: Vec<String>Key-name globs never reported as unused.
attributes: boolWhether key.attribute counts as a defined key.
include_comments: boolWhether to match keys inside // comment lines.
require_locales: boolWhether a missing or empty locales directory is an error.
exclude: Vec<String>Path globs to skip, relative to the root.
follow_links: boolWhether to follow symbolic links while walking.
format: OutputFormatShape of the rendered report.
color: ColorChoiceWhen to emit color.
quiet: boolWhether to stay silent when there is nothing to report.