Dotfiles/site-modules/core/files/bin/codeclimate-vimgrep
Ade Attwood 331e2ceaf9 feat(shell): add codeclimate wrapper
There are two wrapper scripts for running codeclimate locally in docker.
This script is adapted from their website. There is also a script that
will output the results in vimgrep format, so they can be easily loaded
into the quickfix list.
2023-11-04 08:54:02 +00:00

5 lines
149 B
Bash
Executable file

#! /bin/bash
codeclimate analyze -f json $@ \
| jq -r '.[] | "\(.location.path):\(.location.lines.begin): \(.description)"' \
| grep -v '^null'