Dotfiles/site-modules/core/files/bin/codeclimate
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

11 lines
278 B
Bash
Executable file

#!/bin/bash
set -e
docker run \
--interactive --rm \
--env CODECLIMATE_CODE="$PWD" \
--env CODECLIMATE_DEBUG="$CODECLIMATE_DEBUG" \
--volume "$PWD":/code \
--volume /var/run/docker.sock:/var/run/docker.sock \
--volume /tmp/cc:/tmp/cc \
codeclimate/codeclimate $@