[][src]Function rslint_core::apply_top_level_directives

pub fn apply_top_level_directives(
    directives: &[Directive],
    store: &mut CstRuleStore,
    diagnostics: &mut Vec<Diagnostic>,
    file_id: usize

Apply file level directives to a store and add their respective diagnostics to the pool of diagnostics. for file level ignores this will clear all the rules from the store.

This method furthermore issues more contextual warnings like disabling a rule after the entire file has been disabled.