pub struct GlobalConfig {Show 13 fields
pub enable: Vec<String>,
pub disable: Vec<String>,
pub exclude: Vec<String>,
pub include: Vec<String>,
pub respect_gitignore: bool,
pub line_length: LineLength,
pub output_format: Option<String>,
pub fixable: Vec<String>,
pub unfixable: Vec<String>,
pub flavor: MarkdownFlavor,
pub force_exclude: bool,
pub cache_dir: Option<String>,
pub cache: bool,
}Expand description
Global configuration options
Fields§
§enable: Vec<String>Enabled rules
disable: Vec<String>Disabled rules
exclude: Vec<String>Files to exclude
include: Vec<String>Files to include
respect_gitignore: boolRespect .gitignore files when scanning directories
line_length: LineLengthGlobal line length setting (used by MD013 and other rules if not overridden)
output_format: Option<String>Output format for linting results (e.g., “text”, “json”, “pylint”, etc.)
fixable: Vec<String>Rules that are allowed to be fixed when –fix is used If specified, only these rules will be fixed
unfixable: Vec<String>Rules that should never be fixed, even when –fix is used Takes precedence over fixable
flavor: MarkdownFlavorMarkdown flavor/dialect to use (mkdocs, gfm, commonmark, etc.) When set, adjusts parsing and validation rules for that specific Markdown variant
force_exclude: bool[DEPRECATED] Whether to enforce exclude patterns for explicitly passed paths. This option is deprecated as of v0.0.156 and has no effect. Exclude patterns are now always respected, even for explicitly provided files. This prevents duplication between rumdl config and tool configs like pre-commit.
cache_dir: Option<String>Directory to store cache files (default: .rumdl_cache) Can also be set via –cache-dir CLI flag or RUMDL_CACHE_DIR environment variable
cache: boolWhether caching is enabled (default: true) Can also be disabled via –no-cache CLI flag
Trait Implementations§
Source§impl Clone for GlobalConfig
impl Clone for GlobalConfig
Source§fn clone(&self) -> GlobalConfig
fn clone(&self) -> GlobalConfig
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for GlobalConfig
impl Debug for GlobalConfig
Source§impl Default for GlobalConfig
impl Default for GlobalConfig
Source§impl<'de> Deserialize<'de> for GlobalConfigwhere
GlobalConfig: Default,
impl<'de> Deserialize<'de> for GlobalConfigwhere
GlobalConfig: Default,
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Source§impl JsonSchema for GlobalConfig
impl JsonSchema for GlobalConfig
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
$ref keyword. Read moreSource§impl PartialEq for GlobalConfig
impl PartialEq for GlobalConfig
Source§impl Serialize for GlobalConfig
impl Serialize for GlobalConfig
impl StructuralPartialEq for GlobalConfig
Auto Trait Implementations§
impl Freeze for GlobalConfig
impl RefUnwindSafe for GlobalConfig
impl Send for GlobalConfig
impl Sync for GlobalConfig
impl Unpin for GlobalConfig
impl UnwindSafe for GlobalConfig
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more