Documentation
¶
Overview ¶
Command sasteff measures the embedded SAST rules: whether each one reports the defect it was written for (recall), whether it stays quiet on code that only resembles it (precision), what it costs to evaluate, and how often it fires on real code.
sasteff cases [stem...] run fixture cases (internal/sast/testdata/efficacy) sasteff secrets prove each generated secret rule fires on its own token shape sasteff coverage list rules with no positive or no negative case sasteff snapshot -out f.json [-secrets] dir... freeze a corpus for repeatable measurement sasteff perf -snapshot f.json per-rule compile/eval cost and finding counts sasteff hits -snapshot f.json stem the findings one rule produces on the corpus sasteff total dir... full-ruleset wall time through the engine sasteff check -base D -clean f -vuln f stem cases, corpus hits and cost, original vs current sasteff compare -base D -snapshot f every rule, original vs current: findings, cost, outliers sasteff bench -snapshot f -labels P=csv stem score against OWASP Benchmark labels sasteff cofire -snapshot f[,f...] rule pairs that report the same lines
Every command reads rules from -rules (default internal/sast/rules) on disk, so an edited rule is measured without rebuilding. Run from the repository root, or pass -rules and -cases.