External waiver files: Verible's format from lucisv.toml, --waiver-file and the editor, union with inline waivers, honoured by quick fixes
TODO §39 (docs/features/waiver-files). Closes §4's last waiver item. `vlog_linter::waiver_file`: `waive --rule=<rule> [--line=N|N-M] [--location=<pattern>]`, `#` comments, BOM tolerated; `--location` is the `--exclude` matcher (`lucisv_core::walk::is_excluded`, a new vlog_linter → lucisv_core edge), a regex-looking pattern refused by name. `lint_with(ctx, rules, external)` applies inline and external waivers as a union and reports which external directives fired; `lucisv check` reports the dead ones under `unused-waiver` at the waiver file's line after the whole run. Discovery: `[lint] waivers` (relative to the toml), `--waiver-file` (repeatable), `lucisv.lint.waivers` (first workspace root); bad lines fail the CLI run with file:line and are dropped and logged once by the server. Review rework (QA's HIGH): the server's code-action path now lints with the buffer's `LintRun` — its enabled rules and external waivers — so a quick fix is never offered, nor applied by fix-on-save, for a waived finding. Docs: Waivers sections in README and the linter guide, cli and configuration rows, topo edge, site rebuilt. Co-Authored-By: Claude Fable 5.1 <[email protected]>
This commit is contained in:
1 parent
f6f18de10d
commit
8a92e79fc0
44 files changed
+2257
-125
No files matched your search
@@ -0,0 +1,561 @@
|
||||
# waiver-files
|
||||
|
||||
## Goal
|
||||
|
||||
Findings can be suppressed from *outside* the RTL, in Verible's waiver file
|
||||
format, so a project that already has a `.waiver` file carries it over
|
||||
unchanged and a team can silence a rule for a legacy directory without
|
||||
editing five hundred files. One directive per line —
|
||||
`waive --rule=<rule> [--line=N|--line=N-M] [--location=<pattern>]`, with `#`
|
||||
comments and blank lines ignored — read from `--waiver-file` on the command
|
||||
line, from `waivers` under `[lint]` in a `lucisv.toml`, and from
|
||||
`lucisv.lint.waivers` in an editor. External waivers and the inline
|
||||
`// lucisv: waive` comments are a **union**: a finding either covers is
|
||||
suppressed, and one both cover marks both used. This closes §4's last two
|
||||
waiver items (TODO §39).
|
||||
|
||||
## Assumptions
|
||||
|
||||
- **`--location` is not a regex.** Verible's is; lucisv has no regex engine
|
||||
in the linter's path and deliberately keeps `--exclude`'s glob semantics
|
||||
everywhere a pattern names files. A pattern that *looks* like a regex is
|
||||
refused with a message saying what the difference is, rather than silently
|
||||
matching nothing. The detector is `waiver_file::regex_hint`: `.*`, `.+`,
|
||||
or any of `\ ^ $ [ ] ( ) | ? + { }`. A bare `.` is not a metacharacter —
|
||||
`foo.sv` is a file name. A pattern that is a valid glob *and* looks like a
|
||||
regex (a file with a `+` in its name) is refused; nothing in the corpus or
|
||||
in opentitan has one, and the message tells the user what to write.
|
||||
- **A directive names one rule.** A severity word (`error`, `warning`,
|
||||
`style`) is refused, though `--select`/`--ignore` accept one: a waiver file
|
||||
is checked in, and one word in it quietly silencing a whole class is not
|
||||
something anyone should be able to write by accident.
|
||||
- **`--regex=` is refused by name**, because Verible has it and a user
|
||||
carrying a file over deserves to be told which directive lucisv cannot
|
||||
honour rather than "unknown option".
|
||||
- **Line ranges are `N-M`, inclusive, 1-based**, matching Verible. `N:M` is
|
||||
not accepted.
|
||||
- **A stdin buffer has no path**, so a directive with a `--location` cannot
|
||||
cover it; one without covers it like any other file.
|
||||
- The CLI de-duplicates waiver files by their **canonicalized** path, so the
|
||||
same file named by `--waiver-file` and by a `lucisv.toml` is read once. If
|
||||
canonicalization fails (a path that does not exist) the path as written is
|
||||
the key — and a non-existent path fails the run a line later anyway.
|
||||
- The server reads its waiver files **on every lint pass**, exactly as it
|
||||
already re-reads the buffer's `lucisv.toml` per pass, so a waiver file
|
||||
edited while the editor is open takes effect at the next publish with no
|
||||
cache to invalidate. The cost is a few `read_to_string`s of small files
|
||||
beside a parse and an analysis, and it is zero when nothing is configured.
|
||||
- `lint::fixable` (the code-action path) still runs `default_rules()` with no
|
||||
waivers at all, inline or external — unchanged from before this round. A
|
||||
waived finding was never published, so no lightbulb is offered for it in
|
||||
practice; the mismatch is pre-existing and out of scope here.
|
||||
|
||||
## Handshakes
|
||||
|
||||
**Consumed**
|
||||
|
||||
- `lucisv_core::walk::is_excluded` — the `--exclude` matcher, now also the
|
||||
`--location` matcher. **This adds `lucisv_core` as a dependency of
|
||||
`vlog_linter`** (`crates/vlog_linter/Cargo.toml`, with the reason in a
|
||||
comment). `lucisv_core` has no dependencies of its own, so this adds no
|
||||
external code and closes no loop; copying the matcher instead would have
|
||||
meant the two *look* the same and can drift. **This is a new edge for
|
||||
`docs/topo.md`: `vlog_linter ──▶ lucisv_core`.** That file is owned by
|
||||
another process this round, so the edge is recorded here for the lead to
|
||||
apply.
|
||||
- `lucisv_core::config::FileConfig::lint_waivers` — new `Option<Vec<PathBuf>>`
|
||||
field, `[lint] waivers`, resolved against the config file's own directory
|
||||
by `Discovery` exactly as `filelist` is.
|
||||
- `vlog_linter::rule_by_name` / `Severity::from_name` — a directive's `--rule`
|
||||
is validated against the registry at parse time.
|
||||
|
||||
**Promised**
|
||||
|
||||
- `vlog_linter::lint(ctx, rules)` is **unchanged** in signature and behaviour;
|
||||
it now delegates to `lint_with(ctx, rules, &ExternalWaivers::default())`.
|
||||
- `vlog_linter::lint_with(ctx, rules, &ExternalWaivers) -> (Vec<Violation>,
|
||||
WaiverUse)` is the new entry point. The `WaiverUse` half is the caller's to
|
||||
merge across a run and hand back to `ExternalWaivers::unused`.
|
||||
- `vlog_linter::{ExternalWaivers, UnusedReport, WaiverUse}` are public.
|
||||
`ExternalWaivers::read` returns `(waivers, problems)` — a file that cannot
|
||||
be opened is the `Err`, a file with bad *lines* is an `Ok` carrying both —
|
||||
so the CLI can fail the run and the server can drop the line and log it,
|
||||
from one reader.
|
||||
- `vlog_linter::waiver::Waivers::filter` is gone, replaced by
|
||||
`Waivers::covers(rule, line)`; the union has to ask both waiver kinds about
|
||||
every violation, and a `filter` that dropped violations before the external
|
||||
one saw them would have marked only one of a covering pair used. Internal
|
||||
to the crate (`pub(crate)`), so nothing outside moves.
|
||||
- `lucisv_server::state::Workspace::roots()` is new (`&[PathBuf]`), for
|
||||
resolving a relative `lucisv.lint.waivers` entry against the first root the
|
||||
way `filelist_path` does inline.
|
||||
- `lucisv_server::lint::{waiver_paths, external_waivers}` are public so
|
||||
`server/notification.rs` can validate the setting once when it arrives.
|
||||
- `settings::LintSelection` gained a sixth element (the waiver list), so a
|
||||
changed list republishes every open buffer, as a changed option already did.
|
||||
- `lucisv::lint::{plan, check_stdin}`: `check_stdin` takes one more argument
|
||||
(`&ExternalWaivers`); `external_waivers(opts, configs)` is public for the
|
||||
stdin path in `main.rs`.
|
||||
|
||||
**Requested of the lead** (files owned by the concurrent docs process): the
|
||||
`README.md` / docs-site text under "Docs to apply at merge (lead)" below, and
|
||||
the `docs/topo.md` edge above.
|
||||
|
||||
## Status / TODO
|
||||
|
||||
- [x] 39.1 `waiver_file.rs` (parse + match) and the union in `lib.rs`
|
||||
- [x] 39.2 discovery: `[lint] waivers`, `--waiver-file`, `lucisv.lint.waivers`
|
||||
- [x] 39.3 unused reporting on the CLI; errors on both front ends
|
||||
- [x] the VS Code setting — **by hand** in `editors/vscode/package.json`:
|
||||
`vlog_linter::vscode` generates only `lucisv.lint.severity.*` and
|
||||
`lucisv.lint.rules.*`, and the drift test
|
||||
(`settings.rs::the_vscode_lint_toggles_match_the_registry`) filters on
|
||||
exactly those two prefixes, so `lucisv.lint.select`, `ignore`, `options`
|
||||
and now `waivers` are hand-written beside them
|
||||
- [x] tests: every directive shape and every error; matching by name, path
|
||||
suffix, line and range; union with an inline waiver; unused reporting;
|
||||
CLI (`--waiver-file` twice, toml + CLI, exit codes); server unit tests;
|
||||
one e2e case over the wire
|
||||
- [x] docs: this README; TODO §4's two waiver lines and §39's own boxes
|
||||
- [ ] QA
|
||||
|
||||
## Work log
|
||||
|
||||
**2026-09-04 (dev).**
|
||||
|
||||
- `crates/vlog_linter/src/waiver_file.rs` (new, ~330 lines with tests): the
|
||||
directive parser, the matcher, `WaiverUse` and the unused report.
|
||||
`waiver.rs` is untouched except that `filter` became `covers` — it is still
|
||||
only the inline story.
|
||||
- The union lives in `lib.rs::waive`, which asks **both** waiver kinds about
|
||||
every violation and never short-circuits: `inline.covers(..) || external
|
||||
.covers(..)` with `||` would have left the second waiver of a covering pair
|
||||
looking dead. There is a test for exactly that in `cli.rs`.
|
||||
- Grammar accepted, exactly:
|
||||
`waive` then any order of `--rule=<rule>` (required, once),
|
||||
`--line=<N>` or `--line=<N>-<M>` (once), `--location=<pattern>` (once).
|
||||
Leading and trailing whitespace ignored, `#` comments and blank lines
|
||||
ignored, CRLF handled (the span arithmetic uses `split_inclusive('\n')` so a
|
||||
`\r` does not shift a directive's reported line). There is no quoting, so a
|
||||
pattern cannot contain a space — the same limitation `.f` filelists have.
|
||||
- Every error message (each prefixed `<file>:<line>: `):
|
||||
- ``expected a `waive` directive, found `<word>` ``
|
||||
- ``` `waive` needs a `--rule=<rule-name>` ```
|
||||
- ``unknown rule `<name>` ``
|
||||
- ``` `--rule=<word>` names a severity class; a waiver names one rule at a time ```
|
||||
- ``` `--line=<v>` is not a line or a line range (`--line=5`, `--line=5-9`) ```
|
||||
- ``` `--line=<v>` starts at 0; lines are numbered from 1 ```
|
||||
- ``` `--line=<v>` counts backwards ```
|
||||
- ``` `--location=<v>` looks like a regular expression (`<token>`); lucisv
|
||||
matches a location the way `--exclude` does — … ```
|
||||
- ``` `--<flag>` is given twice ```
|
||||
- ``` `--regex` is not supported; waive by `--line` or `--location` ```
|
||||
- ``unknown option `<flag>` (the options are `--rule`, `--line` and
|
||||
`--location`)``
|
||||
- ``` `--<flag>` takes a value: write `--<flag>=<value>` ```
|
||||
- ``` `--<flag>` has an empty value ```
|
||||
- and, for a file that cannot be opened at all, `<path>: <io error>`.
|
||||
- CLI: `--waiver-file` is repeatable and lint-only; the run's set is the flag's
|
||||
files in order, then every `[lint] waivers` entry of a config file governing
|
||||
an input, de-duplicated canonically. The first problem fails the run at exit
|
||||
2 before anything is linted, matching a bad `[lint.<rule>]` entry.
|
||||
- Unused external waivers are computed **after** the whole run
|
||||
(`lint::dead_waivers`), from the `WaiverUse` each file's report carries,
|
||||
merged. They are reported as ordinary `unused-waiver` violations against the
|
||||
waiver file, which means they flow through `--output-format json` and the
|
||||
exit code unchanged. A stdin run is a run of one buffer and reports them
|
||||
too.
|
||||
- `check_one`/`run_rules`/`fix_source` grew a `Pass<'a>` struct rather than a
|
||||
seventh and eighth parameter (clippy's `too_many_arguments` was one argument
|
||||
away). Pure plumbing; no behaviour moved.
|
||||
- Under `--fix`, usage accumulates across the fix rounds: a waiver that
|
||||
covered a finding the fix then removed still did its job.
|
||||
- Server: `LintRun` carries an `ExternalWaivers`; `violations_in` calls
|
||||
`lint_with` and discards the usage half, because the server never sees a
|
||||
whole run and must not claim a waiver is dead. The setting's files are read
|
||||
a second time in `apply_settings` purely to log what is wrong with them —
|
||||
once per settings push instead of once per keystroke.
|
||||
- Deviations from the plan, all noted above: the `lucisv_core` dependency in
|
||||
`vlog_linter` (Handshakes), the VS Code setting added by hand rather than
|
||||
through the generator (which does not cover this family of settings), and
|
||||
`editors/vscode/README.md` gaining the setting's row — a file outside the
|
||||
plan's expected touch set, listed below.
|
||||
|
||||
**Gates (all guarded, 2026-09-04)**
|
||||
|
||||
- `cargo fmt -p` clean for `lucisv`, `lucisv_core`, `lucisv_server`,
|
||||
`vlog_linter`; `cargo clippy --all-targets` clean (zero warnings).
|
||||
- `tools/guard.sh -- cargo test --workspace`: **3 764 passed, 0 failed, 44
|
||||
ignored** (3 744 at 0.41.0, plus this round's 20 new tests).
|
||||
- `tools/guard.sh -- tools/corpus_check.sh`: **814/820**, the same six
|
||||
failures as 0.41.0.
|
||||
- `cargo build --release -p lucisv -p lucisv_server`, then
|
||||
`tools/guard.sh -- node editors/vscode/smoke.js target/release/lucisv-server`
|
||||
— OK, 20 messages.
|
||||
- opentitan demonstration, read-only:
|
||||
`target/release/lucisv check --no-cache --select error,warning,style
|
||||
hw/ip/aes/rtl` reports **307** violations; with
|
||||
`--waiver-file <scratch>/opentitan.waiver` holding
|
||||
|
||||
```text
|
||||
waive --rule=dff-name-style --line=226 --location=aes_key_expand.sv
|
||||
```
|
||||
|
||||
it reports **306**, and the one line that disappears is exactly
|
||||
`aes_key_expand.sv:226:12 … [dff-name-style]`. (The *default* rule set finds
|
||||
nothing at all in `hw/ip/aes/rtl`, which is why the demonstration selects
|
||||
every class.) `git -C ~/repo/opentitan status --porcelain` afterwards shows
|
||||
only the three pre-existing modified files.
|
||||
|
||||
**Files touched outside the plan's expected set**
|
||||
|
||||
- `crates/vlog_linter/Cargo.toml` — the `lucisv_core` path dependency.
|
||||
- `crates/lucisv_server/src/state.rs` — `Workspace::roots()`, an accessor.
|
||||
- `crates/lucisv_server/tests/e2e.rs`, `crates/lucisv/tests/cli.rs` — tests
|
||||
the plan asked for.
|
||||
- `editors/vscode/README.md` — the settings table's row for
|
||||
`lucisv.lint.waivers` (`README.md` at the repo root and everything under
|
||||
`docs/site/` were owned by another process this round and are left alone;
|
||||
their text is below).
|
||||
|
||||
## Docs to apply at merge (lead)
|
||||
|
||||
Ready to paste. The first block is for `README.md` (the linter section, after
|
||||
the inline-waiver paragraph) and for
|
||||
`docs/site/src/content/docs/guides/linter.md`.
|
||||
|
||||
```markdown
|
||||
### Waivers
|
||||
|
||||
A finding is suppressed by a comment in the RTL:
|
||||
|
||||
```systemverilog
|
||||
wire a; // lucisv: waive no-tabs
|
||||
// lucisv: waive-start line-length
|
||||
…
|
||||
// lucisv: waive-stop line-length
|
||||
```
|
||||
|
||||
`verilog_lint:` is accepted in place of `lucisv:`, so a Verible-annotated
|
||||
codebase needs no editing.
|
||||
|
||||
It can also be suppressed from **outside** the RTL, in Verible's waiver file
|
||||
format — one directive per line, `#` comments and blank lines ignored:
|
||||
|
||||
```text
|
||||
# every line of every file
|
||||
waive --rule=no-tabs
|
||||
# one line, or a range with both ends included
|
||||
waive --rule=line-length --line=12
|
||||
waive --rule=line-length --line=12-20
|
||||
# only the files a pattern names
|
||||
waive --rule=no-tabs --location=legacy/top.sv
|
||||
```
|
||||
|
||||
`--rule` is required and names exactly one rule — a severity word is not
|
||||
accepted here. `--line` is 1-based. `--location` is matched the way an
|
||||
`--exclude` pattern is: `*` stands for any run of characters *within* one path
|
||||
component, a pattern containing `/` matches a path suffix, and one without
|
||||
matches the file name at any depth. Unlike Verible's, it is **not** a regular
|
||||
expression, and a pattern that looks like one (`.*`, `\.`, `[…]`) is an error
|
||||
naming the difference rather than a pattern that silently matches nothing.
|
||||
|
||||
lucisv reads waiver files from three places, and they **add up**:
|
||||
|
||||
| Where | Paths relative to | Applies to |
|
||||
| --- | --- | --- |
|
||||
| `lucisv check --waiver-file <path>` (repeatable) | the working directory | that run |
|
||||
| `waivers` under `[lint]` in `lucisv.toml` | that `lucisv.toml` | the CLI and the editor |
|
||||
| `lucisv.lint.waivers` in an editor | the first workspace folder | the editor |
|
||||
|
||||
```toml
|
||||
[lint]
|
||||
waivers = [ "waivers/legacy.waiver" ]
|
||||
```
|
||||
|
||||
External waivers and inline ones are a **union**: a finding either covers is
|
||||
suppressed, and a finding both cover leaves neither reported as dead.
|
||||
|
||||
A waiver file that does not exist, or a directive that does not parse, fails
|
||||
`lucisv check` with `<file>:<line>: <message>` and exit 2 — the same treatment
|
||||
a bad `[lint.<rule>]` entry gets. In an editor the bad line is dropped, the
|
||||
rest of the file still applies, and the problem is written once to the lucisv
|
||||
log.
|
||||
|
||||
A waiver that suppressed nothing is itself reported, under the
|
||||
`unused-waiver` rule: an inline one at the comment, an external one at its
|
||||
line of the waiver file. **Only `lucisv check` reports unused external
|
||||
waivers**, and only after the whole run has been linted — a `--location` may
|
||||
name a file the run has not reached yet, and an editor never sees a whole run
|
||||
at all.
|
||||
```
|
||||
|
||||
For `docs/site/src/content/docs/reference/cli.md`, in the `lucisv check`
|
||||
options table:
|
||||
|
||||
```markdown
|
||||
| `--waiver-file <PATH>` | Read waiver directives from this file; repeatable. Adds to whatever `waivers` under `[lint]` in a `lucisv.toml` already names. Relative to the working directory. A missing file or an unparsable directive is an error (exit 2) |
|
||||
```
|
||||
|
||||
For `docs/site/src/content/docs/start/configuration.md`, in the `lucisv.toml`
|
||||
key table and the editor-settings table respectively:
|
||||
|
||||
```markdown
|
||||
| `[lint] waivers` | `[]` | External waiver files, resolved against the `lucisv.toml`'s own directory. Verible's format; see the linter guide's Waivers section |
|
||||
```
|
||||
|
||||
```markdown
|
||||
| `lucisv.lint.waivers` | `[]` | External waiver files, absolute or relative to the first workspace folder; added to whatever `[lint] waivers` names. A missing file or an unparsable directive is logged and dropped. Unused external waivers are reported by `lucisv check` only |
|
||||
```
|
||||
|
||||
And the edge for `docs/topo.md`: **`vlog_linter ──▶ lucisv_core`** —
|
||||
`waiver_file.rs` matches a `--location` with `walk::is_excluded`, the same
|
||||
matcher `--exclude` uses.
|
||||
|
||||
### 2026-09-05 — lead, at review
|
||||
|
||||
QA's HIGH closed in the tree: `lucisv_server::lint::fixable` now takes the
|
||||
buffer's `LintRun` and lints with `lint_with(ctx, run.rules, run.external)`,
|
||||
so a quick fix is never offered — and `source.fixAll.lucisv` never applied —
|
||||
for a finding a checked-in waiver file waived; the code-action entry point
|
||||
takes the run and the dispatch builds it with `LintRun::for_document`. This
|
||||
also stops the code-action path from fixing under `default_rules()` while
|
||||
the diagnostics pass runs the enabled set, a second pre-existing drift.
|
||||
Pinned by `an_externally_waived_finding_gets_no_quick_fix_and_fix_all_leaves_it`.
|
||||
The BOM LOW: a leading U+FEFF is stripped before the first directive is
|
||||
read. The other LOW (a bad line in a file named by `[lint] waivers` is
|
||||
dropped silently in the editor, the editor-setting path is logged) is
|
||||
documented in the applied docs and folded into §42.2, which surfaces every
|
||||
rejected project entry with file and line. The docs in "Docs to apply at
|
||||
merge" are applied to README.md, the linter guide, cli.md, configuration.md
|
||||
and topo.md.
|
||||
|
||||
## QA log
|
||||
|
||||
**2026-09-05 (QA).**
|
||||
|
||||
Read the plan (TODO §39), the feature README in full, and the diffs of
|
||||
`crates/vlog_linter/src/{waiver_file.rs,waiver.rs,lib.rs}`,
|
||||
`crates/lucisv_core/src/config.rs`,
|
||||
`crates/lucisv/src/{args.rs,lint.rs,main.rs}`,
|
||||
`crates/lucisv_server/src/{lint.rs,settings.rs,state.rs,server/notification.rs}`,
|
||||
`editors/vscode/package.json` and `editors/vscode/README.md`, and the two test
|
||||
files. Built `cargo build --release -p lucisv -p lucisv_server`, then attacked
|
||||
the grammar, precedence and both front ends by hand, using scratch files under
|
||||
the session scratchpad and read-only runs over opentitan. Every experiment
|
||||
that needed a real request over the wire (server disk re-read, code-action
|
||||
gap) was a temporary `#[test]` appended to `crates/lucisv_server/tests/e2e.rs`,
|
||||
run under `tools/guard.sh`, then removed — `git diff --stat` on that file
|
||||
after removal matches the dev's own 81-line addition exactly, confirming no
|
||||
residue.
|
||||
|
||||
**CLI grammar — all shapes and errors, verified by direct reproduction.**
|
||||
`--rule` alone, `--line=N`, `--line=N-M`, `--location=name.sv`,
|
||||
`--location=dir/name.sv` (suffix), all three together in every order (3
|
||||
permutations tried) — every shape suppresses exactly the finding(s) it should
|
||||
and nothing else. Every error message in the Work Log fires with the
|
||||
`<file>:<line>: message` shape and exit 2: bad keyword, missing `--rule`,
|
||||
unknown rule, severity-as-rule, `--line=0`, `--line=9-5`, non-numeric
|
||||
`--line`, doubled flag, unknown flag, `--regex=`, flag with no value, empty
|
||||
value, a regex-looking `--location` (with the reason named). With three bad
|
||||
lines in one file (line 1 fine, line 2 and 3 both bad), only line 2 is
|
||||
reported — the **first** bad line, confirmed. With two waiver files
|
||||
(`goodA.waiver` clean, `badB.waiver` bad), the error correctly names
|
||||
`badB.waiver`, not a false-positive stop at the first file.
|
||||
|
||||
Edge cases: `--line=5-5` behaves as a one-line range; `--line=1-4` spanning
|
||||
the whole 4-line file waives every occurrence; `--line=100` past EOF is
|
||||
reported `unused-waiver`, never an error; `--location` naming a file absent
|
||||
from the run is reported unused; `--location=f*.sv` and `--location=**/foo.sv`
|
||||
both match via the `--exclude` glob semantics as documented; CRLF endings
|
||||
parse every directive without shifting reported line numbers (multi-line CRLF
|
||||
file tested, both directives fired); a UTF-8 BOM before `waive` is rejected
|
||||
with a (slightly odd but non-corrupting) "found `\u{feff}waive`" message, exit
|
||||
2 — acceptable, not a hazard; tabs between `--rule=`/`--line=`/`--location=`
|
||||
words parse fine (`split_whitespace` handles them); `Waive` (capitalized) is
|
||||
correctly rejected — the grammar is case-sensitive as specified; an empty
|
||||
waiver file contributes nothing and errors nothing; a directory given as
|
||||
`--waiver-file` surfaces the OS "Is a directory" error at exit 2; a
|
||||
non-UTF-8 waiver file is rejected with "stream did not contain valid UTF-8",
|
||||
exit 2. The same waiver file given twice via `--waiver-file` is read once —
|
||||
confirmed by only one `unused-waiver` finding, not two, for a dead directive
|
||||
in it.
|
||||
|
||||
Discovery combinations: `[lint] waivers` in a `lucisv.toml` (resolved
|
||||
against the toml's directory) plus `--waiver-file` (resolved against the
|
||||
cwd) from a **different cwd** than the toml's directory both applied
|
||||
together correctly, suppressing both their respective lines. A `lucisv.toml`
|
||||
pointing at a missing waiver file fails the run with the resolved absolute
|
||||
path and exit 2.
|
||||
|
||||
**Precedence — union, exactly as specified.** A finding covered by both an
|
||||
inline `// lucisv: waive` and a matching external directive is suppressed
|
||||
once, and **neither** is reported unused. An inline waiver covering nothing
|
||||
plus an external one covering the actual finding: the inline is reported
|
||||
`unused-waiver`, the external (which fired) is not. `--select` excluding the
|
||||
waived rule entirely makes the waiver silent (no `unused-waiver`) — consistent
|
||||
with existing inline-waiver behavior and documented in the Assumptions.
|
||||
`--fix` with a waived fixable violation: reproduced on a scratch copy (never
|
||||
opentitan) — the waived line's tab was left untouched while an unwaived tab
|
||||
on another line was fixed in the same run. Exit code and `--output-format
|
||||
json`: an unused external waiver flows through as an ordinary violation
|
||||
(`"filename":"<waiver-file>"`, correct line/column) and contributes to the
|
||||
non-zero exit code.
|
||||
|
||||
**Server, over the wire (temporary e2e tests, removed after).** `[lint]
|
||||
waivers` in a checked-in `lucisv.toml` suppresses a published diagnostic
|
||||
(confirmed both standalone and combined with `lucisv.lint.waivers`).
|
||||
`workspace/didChangeConfiguration` adding, then removing, then re-adding
|
||||
`lucisv.lint.waivers` mid-session updates published diagnostics each time
|
||||
(`[1,2] → [2] → [1,2] → [2]`, 0-based `no-tabs` lines, across four pushes) —
|
||||
no reload needed. A waiver file **edited on disk while the server runs** is
|
||||
re-read: verified by hand-driving the JSON-RPC stream (rather than the
|
||||
`talk()` helper, which writes the whole session before reading anything, so
|
||||
race-free ordering needed manual interleaving) — read the first publish,
|
||||
*then* rewrote the waiver file on disk, *then* sent a no-op `didChange`, and
|
||||
the second publish reflected the new file content with no restart. This
|
||||
matches the Assumptions section's claim exactly. A bad directive in
|
||||
`lucisv.lint.waivers` is logged once via `window/logMessage` (not
|
||||
`showMessage`) when the setting arrives, not once per keystroke — confirmed
|
||||
both by the dev's own e2e test (exactly 2 log lines for one bad rule + one
|
||||
missing file) and by code inspection: `lint::violations_in`/`LintRun::for_
|
||||
document` discard the read's problem list on every pass, so only
|
||||
`notification.rs`'s one-time read at settings-arrival time can log anything.
|
||||
The server never publishes `unused-waiver` for an external waiver, in any of
|
||||
the above scenarios — confirmed.
|
||||
|
||||
One clarification volunteered here since it affects how a reader should
|
||||
weight the "documented" note in the config.rs precedent: a bad `[lint]
|
||||
waivers` entry from a *toml* (as opposed to the `lucisv.lint.waivers`
|
||||
*setting*) is silently dropped by the server with **no log line at all** —
|
||||
`notification.rs::waiver_problems` only inspects the setting's own paths
|
||||
(`FileConfig::default()` is passed, discarding the buffer's real config).
|
||||
This is consistent with the server's pre-existing treatment of a bad
|
||||
`[lint.<rule>]` entry (`lint.rs::configured`'s comment: "dropped here rather
|
||||
than reported... which is where a config error belongs" — i.e. `lucisv
|
||||
check`'s job), so it is not a new inconsistency, but it means a typo in a
|
||||
checked-in `lucisv.toml`'s `[lint] waivers` is invisible in the editor with no
|
||||
log trace at all (only `lucisv check` will ever catch it). Not filing this as
|
||||
a defect since it matches standing precedent, but noting it because the plan
|
||||
text's single sentence ("the server logs it through notification.rs and
|
||||
drops that line, never the file") reads as if it covers all three discovery
|
||||
paths, and it does not — it covers only the editor setting.
|
||||
|
||||
**Opentitan (read-only).** Reproduced exactly: `--select error,warning,style
|
||||
hw/ip/aes/rtl` → **307**; with the `dff-name-style --line=226
|
||||
--location=aes_key_expand.sv` waiver → **306**, and the missing line is
|
||||
confirmed to be `aes_key_expand.sv:226:12 … [dff-name-style]`. Added: the
|
||||
`--location` **suffix** form `aes/rtl/aes_key_expand.sv` → also **306**
|
||||
(same result as the file-name form). A whole-file waiver
|
||||
(`--rule=port-name-suffix --location=aes_wrap.sv`, no `--line`) → **304**
|
||||
(three `port-name-suffix` findings in that file, all gone, zero remaining).
|
||||
A waiver naming a file outside the run (`--location=nonexistent_file_xyz.sv`)
|
||||
produces exactly one `unused-waiver` line. `git -C
|
||||
~/repo/opentitan status --porcelain` after every run showed only the three
|
||||
pre-existing modified files (`hw/ip/aes/dv/tb/tb.sv`,
|
||||
`hw/top_darjeeling/ip/ast/rtl/ast.sv`, `hw/top_earlgrey/ip/ast/rtl/ast.sv`).
|
||||
|
||||
**Gates (all guarded).** `cargo fmt --check`: clean. `cargo clippy
|
||||
--all-targets`: clean, zero warnings. `tools/guard.sh -- cargo test
|
||||
--workspace`: **3 764 passed, 0 failed, 44 ignored** — matches the dev's
|
||||
figure exactly. `tools/guard.sh -- tools/corpus_check.sh`: **814/820
|
||||
(99.3%)**, the same six pre-existing failures (one `end`, one identifier, one
|
||||
expression, one declaration/instantiation, one `;`, one lex "number base").
|
||||
`tools/guard.sh -- node editors/vscode/smoke.js target/release/lucisv-server`:
|
||||
OK, 20 messages.
|
||||
|
||||
### Findings
|
||||
|
||||
**HIGH — the code-action path does not honor external waivers, and the
|
||||
Assumptions section understates it.** `lucisv_server::lint::fixable`
|
||||
(`crates/lucisv_server/src/lint.rs:334`, called from
|
||||
`code_action::code_actions`, `crates/lucisv_server/src/code_action.rs:37`)
|
||||
calls the old `lint(&ctx, &default_rules())` rather than `lint_with`, so it
|
||||
never consults `LintRun::external`. **Inline waivers are still respected
|
||||
here** — `lint()` internally still runs `Waivers::collect(ctx)` regardless of
|
||||
the `external` argument, so an inline-waived finding correctly gets no quick
|
||||
fix. **External waivers are not respected at all**, and this is
|
||||
reproducible, not merely theoretical:
|
||||
|
||||
- Reproduction (temporary e2e test, removed after): a buffer with three
|
||||
tabbed lines — one inline-waived (`// lucisv: waive no-tabs`), one
|
||||
externally waived via a `lucisv.toml`'s `[lint] waivers` pointing at a
|
||||
waiver file with `--rule=no-tabs --line=3`, one waived by neither.
|
||||
Published diagnostics correctly show only the un-waived line. A
|
||||
`textDocument/codeAction` request over the whole buffer returns **two**
|
||||
quickfix actions: the un-waived line (expected) **and the externally
|
||||
waived line** (not expected — no action should exist for it at all). Worse,
|
||||
a `source.fixAll.lucisv` request (what an editor's "format/fix on save"
|
||||
sends) **actually rewrites the externally-waived line**, turning its tab
|
||||
into spaces — silently overriding the waiver a team member wrote into a
|
||||
checked-in `lucisv.toml`.
|
||||
- The Assumptions section's claim — "A waived finding was never published,
|
||||
so no lightbulb is offered for it in practice; the mismatch is pre-existing
|
||||
and out of scope here" — is only half right. It is accurate for a finding
|
||||
an *inline* waiver covers (no lightbulb, confirmed). It is **not** accurate
|
||||
for a finding only an *external* waiver covers: `code_actions` never
|
||||
consults the published diagnostics list or the request's `range` against
|
||||
what the client already sees — it recomputes `fixable()` independently and
|
||||
offers/applies whatever it finds, waiver or not. The QA brief's own
|
||||
framing ("it is pre-existing for inline waivers too") does not hold up
|
||||
against this reproduction — the inline case is fine; only the external one
|
||||
is broken, and it is broken in a way that actively edits code
|
||||
(`fixAll`), not merely in a way that could theoretically surface a
|
||||
quickfix nobody clicks.
|
||||
- This does not violate the CLAUDE.md corruption invariant (the output is a
|
||||
valid, idempotent formatting change, just one the team asked to suppress
|
||||
for that line) but it does defeat the stated purpose of an external
|
||||
waiver for anyone with fix-on-save enabled, which is a common editor
|
||||
default. Recommend `fixable` take the buffer's `ExternalWaivers` (already
|
||||
computed once per `LintRun`) the same way `violations_in` does, or, if a
|
||||
fix for 0.42.0 is out of scope, correcting the Assumptions section to state
|
||||
the real risk plainly (external waivers are not honored by the editor's
|
||||
quick-fix or fix-on-save code path) rather than describing it as
|
||||
no-observable-difference.
|
||||
|
||||
**LOW — BOM message is unusual but not a hazard.** A waiver file with a
|
||||
leading UTF-8 BOM produces `` expected a `waive` directive, found
|
||||
`\u{feff}waive` `` (the BOM character embedded verbatim in the error text)
|
||||
rather than a message about the BOM specifically. Exit 2, no corruption, and
|
||||
BOM'd waiver files are not mentioned as a requirement anywhere in the plan —
|
||||
recording this only because the QA brief asked for a BOM to be tried. Not
|
||||
blocking.
|
||||
|
||||
**LOW — documentation precision.** The plan's discovery-rule bullet describes
|
||||
the server logging behavior for a bad waiver line as if it applied uniformly
|
||||
across all three discovery paths; in the implementation it applies only to
|
||||
the `lucisv.lint.waivers` editor setting, and a bad `[lint] waivers` entry
|
||||
from a `lucisv.toml` is silently dropped with no log at all on the server
|
||||
side. This matches the server's existing, unrelated precedent for
|
||||
`[lint.<rule>]` entries, so it is not a code defect, just worth a line in the
|
||||
feature README's Assumptions (or the merge docs) so a future reader is not
|
||||
surprised that only the editor-setting path logs.
|
||||
|
||||
Everything else asked for in the QA brief — every directive shape and error,
|
||||
every precedence combination, `--select`/`--ignore` interaction, `--fix`
|
||||
interaction, server settings roundtrip, disk re-read, toml-via-server,
|
||||
opentitan counts — checked out exactly as designed and documented.
|
||||
|
||||
**Verdict: REWORK** — one HIGH finding (the code-action/fixAll gap for
|
||||
external waivers, and the inaccurate risk description of it in the
|
||||
Assumptions section). Everything else in the feature — the CLI grammar, the
|
||||
CLI's own `--fix`, precedence, discovery, the diagnostics-publishing half of
|
||||
the server, and the opentitan demonstration — is solid and matches the plan
|
||||
precisely. The lead's call on whether the HIGH finding blocks 0.42.0 or ships
|
||||
with corrected documentation and a follow-up item; either way the
|
||||
Assumptions section as written should not stand unchanged, since it asserts
|
||||
something this QA pass showed to be false in the `fixAll` case specifically.
|
||||
|
||||
## Review
|
||||
|
||||
**2026-09-05 — lead.** Accepted with the rework above; ships in 0.42.0 with
|
||||
§38. The format, discovery and precedence are the ruled ones, and the dev's
|
||||
deviations hold: the `vlog_linter ──▶ lucisv_core` edge is the right price
|
||||
for one pattern language across `--exclude` and `--location` (copying the
|
||||
matcher would have made two), the `Pass` struct is plain plumbing, and the
|
||||
setting joins the hand-written `select`/`ignore`/`options` rather than the
|
||||
generator's per-rule toggles. QA's HIGH was real and is the kind of gap a
|
||||
union has to be checked for at every consumer — the fix routes the last
|
||||
consumer through the run. Unused-waiver reporting on the CLI only, after the
|
||||
whole run, stays as ruled. The opentitan demonstration (307 → 306 by one
|
||||
directive, 304 with a whole-file rule waiver) is the behaviour asked for.
|
||||
+1
-1
@@ -103,4 +103,4 @@ do not have independent fence scopes. Fenced text must still parse.</p>
|
||||
<li><strong>Write atomically.</strong> An error leaves the affected file untouched.</li>
|
||||
<li><strong>Stay deterministic.</strong> Parallel worker count changes performance, never output order or exit status.</li>
|
||||
</ol>
|
||||
</div><footer class="sl-flex astro-xhxjzfa7"><div class="meta sl-flex astro-xhxjzfa7"><a href="https://git.luci.ooo/lucio/verilogrustformatter/src/branch/master/docs/site/src/content/docs/guides/formatter.md" class="sl-flex print:hidden astro-xk5gmzsg"><svg aria-hidden="true" class="astro-xk5gmzsg astro-n5k4ipy7" width="16" height="16" viewBox="0 0 24 24" fill="currentColor" style="--sl-icon-size: 1.2em;"><path d="M22 7.24a1 1 0 0 0-.29-.71l-4.24-4.24a1 1 0 0 0-1.1-.22 1 1 0 0 0-.32.22l-2.83 2.83L2.29 16.05a1 1 0 0 0-.29.71V21a1 1 0 0 0 1 1h4.24a1 1 0 0 0 .76-.29l10.87-10.93L21.71 8c.1-.1.17-.2.22-.33a1 1 0 0 0 0-.24v-.14l.07-.05ZM6.83 20H4v-2.83l9.93-9.93 2.83 2.83L6.83 20ZM18.17 8.66l-2.83-2.83 1.42-1.41 2.82 2.82-1.41 1.42Z"/></svg>Edit page</a><p>Last updated: <time datetime="2026-08-27T03:31:44.000Z">Aug 27, 2026</time></p></div><div class="pagination-links print:hidden astro-jgq3vlii" dir="ltr"><a href="/start/configuration/" rel="prev" class="astro-jgq3vlii"><svg aria-hidden="true" class="astro-jgq3vlii astro-n5k4ipy7" width="16" height="16" viewBox="0 0 24 24" fill="currentColor" style="--sl-icon-size: 1.5rem;"><path d="M17 11H9.41l3.3-3.29a1.004 1.004 0 1 0-1.42-1.42l-5 5a1 1 0 0 0-.21.33 1 1 0 0 0 0 .76 1 1 0 0 0 .21.33l5 5a1.002 1.002 0 0 0 1.639-.325 1 1 0 0 0-.219-1.095L9.41 13H17a1 1 0 0 0 0-2Z"/></svg><span class="astro-jgq3vlii">Previous<br class="astro-jgq3vlii"><span class="link-title astro-jgq3vlii">Configuration</span></span></a><a href="/guides/linter/" rel="next" class="astro-jgq3vlii"><svg aria-hidden="true" class="astro-jgq3vlii astro-n5k4ipy7" width="16" height="16" viewBox="0 0 24 24" fill="currentColor" style="--sl-icon-size: 1.5rem;"><path d="M17.92 11.62a1.001 1.001 0 0 0-.21-.33l-5-5a1.003 1.003 0 1 0-1.42 1.42l3.3 3.29H7a1 1 0 0 0 0 2h7.59l-3.3 3.29a1.002 1.002 0 0 0 .325 1.639 1 1 0 0 0 1.095-.219l5-5a1 1 0 0 0 .21-.33 1 1 0 0 0 0-.76Z"/></svg><span class="astro-jgq3vlii">Next<br class="astro-jgq3vlii"><span class="link-title astro-jgq3vlii">Linter</span></span></a></div></footer></div></div></main></div></div></div></div></body></html>
|
||||
</div><footer class="sl-flex astro-xhxjzfa7"><div class="meta sl-flex astro-xhxjzfa7"><a href="https://git.luci.ooo/lucio/verilogrustformatter/src/branch/master/docs/site/src/content/docs/guides/formatter.md" class="sl-flex print:hidden astro-xk5gmzsg"><svg aria-hidden="true" class="astro-xk5gmzsg astro-n5k4ipy7" width="16" height="16" viewBox="0 0 24 24" fill="currentColor" style="--sl-icon-size: 1.2em;"><path d="M22 7.24a1 1 0 0 0-.29-.71l-4.24-4.24a1 1 0 0 0-1.1-.22 1 1 0 0 0-.32.22l-2.83 2.83L2.29 16.05a1 1 0 0 0-.29.71V21a1 1 0 0 0 1 1h4.24a1 1 0 0 0 .76-.29l10.87-10.93L21.71 8c.1-.1.17-.2.22-.33a1 1 0 0 0 0-.24v-.14l.07-.05ZM6.83 20H4v-2.83l9.93-9.93 2.83 2.83L6.83 20ZM18.17 8.66l-2.83-2.83 1.42-1.41 2.82 2.82-1.41 1.42Z"/></svg>Edit page</a><p>Last updated: <time datetime="2026-09-05T04:37:55.000Z">Sep 5, 2026</time></p></div><div class="pagination-links print:hidden astro-jgq3vlii" dir="ltr"><a href="/start/configuration/" rel="prev" class="astro-jgq3vlii"><svg aria-hidden="true" class="astro-jgq3vlii astro-n5k4ipy7" width="16" height="16" viewBox="0 0 24 24" fill="currentColor" style="--sl-icon-size: 1.5rem;"><path d="M17 11H9.41l3.3-3.29a1.004 1.004 0 1 0-1.42-1.42l-5 5a1 1 0 0 0-.21.33 1 1 0 0 0 0 .76 1 1 0 0 0 .21.33l5 5a1.002 1.002 0 0 0 1.639-.325 1 1 0 0 0-.219-1.095L9.41 13H17a1 1 0 0 0 0-2Z"/></svg><span class="astro-jgq3vlii">Previous<br class="astro-jgq3vlii"><span class="link-title astro-jgq3vlii">Configuration</span></span></a><a href="/guides/linter/" rel="next" class="astro-jgq3vlii"><svg aria-hidden="true" class="astro-jgq3vlii astro-n5k4ipy7" width="16" height="16" viewBox="0 0 24 24" fill="currentColor" style="--sl-icon-size: 1.5rem;"><path d="M17.92 11.62a1.001 1.001 0 0 0-.21-.33l-5-5a1.003 1.003 0 1 0-1.42 1.42l3.3 3.29H7a1 1 0 0 0 0 2h7.59l-3.3 3.29a1.002 1.002 0 0 0 .325 1.639 1 1 0 0 0 1.095-.219l5-5a1 1 0 0 0 .21-.33 1 1 0 0 0 0-.76Z"/></svg><span class="astro-jgq3vlii">Next<br class="astro-jgq3vlii"><span class="link-title astro-jgq3vlii">Linter</span></span></a></div></footer></div></div></main></div></div></div></div></body></html>
|
||||
+22
-3
@@ -94,7 +94,26 @@ array, with a <code dir="auto">severity</code> field on each diagnostic.</p>
|
||||
<div class="sl-heading-wrapper level-h2"><h2 id="waivers">Waivers</h2><a class="sl-anchor-link" href="#waivers"><span aria-hidden="true" class="sl-anchor-icon"><svg width="16" height="16" viewBox="0 0 24 24" fill="currentColor"><path d="m12.11 15.39-3.88 3.88a2.52 2.52 0 0 1-3.5 0 2.47 2.47 0 0 1 0-3.5l3.88-3.88a1 1 0 1 0-1.42-1.42l-3.88 3.89a4.48 4.48 0 0 0 6.33 6.33l3.89-3.88a1 1 0 0 0-1.42-1.42m8.58-12.08a4.49 4.49 0 0 0-6.33 0l-3.89 3.88a1 1 0 1 0 1.42 1.42l3.88-3.88a2.52 2.52 0 0 1 3.5 0 2.47 2.47 0 0 1 0 3.5l-3.88 3.88a1 1 0 0 0 0 1.42 1 1 0 0 0 1.42 0l3.88-3.89a4.49 4.49 0 0 0 0-6.33M8.83 15.17a1 1 0 0 0 .71.29 1 1 0 0 0 .71-.29l4.92-4.92a1 1 0 1 0-1.42-1.42l-4.92 4.92a1 1 0 0 0 0 1.42"></path></svg></span><span class="sr-only" data-pagefind-ignore>Section titled “Waivers”</span></a></div>
|
||||
<div class="expressive-code"><figure class="frame not-content"><figcaption class="header"></figcaption><pre data-language="system-verilog"><code><div class="ec-line"><div class="code"><span style="--0:#C792EA;--1:#8844AE">wire</span><span style="--0:#D6DEEB;--1:#403F53"> </span><span style="--0:#C5E478;--1:#3B61B0">a</span><span style="--0:#D6DEEB;--1:#403F53">; </span><span style="--0:#919F9F;--1:#5D6376">// lucisv: waive no-tabs</span></div></div><div class="ec-line"><div class="code"><span style="--0:#919F9F;--1:#5D6376">// lucisv: waive no-tabs</span></div></div><div class="ec-line"><div class="code"><span style="--0:#C792EA;--1:#8844AE">wire</span><span style="--0:#D6DEEB;--1:#403F53"> </span><span style="--0:#C5E478;--1:#3B61B0">b</span><span style="--0:#D6DEEB;--1:#403F53">;</span></div></div><div class="ec-line"><div class="code"><span style="--0:#919F9F;--1:#5D6376">// lucisv: waive-start module-name-style</span></div></div><div class="ec-line"><div class="code"><span style="--0:#C792EA;--1:#8844AE">module</span><span style="--0:#D6DEEB;--1:#403F53"> LegacyName;</span></div></div><div class="ec-line"><div class="code"><span style="--0:#C792EA;--1:#8844AE">endmodule</span></div></div><div class="ec-line"><div class="code"><span style="--0:#919F9F;--1:#5D6376">// lucisv: waive-stop module-name-style</span></div></div></code></pre><div class="copy"><div aria-live="polite"></div><button title="Copy to clipboard" data-copied="Copied!" data-code="wire a; // lucisv: waive no-tabs// lucisv: waive no-tabswire b;// lucisv: waive-start module-name-stylemodule LegacyName;endmodule// lucisv: waive-stop module-name-style"><div></div></button></div></figure></div>
|
||||
<p><code dir="auto">verilog_lint:</code> is accepted in place of <code dir="auto">lucisv:</code> for Verible compatibility. The <code dir="auto">unused-waiver</code> rule reports malformed, unknown, or no-longer-needed suppressions when their target rule is enabled.</p>
|
||||
<p>External waiver files are not implemented in v0.41.0; the planned waiver-file
|
||||
settings and CLI flag are not accepted yet.</p>
|
||||
<p>Findings can also be suppressed from <strong>outside</strong> the RTL, in Verible’s
|
||||
waiver-file format — one directive per line, <code dir="auto">#</code> comments and blank lines
|
||||
ignored:</p>
|
||||
<div class="expressive-code"><figure class="frame not-content"><figcaption class="header"></figcaption><pre data-language="text"><code><div class="ec-line"><div class="code"><span style="--0:#d6deeb;--1:#403f53"># every line of every file</span></div></div><div class="ec-line"><div class="code"><span style="--0:#d6deeb;--1:#403f53">waive --rule=no-tabs</span></div></div><div class="ec-line"><div class="code"><span style="--0:#d6deeb;--1:#403f53"># one line, or a range with both ends included</span></div></div><div class="ec-line"><div class="code"><span style="--0:#d6deeb;--1:#403f53">waive --rule=line-length --line=12</span></div></div><div class="ec-line"><div class="code"><span style="--0:#d6deeb;--1:#403f53">waive --rule=line-length --line=12-20</span></div></div><div class="ec-line"><div class="code"><span style="--0:#d6deeb;--1:#403f53"># only the files a pattern names</span></div></div><div class="ec-line"><div class="code"><span style="--0:#d6deeb;--1:#403f53">waive --rule=no-tabs --location=legacy/top.sv</span></div></div></code></pre><div class="copy"><div aria-live="polite"></div><button title="Copy to clipboard" data-copied="Copied!" data-code="# every line of every filewaive --rule=no-tabs# one line, or a range with both ends includedwaive --rule=line-length --line=12waive --rule=line-length --line=12-20# only the files a pattern nameswaive --rule=no-tabs --location=legacy/top.sv"><div></div></button></div></figure></div>
|
||||
<p><code dir="auto">--rule</code> is required and names exactly one rule (a severity word is not
|
||||
accepted). <code dir="auto">--line</code> is 1-based. <code dir="auto">--location</code> is matched the way an
|
||||
<code dir="auto">--exclude</code> pattern is — <code dir="auto">*</code> within one path component, a pattern with <code dir="auto">/</code>
|
||||
matching a path suffix, one without matching the file name at any depth — and
|
||||
<strong>not</strong> as a regular expression; a pattern that looks like one (<code dir="auto">.*</code>, <code dir="auto">\.</code>,
|
||||
<code dir="auto">[…]</code>) is an error naming the difference.</p>
|
||||
<p>Waiver files come from three places, and they add up: <code dir="auto">lucisv check --waiver-file <path></code> (repeatable, relative to the working directory),
|
||||
<code dir="auto">waivers</code> under <code dir="auto">[lint]</code> in <code dir="auto">lucisv.toml</code> (relative to that file; read by the
|
||||
CLI and the editor), and the editor setting <code dir="auto">lucisv.lint.waivers</code> (relative to
|
||||
the first workspace folder). External and inline waivers are a union: a
|
||||
finding either covers is suppressed, and one both cover leaves neither
|
||||
reported as dead. A missing file or an unparsable directive fails <code dir="auto">lucisv check</code> with <code dir="auto"><file>:<line>: <message></code> and exit 2; in an editor the bad line
|
||||
is dropped and the rest of the file applies — a bad line in a file named by
|
||||
the editor setting is written once to the lucisv log, one named by
|
||||
<code dir="auto">lucisv.toml</code> is not (run <code dir="auto">lucisv check</code> to see it). Unused external waivers
|
||||
are reported under <code dir="auto">unused-waiver</code> at their line of the waiver file, by
|
||||
<code dir="auto">lucisv check</code> only and only after the whole run.</p>
|
||||
<p>See the <a href="/reference/rules/">complete rule reference</a>.</p>
|
||||
</div><footer class="sl-flex astro-xhxjzfa7"><div class="meta sl-flex astro-xhxjzfa7"><a href="https://git.luci.ooo/lucio/verilogrustformatter/src/branch/master/docs/site/src/content/docs/guides/linter.md" class="sl-flex print:hidden astro-xk5gmzsg"><svg aria-hidden="true" class="astro-xk5gmzsg astro-n5k4ipy7" width="16" height="16" viewBox="0 0 24 24" fill="currentColor" style="--sl-icon-size: 1.2em;"><path d="M22 7.24a1 1 0 0 0-.29-.71l-4.24-4.24a1 1 0 0 0-1.1-.22 1 1 0 0 0-.32.22l-2.83 2.83L2.29 16.05a1 1 0 0 0-.29.71V21a1 1 0 0 0 1 1h4.24a1 1 0 0 0 .76-.29l10.87-10.93L21.71 8c.1-.1.17-.2.22-.33a1 1 0 0 0 0-.24v-.14l.07-.05ZM6.83 20H4v-2.83l9.93-9.93 2.83 2.83L6.83 20ZM18.17 8.66l-2.83-2.83 1.42-1.41 2.82 2.82-1.41 1.42Z"/></svg>Edit page</a><p>Last updated: <time datetime="2026-09-02T16:06:08.000Z">Sep 2, 2026</time></p></div><div class="pagination-links print:hidden astro-jgq3vlii" dir="ltr"><a href="/guides/formatter/" rel="prev" class="astro-jgq3vlii"><svg aria-hidden="true" class="astro-jgq3vlii astro-n5k4ipy7" width="16" height="16" viewBox="0 0 24 24" fill="currentColor" style="--sl-icon-size: 1.5rem;"><path d="M17 11H9.41l3.3-3.29a1.004 1.004 0 1 0-1.42-1.42l-5 5a1 1 0 0 0-.21.33 1 1 0 0 0 0 .76 1 1 0 0 0 .21.33l5 5a1.002 1.002 0 0 0 1.639-.325 1 1 0 0 0-.219-1.095L9.41 13H17a1 1 0 0 0 0-2Z"/></svg><span class="astro-jgq3vlii">Previous<br class="astro-jgq3vlii"><span class="link-title astro-jgq3vlii">Formatter</span></span></a><a href="/guides/editors/" rel="next" class="astro-jgq3vlii"><svg aria-hidden="true" class="astro-jgq3vlii astro-n5k4ipy7" width="16" height="16" viewBox="0 0 24 24" fill="currentColor" style="--sl-icon-size: 1.5rem;"><path d="M17.92 11.62a1.001 1.001 0 0 0-.21-.33l-5-5a1.003 1.003 0 1 0-1.42 1.42l3.3 3.29H7a1 1 0 0 0 0 2h7.59l-3.3 3.29a1.002 1.002 0 0 0 .325 1.639 1 1 0 0 0 1.095-.219l5-5a1 1 0 0 0 .21-.33 1 1 0 0 0 0-.76Z"/></svg><span class="astro-jgq3vlii">Next<br class="astro-jgq3vlii"><span class="link-title astro-jgq3vlii">Editors & LSP</span></span></a></div></footer></div></div></main></div></div></div></div></body></html>
|
||||
</div><footer class="sl-flex astro-xhxjzfa7"><div class="meta sl-flex astro-xhxjzfa7"><a href="https://git.luci.ooo/lucio/verilogrustformatter/src/branch/master/docs/site/src/content/docs/guides/linter.md" class="sl-flex print:hidden astro-xk5gmzsg"><svg aria-hidden="true" class="astro-xk5gmzsg astro-n5k4ipy7" width="16" height="16" viewBox="0 0 24 24" fill="currentColor" style="--sl-icon-size: 1.2em;"><path d="M22 7.24a1 1 0 0 0-.29-.71l-4.24-4.24a1 1 0 0 0-1.1-.22 1 1 0 0 0-.32.22l-2.83 2.83L2.29 16.05a1 1 0 0 0-.29.71V21a1 1 0 0 0 1 1h4.24a1 1 0 0 0 .76-.29l10.87-10.93L21.71 8c.1-.1.17-.2.22-.33a1 1 0 0 0 0-.24v-.14l.07-.05ZM6.83 20H4v-2.83l9.93-9.93 2.83 2.83L6.83 20ZM18.17 8.66l-2.83-2.83 1.42-1.41 2.82 2.82-1.41 1.42Z"/></svg>Edit page</a><p>Last updated: <time datetime="2026-09-05T04:37:55.000Z">Sep 5, 2026</time></p></div><div class="pagination-links print:hidden astro-jgq3vlii" dir="ltr"><a href="/guides/formatter/" rel="prev" class="astro-jgq3vlii"><svg aria-hidden="true" class="astro-jgq3vlii astro-n5k4ipy7" width="16" height="16" viewBox="0 0 24 24" fill="currentColor" style="--sl-icon-size: 1.5rem;"><path d="M17 11H9.41l3.3-3.29a1.004 1.004 0 1 0-1.42-1.42l-5 5a1 1 0 0 0-.21.33 1 1 0 0 0 0 .76 1 1 0 0 0 .21.33l5 5a1.002 1.002 0 0 0 1.639-.325 1 1 0 0 0-.219-1.095L9.41 13H17a1 1 0 0 0 0-2Z"/></svg><span class="astro-jgq3vlii">Previous<br class="astro-jgq3vlii"><span class="link-title astro-jgq3vlii">Formatter</span></span></a><a href="/guides/editors/" rel="next" class="astro-jgq3vlii"><svg aria-hidden="true" class="astro-jgq3vlii astro-n5k4ipy7" width="16" height="16" viewBox="0 0 24 24" fill="currentColor" style="--sl-icon-size: 1.5rem;"><path d="M17.92 11.62a1.001 1.001 0 0 0-.21-.33l-5-5a1.003 1.003 0 1 0-1.42 1.42l3.3 3.29H7a1 1 0 0 0 0 2h7.59l-3.3 3.29a1.002 1.002 0 0 0 .325 1.639 1 1 0 0 0 1.095-.219l5-5a1 1 0 0 0 .21-.33 1 1 0 0 0 0-.76Z"/></svg><span class="astro-jgq3vlii">Next<br class="astro-jgq3vlii"><span class="link-title astro-jgq3vlii">Editors & LSP</span></span></a></div></footer></div></div></main></div></div></div></div></body></html>
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
+1
-1
@@ -1 +1 @@
|
||||
{"version":"1.5.2","languages":{"en":{"hash":"en_db82295a7c","wasm":"en","page_count":12}},"include_characters":["_","‿","⁀","⁔","︳","︴","﹍","﹎","﹏","_"]}
|
||||
{"version":"1.5.2","languages":{"en":{"hash":"en_a31252bf8c","wasm":"en","page_count":12}},"include_characters":["_","‿","⁀","⁔","︳","︴","﹍","﹎","﹏","_"]}
|
||||
Binary file not shown.
Binary file not shown.
+1
-1
@@ -175,4 +175,4 @@ server/editor setting names. Source modules are split by grammar domain under
|
||||
</ul>
|
||||
<div class="sl-heading-wrapper level-h2"><h2 id="release-surface">Release surface</h2><a class="sl-anchor-link" href="#release-surface"><span aria-hidden="true" class="sl-anchor-icon"><svg width="16" height="16" viewBox="0 0 24 24" fill="currentColor"><path d="m12.11 15.39-3.88 3.88a2.52 2.52 0 0 1-3.5 0 2.47 2.47 0 0 1 0-3.5l3.88-3.88a1 1 0 1 0-1.42-1.42l-3.88 3.89a4.48 4.48 0 0 0 6.33 6.33l3.89-3.88a1 1 0 0 0-1.42-1.42m8.58-12.08a4.49 4.49 0 0 0-6.33 0l-3.89 3.88a1 1 0 1 0 1.42 1.42l3.88-3.88a2.52 2.52 0 0 1 3.5 0 2.47 2.47 0 0 1 0 3.5l-3.88 3.88a1 1 0 0 0 0 1.42 1 1 0 0 0 1.42 0l3.88-3.89a4.49 4.49 0 0 0 0-6.33M8.83 15.17a1 1 0 0 0 .71.29 1 1 0 0 0 .71-.29l4.92-4.92a1 1 0 1 0-1.42-1.42l-4.92 4.92a1 1 0 0 0 0 1.42"></path></svg></span><span class="sr-only" data-pagefind-ignore>Section titled “Release surface”</span></a></div>
|
||||
<p>The supported publication surface is seven VS Code <code dir="auto">.vsix</code> 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 <code dir="auto">PATH</code>. Both <code dir="auto">lucisv</code> and <code dir="auto">lucisv-server</code> 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.</p>
|
||||
</div><footer class="sl-flex astro-xhxjzfa7"><div class="meta sl-flex astro-xhxjzfa7"><a href="https://git.luci.ooo/lucio/verilogrustformatter/src/branch/master/docs/site/src/content/docs/reference/architecture.md" class="sl-flex print:hidden astro-xk5gmzsg"><svg aria-hidden="true" class="astro-xk5gmzsg astro-n5k4ipy7" width="16" height="16" viewBox="0 0 24 24" fill="currentColor" style="--sl-icon-size: 1.2em;"><path d="M22 7.24a1 1 0 0 0-.29-.71l-4.24-4.24a1 1 0 0 0-1.1-.22 1 1 0 0 0-.32.22l-2.83 2.83L2.29 16.05a1 1 0 0 0-.29.71V21a1 1 0 0 0 1 1h4.24a1 1 0 0 0 .76-.29l10.87-10.93L21.71 8c.1-.1.17-.2.22-.33a1 1 0 0 0 0-.24v-.14l.07-.05ZM6.83 20H4v-2.83l9.93-9.93 2.83 2.83L6.83 20ZM18.17 8.66l-2.83-2.83 1.42-1.41 2.82 2.82-1.41 1.42Z"/></svg>Edit page</a><p>Last updated: <time datetime="2026-08-27T03:31:44.000Z">Aug 27, 2026</time></p></div><div class="pagination-links print:hidden astro-jgq3vlii" dir="ltr"><a href="/reference/rust-api/" rel="prev" class="astro-jgq3vlii"><svg aria-hidden="true" class="astro-jgq3vlii astro-n5k4ipy7" width="16" height="16" viewBox="0 0 24 24" fill="currentColor" style="--sl-icon-size: 1.5rem;"><path d="M17 11H9.41l3.3-3.29a1.004 1.004 0 1 0-1.42-1.42l-5 5a1 1 0 0 0-.21.33 1 1 0 0 0 0 .76 1 1 0 0 0 .21.33l5 5a1.002 1.002 0 0 0 1.639-.325 1 1 0 0 0-.219-1.095L9.41 13H17a1 1 0 0 0 0-2Z"/></svg><span class="astro-jgq3vlii">Previous<br class="astro-jgq3vlii"><span class="link-title astro-jgq3vlii">Rust API index</span></span></a></div></footer></div></div></main></div></div></div></div></body></html>
|
||||
</div><footer class="sl-flex astro-xhxjzfa7"><div class="meta sl-flex astro-xhxjzfa7"><a href="https://git.luci.ooo/lucio/verilogrustformatter/src/branch/master/docs/site/src/content/docs/reference/architecture.md" class="sl-flex print:hidden astro-xk5gmzsg"><svg aria-hidden="true" class="astro-xk5gmzsg astro-n5k4ipy7" width="16" height="16" viewBox="0 0 24 24" fill="currentColor" style="--sl-icon-size: 1.2em;"><path d="M22 7.24a1 1 0 0 0-.29-.71l-4.24-4.24a1 1 0 0 0-1.1-.22 1 1 0 0 0-.32.22l-2.83 2.83L2.29 16.05a1 1 0 0 0-.29.71V21a1 1 0 0 0 1 1h4.24a1 1 0 0 0 .76-.29l10.87-10.93L21.71 8c.1-.1.17-.2.22-.33a1 1 0 0 0 0-.24v-.14l.07-.05ZM6.83 20H4v-2.83l9.93-9.93 2.83 2.83L6.83 20ZM18.17 8.66l-2.83-2.83 1.42-1.41 2.82 2.82-1.41 1.42Z"/></svg>Edit page</a><p>Last updated: <time datetime="2026-09-05T04:37:55.000Z">Sep 5, 2026</time></p></div><div class="pagination-links print:hidden astro-jgq3vlii" dir="ltr"><a href="/reference/rust-api/" rel="prev" class="astro-jgq3vlii"><svg aria-hidden="true" class="astro-jgq3vlii astro-n5k4ipy7" width="16" height="16" viewBox="0 0 24 24" fill="currentColor" style="--sl-icon-size: 1.5rem;"><path d="M17 11H9.41l3.3-3.29a1.004 1.004 0 1 0-1.42-1.42l-5 5a1 1 0 0 0-.21.33 1 1 0 0 0 0 .76 1 1 0 0 0 .21.33l5 5a1.002 1.002 0 0 0 1.639-.325 1 1 0 0 0-.219-1.095L9.41 13H17a1 1 0 0 0 0-2Z"/></svg><span class="astro-jgq3vlii">Previous<br class="astro-jgq3vlii"><span class="link-title astro-jgq3vlii">Rust API index</span></span></a></div></footer></div></div></main></div></div></div></div></body></html>
|
||||
+6
-1
@@ -230,6 +230,11 @@
|
||||
<td>Allow unsafe fixes when a rule provides them</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><code dir="auto">--waiver-file <PATH></code></td>
|
||||
<td>path</td>
|
||||
<td>Read Verible-format waiver directives from this file; repeatable. Adds to <code dir="auto">[lint] waivers</code> from <code dir="auto">lucisv.toml</code>. Relative to the working directory. A missing file or an unparsable directive is an error (exit 2)</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><code dir="auto">--rules-doc</code></td>
|
||||
<td>—</td>
|
||||
<td>Print registry-generated rule and option documentation and exit; takes no files</td>
|
||||
@@ -266,4 +271,4 @@
|
||||
</tbody>
|
||||
</table>
|
||||
<p>An error outranks “would change.” Every file involved in an error is left untouched.</p>
|
||||
</div><footer class="sl-flex astro-xhxjzfa7"><div class="meta sl-flex astro-xhxjzfa7"><a href="https://git.luci.ooo/lucio/verilogrustformatter/src/branch/master/docs/site/src/content/docs/reference/cli.md" class="sl-flex print:hidden astro-xk5gmzsg"><svg aria-hidden="true" class="astro-xk5gmzsg astro-n5k4ipy7" width="16" height="16" viewBox="0 0 24 24" fill="currentColor" style="--sl-icon-size: 1.2em;"><path d="M22 7.24a1 1 0 0 0-.29-.71l-4.24-4.24a1 1 0 0 0-1.1-.22 1 1 0 0 0-.32.22l-2.83 2.83L2.29 16.05a1 1 0 0 0-.29.71V21a1 1 0 0 0 1 1h4.24a1 1 0 0 0 .76-.29l10.87-10.93L21.71 8c.1-.1.17-.2.22-.33a1 1 0 0 0 0-.24v-.14l.07-.05ZM6.83 20H4v-2.83l9.93-9.93 2.83 2.83L6.83 20ZM18.17 8.66l-2.83-2.83 1.42-1.41 2.82 2.82-1.41 1.42Z"/></svg>Edit page</a><p>Last updated: <time datetime="2026-08-27T03:31:44.000Z">Aug 27, 2026</time></p></div><div class="pagination-links print:hidden astro-jgq3vlii" dir="ltr"><a href="/guides/syntax/" rel="prev" class="astro-jgq3vlii"><svg aria-hidden="true" class="astro-jgq3vlii astro-n5k4ipy7" width="16" height="16" viewBox="0 0 24 24" fill="currentColor" style="--sl-icon-size: 1.5rem;"><path d="M17 11H9.41l3.3-3.29a1.004 1.004 0 1 0-1.42-1.42l-5 5a1 1 0 0 0-.21.33 1 1 0 0 0 0 .76 1 1 0 0 0 .21.33l5 5a1.002 1.002 0 0 0 1.639-.325 1 1 0 0 0-.219-1.095L9.41 13H17a1 1 0 0 0 0-2Z"/></svg><span class="astro-jgq3vlii">Previous<br class="astro-jgq3vlii"><span class="link-title astro-jgq3vlii">Supported syntax</span></span></a><a href="/reference/rules/" rel="next" class="astro-jgq3vlii"><svg aria-hidden="true" class="astro-jgq3vlii astro-n5k4ipy7" width="16" height="16" viewBox="0 0 24 24" fill="currentColor" style="--sl-icon-size: 1.5rem;"><path d="M17.92 11.62a1.001 1.001 0 0 0-.21-.33l-5-5a1.003 1.003 0 1 0-1.42 1.42l3.3 3.29H7a1 1 0 0 0 0 2h7.59l-3.3 3.29a1.002 1.002 0 0 0 .325 1.639 1 1 0 0 0 1.095-.219l5-5a1 1 0 0 0 .21-.33 1 1 0 0 0 0-.76Z"/></svg><span class="astro-jgq3vlii">Next<br class="astro-jgq3vlii"><span class="link-title astro-jgq3vlii">Lint rules</span></span></a></div></footer></div></div></main></div></div></div></div></body></html>
|
||||
</div><footer class="sl-flex astro-xhxjzfa7"><div class="meta sl-flex astro-xhxjzfa7"><a href="https://git.luci.ooo/lucio/verilogrustformatter/src/branch/master/docs/site/src/content/docs/reference/cli.md" class="sl-flex print:hidden astro-xk5gmzsg"><svg aria-hidden="true" class="astro-xk5gmzsg astro-n5k4ipy7" width="16" height="16" viewBox="0 0 24 24" fill="currentColor" style="--sl-icon-size: 1.2em;"><path d="M22 7.24a1 1 0 0 0-.29-.71l-4.24-4.24a1 1 0 0 0-1.1-.22 1 1 0 0 0-.32.22l-2.83 2.83L2.29 16.05a1 1 0 0 0-.29.71V21a1 1 0 0 0 1 1h4.24a1 1 0 0 0 .76-.29l10.87-10.93L21.71 8c.1-.1.17-.2.22-.33a1 1 0 0 0 0-.24v-.14l.07-.05ZM6.83 20H4v-2.83l9.93-9.93 2.83 2.83L6.83 20ZM18.17 8.66l-2.83-2.83 1.42-1.41 2.82 2.82-1.41 1.42Z"/></svg>Edit page</a><p>Last updated: <time datetime="2026-09-05T04:37:55.000Z">Sep 5, 2026</time></p></div><div class="pagination-links print:hidden astro-jgq3vlii" dir="ltr"><a href="/guides/syntax/" rel="prev" class="astro-jgq3vlii"><svg aria-hidden="true" class="astro-jgq3vlii astro-n5k4ipy7" width="16" height="16" viewBox="0 0 24 24" fill="currentColor" style="--sl-icon-size: 1.5rem;"><path d="M17 11H9.41l3.3-3.29a1.004 1.004 0 1 0-1.42-1.42l-5 5a1 1 0 0 0-.21.33 1 1 0 0 0 0 .76 1 1 0 0 0 .21.33l5 5a1.002 1.002 0 0 0 1.639-.325 1 1 0 0 0-.219-1.095L9.41 13H17a1 1 0 0 0 0-2Z"/></svg><span class="astro-jgq3vlii">Previous<br class="astro-jgq3vlii"><span class="link-title astro-jgq3vlii">Supported syntax</span></span></a><a href="/reference/rules/" rel="next" class="astro-jgq3vlii"><svg aria-hidden="true" class="astro-jgq3vlii astro-n5k4ipy7" width="16" height="16" viewBox="0 0 24 24" fill="currentColor" style="--sl-icon-size: 1.5rem;"><path d="M17.92 11.62a1.001 1.001 0 0 0-.21-.33l-5-5a1.003 1.003 0 1 0-1.42 1.42l3.3 3.29H7a1 1 0 0 0 0 2h7.59l-3.3 3.29a1.002 1.002 0 0 0 .325 1.639 1 1 0 0 0 1.095-.219l5-5a1 1 0 0 0 .21-.33 1 1 0 0 0 0-.76Z"/></svg><span class="astro-jgq3vlii">Next<br class="astro-jgq3vlii"><span class="link-title astro-jgq3vlii">Lint rules</span></span></a></div></footer></div></div></main></div></div></div></div></body></html>
|
||||
+1
-1
@@ -342,4 +342,4 @@ index scope when the defining module lives outside the default folder scope.</p>
|
||||
</table>
|
||||
<div class="sl-heading-wrapper level-h2"><h2 id="workspace-lifecycle">Workspace lifecycle</h2><a class="sl-anchor-link" href="#workspace-lifecycle"><span aria-hidden="true" class="sl-anchor-icon"><svg width="16" height="16" viewBox="0 0 24 24" fill="currentColor"><path d="m12.11 15.39-3.88 3.88a2.52 2.52 0 0 1-3.5 0 2.47 2.47 0 0 1 0-3.5l3.88-3.88a1 1 0 1 0-1.42-1.42l-3.88 3.89a4.48 4.48 0 0 0 6.33 6.33l3.89-3.88a1 1 0 0 0-1.42-1.42m8.58-12.08a4.49 4.49 0 0 0-6.33 0l-3.89 3.88a1 1 0 1 0 1.42 1.42l3.88-3.88a2.52 2.52 0 0 1 3.5 0 2.47 2.47 0 0 1 0 3.5l-3.88 3.88a1 1 0 0 0 0 1.42 1 1 0 0 0 1.42 0l3.88-3.89a4.49 4.49 0 0 0 0-6.33M8.83 15.17a1 1 0 0 0 .71.29 1 1 0 0 0 .71-.29l4.92-4.92a1 1 0 1 0-1.42-1.42l-4.92 4.92a1 1 0 0 0 0 1.42"></path></svg></span><span class="sr-only" data-pagefind-ignore>Section titled “Workspace lifecycle”</span></a></div>
|
||||
<p>The server handles <code dir="auto">didOpen</code>, incremental <code dir="auto">didChange</code>, <code dir="auto">didSave</code>, <code dir="auto">didClose</code>, 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.</p>
|
||||
</div><footer class="sl-flex astro-xhxjzfa7"><div class="meta sl-flex astro-xhxjzfa7"><a href="https://git.luci.ooo/lucio/verilogrustformatter/src/branch/master/docs/site/src/content/docs/reference/language-tools.md" class="sl-flex print:hidden astro-xk5gmzsg"><svg aria-hidden="true" class="astro-xk5gmzsg astro-n5k4ipy7" width="16" height="16" viewBox="0 0 24 24" fill="currentColor" style="--sl-icon-size: 1.2em;"><path d="M22 7.24a1 1 0 0 0-.29-.71l-4.24-4.24a1 1 0 0 0-1.1-.22 1 1 0 0 0-.32.22l-2.83 2.83L2.29 16.05a1 1 0 0 0-.29.71V21a1 1 0 0 0 1 1h4.24a1 1 0 0 0 .76-.29l10.87-10.93L21.71 8c.1-.1.17-.2.22-.33a1 1 0 0 0 0-.24v-.14l.07-.05ZM6.83 20H4v-2.83l9.93-9.93 2.83 2.83L6.83 20ZM18.17 8.66l-2.83-2.83 1.42-1.41 2.82 2.82-1.41 1.42Z"/></svg>Edit page</a><p>Last updated: <time datetime="2026-09-03T09:28:11.000Z">Sep 3, 2026</time></p></div><div class="pagination-links print:hidden astro-jgq3vlii" dir="ltr"><a href="/reference/rules/" rel="prev" class="astro-jgq3vlii"><svg aria-hidden="true" class="astro-jgq3vlii astro-n5k4ipy7" width="16" height="16" viewBox="0 0 24 24" fill="currentColor" style="--sl-icon-size: 1.5rem;"><path d="M17 11H9.41l3.3-3.29a1.004 1.004 0 1 0-1.42-1.42l-5 5a1 1 0 0 0-.21.33 1 1 0 0 0 0 .76 1 1 0 0 0 .21.33l5 5a1.002 1.002 0 0 0 1.639-.325 1 1 0 0 0-.219-1.095L9.41 13H17a1 1 0 0 0 0-2Z"/></svg><span class="astro-jgq3vlii">Previous<br class="astro-jgq3vlii"><span class="link-title astro-jgq3vlii">Lint rules</span></span></a><a href="/reference/rust-api/" rel="next" class="astro-jgq3vlii"><svg aria-hidden="true" class="astro-jgq3vlii astro-n5k4ipy7" width="16" height="16" viewBox="0 0 24 24" fill="currentColor" style="--sl-icon-size: 1.5rem;"><path d="M17.92 11.62a1.001 1.001 0 0 0-.21-.33l-5-5a1.003 1.003 0 1 0-1.42 1.42l3.3 3.29H7a1 1 0 0 0 0 2h7.59l-3.3 3.29a1.002 1.002 0 0 0 .325 1.639 1 1 0 0 0 1.095-.219l5-5a1 1 0 0 0 .21-.33 1 1 0 0 0 0-.76Z"/></svg><span class="astro-jgq3vlii">Next<br class="astro-jgq3vlii"><span class="link-title astro-jgq3vlii">Rust API index</span></span></a></div></footer></div></div></main></div></div></div></div></body></html>
|
||||
</div><footer class="sl-flex astro-xhxjzfa7"><div class="meta sl-flex astro-xhxjzfa7"><a href="https://git.luci.ooo/lucio/verilogrustformatter/src/branch/master/docs/site/src/content/docs/reference/language-tools.md" class="sl-flex print:hidden astro-xk5gmzsg"><svg aria-hidden="true" class="astro-xk5gmzsg astro-n5k4ipy7" width="16" height="16" viewBox="0 0 24 24" fill="currentColor" style="--sl-icon-size: 1.2em;"><path d="M22 7.24a1 1 0 0 0-.29-.71l-4.24-4.24a1 1 0 0 0-1.1-.22 1 1 0 0 0-.32.22l-2.83 2.83L2.29 16.05a1 1 0 0 0-.29.71V21a1 1 0 0 0 1 1h4.24a1 1 0 0 0 .76-.29l10.87-10.93L21.71 8c.1-.1.17-.2.22-.33a1 1 0 0 0 0-.24v-.14l.07-.05ZM6.83 20H4v-2.83l9.93-9.93 2.83 2.83L6.83 20ZM18.17 8.66l-2.83-2.83 1.42-1.41 2.82 2.82-1.41 1.42Z"/></svg>Edit page</a><p>Last updated: <time datetime="2026-09-05T04:37:55.000Z">Sep 5, 2026</time></p></div><div class="pagination-links print:hidden astro-jgq3vlii" dir="ltr"><a href="/reference/rules/" rel="prev" class="astro-jgq3vlii"><svg aria-hidden="true" class="astro-jgq3vlii astro-n5k4ipy7" width="16" height="16" viewBox="0 0 24 24" fill="currentColor" style="--sl-icon-size: 1.5rem;"><path d="M17 11H9.41l3.3-3.29a1.004 1.004 0 1 0-1.42-1.42l-5 5a1 1 0 0 0-.21.33 1 1 0 0 0 0 .76 1 1 0 0 0 .21.33l5 5a1.002 1.002 0 0 0 1.639-.325 1 1 0 0 0-.219-1.095L9.41 13H17a1 1 0 0 0 0-2Z"/></svg><span class="astro-jgq3vlii">Previous<br class="astro-jgq3vlii"><span class="link-title astro-jgq3vlii">Lint rules</span></span></a><a href="/reference/rust-api/" rel="next" class="astro-jgq3vlii"><svg aria-hidden="true" class="astro-jgq3vlii astro-n5k4ipy7" width="16" height="16" viewBox="0 0 24 24" fill="currentColor" style="--sl-icon-size: 1.5rem;"><path d="M17.92 11.62a1.001 1.001 0 0 0-.21-.33l-5-5a1.003 1.003 0 1 0-1.42 1.42l3.3 3.29H7a1 1 0 0 0 0 2h7.59l-3.3 3.29a1.002 1.002 0 0 0 .325 1.639 1 1 0 0 0 1.095-.219l5-5a1 1 0 0 0 .21-.33 1 1 0 0 0 0-.76Z"/></svg><span class="astro-jgq3vlii">Next<br class="astro-jgq3vlii"><span class="link-title astro-jgq3vlii">Rust API index</span></span></a></div></footer></div></div></main></div></div></div></div></body></html>
|
||||
+1
-1
@@ -748,4 +748,4 @@
|
||||
<p>Reports a <code dir="auto">;</code> written after a <code dir="auto">`uvm_*</code> macro invocation. The macros expand to a <code dir="auto">begin … end</code>, so the <code dir="auto">;</code> is a null statement — usually inert, and not after <code dir="auto">if (x) </code>uvm_info(…); else …<code dir="auto">, where the </code>else<code dir="auto">then belongs to nothing. Off by default in both, because the semicolon is written everywhere in existing UVM code. No fix: deleting it is exactly the edit that is unsafe in the shape the rule exists for. Verible's</code>uvm-macro-semicolon`, same default.</p>
|
||||
<div class="sl-heading-wrapper level-h2"><h2 id="v2001-generate-begin">v2001-generate-begin</h2><a class="sl-anchor-link" href="#v2001-generate-begin"><span aria-hidden="true" class="sl-anchor-icon"><svg width="16" height="16" viewBox="0 0 24 24" fill="currentColor"><path d="m12.11 15.39-3.88 3.88a2.52 2.52 0 0 1-3.5 0 2.47 2.47 0 0 1 0-3.5l3.88-3.88a1 1 0 1 0-1.42-1.42l-3.88 3.89a4.48 4.48 0 0 0 6.33 6.33l3.89-3.88a1 1 0 0 0-1.42-1.42m8.58-12.08a4.49 4.49 0 0 0-6.33 0l-3.89 3.88a1 1 0 1 0 1.42 1.42l3.88-3.88a2.52 2.52 0 0 1 3.5 0 2.47 2.47 0 0 1 0 3.5l-3.88 3.88a1 1 0 0 0 0 1.42 1 1 0 0 0 1.42 0l3.88-3.89a4.49 4.49 0 0 0 0-6.33M8.83 15.17a1 1 0 0 0 .71.29 1 1 0 0 0 .71-.29l4.92-4.92a1 1 0 1 0-1.42-1.42l-4.92 4.92a1 1 0 0 0 0 1.42"></path></svg></span><span class="sr-only" data-pagefind-ignore>Section titled “v2001-generate-begin”</span></a></div>
|
||||
<p>Reports a bare <code dir="auto">begin … end</code> written directly inside a <code dir="auto">generate … endgenerate</code> with no <code dir="auto">if</code>, <code dir="auto">for</code> or <code dir="auto">case</code> 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 <code dir="auto">module-begin-block</code> reads, one scope in. Verible’s <code dir="auto">v2001-generate-begin</code>, same default.</p>
|
||||
</div><footer class="sl-flex astro-xhxjzfa7"><div class="meta sl-flex astro-xhxjzfa7"><a href="https://git.luci.ooo/lucio/verilogrustformatter/src/branch/master/docs/site/src/content/docs/reference/rules.md" class="sl-flex print:hidden astro-xk5gmzsg"><svg aria-hidden="true" class="astro-xk5gmzsg astro-n5k4ipy7" width="16" height="16" viewBox="0 0 24 24" fill="currentColor" style="--sl-icon-size: 1.2em;"><path d="M22 7.24a1 1 0 0 0-.29-.71l-4.24-4.24a1 1 0 0 0-1.1-.22 1 1 0 0 0-.32.22l-2.83 2.83L2.29 16.05a1 1 0 0 0-.29.71V21a1 1 0 0 0 1 1h4.24a1 1 0 0 0 .76-.29l10.87-10.93L21.71 8c.1-.1.17-.2.22-.33a1 1 0 0 0 0-.24v-.14l.07-.05ZM6.83 20H4v-2.83l9.93-9.93 2.83 2.83L6.83 20ZM18.17 8.66l-2.83-2.83 1.42-1.41 2.82 2.82-1.41 1.42Z"/></svg>Edit page</a><p>Last updated: <time datetime="2026-09-04T22:08:53.000Z">Sep 4, 2026</time></p></div><div class="pagination-links print:hidden astro-jgq3vlii" dir="ltr"><a href="/reference/cli/" rel="prev" class="astro-jgq3vlii"><svg aria-hidden="true" class="astro-jgq3vlii astro-n5k4ipy7" width="16" height="16" viewBox="0 0 24 24" fill="currentColor" style="--sl-icon-size: 1.5rem;"><path d="M17 11H9.41l3.3-3.29a1.004 1.004 0 1 0-1.42-1.42l-5 5a1 1 0 0 0-.21.33 1 1 0 0 0 0 .76 1 1 0 0 0 .21.33l5 5a1.002 1.002 0 0 0 1.639-.325 1 1 0 0 0-.219-1.095L9.41 13H17a1 1 0 0 0 0-2Z"/></svg><span class="astro-jgq3vlii">Previous<br class="astro-jgq3vlii"><span class="link-title astro-jgq3vlii">CLI</span></span></a><a href="/reference/language-tools/" rel="next" class="astro-jgq3vlii"><svg aria-hidden="true" class="astro-jgq3vlii astro-n5k4ipy7" width="16" height="16" viewBox="0 0 24 24" fill="currentColor" style="--sl-icon-size: 1.5rem;"><path d="M17.92 11.62a1.001 1.001 0 0 0-.21-.33l-5-5a1.003 1.003 0 1 0-1.42 1.42l3.3 3.29H7a1 1 0 0 0 0 2h7.59l-3.3 3.29a1.002 1.002 0 0 0 .325 1.639 1 1 0 0 0 1.095-.219l5-5a1 1 0 0 0 .21-.33 1 1 0 0 0 0-.76Z"/></svg><span class="astro-jgq3vlii">Next<br class="astro-jgq3vlii"><span class="link-title astro-jgq3vlii">Language tools</span></span></a></div></footer></div></div></main></div></div></div></div></body></html>
|
||||
</div><footer class="sl-flex astro-xhxjzfa7"><div class="meta sl-flex astro-xhxjzfa7"><a href="https://git.luci.ooo/lucio/verilogrustformatter/src/branch/master/docs/site/src/content/docs/reference/rules.md" class="sl-flex print:hidden astro-xk5gmzsg"><svg aria-hidden="true" class="astro-xk5gmzsg astro-n5k4ipy7" width="16" height="16" viewBox="0 0 24 24" fill="currentColor" style="--sl-icon-size: 1.2em;"><path d="M22 7.24a1 1 0 0 0-.29-.71l-4.24-4.24a1 1 0 0 0-1.1-.22 1 1 0 0 0-.32.22l-2.83 2.83L2.29 16.05a1 1 0 0 0-.29.71V21a1 1 0 0 0 1 1h4.24a1 1 0 0 0 .76-.29l10.87-10.93L21.71 8c.1-.1.17-.2.22-.33a1 1 0 0 0 0-.24v-.14l.07-.05ZM6.83 20H4v-2.83l9.93-9.93 2.83 2.83L6.83 20ZM18.17 8.66l-2.83-2.83 1.42-1.41 2.82 2.82-1.41 1.42Z"/></svg>Edit page</a><p>Last updated: <time datetime="2026-09-05T04:37:55.000Z">Sep 5, 2026</time></p></div><div class="pagination-links print:hidden astro-jgq3vlii" dir="ltr"><a href="/reference/cli/" rel="prev" class="astro-jgq3vlii"><svg aria-hidden="true" class="astro-jgq3vlii astro-n5k4ipy7" width="16" height="16" viewBox="0 0 24 24" fill="currentColor" style="--sl-icon-size: 1.5rem;"><path d="M17 11H9.41l3.3-3.29a1.004 1.004 0 1 0-1.42-1.42l-5 5a1 1 0 0 0-.21.33 1 1 0 0 0 0 .76 1 1 0 0 0 .21.33l5 5a1.002 1.002 0 0 0 1.639-.325 1 1 0 0 0-.219-1.095L9.41 13H17a1 1 0 0 0 0-2Z"/></svg><span class="astro-jgq3vlii">Previous<br class="astro-jgq3vlii"><span class="link-title astro-jgq3vlii">CLI</span></span></a><a href="/reference/language-tools/" rel="next" class="astro-jgq3vlii"><svg aria-hidden="true" class="astro-jgq3vlii astro-n5k4ipy7" width="16" height="16" viewBox="0 0 24 24" fill="currentColor" style="--sl-icon-size: 1.5rem;"><path d="M17.92 11.62a1.001 1.001 0 0 0-.21-.33l-5-5a1.003 1.003 0 1 0-1.42 1.42l3.3 3.29H7a1 1 0 0 0 0 2h7.59l-3.3 3.29a1.002 1.002 0 0 0 .325 1.639 1 1 0 0 0 1.095-.219l5-5a1 1 0 0 0 .21-.33 1 1 0 0 0 0-.76Z"/></svg><span class="astro-jgq3vlii">Next<br class="astro-jgq3vlii"><span class="link-title astro-jgq3vlii">Language tools</span></span></a></div></footer></div></div></main></div></div></div></div></body></html>
|
||||
+1
-1
@@ -640,4 +640,4 @@ a codec-version decision so stale caches cannot silently omit answers.</p>
|
||||
</tbody>
|
||||
</table>
|
||||
<aside aria-label="Types" class="starlight-aside starlight-aside--note"><p class="starlight-aside__title" aria-hidden="true"><svg viewBox="0 0 24 24" width="16" height="16" fill="currentColor" class="starlight-aside__icon"><path d="M12 11a1 1 0 0 0-1 1v4a1 1 0 0 0 2 0v-4a1 1 0 0 0-1-1Zm.38-3.92a1 1 0 0 0-.76 0 1 1 0 0 0-.33.21 1.15 1.15 0 0 0-.21.33 1 1 0 0 0 .21 1.09c.097.088.209.16.33.21A1 1 0 0 0 13 8a1.05 1.05 0 0 0-.29-.71 1 1 0 0 0-.33-.21ZM12 2a10 10 0 1 0 0 20 10 10 0 0 0 0-20Zm0 18a8 8 0 1 1 0-16.001A8 8 0 0 1 12 20Z"/></svg>Types</p><div class="starlight-aside__content"><p>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.</p></div></aside>
|
||||
</div><footer class="sl-flex astro-xhxjzfa7"><div class="meta sl-flex astro-xhxjzfa7"><a href="https://git.luci.ooo/lucio/verilogrustformatter/src/branch/master/docs/site/src/content/docs/reference/rust-api.md" class="sl-flex print:hidden astro-xk5gmzsg"><svg aria-hidden="true" class="astro-xk5gmzsg astro-n5k4ipy7" width="16" height="16" viewBox="0 0 24 24" fill="currentColor" style="--sl-icon-size: 1.2em;"><path d="M22 7.24a1 1 0 0 0-.29-.71l-4.24-4.24a1 1 0 0 0-1.1-.22 1 1 0 0 0-.32.22l-2.83 2.83L2.29 16.05a1 1 0 0 0-.29.71V21a1 1 0 0 0 1 1h4.24a1 1 0 0 0 .76-.29l10.87-10.93L21.71 8c.1-.1.17-.2.22-.33a1 1 0 0 0 0-.24v-.14l.07-.05ZM6.83 20H4v-2.83l9.93-9.93 2.83 2.83L6.83 20ZM18.17 8.66l-2.83-2.83 1.42-1.41 2.82 2.82-1.41 1.42Z"/></svg>Edit page</a><p>Last updated: <time datetime="2026-09-03T09:28:11.000Z">Sep 3, 2026</time></p></div><div class="pagination-links print:hidden astro-jgq3vlii" dir="ltr"><a href="/reference/language-tools/" rel="prev" class="astro-jgq3vlii"><svg aria-hidden="true" class="astro-jgq3vlii astro-n5k4ipy7" width="16" height="16" viewBox="0 0 24 24" fill="currentColor" style="--sl-icon-size: 1.5rem;"><path d="M17 11H9.41l3.3-3.29a1.004 1.004 0 1 0-1.42-1.42l-5 5a1 1 0 0 0-.21.33 1 1 0 0 0 0 .76 1 1 0 0 0 .21.33l5 5a1.002 1.002 0 0 0 1.639-.325 1 1 0 0 0-.219-1.095L9.41 13H17a1 1 0 0 0 0-2Z"/></svg><span class="astro-jgq3vlii">Previous<br class="astro-jgq3vlii"><span class="link-title astro-jgq3vlii">Language tools</span></span></a><a href="/reference/architecture/" rel="next" class="astro-jgq3vlii"><svg aria-hidden="true" class="astro-jgq3vlii astro-n5k4ipy7" width="16" height="16" viewBox="0 0 24 24" fill="currentColor" style="--sl-icon-size: 1.5rem;"><path d="M17.92 11.62a1.001 1.001 0 0 0-.21-.33l-5-5a1.003 1.003 0 1 0-1.42 1.42l3.3 3.29H7a1 1 0 0 0 0 2h7.59l-3.3 3.29a1.002 1.002 0 0 0 .325 1.639 1 1 0 0 0 1.095-.219l5-5a1 1 0 0 0 .21-.33 1 1 0 0 0 0-.76Z"/></svg><span class="astro-jgq3vlii">Next<br class="astro-jgq3vlii"><span class="link-title astro-jgq3vlii">Architecture</span></span></a></div></footer></div></div></main></div></div></div></div></body></html>
|
||||
</div><footer class="sl-flex astro-xhxjzfa7"><div class="meta sl-flex astro-xhxjzfa7"><a href="https://git.luci.ooo/lucio/verilogrustformatter/src/branch/master/docs/site/src/content/docs/reference/rust-api.md" class="sl-flex print:hidden astro-xk5gmzsg"><svg aria-hidden="true" class="astro-xk5gmzsg astro-n5k4ipy7" width="16" height="16" viewBox="0 0 24 24" fill="currentColor" style="--sl-icon-size: 1.2em;"><path d="M22 7.24a1 1 0 0 0-.29-.71l-4.24-4.24a1 1 0 0 0-1.1-.22 1 1 0 0 0-.32.22l-2.83 2.83L2.29 16.05a1 1 0 0 0-.29.71V21a1 1 0 0 0 1 1h4.24a1 1 0 0 0 .76-.29l10.87-10.93L21.71 8c.1-.1.17-.2.22-.33a1 1 0 0 0 0-.24v-.14l.07-.05ZM6.83 20H4v-2.83l9.93-9.93 2.83 2.83L6.83 20ZM18.17 8.66l-2.83-2.83 1.42-1.41 2.82 2.82-1.41 1.42Z"/></svg>Edit page</a><p>Last updated: <time datetime="2026-09-05T04:37:55.000Z">Sep 5, 2026</time></p></div><div class="pagination-links print:hidden astro-jgq3vlii" dir="ltr"><a href="/reference/language-tools/" rel="prev" class="astro-jgq3vlii"><svg aria-hidden="true" class="astro-jgq3vlii astro-n5k4ipy7" width="16" height="16" viewBox="0 0 24 24" fill="currentColor" style="--sl-icon-size: 1.5rem;"><path d="M17 11H9.41l3.3-3.29a1.004 1.004 0 1 0-1.42-1.42l-5 5a1 1 0 0 0-.21.33 1 1 0 0 0 0 .76 1 1 0 0 0 .21.33l5 5a1.002 1.002 0 0 0 1.639-.325 1 1 0 0 0-.219-1.095L9.41 13H17a1 1 0 0 0 0-2Z"/></svg><span class="astro-jgq3vlii">Previous<br class="astro-jgq3vlii"><span class="link-title astro-jgq3vlii">Language tools</span></span></a><a href="/reference/architecture/" rel="next" class="astro-jgq3vlii"><svg aria-hidden="true" class="astro-jgq3vlii astro-n5k4ipy7" width="16" height="16" viewBox="0 0 24 24" fill="currentColor" style="--sl-icon-size: 1.5rem;"><path d="M17.92 11.62a1.001 1.001 0 0 0-.21-.33l-5-5a1.003 1.003 0 1 0-1.42 1.42l3.3 3.29H7a1 1 0 0 0 0 2h7.59l-3.3 3.29a1.002 1.002 0 0 0 .325 1.639 1 1 0 0 0 1.095-.219l5-5a1 1 0 0 0 .21-.33 1 1 0 0 0 0-.76Z"/></svg><span class="astro-jgq3vlii">Next<br class="astro-jgq3vlii"><span class="link-title astro-jgq3vlii">Architecture</span></span></a></div></footer></div></div></main></div></div></div></div></body></html>
|
||||
+13
-1
@@ -129,6 +129,13 @@
|
||||
<td>rule names or severity classes</td>
|
||||
<td>CLI</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><code dir="auto">[lint].waivers</code></td>
|
||||
<td>string array</td>
|
||||
<td style="text-align: right"><code dir="auto">[]</code></td>
|
||||
<td>external waiver files, resolved against this file’s directory (Verible’s format; see the linter guide)</td>
|
||||
<td>CLI and editor</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
<p><code dir="auto">[lint.<rule-name>]</code> tables configure individual rules. The rule registry
|
||||
@@ -267,6 +274,11 @@ not enable a rule that is off by default.</p>
|
||||
<td style="text-align: right"><code dir="auto">{}</code></td>
|
||||
<td>Per-rule option objects, using the same validator as project configuration</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><code dir="auto">lucisv.lint.waivers</code></td>
|
||||
<td style="text-align: right"><code dir="auto">[]</code></td>
|
||||
<td>External waiver files, absolute or relative to the first workspace folder; added to <code dir="auto">[lint] waivers</code>. A missing file or a bad directive is logged once and dropped. Unused external waivers are reported by <code dir="auto">lucisv check</code> only</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
<p>For formatting, project configuration wins over editor line length and
|
||||
@@ -282,4 +294,4 @@ entries are currently dropped by server linting without a per-entry log;
|
||||
<code dir="auto">lucisv check</code> reports them as configuration errors.</p>
|
||||
<div class="sl-heading-wrapper level-h2"><h2 id="cache">Cache</h2><a class="sl-anchor-link" href="#cache"><span aria-hidden="true" class="sl-anchor-icon"><svg width="16" height="16" viewBox="0 0 24 24" fill="currentColor"><path d="m12.11 15.39-3.88 3.88a2.52 2.52 0 0 1-3.5 0 2.47 2.47 0 0 1 0-3.5l3.88-3.88a1 1 0 1 0-1.42-1.42l-3.88 3.89a4.48 4.48 0 0 0 6.33 6.33l3.89-3.88a1 1 0 0 0-1.42-1.42m8.58-12.08a4.49 4.49 0 0 0-6.33 0l-3.89 3.88a1 1 0 1 0 1.42 1.42l3.88-3.88a2.52 2.52 0 0 1 3.5 0 2.47 2.47 0 0 1 0 3.5l-3.88 3.88a1 1 0 0 0 0 1.42 1 1 0 0 0 1.42 0l3.88-3.89a4.49 4.49 0 0 0 0-6.33M8.83 15.17a1 1 0 0 0 .71.29 1 1 0 0 0 .71-.29l4.92-4.92a1 1 0 1 0-1.42-1.42l-4.92 4.92a1 1 0 0 0 0 1.42"></path></svg></span><span class="sr-only" data-pagefind-ignore>Section titled “Cache”</span></a></div>
|
||||
<p>Successful “already formatted” verdicts are cached under <code dir="auto">.lucisv_cache/</code>. Entries are keyed by file, content hash, line length, indentation, and lucisv version. Files that would change or fail are never cached. Use <code dir="auto">--no-cache</code> to disable reads and writes or <code dir="auto">--cache-dir</code> to relocate the store.</p>
|
||||
</div><footer class="sl-flex astro-xhxjzfa7"><div class="meta sl-flex astro-xhxjzfa7"><a href="https://git.luci.ooo/lucio/verilogrustformatter/src/branch/master/docs/site/src/content/docs/start/configuration.md" class="sl-flex print:hidden astro-xk5gmzsg"><svg aria-hidden="true" class="astro-xk5gmzsg astro-n5k4ipy7" width="16" height="16" viewBox="0 0 24 24" fill="currentColor" style="--sl-icon-size: 1.2em;"><path d="M22 7.24a1 1 0 0 0-.29-.71l-4.24-4.24a1 1 0 0 0-1.1-.22 1 1 0 0 0-.32.22l-2.83 2.83L2.29 16.05a1 1 0 0 0-.29.71V21a1 1 0 0 0 1 1h4.24a1 1 0 0 0 .76-.29l10.87-10.93L21.71 8c.1-.1.17-.2.22-.33a1 1 0 0 0 0-.24v-.14l.07-.05ZM6.83 20H4v-2.83l9.93-9.93 2.83 2.83L6.83 20ZM18.17 8.66l-2.83-2.83 1.42-1.41 2.82 2.82-1.41 1.42Z"/></svg>Edit page</a><p>Last updated: <time datetime="2026-09-03T09:28:11.000Z">Sep 3, 2026</time></p></div><div class="pagination-links print:hidden astro-jgq3vlii" dir="ltr"><a href="/start/quick-start/" rel="prev" class="astro-jgq3vlii"><svg aria-hidden="true" class="astro-jgq3vlii astro-n5k4ipy7" width="16" height="16" viewBox="0 0 24 24" fill="currentColor" style="--sl-icon-size: 1.5rem;"><path d="M17 11H9.41l3.3-3.29a1.004 1.004 0 1 0-1.42-1.42l-5 5a1 1 0 0 0-.21.33 1 1 0 0 0 0 .76 1 1 0 0 0 .21.33l5 5a1.002 1.002 0 0 0 1.639-.325 1 1 0 0 0-.219-1.095L9.41 13H17a1 1 0 0 0 0-2Z"/></svg><span class="astro-jgq3vlii">Previous<br class="astro-jgq3vlii"><span class="link-title astro-jgq3vlii">Quick start</span></span></a><a href="/guides/formatter/" rel="next" class="astro-jgq3vlii"><svg aria-hidden="true" class="astro-jgq3vlii astro-n5k4ipy7" width="16" height="16" viewBox="0 0 24 24" fill="currentColor" style="--sl-icon-size: 1.5rem;"><path d="M17.92 11.62a1.001 1.001 0 0 0-.21-.33l-5-5a1.003 1.003 0 1 0-1.42 1.42l3.3 3.29H7a1 1 0 0 0 0 2h7.59l-3.3 3.29a1.002 1.002 0 0 0 .325 1.639 1 1 0 0 0 1.095-.219l5-5a1 1 0 0 0 .21-.33 1 1 0 0 0 0-.76Z"/></svg><span class="astro-jgq3vlii">Next<br class="astro-jgq3vlii"><span class="link-title astro-jgq3vlii">Formatter</span></span></a></div></footer></div></div></main></div></div></div></div></body></html>
|
||||
</div><footer class="sl-flex astro-xhxjzfa7"><div class="meta sl-flex astro-xhxjzfa7"><a href="https://git.luci.ooo/lucio/verilogrustformatter/src/branch/master/docs/site/src/content/docs/start/configuration.md" class="sl-flex print:hidden astro-xk5gmzsg"><svg aria-hidden="true" class="astro-xk5gmzsg astro-n5k4ipy7" width="16" height="16" viewBox="0 0 24 24" fill="currentColor" style="--sl-icon-size: 1.2em;"><path d="M22 7.24a1 1 0 0 0-.29-.71l-4.24-4.24a1 1 0 0 0-1.1-.22 1 1 0 0 0-.32.22l-2.83 2.83L2.29 16.05a1 1 0 0 0-.29.71V21a1 1 0 0 0 1 1h4.24a1 1 0 0 0 .76-.29l10.87-10.93L21.71 8c.1-.1.17-.2.22-.33a1 1 0 0 0 0-.24v-.14l.07-.05ZM6.83 20H4v-2.83l9.93-9.93 2.83 2.83L6.83 20ZM18.17 8.66l-2.83-2.83 1.42-1.41 2.82 2.82-1.41 1.42Z"/></svg>Edit page</a><p>Last updated: <time datetime="2026-09-05T04:37:55.000Z">Sep 5, 2026</time></p></div><div class="pagination-links print:hidden astro-jgq3vlii" dir="ltr"><a href="/start/quick-start/" rel="prev" class="astro-jgq3vlii"><svg aria-hidden="true" class="astro-jgq3vlii astro-n5k4ipy7" width="16" height="16" viewBox="0 0 24 24" fill="currentColor" style="--sl-icon-size: 1.5rem;"><path d="M17 11H9.41l3.3-3.29a1.004 1.004 0 1 0-1.42-1.42l-5 5a1 1 0 0 0-.21.33 1 1 0 0 0 0 .76 1 1 0 0 0 .21.33l5 5a1.002 1.002 0 0 0 1.639-.325 1 1 0 0 0-.219-1.095L9.41 13H17a1 1 0 0 0 0-2Z"/></svg><span class="astro-jgq3vlii">Previous<br class="astro-jgq3vlii"><span class="link-title astro-jgq3vlii">Quick start</span></span></a><a href="/guides/formatter/" rel="next" class="astro-jgq3vlii"><svg aria-hidden="true" class="astro-jgq3vlii astro-n5k4ipy7" width="16" height="16" viewBox="0 0 24 24" fill="currentColor" style="--sl-icon-size: 1.5rem;"><path d="M17.92 11.62a1.001 1.001 0 0 0-.21-.33l-5-5a1.003 1.003 0 1 0-1.42 1.42l3.3 3.29H7a1 1 0 0 0 0 2h7.59l-3.3 3.29a1.002 1.002 0 0 0 .325 1.639 1 1 0 0 0 1.095-.219l5-5a1 1 0 0 0 .21-.33 1 1 0 0 0 0-.76Z"/></svg><span class="astro-jgq3vlii">Next<br class="astro-jgq3vlii"><span class="link-title astro-jgq3vlii">Formatter</span></span></a></div></footer></div></div></main></div></div></div></div></body></html>
|
||||
@@ -55,7 +55,39 @@ endmodule
|
||||
|
||||
`verilog_lint:` is accepted in place of `lucisv:` for Verible compatibility. The `unused-waiver` rule reports malformed, unknown, or no-longer-needed suppressions when their target rule is enabled.
|
||||
|
||||
External waiver files are not implemented in v0.41.0; the planned waiver-file
|
||||
settings and CLI flag are not accepted yet.
|
||||
Findings can also be suppressed from **outside** the RTL, in Verible's
|
||||
waiver-file format — one directive per line, `#` comments and blank lines
|
||||
ignored:
|
||||
|
||||
```text
|
||||
# every line of every file
|
||||
waive --rule=no-tabs
|
||||
# one line, or a range with both ends included
|
||||
waive --rule=line-length --line=12
|
||||
waive --rule=line-length --line=12-20
|
||||
# only the files a pattern names
|
||||
waive --rule=no-tabs --location=legacy/top.sv
|
||||
```
|
||||
|
||||
`--rule` is required and names exactly one rule (a severity word is not
|
||||
accepted). `--line` is 1-based. `--location` is matched the way an
|
||||
`--exclude` pattern is — `*` within one path component, a pattern with `/`
|
||||
matching a path suffix, one without matching the file name at any depth — and
|
||||
**not** as a regular expression; a pattern that looks like one (`.*`, `\.`,
|
||||
`[…]`) is an error naming the difference.
|
||||
|
||||
Waiver files come from three places, and they add up: `lucisv check
|
||||
--waiver-file <path>` (repeatable, relative to the working directory),
|
||||
`waivers` under `[lint]` in `lucisv.toml` (relative to that file; read by the
|
||||
CLI and the editor), and the editor setting `lucisv.lint.waivers` (relative to
|
||||
the first workspace folder). External and inline waivers are a union: a
|
||||
finding either covers is suppressed, and one both cover leaves neither
|
||||
reported as dead. A missing file or an unparsable directive fails `lucisv
|
||||
check` with `<file>:<line>: <message>` and exit 2; in an editor the bad line
|
||||
is dropped and the rest of the file applies — a bad line in a file named by
|
||||
the editor setting is written once to the lucisv log, one named by
|
||||
`lucisv.toml` is not (run `lucisv check` to see it). Unused external waivers
|
||||
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/).
|
||||
@@ -45,6 +45,7 @@ The subcommand is recognized only as the first argument. To format a file named
|
||||
| `--output-format` | `text` or `json` | Select human or machine-readable diagnostics |
|
||||
| `--fix` | — | Apply safe fixes and rewrite files |
|
||||
| `--unsafe-fixes` | — | Allow unsafe fixes when a rule provides them |
|
||||
| `--waiver-file <PATH>` | path | Read Verible-format waiver directives from this file; repeatable. Adds to `[lint] waivers` from `lucisv.toml`. Relative to the working directory. A missing file or an unparsable directive is an error (exit 2) |
|
||||
| `--rules-doc` | — | Print registry-generated rule and option documentation and exit; takes no files |
|
||||
|
||||
Text diagnostics use `FILE:LINE:COL: severity: message [rule]`. JSON output is one array of diagnostic objects, each carrying `severity`. JSON output is lint-only; formatter errors remain text on stderr.
|
||||
|
||||
@@ -32,6 +32,7 @@ style_regex = "[a-z_0-9]+"
|
||||
| `filelist` | string | — | EDA `.f` path | server index |
|
||||
| `[lint].select` | string array | defaults | rule names or severity classes | CLI |
|
||||
| `[lint].ignore` | string array | `[]` | rule names or severity classes | CLI |
|
||||
| `[lint].waivers` | string array | `[]` | external waiver files, resolved against this file's directory (Verible's format; see the linter guide) | CLI and editor |
|
||||
|
||||
`[lint.<rule-name>]` tables configure individual rules. The rule registry
|
||||
validates option names, types, bounds, and patterns; `lucisv check --rules-doc`
|
||||
@@ -81,6 +82,7 @@ Unknown keys, out-of-range numbers, invalid values, tables other than `[lint]` a
|
||||
| `lucisv.lint.severity.error` / `.warning` / `.style` | `true` | Enable each severity class |
|
||||
| `lucisv.lint.rules.<rule>` | `default` | Override a rule with `default`, `on`, or `off` |
|
||||
| `lucisv.lint.options` | `{}` | Per-rule option objects, using the same validator as project configuration |
|
||||
| `lucisv.lint.waivers` | `[]` | External waiver files, absolute or relative to the first workspace folder; added to `[lint] waivers`. A missing file or a bad directive is logged once and dropped. Unused external waivers are reported by `lucisv check` only |
|
||||
|
||||
For formatting, project configuration wins over editor line length and
|
||||
indentation, then editor tab size supplies an indent fallback, then built-in
|
||||
|
||||
@@ -112,6 +112,7 @@ what a change on the pointed-to side must not silently break.
|
||||
| `vlog_semantic ──▶ vlog_parser` | depends | The AST read-only, `parse_source_tolerant`/`parse_tolerant` (never fails; `Error` nodes are opaque leaves), the **name-span contract** `src[name_span] == name` on every declaring node, `token::is_keyword`, `defines::collect_defines`/`DefineTable`, `TextRange`. `bind/`'s `ItemKind`/`ExprKind`/`DimKind` matches are exhaustive — new variants cost an arm here too. |
|
||||
| `vlog_linter ──▶ vlog_parser` | depends | `ParsedSource::parse` = `tokenize` + `parse_tolerant` (one-parse bundle), `LineIndex`, `TextRange`, AST shapes walked by `visit.rs` (which ends in `_ => {}`, so new variants usually cost nothing here), token facts for text rules (a macro use is one `Ident` token; a directive is one `Directive` token). |
|
||||
| `vlog_linter ──▶ vlog_semantic` | depends | `analyze`, `Semantics::{symbols, references, references_of}` for semantic rules, including signal usage and duplicate-declaration checks. `Semantics::duplicates()` was added by linter-expansion-1 without changing persisted facts. `LintContext::semantics()` computes analysis lazily when a rule asks for it. Justified in `vlog_linter/Cargo.toml`; adds no external code (`vlog_semantic` is `vlog_parser` + std). |
|
||||
| `vlog_linter ──▶ lucisv_core` | depends | `walk::is_excluded`, the `--exclude` matcher, reused for a waiver file's `--location` so one pattern language serves the whole tool (waiver-files, §39, 2026-09-04). `lucisv_core` still depends on nothing, so no cycle. |
|
||||
| `vlog_linter ──▶ vlog_formatter` **(dev-only)** | depends (tests) | The `.lint` fix harness asserts a lint fix never produces text `format_source` refuses. **The library dependency list is still `vlog_parser` + `vlog_semantic` + std** — `cargo tree -p vlog_linter -e normal` is the pinned check. Do not promote this to a normal dep; the fence filter deliberately lives in the front ends instead (see shared-fence-filter, §2.4). |
|
||||
| `vlog_refactor ──▶ vlog_parser` | depends | `tokenize`, `parse_source_tolerant` + diagnostics, `LineIndex`, `TextRange`, the port/instantiation/module AST shapes, `token::is_keyword` (new-name validity), `defines` via the index. Every edit span originates in a parsed node — no textual search-and-replace. |
|
||||
| `vlog_refactor ──▶ vlog_semantic` | depends | `Semantics` queries (`symbol_at`, `references_of`, `reference_id_at`, …), `Resolution` variants (three of them are refusal rules), `WorkspaceIndex` + `resolve_external` + `ExternalTarget`, and the exactness promise on `name_span` (re-checked before each edit is emitted). One historical exception: refactor-rename added `Target::Declaration` + end-label uses *into* `vlog_semantic` (lead-authorized, additive — see §2.6). |
|
||||
|
||||
Reference in new issue
Block a user