pub struct ConfigOverride {
pub files: Vec<String>,
pub rules: PartialRulesConfig,
}Expand description
Per-file override entry.
Fields§
§files: Vec<String>Glob-pattern string array selecting which source files this override entry applies to (patterns are validated and compiled to matchers at config load). Set to scope the entry’s rule severities to a subset of paths (e.g. ["src/generated/**", "**/*.test.ts"]); when several override entries match one file, its severities come from every matching entry, applied in list order (later entries win on conflict).
rules: PartialRulesConfigPartial per-rule severity map applied only to files matching this entry’s files globs; each rule key takes error, warn, or off, and omitted rules keep their top-level severity. Set to change how specific rules (e.g. unused-exports, unused-files) behave for the scoped paths. Inter-file rules (duplicate-exports, circular-dependencies, re-export-cycle) have no effect in an override; fallow warns during analysis and names the right mechanism instead (top-level ignoreExports for duplicate-exports, a file-level // fallow-ignore-file comment for circular-dependencies and re-export-cycle).
Trait Implementations§
Source§impl Clone for ConfigOverride
impl Clone for ConfigOverride
Source§impl Debug for ConfigOverride
impl Debug for ConfigOverride
Source§impl<'de> Deserialize<'de> for ConfigOverride
impl<'de> Deserialize<'de> for ConfigOverride
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 ConfigOverride
impl JsonSchema for ConfigOverride
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 more