Skip to content

Commit 8dd04af

Browse files
committed
lints: Distingiush between "runtime error" vs "lint check"
Add an internal error type, and switch to using a nested `Result<Result<>>` approach for lints. This allows cleanly distinguishing between e.g. "we failed to open a file" from "the lint correctly/successfully found something wrong". This is also helpful for being able to skip lint failures - we wouldn't want to silently skip runtime failures. Signed-off-by: Colin Walters <[email protected]>
1 parent 09f665a commit 8dd04af

File tree

3 files changed

+112
-66
lines changed

3 files changed

+112
-66
lines changed

Cargo.lock

Lines changed: 7 additions & 6 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ xshell = { version = "0.2.6", optional = true }
4646
uuid = { version = "1.8.0", features = ["v4"] }
4747
tini = "1.3.0"
4848
comfy-table = "7.1.1"
49+
thiserror = "2.0.11"
4950

5051
[dev-dependencies]
5152
indoc = { workspace = true }

0 commit comments

Comments
 (0)