pub trait Recognizer: Send + Sync {
// Required methods
fn name(&self) -> &'static str;
fn id(&self) -> &'static str;
fn category(&self) -> Category;
fn scan(&self) -> Result<Vec<Finding>>;
}Expand description
A recognizer detects reclaimable disk space from a specific tool or ecosystem.
Recognizers come in two flavors:
- Path-based: scan known fixed paths (caches, model stores)
- Project-based: scan directories for marker files (build artifacts)