Skip to main content

Module linter

Module linter 

Source

Modulesยง

early ๐Ÿ”’
late ๐Ÿ”’
project ๐Ÿ”’

Structsยง

EarlyLintVisitor
Visitor struct for EarlyLintPasses
LateLintVisitor
Visitor struct for LateLintPasses
LintContext
LinterConfig
ProjectLintEmitter
Helper passed to ProjectLintPass::check_project for emitting diagnostics against a specific source and accessing the global compilation context.
ProjectSource
A single source unit visible to a project-wide lint pass, pre-loaded with its inline config so emits respect // forge-lint: disable-* markers without rebuilding it per emit.
Suggestion

Enumsยง

SuggestionKind

Traitsยง

EarlyLintPass
Trait for lints that operate directly on the AST. Its methods mirror ast::visit::Visit, with the addition of LintContext.
LateLintPass
Trait for lints that operate on the HIR (High-level Intermediate Representation). Its methods mirror hir::visit::Visit, with the addition of LintContext.
Lint
Linter
Trait representing a generic linter for analyzing and reporting issues in smart contract source code files.
ProjectLintPass
Trait for lints that need to inspect every input source at once (e.g. cross-file checks).

Functionsยง

hyperlink ๐Ÿ”’
Creates a hyperlink of the input url.