원클릭으로
rust-lint
Rust code quality check - Use Clippy and Rustfmt to ensure Rust code standards and performance optimization
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
메뉴
Rust code quality check - Use Clippy and Rustfmt to ensure Rust code standards and performance optimization
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
SOC 직업 분류 기준
AI Agent code quality check - Use Ruff to check code standards for LangChain, AutoGen, and other AI Agent projects
Database migration management - Use Flyway and Atlas for version-controlled database schema migrations
Dockerfile best practices check - Use hadolint to validate Dockerfile security, performance, and compliance
Format JavaScript/TypeScript code with Prettier
Format Python code with Black
Auto-generate project changelog
| name | rust-lint |
| description | Rust code quality check - Use Clippy and Rustfmt to ensure Rust code standards and performance optimization |
Use Rust official toolchain to check code quality:
| Tool | Min Version | Installation |
|---|---|---|
| Rust | 1.70+ | curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh |
| Clippy | - | rustup component add clippy |
| Rustfmt | - | rustup component add rustfmt |
Run Clippy:
.\.agent\skills\rust-lint\scripts\lint.ps1
Auto-fix:
.\.agent\skills\rust-lint\scripts\lint.ps1 -Fix
Format code:
.\.agent\skills\rust-lint\scripts\format.ps1
🦀 Rust Lint - Checking project...
warning: unnecessary use of `clone`
--> src/main.rs:15:18
|
15 | let data = items.clone();
| ^^^^^^^^ help: remove this
|
= note: `#[warn(clippy::unnecessary_clone)]` on by default
error: indexing may panic
--> src/lib.rs:42:13
|
42 | let x = arr[5];
| ^^^^^^
|
= help: consider using `.get()` or `.get_mut()`
📊 Results:
❌ Errors: 1
⚠️ Warnings: 3
Create clippy.toml:
cognitive-complexity-threshold = 30
too-many-arguments-threshold = 8
disallowed-methods = [
"std::env::set_var", # Unsafe environment variable setting
]
# Allowed lints
allow = [
"clippy::module_name_repetitions",
]
# Warning level lints
warn = [
"clippy::pedantic",
"clippy::nursery",
]
# Denied lints
deny = [
"clippy::unwrap_used",
"clippy::expect_used",
]
Create rustfmt.toml:
max_width = 100
indent_style = "Block"
use_small_heuristics = "Default"
imports_granularity = "Crate"