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.
11 lines
278 B
Bash
Executable file
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 $@
|