Last active
December 31, 2018 19:10
-
-
Save asayers/c735443278c61c34032803c760ae9c11 to your computer and use it in GitHub Desktop.
Mangles the output of `cargo clippy` into GCC lint format, for consumption by vim/kak/etc.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cargo clippy 2>&1 | gawk 'match($0, / --> (.*)/, arr) { print arr[1] " " prev } { prev=$0 }' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment