aboutsummaryrefslogtreecommitdiffhomepage
path: root/scripts/lint
diff options
context:
space:
mode:
authornsfisis <nsfisis@gmail.com>2026-06-29 00:03:00 +0900
committernsfisis <nsfisis@gmail.com>2026-06-29 00:03:00 +0900
commit9be0f98f71fe8071ab839ac1036b4064ac3172b4 (patch)
tree66a2f4feba752f4761c40449e0827ad74fc9b02c /scripts/lint
parenta84d531548efa678d4021cea891826e59f8fb462 (diff)
downloadphp-shirabe-9be0f98f71fe8071ab839ac1036b4064ac3172b4.tar.gz
php-shirabe-9be0f98f71fe8071ab839ac1036b4064ac3172b4.tar.zst
php-shirabe-9be0f98f71fe8071ab839ac1036b4064ac3172b4.zip
chore(lint): ban bare `use anyhow::Result` and fully qualify it
Add a no_banned_use linter that forbids importing anyhow::Result, and update all call sites to reference it via its fully-qualified path so it is never confused with std::result::Result. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Diffstat (limited to 'scripts/lint')
-rwxr-xr-xscripts/lint1
1 files changed, 1 insertions, 0 deletions
diff --git a/scripts/lint b/scripts/lint
index 89f5fe0..c9e3304 100755
--- a/scripts/lint
+++ b/scripts/lint
@@ -5,6 +5,7 @@ require 'pathname'
LINTERS = {
cargo_workspace_dependencies: [],
contiguous_use_block: [],
+ no_banned_use: [],
no_decorative_section_comment: %w[
crates/shirabe-semver/src/version_parser.rs
],