Skip to main content

Crate elint

Crate elint 

Source
Expand description

Erlang source linter.

Modules§

diagnostic
Rustc-style rendering of diagnostics for the CLI.
expect
-elint_expect attributes that suppress matching findings.
fs
Collects Erlang source paths under a file or directory.
rules
Lint rules.

Structs§

BranchContext
One explored conditional-arm path through the file.
Context
Analyzed Erlang file: original source and one analysis per explored conditional-arm path.
Error
Error type for elint.
Finding
A lint finding: a byte range plus the syntax node it originates from.
PreprocessDiagnostic
Diagnostic recorded while driving the preprocessor.
SkippedDefine
A -define directive consumed by the preprocessor.
SkippedInclude
A -include / -include_lib directive skipped by the preprocessor.
Span
Half-open byte range [start, end) in the original source text.

Type Aliases§

Result
Result alias that uses Error.