Skip to content
This repository was archived by the owner on May 3, 2021. It is now read-only.

fpoli/diff-report-rs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Diff-report-rs

⚠️ Moved to https://github.com/fpoli/cargo-diff-tools ⚠️

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.

Examples

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

About

Only report cargo/clippy warnings related to the lines of a git diff.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages