From a896e0dff01c80606959aad39a49742421bf4bc4 Mon Sep 17 00:00:00 2001 From: Guoliang Chen Date: Fri, 4 Sep 2026 03:46:03 -0500 Subject: [PATCH] =?UTF-8?q?Release=200.38.0=20=E2=80=94=20lint=20rule=20op?= =?UTF-8?q?tions=20and=20the=20Style=20family?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-Authored-By: Claude Fable 5 --- CHANGELOG.md | 33 +++++++++++++++++++++++++++++++++ Cargo.lock | 16 ++++++++-------- Cargo.toml | 2 +- editors/vscode/CHANGELOG.md | 11 +++++++++++ editors/vscode/README.md | 8 +++++++- editors/vscode/package.json | 2 +- 6 files changed, 61 insertions(+), 11 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index b2f8fa0..b66798d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,39 @@ All notable changes to lucisv are recorded here. Versions follow [semantic versioning](https://semver.org/); until 1.0 the CLI's exit codes (see `README.md`) are the only frozen contract. +## 0.38.0 — 2026-09-04 + +### Lint rule options, and the Style family + +**Per-rule options.** A rule that takes options can be configured in +`lucisv.toml` (`[lint.line-length] length = 120`, +`[lint.signal-name-style] style_regex = "[a-z_0-9]+"`) and from the +editor (`lucisv.lint.options`, one object keyed by rule). Both doors run +one validator: a bad key, kind, range or pattern fails `lucisv check` +naming the file and line, and is logged and dropped in the editor so a +typo cannot switch a rule off. Editor options win over `lucisv.toml`, +key by key. `--rules-doc` lists every option with its kind and default. +Patterns use a small built-in regex dialect (literals, `.`, classes, +groups, alternation, `* + ?`, `\d \w \s`), whole-name anchored, run as +a linear-time automaton so no pattern can slow a lint run; anything +outside the dialect is refused by name. + +**Eighteen new Style rules** (54 in all): `line-length` (the +formatter's width), `posix-eof` (safe fix), `forbid-consecutive-null- +statements` (safe fix), `generate-label`, `generate-label-prefix`, +`package-filename`, `one-module-per-file` (off), `signal-name-style` +(off), `interface-name-style`, `macro-name-style`, +`constraint-name-style`, `parameter-type-name-style` (off), +`port-name-suffix` (off), `banned-declared-name-patterns` (off), +`typedef-enums`, `typedef-structs-unions`, `always-comb` (unsafe fix), +`explicit-begin` (off). The four existing naming rules take Verible's +option spellings. `typedef-structs-unions` allows a nested anonymous +aggregate by default — a deliberate divergence from Verible, because +every one of its 3 159 findings on opentitan was a generated register +package; `allow_anonymous_nested = false` restores the stricter reading. + +Every rule's toggle in VS Code is regenerated from the registry. + ## 0.37.0 — 2026-09-04 ### Typing a header no longer loses the module diff --git a/Cargo.lock b/Cargo.lock index 69d07ad..6dd5f96 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -97,7 +97,7 @@ dependencies = [ [[package]] name = "lucisv" -version = "0.37.0" +version = "0.38.0" dependencies = [ "lucisv_core", "rayon", @@ -108,11 +108,11 @@ dependencies = [ [[package]] name = "lucisv_core" -version = "0.37.0" +version = "0.38.0" [[package]] name = "lucisv_server" -version = "0.37.0" +version = "0.38.0" dependencies = [ "lsp-server", "lsp-types", @@ -248,14 +248,14 @@ checksum = "e6e4313cd5fcd3dad5cafa179702e2b244f760991f45397d14d4ebf38247da75" [[package]] name = "vlog_formatter" -version = "0.37.0" +version = "0.38.0" dependencies = [ "vlog_parser", ] [[package]] name = "vlog_linter" -version = "0.37.0" +version = "0.38.0" dependencies = [ "vlog_formatter", "vlog_parser", @@ -264,11 +264,11 @@ dependencies = [ [[package]] name = "vlog_parser" -version = "0.37.0" +version = "0.38.0" [[package]] name = "vlog_refactor" -version = "0.37.0" +version = "0.38.0" dependencies = [ "vlog_parser", "vlog_semantic", @@ -276,7 +276,7 @@ dependencies = [ [[package]] name = "vlog_semantic" -version = "0.37.0" +version = "0.38.0" dependencies = [ "vlog_parser", ] diff --git a/Cargo.toml b/Cargo.toml index 2526597..4389a22 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -12,7 +12,7 @@ members = [ ] [workspace.package] -version = "0.37.0" +version = "0.38.0" authors = ["Guoliang Chen"] edition = "2021" license = "MIT" diff --git a/editors/vscode/CHANGELOG.md b/editors/vscode/CHANGELOG.md index 2f76c5b..2198c25 100644 --- a/editors/vscode/CHANGELOG.md +++ b/editors/vscode/CHANGELOG.md @@ -5,6 +5,17 @@ for you. The extension and its bundled language server share one version number; the full engineering notes live in the [project changelog](https://git.luci.ooo/lucio/lucisv/src/branch/master/CHANGELOG.md). +## 0.38.0 — 2026-09-04 + +- **Rule options.** Configure a rule from `lucisv.lint.options` (or + `[lint.]` in `lucisv.toml`): naming patterns, `line-length`, + generate-label prefixes and more; a bad entry is logged, never silently + switches a rule off. +- **Eighteen Style rules** (54 in all): naming conventions for signals, + interfaces, macros, constraints and parameter types, generate labels, + typedef'd enums and structs, `always_comb` over `always @*`, line + length, end-of-file newline, and more — each with its own toggle. + ## 0.37.0 — 2026-09-04 - **Typing a header no longer loses the module.** A half-typed port diff --git a/editors/vscode/README.md b/editors/vscode/README.md index d64b145..9899226 100644 --- a/editors/vscode/README.md +++ b/editors/vscode/README.md @@ -30,7 +30,7 @@ Install **lucisv — Verilog/SystemVerilog** from the VS Code Extensions view, then open a Verilog or SystemVerilog file. There is no separate server or CLI setup. -The current release is **0.37.0**. Its platform packages include both +The current release is **0.38.0**. Its platform packages include both `lucisv-server` and the `lucisv` command-line tool: | Package target | Machines | @@ -364,6 +364,12 @@ Every nesting color is a proper VS Code theme color: } ``` +## Release 0.38.0 highlights + +Version 0.38.0 adds per-rule lint options (naming patterns, line +length, generate-label prefixes) and eighteen Style rules, each with +its own toggle — 54 rules in all. + ## Release 0.37.0 highlights Version 0.37.0 keeps a module or function intact while you type inside diff --git a/editors/vscode/package.json b/editors/vscode/package.json index e294bbf..461c356 100644 --- a/editors/vscode/package.json +++ b/editors/vscode/package.json @@ -2,7 +2,7 @@ "name": "lucisv", "displayName": "lucisv — Verilog/SystemVerilog", "description": "Fast Verilog/SystemVerilog formatting, linting, navigation, refactoring, semantic highlighting and RTL design intelligence.", - "version": "0.37.0", + "version": "0.38.0", "publisher": "guoliangchen", "author": "Guoliang Chen", "license": "MIT",