Expand description
§OxiLean Lint – Static Analysis and Lint Rules
This crate provides a lint engine and a collection of lint rules for analyzing OxiLean source code.
Re-exports§
pub use framework::AutoFix;pub use framework::LintConfig;pub use framework::LintContext;pub use framework::LintDiagnostic;pub use framework::LintEngine;pub use framework::LintId;pub use framework::LintRegistry;pub use framework::LintRule;pub use framework::LintSuppression;pub use framework::Severity;pub use rules::DeadCodeRule;pub use rules::DeprecatedApiRule;pub use rules::DeprecatedTacticRule;pub use rules::LongProofRule;pub use rules::MissingDocRule;pub use rules::MissingDocstringRule;pub use rules::NamingConventionRule;pub use rules::RedundantAssumptionRule;pub use rules::RedundantPatternRule;pub use rules::SimplifiableExprRule;pub use rules::StyleRule;pub use rules::UnreachableCodeRule;pub use rules::UnusedHypothesisRule;pub use rules::UnusedImportRule;pub use rules::UnusedVariableRule;
Modules§
- autofix
- Auto-generated module structure
- framework
- Auto-generated module structure
- ide_
integration - Auto-generated module structure
- plugin
- Auto-generated module structure
- rules
- Auto-generated module structure
Structs§
- Lint
Aggregator - Aggregates diagnostics from multiple sources into a combined set.
- Lint
Baseline - Records a known set of lint diagnostics as a baseline for comparison.
- Lint
Budget - Limits the total number of diagnostics emitted.
- Lint
Config Builder - Builder for
LintConfig. - Lint
Config Validator - Validates lint configuration for consistency.
- Lint
Cooldown - Suppresses repeated identical diagnostics within a cooldown window.
- Lint
Database - A persistent store of all known lint rules and their metadata.
- Lint
Diff - Computes the diff between two sets of diagnostics (added/removed).
- Lint
Entry - Metadata for a single lint rule stored in the database.
- Lint
Event - A single lint event.
- Lint
Event Log - Logs lint events (rule run, diagnostic emitted, fix applied) for debugging.
- Lint
Example - An example of a lint rule firing (good/bad pair).
- Lint
Filter - A filter that decides whether a diagnostic should be reported.
- Lint
Formatter - Formats
LintDiagnostics into strings according to an output format. - Lint
Ignore List - A list of lint IDs that are explicitly ignored (suppressed globally).
- Lint
Metadata - Metadata about a lint rule.
- Lint
Pass - A lint pass groups related lint rules that run together.
- Lint
Priority Queue - A priority queue for diagnostics, returning the most severe first.
- Lint
Profile - A named configuration profile for the lint engine.
- Lint
Report - The full result of running the lint engine on a source file.
- Lint
Result - The result of running a single lint rule.
- Lint
Rule Group - A named group of lint rules for easy management.
- Lint
Rule Metadata - Complete metadata for a lint rule.
- Lint
Rule Set - A named set of lint rules to apply together.
- Lint
RunOptions - Options controlling a single lint run.
- Lint
RunSummary - A high-level end-of-run summary.
- Lint
Session Context - Context for a lint session across multiple files.
- Lint
Stats - Aggregate statistics from a lint run.
- Lint
Summary Report - A high-level summary report of a lint run.
- Lint
Suppress Annotation - A lint suppression annotation parsed from source.
- Lint
Trend - Tracks diagnostic counts across runs to detect trends.
Enums§
- Lint
Category - Category of a lint rule.
- Lint
Event Kind - The kind of lint event.
- Lint
Level - Configurable level for a lint rule: deny, warn, allow.
- Lint
Output Format - Output format for lint diagnostics.