pub(crate) type Lint = fn(&Path) -> LintFnResult;Expand description
Function pointer type for a single lint invocation.
Encapsulates a non-mutating check or (optionally) mutating fix routine executed against the workspace root.
§Rationale
Using a simple function pointer keeps dynamic dispatch trivial and avoids boxing trait objects; closures remain
zero-cost and we can compose slices of (name, LintFn) without lifetime complications.
§Future Work
- Consider an enum encapsulating richer metadata (e.g. auto-fix capability flag) to filter sets without duplicating entries across lists.