{"id":16113302,"url":"https://github.com/patryk27/clippy-dirty","last_synced_at":"2025-03-18T09:31:17.512Z","repository":{"id":151916295,"uuid":"257236718","full_name":"Patryk27/clippy-dirty","owner":"Patryk27","description":"`cargo clippy`, but only for the files / lines you've just modified","archived":false,"fork":false,"pushed_at":"2021-09-30T19:35:05.000Z","size":38,"stargazers_count":19,"open_issues_count":0,"forks_count":2,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-08T18:45:51.504Z","etag":null,"topics":["clippy","git","lint","rust","scan"],"latest_commit_sha":null,"homepage":"","language":"Shell","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/Patryk27.png","metadata":{"files":{"readme":"README.md","changelog":null,"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}},"created_at":"2020-04-20T09:46:09.000Z","updated_at":"2025-02-20T00:26:14.000Z","dependencies_parsed_at":"2023-05-15T17:45:37.052Z","dependency_job_id":null,"html_url":"https://github.com/Patryk27/clippy-dirty","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Patryk27%2Fclippy-dirty","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Patryk27%2Fclippy-dirty/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Patryk27%2Fclippy-dirty/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Patryk27%2Fclippy-dirty/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Patryk27","download_url":"https://codeload.github.com/Patryk27/clippy-dirty/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243911249,"owners_count":20367651,"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":["clippy","git","lint","rust","scan"],"created_at":"2024-10-09T20:10:55.838Z","updated_at":"2025-03-18T09:31:17.504Z","avatar_url":"https://github.com/Patryk27.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# clippy-dirty\n\n`cargo clippy`, but only for files / lines you've just modified.\n\n## Abstract\n\nBy default, `cargo clippy` shows messages for the entire project - that is: even\nif you modified a single file, you'll still see all the messages for all of the\nother files in your crate.\n\nThis is a great behavior overall, but can be troublesome when you _start_ to\nintroduce `clippy` to your workflow and can't afford to apply all the\nsuggestions at once.\n\nAnd for that comes `clippy-dirty` - it's a script that, simplifying a bit,\ninvokes `git status` and `cargo clippy`, and shows only those messages that\naffect uncommitted files.\n\nIt can even narrow down messages to just the _lines_ you've modified - you'll\nfind the synopsis below.\n\n## Installation\n\n- clone this repository and add it to your `PATH`\n- (or) download the `clippy-dirty` script wherever you like and invoke it using full path (e.g. `~/Apps/clippy-dirty`)\n\n## Usage\n\nUse in place of `cargo clippy`, e.g.:\n\n```bash\n$ cd ~/Projects/go-brr-meme-maker\n$ clippy-dirty\n# or\n$ clippy-dirty -- -p workspace-crate\n# and so on\n```\n\n```\nUSAGE\n    clippy-dirty [options] [--] [clippy-options]\n\nOPTIONS\n    -b files  Shows messages only for the files you've modified\n              (this is the default behavior)\n\n    -b lines  Shows messages only for the lines you've modified\n              (it's more restrictive than '-b files')\n\n    -u        Ignore untracked files\n\n    -h        Prints this help\n\nArguments after '--' get passed into clippy:\n    clippy-dirty -- -p workspace-crate\n    clippy-dirty -- --all-targets --all-features\n    clippy-dirty -- -- -D clippy::new_without_default\n    clippy-dirty -b lines -- -- -D clippy::new_without_default\n\nSame for environmental variables:\n    RUSTFLAGS=\"-D warnings\" clippy-dirty\n```\n\n## Requirements\n\n- bash,\n- cargo,\n- cargo-clippy,\n- git,\n- jq.\n\n## Tests\n\nIntegration tests are located inside `./tests` - to execute them, you'll have to\ninstall Nix and run `./test`.\n\n## License\n\nCopyright (c) 2020-2021, Patryk Wychowaniec \u003cpwychowaniec@pm.me\u003e.    \nLicensed under the MIT license.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpatryk27%2Fclippy-dirty","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpatryk27%2Fclippy-dirty","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpatryk27%2Fclippy-dirty/lists"}