Re-exports§
pub use rslint_config as config;
Modules§
Macros§
- lint_
diagnostic - lint_
err - Construct a simple linter error and immediately throw it to stderr
- lint_
note - Construct a simple linter note and immediately throw it to stderr
- lint_
warn - Construct a simple linter warning and immediately throw it to stderr
Structs§
- Diagnostic
- A diagnostic message that can give information like errors or warnings.
- Emitter
- The emitter is responsible for emitting diagnostics to a given output.
- Explanation
Runner - A structure for converting user facing markdown docs to ANSI colored terminal explanations.
- File
Walker - The structure for managing IO to and from the core runner. The walker uses multithreaded IO, spawning a thread for every file being loaded.
- Long
Formatter - Short
Formatter
Enums§
- Outcome
- The overall result of running a single rule or linting a file.
- Severity
- A severity level for diagnostic messages.
Traits§
- Files
- Interface for interacting with source files that are identified by a unique identifier.
- Formatter
- A trait describing a struct which can render diagnostics to a writer such as stderr.
Functions§
- apply_
fixes - dump_
ast - emit_
diagnostic - emit_
diagnostics - infer
- panic_
hook - remap_
diagnostics_ to_ level - Remap each error diagnostic to a warning diagnostic based on the rule’s level. this leaves warnings untouched because rules should be able to emit errors and warnings for context without the warnings being remapped to errors.
- run
- show_
all_ rules - tokenize
- verify_
formatter