Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
ffbb29ddbb | ||
|
|
10b63e665d | ||
|
|
a648561f63 |
No files matched your search
@@ -4,6 +4,50 @@ 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.36.1 — 2026-09-04
|
||||
|
||||
The 0.36.0 tag never published: its release commit shipped without a
|
||||
CHANGELOG section (the release chain's draft lived in a session
|
||||
scratchpad that a crash had wiped), and the release workflow refuses a
|
||||
version without notes, as designed. 0.36.1 is 0.36.0 plus these notes.
|
||||
|
||||
## 0.36.0 — 2026-09-03
|
||||
|
||||
### The linter grows up: severities, per-rule toggles, and 19 new rules
|
||||
|
||||
Every lint rule now has a **severity** — `error` (would likely fail to
|
||||
compile or elaborate, or silently mis-synthesize), `warning` (a probable
|
||||
bug) or `style` — printed in `lucisv check` output
|
||||
(`FILE:LINE:COL: warning: message [rule]`), carried in the JSON output,
|
||||
mapped to red / yellow / blue in the editor, and shown in
|
||||
`--rules-doc`, which now groups rules by class. `--select`, `--ignore`
|
||||
and `[lint]` in `lucisv.toml` accept a severity word (`--ignore style`).
|
||||
|
||||
**Editor toggles.** VS Code settings gain three master switches
|
||||
(`lucisv.lint.severity.error`, `.warning`, `.style`) and one setting per
|
||||
rule (`lucisv.lint.rules.<rule>`: `default` / `on` / `off`), generated
|
||||
from the rule registry so the list can never drift. Precedence, top to
|
||||
bottom: defaults → `select` → severity switches → per-rule settings →
|
||||
`ignore`. Changing any of them re-checks every open file.
|
||||
|
||||
**New rules — Error**: `mismatched-labels`, `duplicate-declaration`,
|
||||
`undeclared-identifier` (with a project; silent for names that come
|
||||
from macros, `` `include``d fragments or hierarchical paths),
|
||||
`unknown-port`, `unknown-parameter`.
|
||||
**New rules — Warning**: `forbid-defparam`, `invalid-system-task-function`,
|
||||
`truncated-numeric-literal`, `undersized-binary-literal` (safe fix pads),
|
||||
`suspicious-semicolon`, `packed-dimensions-range-ordering`, `module-port`,
|
||||
`module-parameter`, `explicit-function-task-parameter-type`,
|
||||
`plusarg-assignment`, `instance-shadowing`, `forbid-negative-array-dim`,
|
||||
`void-cast`, `incomplete-assignment` (latch inference in `always_comb`).
|
||||
Verible equivalents are named in each rule's documentation; defaults
|
||||
follow Verible's except where the doc says why not. Existing rules
|
||||
re-classified: `multiply-driven` and `wire-reg-mixup` are errors.
|
||||
|
||||
Measured on opentitan: every false-positive class found was closed with
|
||||
a test; `lucisv check` over its `hw/` tree runs in the same time as
|
||||
0.35.0.
|
||||
|
||||
## 0.35.0 — 2026-09-02
|
||||
|
||||
### Format fences reach statements and class bodies
|
||||
|
||||
Generated
+8
-8
@@ -97,7 +97,7 @@ dependencies = [
|
||||
|
||||
[[package]]
|
||||
name = "lucisv"
|
||||
version = "0.36.0"
|
||||
version = "0.36.1"
|
||||
dependencies = [
|
||||
"lucisv_core",
|
||||
"rayon",
|
||||
@@ -108,11 +108,11 @@ dependencies = [
|
||||
|
||||
[[package]]
|
||||
name = "lucisv_core"
|
||||
version = "0.36.0"
|
||||
version = "0.36.1"
|
||||
|
||||
[[package]]
|
||||
name = "lucisv_server"
|
||||
version = "0.36.0"
|
||||
version = "0.36.1"
|
||||
dependencies = [
|
||||
"lsp-server",
|
||||
"lsp-types",
|
||||
@@ -248,14 +248,14 @@ checksum = "e6e4313cd5fcd3dad5cafa179702e2b244f760991f45397d14d4ebf38247da75"
|
||||
|
||||
[[package]]
|
||||
name = "vlog_formatter"
|
||||
version = "0.36.0"
|
||||
version = "0.36.1"
|
||||
dependencies = [
|
||||
"vlog_parser",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "vlog_linter"
|
||||
version = "0.36.0"
|
||||
version = "0.36.1"
|
||||
dependencies = [
|
||||
"vlog_formatter",
|
||||
"vlog_parser",
|
||||
@@ -264,11 +264,11 @@ dependencies = [
|
||||
|
||||
[[package]]
|
||||
name = "vlog_parser"
|
||||
version = "0.36.0"
|
||||
version = "0.36.1"
|
||||
|
||||
[[package]]
|
||||
name = "vlog_refactor"
|
||||
version = "0.36.0"
|
||||
version = "0.36.1"
|
||||
dependencies = [
|
||||
"vlog_parser",
|
||||
"vlog_semantic",
|
||||
@@ -276,7 +276,7 @@ dependencies = [
|
||||
|
||||
[[package]]
|
||||
name = "vlog_semantic"
|
||||
version = "0.36.0"
|
||||
version = "0.36.1"
|
||||
dependencies = [
|
||||
"vlog_parser",
|
||||
]
|
||||
+1
-1
@@ -12,7 +12,7 @@ members = [
|
||||
]
|
||||
|
||||
[workspace.package]
|
||||
version = "0.36.0"
|
||||
version = "0.36.1"
|
||||
authors = ["Guoliang Chen"]
|
||||
edition = "2021"
|
||||
license = "MIT"
|
||||
|
||||
@@ -3647,28 +3647,130 @@ linter-expansion-1/README.md (new), TODO §33. Worktree `lint-1`.
|
||||
near-misses; the false-positive census re-read; toggles exercised
|
||||
through the real server (`workspace/didChangeConfiguration`)
|
||||
|
||||
## 34. Linter expansion, wave 2 (planned 2026-09-02, after §33) — the Style class and per-rule options
|
||||
## 34. Linter expansion, wave 2 (planned 2026-09-03) — per-rule options, and the first eighteen Style rules
|
||||
|
||||
The style family from Verible, with the per-rule configuration the
|
||||
naming rules need: `signal-name-style`, `interface-name-style`,
|
||||
`macro-name-style`, `constraint-name-style`, `parameter-type-name-style`,
|
||||
`dff-name-style`, `port-name-suffix`, `banned-declared-name-patterns`
|
||||
(each with a `pattern`/style option), `line-length` (reads the
|
||||
formatter's `line-length`), `posix-eof` (safe fix), `endif-comment`,
|
||||
`forbid-line-continuations`, `one-module-per-file`, `package-filename`,
|
||||
`typedef-enums`, `typedef-structs-unions`, `module-begin-block`,
|
||||
`generate-label` + `generate-label-prefix`, `always-comb` (`@*` →
|
||||
`always_comb`, safe fix), `legacy-generate-region`,
|
||||
`legacy-genvar-declaration`, `v2001-generate-begin`,
|
||||
After §33 (36 rules, severities, toggles). Two things this wave adds:
|
||||
the **option plumbing** every configurable rule needs, and the Style
|
||||
rules from Verible's list that carry the most weight in a style guide
|
||||
(naming, file layout, generate labels, typedefs, line length). Dev
|
||||
Opus 5, QA Sonnet 5. Feature README: `docs/features/linter-expansion-2/
|
||||
README.md`. Mapped: `lucisv_core::config` parses one table, `[lint]`,
|
||||
with `select`/`ignore`, and rejects `[lint.<rule>]` by name
|
||||
(`config.rs::parse_entry`: "per-rule lint settings … are not supported
|
||||
yet"); the editor has `lucisv.lint.select/ignore/severity.*/rules.*`;
|
||||
`Rule` has no notion of options; `LintContext` carries source, tokens,
|
||||
tree, semantics slot and the oracle; `line-length` already lives in
|
||||
`FileConfig` for the formatter.
|
||||
|
||||
**34.0 Options, end to end.**
|
||||
(a) `vlog_linter`: `pub struct OptionSpec { name: &'static str, kind:
|
||||
OptionKind (Bool | Int { min, max } | Str | Regex | List), default:
|
||||
OptionValue, doc: &'static str }` and `Rule::options(&self) ->
|
||||
&'static [OptionSpec]` (default empty); `RuleOptions` — a validated
|
||||
map `rule → key → OptionValue` built by `RuleOptions::parse(rule, key,
|
||||
raw)` that rejects an unknown key ("rule `x` has no option `y`; it has:
|
||||
…"), a wrong kind, an out-of-range int or an invalid regex, each with
|
||||
the message the two front ends print with file and line. `LintContext`
|
||||
carries `&RuleOptions`; a rule reads `ctx.option_str(NAME, "pattern")`
|
||||
etc. with the spec's default as the fallback, so a rule never sees
|
||||
"unset". (b) `lucisv_core::config`: `[lint.<rule>]` tables accepted —
|
||||
`key = value` for bool/int/string, `key = ["a", "b"]` for lists —
|
||||
stored raw in `FileConfig::lint_options: Vec<(rule, key, raw, line)>`
|
||||
(the core crate does not know the rules); the CLI resolves them
|
||||
against the registry per file the way `[lint] select` names are
|
||||
checked, failing the run with file:line on the first bad entry. (c)
|
||||
Editor: `lucisv.lint.options` (object; `{"<rule>": {"<key>": value}}`,
|
||||
`additionalProperties`), parsed in `settings.rs`, validated the same
|
||||
way — a bad entry is a `window/logMessage` warning and is ignored, so
|
||||
one typo cannot switch the linter off; republish on change. (d)
|
||||
Precedence: editor options over `lucisv.toml` options over the spec
|
||||
default, key by key (the same ladder `lucisv.lineLength` uses — cite
|
||||
`format::settings_for`). (e) `--rules-doc` lists each rule's options
|
||||
with kind, default and doc; the VS Code generator emits nothing per
|
||||
option (the object setting covers them) but its description names the
|
||||
options each rule takes. (f) Pins: parse/validate table tests; a
|
||||
`lucisv.toml` with `[lint.line-length] length = 120` changes the
|
||||
verdict; the editor object does the same over the wire; a bad key
|
||||
fails the CLI naming file:line and only logs in the editor.
|
||||
|
||||
**34.1 Options on the existing naming rules** (so the family is
|
||||
consistent before the new members arrive): `enum-name-style`,
|
||||
`struct-union-name-style`, `module-name-style`, `parameter-name-style`
|
||||
gain the option Verible gives them (`style_regex`; `parameter-name-
|
||||
style` gets `localparam_style`/`parameter_style` with Verible's
|
||||
`CamelCase|ALL_CAPS` vocabulary plus the `_regex` overrides); defaults
|
||||
reproduce today's behaviour exactly (pin: the corpus and opentitan
|
||||
finding lists are byte-identical with no options set).
|
||||
|
||||
**34.2 New Style rules** (Verible name; default there → here; options):
|
||||
- `line-length` (on; `length`, default = the formatter's configured
|
||||
`line-length`, else 100) — a token-aware check that ignores a line
|
||||
that is one unbreakable token (a long string or macro invocation),
|
||||
as Verible does.
|
||||
- `posix-eof` (on; safe fix appends the newline).
|
||||
- `forbid-consecutive-null-statements` (on; safe fix) — `;;` at
|
||||
statement level, the statement twin of `empty-item`.
|
||||
- `generate-label` (on) and `generate-label-prefix` (on; `prefix`
|
||||
list, default `g_`/`gen_`).
|
||||
- `package-filename` (on; `allow-dash-for-underscore`, same as
|
||||
`module-filename`).
|
||||
- `one-module-per-file` (off).
|
||||
- `signal-name-style` (off; `style_regex`, default `[a-z_0-9]+`).
|
||||
- `interface-name-style` (on; `style_regex`, default `[a-z_0-9]+(_if)`).
|
||||
- `macro-name-style` (on; `style_regex`, default `[A-Z_0-9]+`; the
|
||||
macro's own name from the `` `define`` table).
|
||||
- `constraint-name-style` (on; `pattern`, default `([a-z0-9]+_)+c`).
|
||||
- `parameter-type-name-style` (off; lower_snake + `_t`).
|
||||
- `port-name-suffix` (off; `_i`/`_o`/`_io`/`_ni`/`_no`/`_nio` per
|
||||
Verible; option `suffixes` list).
|
||||
- `banned-declared-name-patterns` (off; `patterns` list of regexes).
|
||||
- `typedef-enums` (on) and `typedef-structs-unions` (on;
|
||||
`allow_anonymous_nested`).
|
||||
- `always-comb` (on; **unsafe** fix rewriting `always @*`/`@(*)` to
|
||||
`always_comb` — the two are not identical at time zero, so the fix is
|
||||
offered but not applied by default).
|
||||
- `explicit-begin` (off; the eleven `*_enable` bool options Verible
|
||||
has; safe fix wraps the body in `begin`/`end`).
|
||||
Each: its own file, true positives and near-misses, a `.lint` case,
|
||||
corpus + opentitan counts with ten findings read and classified;
|
||||
opentitan is Verible-clean for its `dvsim` filesets, so a
|
||||
Verible-default rule that fires inside them needs an explanation.
|
||||
|
||||
**34.3 Docs and toggles.** The VS Code generator regenerates the 18 new
|
||||
`lucisv.lint.rules.*` entries (the drift test enforces it); README.md
|
||||
"Linting" gains the options section and the rows; `editors/vscode/
|
||||
README.md` documents `lucisv.lint.options`; the docs-site rules page
|
||||
gains the sections; CHANGELOG untouched (the lead writes it).
|
||||
Remaining Verible rules — `module-begin-block`, `legacy-generate-
|
||||
region`, `legacy-genvar-declaration`, `v2001-generate-begin`,
|
||||
`explicit-function-lifetime`/`explicit-task-lifetime`,
|
||||
`positive-meaning-parameter-name`, `suggest-parentheses`,
|
||||
`forbid-consecutive-null-statements`, `unpacked-dimensions-range-
|
||||
ordering`, `uvm-macro-semicolon`, `create-object-name-match`,
|
||||
`numeric-format-string-style`, `macro-string-concatenation`,
|
||||
`disable-statement`, `forbidden-macro`/`forbidden-symbol` (list
|
||||
options). Options: `[lint.<rule>]` tables in `lucisv.toml` (today
|
||||
rejected by name — the parser exists) and `lucisv.lint.options.<rule>`
|
||||
in the editor, validated against a per-rule option schema declared by
|
||||
the rule (`Rule::options() -> &[OptionSpec]`), shown in `--rules-doc`.
|
||||
Detailed plan to be written when §33 lands.
|
||||
`unpacked-dimensions-range-ordering`, `uvm-macro-semicolon`,
|
||||
`create-object-name-match`, `numeric-format-string-style`,
|
||||
`macro-string-concatenation`, `disable-statement`, `forbidden-macro`/
|
||||
`forbidden-symbol`, `endif-comment`, `forbid-line-continuations`,
|
||||
`dff-name-style`, `proper-parameter-declaration` — are §35, wave 3.
|
||||
|
||||
Files: crates/vlog_linter/src/{registry.rs (OptionSpec, options()),
|
||||
options.rs (new: OptionKind/OptionValue/RuleOptions), context.rs,
|
||||
rule_docs.rs, vscode.rs, lib.rs, rules/<new>.rs, rules/<naming>.rs}
|
||||
+ tests/cases/*.lint, crates/lucisv_core/src/config.rs (+ tests),
|
||||
crates/lucisv/src/{lint.rs, args.rs?} + tests, crates/lucisv_server/
|
||||
src/{settings.rs, lint.rs} + tests, editors/vscode/{package.json,
|
||||
README.md}, README.md "Linting", docs/site/.../reference/rules.md,
|
||||
docs/features/linter-expansion-2/README.md (new), TODO §34. Worktree
|
||||
`lint-2`; disjoint from §32 (parser) so the two may run in parallel.
|
||||
Every suite and sweep under `tools/guard.sh`.
|
||||
- [ ] 34.0 options end to end (spec, validation, toml table, editor
|
||||
object, precedence, --rules-doc); pins
|
||||
- [ ] 34.1 options on the four existing naming rules; defaults
|
||||
byte-identical
|
||||
- [ ] 34.2 the eighteen Style rules, each with tests, counts and ten
|
||||
classified findings
|
||||
- [ ] 34.3 docs + regenerated toggles
|
||||
- [ ] Gates (guarded): fmt/clippy/`cargo test --workspace`; corpus
|
||||
814/820 byte-identical; vsix smoke; opentitan read-only census +
|
||||
timing vs 0.36.0
|
||||
- [ ] QA: options attacked (bad key/kind/range/regex on both front
|
||||
ends), every rule with near-misses, the census re-read
|
||||
|
||||
@@ -613,6 +613,8 @@ mentioning the name) is the false-negative-safe direction the semantic
|
||||
lints already use. The two handshakes taken (`Semantics::duplicates()`,
|
||||
additive, no store change; two lines in `notification.rs` so a toggle
|
||||
republishes) are accepted. QA's MEDIUM timing note was measured under
|
||||
another lane's compiles; re-measured at merge on a quiet machine and
|
||||
recorded below. Ships in 0.36.0. Wave 2 (§34) takes the Style family
|
||||
another lane's compiles; re-measured at merge on a quiet machine, interleaved,
|
||||
three runs each under `tools/guard.sh`: 0.35.0 1.06–1.08 s, this tree
|
||||
1.06–1.07 s over opentitan `hw/` — no difference. The dev's "faster"
|
||||
was not reproduced either; the census change is neutral at this scale. Ships in 0.36.0. Wave 2 (§34) takes the Style family
|
||||
and per-rule options.
|
||||
@@ -5,6 +5,27 @@ 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.36.1 — 2026-09-04
|
||||
|
||||
- 0.36.0 never published (its release shipped without notes); 0.36.1 is
|
||||
the same build with them.
|
||||
|
||||
## 0.36.0 — 2026-09-03
|
||||
|
||||
- **Lint severities and per-rule toggles.** Every rule is now an
|
||||
error, a warning or a style note (red / yellow / blue in the editor).
|
||||
Settings gain `lucisv.lint.severity.error|warning|style` master
|
||||
switches and one `lucisv.lint.rules.<rule>` setting per rule
|
||||
(`default` / `on` / `off`), so any rule or whole class can be turned
|
||||
on or off from the Settings UI.
|
||||
- **19 new rules** (36 in all), led by the ones that catch what would
|
||||
not compile or would silently mis-synthesize: mismatched end labels,
|
||||
duplicate declarations, undeclared identifiers, unknown ports and
|
||||
parameters in instantiations, `defparam`, truncated and undersized
|
||||
literals, suspicious semicolons, positional connections, untyped
|
||||
task/function arguments, shadowing, and latch-inferring
|
||||
`always_comb` blocks.
|
||||
|
||||
## 0.35.0 — 2026-09-02
|
||||
|
||||
- **Format fences work inside procedural blocks and classes.**
|
||||
|
||||
@@ -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.35.0**. Its platform packages include both
|
||||
The current release is **0.36.1**. Its platform packages include both
|
||||
`lucisv-server` and the `lucisv` command-line tool:
|
||||
|
||||
| Package target | Machines |
|
||||
@@ -344,6 +344,13 @@ Every nesting color is a proper VS Code theme color:
|
||||
}
|
||||
```
|
||||
|
||||
## Release 0.36.1 highlights
|
||||
|
||||
Version 0.36.1 (0.36.0 plus its release notes) gives every lint rule a
|
||||
severity, exposes every rule and every severity class as a toggle in
|
||||
Settings, and adds nineteen rules aimed at what would fail to compile
|
||||
or silently mis-synthesize.
|
||||
|
||||
## Release 0.35.0 highlights
|
||||
|
||||
Version 0.35.0 lets format fences protect statements inside procedural
|
||||
|
||||
@@ -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.36.0",
|
||||
"version": "0.36.1",
|
||||
"publisher": "guoliangchen",
|
||||
"author": "Guoliang Chen",
|
||||
"license": "MIT",
|
||||
|
||||
Reference in new issue
Block a user