Files
lucisv/docs/site
lucioandClaude Fable 5.1 e6eaf53c35
ci / checks (push) Successful in 1m2s
ci / corpus (push) Successful in 47s
Organize imports: unused imports removed, duplicates merged, the run sorted; the unused-import rule; source.organizeImports
TODO §52 (docs/features/organize-imports), the third §8 refactoring.

The judgement lives in `vlog_semantic::imports` (one implementation for
the refactoring and the rule): an import is used when a reference in its
scope, or one nested in it, resolves to a member of the package through
it — `resolve::lexical`'s walk stopped at the scope, every import whose
path admits the name and whose package exports it (binder tables
same-file, `members_of_chain` with re-exports otherwise) marked used, a
deliberate superset; a qualified `p::y` and an import's own package name
never count; an `export p::x` / `export p::*` / `export *::*` in the
scope marks the import it re-exports through as used (IEEE 1800 §26.6 —
the review rework of QA's HIGH, pinned four ways). Refuse to judge: an
unknown or twice-declared package, a macro call or conditional directive
anywhere in the scope, a class with an out-of-file base, a parse
diagnostic, two imports on one line. `vlog_refactor::organize_imports`
deletes the unused lines, merges exact duplicates, sorts the run at the
scope's top (package, item, `*` first), keeps every comment; the
verifier's resolution check refuses a removal a reference needs (attack
pair). `unused-import` (Style, off; safe fix) through
`MentionOracle::package_exports`, silent without a project. Server:
`lucisv: organize imports (removes N, sorts M)` under
`source.organizeImports`, `lucisv.organizeImports`.

Corpus: 40 scopes with ≥ 2 imports, 1 organized, 32 refused for macros;
the rule finds 2, both substantiated. opentitan: 33 of 33 UVM env
packages refused (`` `include "uvm_macros.svh" ``). 0 of 860 corpus
files differ from 0.46.0.

Co-Authored-By: Claude Fable 5.1 <[email protected]>
2026-09-05 20:00:31 -05:00
..

lucisv documentation site

Astro 7 and Starlight build the static user guide and reference pages from src/content/docs/. Dependencies are pinned in package.json and package-lock.json; use the lockfile when installing:

cd docs/site
npm ci
npm run dev

Build and inspect the deployable output:

npm run build
npm run preview

dist/ contains pre-rendered HTML, CSS, JavaScript, Pagefind search, and XML sitemaps; no application server is required. It is tracked in this repository, so rebuild it after changing documentation and review the generated diff. Building does not publish the site. In a restricted environment, use ASTRO_TELEMETRY_DISABLED=1 npm run build to avoid Astro writing its global telemetry preferences.

Editing and verification

  • Usage guides: src/content/docs/start/ and guides/.
  • CLI, lint rules, LSP, architecture and API navigation: src/content/docs/reference/.
  • Overview: src/content/docs/index.mdx.
  • Routes/sidebar, site URL and metadata: astro.config.mjs.
  • Visual styles: src/styles/custom.css; static media: public/.

The site is derived documentation. Check behavior against the Rust source, CLI help, and feature contracts before updating prose. The repository-wide analysis and topology cover internal ownership and limitations. Historical coverage/performance numbers must retain their measurement scope and date.

From the repository root, generate the canonical lint rule reference and the complete Rust API docs with:

cargo run -p lucisv -- check --rules-doc
cargo doc --workspace --no-deps

The site rule page adds editorial explanations; it must agree with the registry's rule names, severities, defaults, options and fix applicability. The API page is navigational, not an exhaustive signature inventory. npm run build validates content rendering and builds search/sitemaps. npm run check invokes Astro's optional checker; it requires checker packages beyond this site's current declared dependencies.