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
13
14
15
16
17
18
use super::*;

pub(super) const PACK: RulePack = RulePack::after_main(
    "yagni-concentration",
    "yagni-concentration",
    false,
    false,
    analyze,
);

fn analyze(context: &RulePackContext<'_, '_, '_>) -> Result<RulePackOutput, String> {
    Ok(RulePackOutput::findings(
        crate::yagni_concentration::analyze(
            context.prior_findings,
            &context.prepared.config,
        ),
    ))
}