Skip to content

Architecture

lucisv follows the same separation of concerns that makes ruff fast and maintainable: syntax and source fidelity at the bottom, reusable analysis and transformations in the middle, and thin product surfaces at the top.

Crate Responsibility Primary consumers
vlog_parser Lexer, comment-preserving AST, spans, tolerant parsing, define table every analysis and transformation
vlog_formatter document IR, width-aware printer, formatting rules, fences, ranges, verification CLI and language server
vlog_linter rule registry, diagnostics, fixes, waiver engine CLI and language server
vlog_semantic scopes, symbols, references, workspace units, external resolution linter, refactors, language server
vlog_refactor rename, references, port propagation, instantiation planning language server
lucisv_core configuration, filelists, walking, exclusions, cache CLI and language server
lucisv argument parsing, parallel processing, output, atomic writes command-line users and CI
lucisv_server LSP transport, overlays, indexing, capabilities, editor settings all LSP clients
sourceFiles, stdin, buffers, filelists, and includes.
→
syntaxTokens, trivia, AST, spans, and recoverable diagnostics.
→
semanticsScopes, symbols, references, defines, and cross-file units.
formatterDocument IR, layout, fences, verification.
linterRules, waivers, applicability, fixes.
refactorPlans and non-overlapping workspace edits.
LSPQueries, diagnostics, navigation, UI actions.
  • Source fidelity: comments and blank-line intent survive the parser.
  • Determinism: worker scheduling never affects ordering, formatting, or exit codes.
  • Fixed points: formatter tests require the second pass to match the first.
  • Conservative analysis: incomplete cross-file knowledge produces false negatives rather than noisy false positives.
  • Shared answers: CLI and editor features call the same library APIs.
  • Recoverable state: caches are disposable; open buffers remain authoritative while an editor session is active.

One release builds the lucisv and lucisv-server binaries for Apple Silicon and Intel macOS, static-musl and RHEL-compatible glibc Linux, and Windows, plus the VS Code .vsix and checksums. The release tooling audits file type, dynamic linkage, and the glibc ceiling for cross-built artifacts.