Skip to main content

Module lint

Module lint 

Source
Expand description

Linter rules (C-042, spec/linter.md).

Static checks beyond validation: hygiene, probable mistakes, and style risks. Every rule is independently disableable, emits stable L0xx Warning diagnostics the language server surfaces as-is, and never affects evaluation — linting reads the module only.

Structs§

LintOptions
Linter options: rules in disabled do not run.

Constants§

ALL_RULES
All rule IDs in stable order (also the CLI’s unknown-name error).
RULE_COMPLEXITY
RULE_DEPENDS_ON
RULE_DEPRECATED
RULE_HARDCODED_SECRETS
RULE_UNUSED_LETS
Rule IDs, shared by CLI flags, options, and tests.

Functions§

lint
Run all enabled rules in stable rule order. Deterministic for a fixed input: every rule walks source-ordered structures (table fields are IndexMap; bindings sort by name).
lint_with
Run the enabled subset of rules.