用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/tomevault-io/skills-registry --skill rust-linter-configuration命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
正在显示 SKILL.md
基于 SOC 职业分类
| name | rust-linter-configuration |
| description | >- Use when this capability is needed. |
| Item | Location / command |
|---|---|
| rustfmt | rustfmt.toml |
| Workspace lint baseline | Root Cargo.toml [workspace.lints.rust] / [workspace.lints.clippy]; each crate [lints] workspace = true |
| Cargo aliases | .cargo/config.toml — cargo fmt-check, cargo lint |
| CI | .github/workflows/ci.yml — cargo fmt --all --check, cargo clippy --all-targets --all-features -- -D warnings |
Rust has no single “Airbnb ESLint” package; common practice is rustfmt + clippy -D warnings + a short [workspace.lints] list. Maverick currently sets:
| Lint | Level | Role |
|---|---|---|
rust::unused_must_use | deny | Ignored Result / MustUse types fail CI |
rust::unsafe_op_in_unsafe_fn | warn | Stricter unsafe blocks (becomes error under -D warnings) |
clippy::dbg_macro | deny | No dbg! in shipped code |
clippy::todo | warn | todo! fails CI under -D warnings |
clippy::unimplemented | warn | unimplemented! fails CI under -D warnings |
New workspace members must include [lints] workspace = true in their Cargo.toml.
-D warnings). Local cargo lint should match.rustfmt settings are shared—do not fight them in review.#[allow(clippy::...)] or rustc allows: justify in a comment, smallest scope, prefer #[expect(...)] on nightly-only codebases (this repo uses stable—use allow with comment until MSRV supports expect if adopted).clippy.toml at the repo root when tuning thresholds or setting msrv once the workspace pins MSRV. See Clippy configuration.clippy::pedantic) only with team buy-in—usually too noisy for a blanket deny.allow have a one-line reason and minimal scope?fmt-check, lint)?Source: antonygiomarxdev/maverick — distributed by TomeVault.