Release 0.66.2: every source file names its author
Every tracked file that can carry a comment (880 of them) now opens with "Author: Guoliang Chen, a Senior Digital Design Engineer" and closes with "Author: Guoliang Chen. Lucisv is made by Guoliang Chen with love, luciochen.com", in the file's own comment syntax. No behaviour change: the diff outside the version bump and changelogs is comment lines only. - tools/stamp_author.py: writes the lines; idempotent, `--check` lists what is missing. Headers go under a shebang and under Markdown front matter. - Left alone: test fixtures, cases and snapshots (byte-exact inputs), JSON and JSONL, logs, images, lockfiles, docs/site/dist (regenerated) and the LICENSE files (already carry the copyright line). - tools/linux_check.sh: --help reads its header from line 3, now that the author line sits under the shebang. - tools/gates.sh green on this tree: 5 545 tests, corpus 814/6 as before. Co-Authored-By: Claude Mythos 5.2 <[email protected]>
This commit is contained in:
1 parent
3823b85667
commit
71d13b5fbe
883 files changed
+3620
-15
No files matched your search
@@ -1,3 +1,5 @@
|
||||
// Author: Guoliang Chen, a Senior Digital Design Engineer
|
||||
|
||||
import { defineCollection } from 'astro:content';
|
||||
import { docsLoader } from '@astrojs/starlight/loaders';
|
||||
import { docsSchema } from '@astrojs/starlight/schema';
|
||||
@@ -5,3 +7,5 @@ import { docsSchema } from '@astrojs/starlight/schema';
|
||||
export const collections = {
|
||||
docs: defineCollection({ loader: docsLoader(), schema: docsSchema() })
|
||||
};
|
||||
|
||||
// Author: Guoliang Chen. Lucisv is made by Guoliang Chen with love, luciochen.com
|
||||
@@ -3,6 +3,8 @@ title: Agents (MCP)
|
||||
description: Give Claude Code, Cursor and VS Code's agent mode lucisv's parser, index and refactorings through the lucisv-mcp Model Context Protocol server.
|
||||
---
|
||||
|
||||
<!-- Author: Guoliang Chen, a Senior Digital Design Engineer -->
|
||||
|
||||
`lucisv-mcp` is lucisv as a [Model Context Protocol](https://modelcontextprotocol.io)
|
||||
server. A coding agent spawns it over stdio and asks it about the
|
||||
Verilog/SystemVerilog tree instead of reading whole files: the instance
|
||||
@@ -171,3 +173,5 @@ as in full mode.
|
||||
the directory the extension gives `lucisv-server`; `lucisv-mcp` reads that
|
||||
store for a warm start and writes only its own, `index-cache-mcp`, beside
|
||||
it — never two writers of one file.
|
||||
|
||||
<!-- Author: Guoliang Chen. Lucisv is made by Guoliang Chen with love, luciochen.com -->
|
||||
@@ -3,6 +3,8 @@ title: Editors & LSP
|
||||
description: Set up lucisv-server in VS Code, Neovim, Vim, and other Language Server Protocol clients.
|
||||
---
|
||||
|
||||
<!-- Author: Guoliang Chen, a Senior Digital Design Engineer -->
|
||||
|
||||
`lucisv-server` is a synchronous language server over stdio. It keeps open buffers as in-memory overlays, updates the workspace index incrementally, and returns the same formatting and lint behavior as the CLI.
|
||||
|
||||
## VS Code
|
||||
@@ -63,3 +65,5 @@ node editors/vscode/smoke.js target/release/lucisv-server
|
||||
```
|
||||
|
||||
See [Language tools](/reference/language-tools/) for every advertised request and editor feature.
|
||||
|
||||
<!-- Author: Guoliang Chen. Lucisv is made by Guoliang Chen with love, luciochen.com -->
|
||||
@@ -3,6 +3,8 @@ title: Formatter
|
||||
description: Understand lucisv’s deterministic formatting model, alignment inference, fences, ranges, and safety invariants.
|
||||
---
|
||||
|
||||
<!-- Author: Guoliang Chen, a Senior Digital Design Engineer -->
|
||||
|
||||
lucisv uses a Wadler/Prettier-style document model. Breakable constructs render on one line when they fit and expand predictably when they do not. Comments are attached as trivia and preserved through formatting.
|
||||
|
||||
## Core style
|
||||
@@ -73,3 +75,5 @@ The atomic unit is an item: selecting a statement formats its containing `always
|
||||
3. **Converge.** Formatting twice reaches the same fixed point.
|
||||
4. **Write atomically.** An error leaves the affected file untouched.
|
||||
5. **Stay deterministic.** Parallel worker count changes performance, never output order or exit status.
|
||||
|
||||
<!-- Author: Guoliang Chen. Lucisv is made by Guoliang Chen with love, luciochen.com -->
|
||||
@@ -3,6 +3,8 @@ title: Linter
|
||||
description: Run lucisv lint checks, select rules, apply safe fixes, configure output, and use source waivers.
|
||||
---
|
||||
|
||||
<!-- Author: Guoliang Chen, a Senior Digital Design Engineer -->
|
||||
|
||||
The linter shares discovery, parsing, configuration, and ignore behavior with the formatter, but uses error-tolerant parsing so it can report useful findings from partially understood files.
|
||||
|
||||
```bash
|
||||
@@ -97,3 +99,5 @@ are reported under `unused-waiver` at their line of the waiver file, by
|
||||
`lucisv check` only and only after the whole run.
|
||||
|
||||
See the [complete rule reference](/reference/rules/).
|
||||
|
||||
<!-- Author: Guoliang Chen. Lucisv is made by Guoliang Chen with love, luciochen.com -->
|
||||
@@ -3,6 +3,8 @@ title: Supported syntax
|
||||
description: The Verilog and SystemVerilog language surface understood by lucisv.
|
||||
---
|
||||
|
||||
<!-- Author: Guoliang Chen, a Senior Digital Design Engineer -->
|
||||
|
||||
lucisv targets Verilog-2001 and the common synthesizable SystemVerilog subset, plus the design-verification constructs most often encountered in real repositories. On the measured 820-file corpus, 99.3% of files parse; the remaining failures require cross-file macro expansion, hit a conditional-split outlier, or are not valid standalone inputs.
|
||||
|
||||
## Design units and declarations
|
||||
@@ -50,3 +52,5 @@ Parser acceptance does not imply full elaboration or semantic navigation: genera
|
||||
:::caution[Safe failure]
|
||||
Whole-file formatting returns an error and writes nothing when parsing is incomplete. lucisv never emits a partially understood file.
|
||||
:::
|
||||
|
||||
<!-- Author: Guoliang Chen. Lucisv is made by Guoliang Chen with love, luciochen.com -->
|
||||
@@ -16,6 +16,8 @@ hero:
|
||||
variant: minimal
|
||||
---
|
||||
|
||||
{/* Author: Guoliang Chen, a Senior Digital Design Engineer */}
|
||||
|
||||
<section class="feature-lead">
|
||||
<div>
|
||||
<span class="section-kicker"><i></i> lucisv language server</span>
|
||||
@@ -105,3 +107,5 @@ Formatting, diagnostics, and code intelligence share one parser and one semantic
|
||||
:::note[Open by design]
|
||||
lucisv is MIT licensed. The CLI, parser, formatter, linter, semantic engine, refactoring engine, language server, and editor integrations all live in the same Rust workspace.
|
||||
:::
|
||||
|
||||
{/* Author: Guoliang Chen. Lucisv is made by Guoliang Chen with love, luciochen.com */}
|
||||
@@ -3,6 +3,8 @@ title: Architecture
|
||||
description: How lucisv’s parser, formatter, linter, semantics, refactors, CLI, and language server fit together.
|
||||
---
|
||||
|
||||
<!-- Author: Guoliang Chen, a Senior Digital Design Engineer -->
|
||||
|
||||
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 |
|
||||
@@ -107,3 +109,5 @@ decomposition deferred to Loop 3.
|
||||
## Release surface
|
||||
|
||||
The supported publication surface is seven VS Code `.vsix` packages plus checksums: five platform packages (Apple Silicon/Intel macOS, x86-64/ARM64 static-musl Linux, Windows), one all-platform package, and one universal package requiring binaries on `PATH`. Both `lucisv` and `lucisv-server` are bundled in platform packages. Standalone binaries are built by the tooling but are not published as release assets. The release tooling audits file type, dynamic linkage, and the glibc ceiling for cross-built artifacts.
|
||||
|
||||
<!-- Author: Guoliang Chen. Lucisv is made by Guoliang Chen with love, luciochen.com -->
|
||||
@@ -3,6 +3,8 @@ title: CLI reference
|
||||
description: Complete command, option, input, output, and exit-code reference for lucisv.
|
||||
---
|
||||
|
||||
<!-- Author: Guoliang Chen, a Senior Digital Design Engineer -->
|
||||
|
||||
## Commands
|
||||
|
||||
| Form | Behavior |
|
||||
@@ -76,3 +78,5 @@ remains an error.
|
||||
| `2` | Invalid arguments, I/O failure, configuration error, or formatting failure |
|
||||
|
||||
An error outranks “would change.” Every file involved in an error is left untouched.
|
||||
|
||||
<!-- Author: Guoliang Chen. Lucisv is made by Guoliang Chen with love, luciochen.com -->
|
||||
@@ -3,6 +3,8 @@ title: Language tools
|
||||
description: Complete index of the editor and Language Server Protocol capabilities provided by lucisv-server.
|
||||
---
|
||||
|
||||
<!-- Author: Guoliang Chen, a Senior Digital Design Engineer -->
|
||||
|
||||
<span class="badge">Complete capability index</span>
|
||||
|
||||
The server speaks standard LSP over stdio. Features are derived from one in-memory document overlay, semantic model, include graph, and workspace index.
|
||||
@@ -104,3 +106,5 @@ unchanged `lucisv/moduleHierarchy` snapshot; it adds no server protocol.
|
||||
## Workspace lifecycle
|
||||
|
||||
The server handles `didOpen`, incremental `didChange`, `didSave`, `didClose`, watched-file changes, configuration changes, cancellation, shutdown, and exit. It dynamically registers file watchers, emits work-done progress while building large indexes, coalesces code-lens refreshes, and promotes open-buffer overlays into the workspace without waiting for disk writes.
|
||||
|
||||
<!-- Author: Guoliang Chen. Lucisv is made by Guoliang Chen with love, luciochen.com -->
|
||||
@@ -3,6 +3,8 @@ title: Lint rules
|
||||
description: Complete reference for every lucisv lint rule, its severity, default, fix, and rationale.
|
||||
---
|
||||
|
||||
<!-- Author: Guoliang Chen, a Senior Digital Design Engineer -->
|
||||
|
||||
<span class="badge">74 rules indexed</span>
|
||||
|
||||
Every rule is in one of three **severity** classes. `error` is code that would very likely fail to compile, elaborate or synthesize; `warning` is code that compiles and very likely does not mean what it says; `style` is code that is correct and reads badly. The class is the word in the CLI diagnostic line (`FILE:LINE:COL: warning: …`), the `severity` field of `--output-format json`, and the colour of the editor's squiggle — and it is accepted wherever a rule name is, so `--ignore style` and `--select error` both work.
|
||||
@@ -395,3 +397,5 @@ Reports a `;` written after a `` `uvm_* `` macro invocation. The macros expand t
|
||||
## v2001-generate-begin
|
||||
|
||||
Reports a bare `begin … end` written directly inside a `generate … endgenerate` with no `if`, `for` or `case` around it. It opens an unnamed generate block — an invented path segment that renumbers when a block is added above it — and buys nothing, because the region is already a scope. Read from the same recovered block `module-begin-block` reads, one scope in. Verible's `v2001-generate-begin`, same default.
|
||||
|
||||
<!-- Author: Guoliang Chen. Lucisv is made by Guoliang Chen with love, luciochen.com -->
|
||||
@@ -3,6 +3,8 @@ title: Rust API index
|
||||
description: Navigational index of the main public APIs in lucisv’s reusable Rust library crates.
|
||||
---
|
||||
|
||||
<!-- Author: Guoliang Chen, a Senior Digital Design Engineer -->
|
||||
|
||||
<span class="badge">Public functions indexed</span>
|
||||
|
||||
This is a navigational API index, not source documentation. It summarizes the main public callable surface of the six reusable library crates in the workspace; command-line and language-server binaries are documented in their dedicated references.
|
||||
@@ -248,3 +250,5 @@ recorded in the repository topology, handshakes 32–33.
|
||||
:::note[Types]
|
||||
The crates also expose their data models—AST nodes, diagnostics, rule traits, workspace identifiers, edits, plans, and formatter document nodes. This page intentionally indexes callable behavior; generated Rust API docs remain the right place for field-level type details.
|
||||
:::
|
||||
|
||||
<!-- Author: Guoliang Chen. Lucisv is made by Guoliang Chen with love, luciochen.com -->
|
||||
@@ -3,6 +3,8 @@ title: Configuration
|
||||
description: Configure formatting, exclusions, filelists, caching, and editor behavior for lucisv.
|
||||
---
|
||||
|
||||
<!-- Author: Guoliang Chen, a Senior Digital Design Engineer -->
|
||||
|
||||
Place `lucisv.toml` or `.lucisv.toml` beside your project. Every key is optional.
|
||||
|
||||
```toml title="lucisv.toml"
|
||||
@@ -121,3 +123,5 @@ alone can reuse an incorrect clean verdict, including in `--check` mode.
|
||||
After toggling it, use `--no-cache` or delete `.lucisv_cache/` (or your custom
|
||||
cache directory) before formatting or checking again. Editor formatting does
|
||||
not use this CLI format cache.
|
||||
|
||||
<!-- Author: Guoliang Chen. Lucisv is made by Guoliang Chen with love, luciochen.com -->
|
||||
@@ -3,6 +3,8 @@ title: Quick start
|
||||
description: Install lucisv, format your first SystemVerilog file, add linting to CI, and connect an editor.
|
||||
---
|
||||
|
||||
<!-- Author: Guoliang Chen, a Senior Digital Design Engineer -->
|
||||
|
||||
lucisv ships as two executables: `lucisv` for the command line and `lucisv-server` for editors. Both are built from the same release and use the same parser, configuration, and formatting rules.
|
||||
|
||||
## Install
|
||||
@@ -67,3 +69,5 @@ An exit code of `1` means formatting changes or lint findings are present. `2` m
|
||||
- **Other LSP clients:** launch `lucisv-server` over standard input/output.
|
||||
|
||||
Continue with [Editors & LSP](/guides/editors/) for settings and the complete capability index.
|
||||
|
||||
<!-- Author: Guoliang Chen. Lucisv is made by Guoliang Chen with love, luciochen.com -->
|
||||
@@ -1,3 +1,5 @@
|
||||
/* Author: Guoliang Chen, a Senior Digital Design Engineer */
|
||||
|
||||
:root {
|
||||
--sl-color-accent-low: #d8f8ed;
|
||||
--sl-color-accent: #087d5b;
|
||||
@@ -124,3 +126,5 @@ header.header { backdrop-filter: blur(18px); background: color-mix(in srgb, var(
|
||||
html { scroll-behavior: auto; }
|
||||
.capability-card { transition: none; }
|
||||
}
|
||||
|
||||
/* Author: Guoliang Chen. Lucisv is made by Guoliang Chen with love, luciochen.com */
|
||||
Reference in new issue
Block a user