| Crates.io | diff-report-rs |
| lib.rs | diff-report-rs |
| version | 0.1.0 |
| created_at | 2021-04-30 15:24:10.311841+00 |
| updated_at | 2021-04-30 15:24:10.311841+00 |
| description | A tool to only report cargo/clippy warnings related to the lines of a git diff |
| homepage | https://github.com/fpoli/diff-report-rs |
| repository | https://github.com/fpoli/diff-report-rs |
| max_upload_size | |
| id | 391582 |
| size | 28,183 |
Only report cargo/clippy warnings related to the lines of a git diff. Useful to hide cargo and clippy warnings that are likely not related to the changed introduced by a pull request.
Inspired by Patryk27/clippy-dirty.
Hide the clippy warnings that are not on to the lines mentioned in a git diff $GITHUB_BASE_REF...$GITHUB_HEAD_REF $GITHUB_HEAD_REF (useful in the GitHub actions triggered by a pull request):
cargo clippy --message-format=json-diagnostic-rendered-ansi \
| diff-report-rs $GITHUB_BASE_REF...$GITHUB_HEAD_REF $GITHUB_HEAD_REF
Hide the cargo warnings that are not on to the lines mentioned in a git diff origin/master HEAD:
cargo check --message-format=json-diagnostic-rendered-ansi \
| diff-report-rs origin/master HEAD
Filter by git diff origin/master:
... | diff-report-rs origin/master
Filter by git diff only:
... | diff-report-rs