Skip to main content

score

Function score 

Source
pub fn score(f: &dyn Formatter, level: Level, fixtures: &[Fixture]) -> f32
Expand description

Fraction of fixtures the formatter cleans without an impermissible edit (1.0 = perfect restraint). Scores the formatter’s DIRECT output (unguarded), so the metric measures the model, not the moat.