Crate rslint_cli

Source

Re-exports§

pub use rslint_config as config;

Modules§

file

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.
ExplanationRunner
A structure for converting user facing markdown docs to ANSI colored terminal explanations.
FileWalker
The structure for managing IO to and from the core runner. The walker uses multithreaded IO, spawning a thread for every file being loaded.
LongFormatter
ShortFormatter

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