{"id":29402586,"url":"https://github.com/tankosinn/clipped","last_synced_at":"2025-07-10T17:08:15.330Z","repository":{"id":303407627,"uuid":"1015328983","full_name":"tankosinn/clipped","owner":"tankosinn","description":"✂️ Clipped your cargo clippy","archived":false,"fork":false,"pushed_at":"2025-07-07T13:17:03.000Z","size":23,"stargazers_count":1,"open_issues_count":1,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-07-07T13:40:49.159Z","etag":null,"topics":["cli","clippy","git-hooks","lint","precommit"],"latest_commit_sha":null,"homepage":"","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/tankosinn.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2025-07-07T10:40:01.000Z","updated_at":"2025-07-07T13:24:49.000Z","dependencies_parsed_at":"2025-07-07T13:40:53.580Z","dependency_job_id":"0d912ffb-c87b-446c-b32e-7ff813b715dc","html_url":"https://github.com/tankosinn/clipped","commit_stats":null,"previous_names":["tankosinn/clipped"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/tankosinn/clipped","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tankosinn%2Fclipped","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tankosinn%2Fclipped/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tankosinn%2Fclipped/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tankosinn%2Fclipped/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tankosinn","download_url":"https://codeload.github.com/tankosinn/clipped/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tankosinn%2Fclipped/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":264615160,"owners_count":23637728,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["cli","clippy","git-hooks","lint","precommit"],"created_at":"2025-07-10T17:08:10.591Z","updated_at":"2025-07-10T17:08:15.320Z","avatar_url":"https://github.com/tankosinn.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ✂️ Clipped\n\nClipped is a workspace-aware, file-scoped `cargo clippy` wrapper that filters diagnostics.\n\n## ✨ Features\n\n- 📁 **File-based filtering**: See only diagnostics for files you specify\n- 🚀 **Workspace-aware**: Automatically runs only on relevant workspace packages\n- 🎯 **Level filtering**: Control diagnostic severity (note, help, warning, error)\n- ⚙️ **Flexible configuration**: CLI, env vars, or config file\n- 🔧 **Clippy pass-through**: Forward any arguments to Clippy\n\n## 📦 Installation\n\n```bash\ncargo install clipped\n```\n\n## 🛠 Usage\n\n```bash\n# Run on entire project (same as `cargo clippy`)\nclipped\n\n# Run on specific files\nclipped src/main.rs src/lib.rs\n\n# Show only errors\nclipped --level error src/main.rs\n\n# Pass args to Clippy\nclipped src/main.rs -- -- -W clippy::all\n```\n\n## ⚙️ Configuration\n\nConfigure via `.clipped.toml`:\n\n```toml\nlevel = \"error\"\nclippy_args = [\"-W\", \"clippy::pedantic\"]\n```\n\nOr set environment variables:\n\n```bash\nexport CLIPPED_LEVEL=error\nexport CLIPPED_CLIPPY_ARGS='[\"--\", \"-W\", \"clippy::all\"]' # as JSON array\n```\n\n## 🤖 CLI\n\n```bash\nclipped [OPTIONS] [FILES]... [-- \u003cCLIPPY_ARGS\u003e...]\n```\n\n### Options\n\n- `--config \u003cCONFIG_PATH\u003e` - Path to the config file (default: `.clipped.toml`)\n- `--level \u003cLEVEL\u003e` - Set the level: `note`, `help`, `warning`, `error` (default: `warning`)\n- `-v`, `--verbose` - Enable verbose output\n- `-h`, `--help` - Print help\n- `-V`, `--version` - Print version\n\n## 🪝 Git Hooks\n\nClipped is designed to integrate seamlessly with Git hooks.\n\nWith `pre-commit`:\n\n```yaml\nrepos:\n  - repo: local\n    hooks:\n      - id: clipped\n        name: clipped\n        entry: clipped\n        language: system\n        args: [...]\n        pass_filenames: true\n        require_serial: true\n```\n\nor use the `clipped` repository:\n\n```yaml\nrepos:\n  - repo: https://github.com/tankosinn/clipped\n    rev: 0.1.0\n    hooks:\n      - id: clipped\n```\n\n## 📝 License\n\n[MIT License](https://github.com/tankosinn/clipped/blob/main/LICENSE)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftankosinn%2Fclipped","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftankosinn%2Fclipped","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftankosinn%2Fclipped/lists"}