| Crates.io | clipped |
| lib.rs | clipped |
| version | 0.1.0 |
| created_at | 2025-07-07 13:16:59.21377+00 |
| updated_at | 2025-07-07 13:16:59.21377+00 |
| description | Clipped your cargo clippy |
| homepage | |
| repository | https://github.com/tankosinn/clipped |
| max_upload_size | |
| id | 1741257 |
| size | 67,226 |
Clipped is a workspace-aware, file-scoped cargo clippy wrapper that filters diagnostics.
cargo install clipped
# Run on entire project (same as `cargo clippy`)
clipped
# Run on specific files
clipped src/main.rs src/lib.rs
# Show only errors
clipped --level error src/main.rs
# Pass args to Clippy
clipped src/main.rs -- -- -W clippy::all
Configure via .clipped.toml:
level = "error"
clippy_args = ["-W", "clippy::pedantic"]
Or set environment variables:
export CLIPPED_LEVEL=error
export CLIPPED_CLIPPY_ARGS='["--", "-W", "clippy::all"]' # as JSON array
clipped [OPTIONS] [FILES]... [-- <CLIPPY_ARGS>...]
--config <CONFIG_PATH> - Path to the config file (default: .clipped.toml)--level <LEVEL> - Set the level: note, help, warning, error (default: warning)-v, --verbose - Enable verbose output-h, --help - Print help-V, --version - Print versionClipped is designed to integrate seamlessly with Git hooks.
With pre-commit:
repos:
- repo: local
hooks:
- id: clipped
name: clipped
entry: clipped
language: system
args: [...]
pass_filenames: true
require_serial: true
or use the clipped repository:
repos:
- repo: https://github.com/tankosinn/clipped
rev: 0.1.0
hooks:
- id: clipped