Expand description
Core types for the lint engine: rule definitions, error reporting, and fix proposals.
This module contains the fundamental abstractions used by both native Rust
rules (in src/rules/) and WASM plugin rules:
Structs§
- Fix
- Represents a fix that can be applied to resolve a lint error
- Lint
Error - A single lint diagnostic produced by a rule.
- Linter
- Container that holds
LintRules and runs them against a parsed config.
Enums§
- Severity
- Severity level of a lint diagnostic.
Constants§
- RULE_
CATEGORIES - Display-ordered list of rule categories for UI output.
Traits§
- Lint
Rule - A lint rule that can be checked against a parsed nginx configuration.
Functions§
- apply_
fixes_ to_ content - Apply fixes to content string.
- compute_
line_ starts - Compute the byte offset of the start of each line (1-indexed).
- normalize_
line_ fix - Convert a line-based
Fixinto an offset-based one using precomputed line starts.