feat: add lux lint command with Lux-specific static analysis

Implements a linter with 21 lint rules across 6 categories (correctness,
suspicious, idiom, performance, style, pedantic). Lux-specific lints include
could-be-pure, could-be-total, unnecessary-effect-decl, and single-arm-match.
Integrates lints into `lux check` for unified type+lint checking. Available
standalone via `lux lint` (alias: `lux l`) with --explain for detailed help.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-02-17 07:35:36 -05:00
parent 44ea1eebb0
commit 19068ead96
2 changed files with 1348 additions and 7 deletions

1143
src/linter.rs Normal file

File diff suppressed because it is too large Load Diff