Skip to content

Instantly share code, notes, and snippets.

@asayers
Last active December 31, 2018 19:10
Show Gist options
  • Save asayers/c735443278c61c34032803c760ae9c11 to your computer and use it in GitHub Desktop.
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.
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