code-buster 0.11.0

Repository-aware static analysis for AI-assisted development
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
use super::*;

pub(super) const PACK: RulePack =
    RulePack::main("pattern", "pattern", &[], None, false, false, analyze);

fn analyze(context: &RulePackContext<'_, '_, '_>) -> Result<RulePackOutput, String> {
    let findings = crate::pattern_rules::analyze(
        context.source_context.sources(),
        &context.prepared.config.pattern_rules,
    )?;
    Ok(RulePackOutput::findings(findings))
}