pub fn run_rule_with_content(
rule: &dyn LintRule,
config: &Config,
path: &Path,
content: &str,
shared_config: &OnceLock<Arc<Config>>,
) -> Vec<LintError>Expand description
Like run_rule, but additionally dispatches to
LintRule::check_with_content for rules that
want raw content, so those rules don’t have to
re-read the file from disk when the caller already has it in memory.
Falls back to run_rule’s dispatch policy otherwise.