Code Climate on localhost via docker
Image | Size |
---|---|
codeclimate/codeclimate-eslint | 1.44GB |
codeclimate/codeclimate | 143MB |
codeclimate/codeclimate-structure | 6.05GB |
codeclimate/codeclimate-duplication | 6.07GB |
codeclimate/codeclimate-scss-lint | 107MB |
codeclimate/codeclimate-markdownlint | 392MB |
codeclimate/codeclimate-editorconfig | 74.1MB |
codeclimate/codeclimate-sass-lint | 180MB |
codeclimate/codeclimate-nodesecurity | 146MB |
codeclimate/codeclimate-fixme | 64.8MB |
codeclimate/codeclimate-git-legal | 373MB |
Setup
docker pull codeclimate/codeclimate
docker run --rm --volume /var/run/docker.sock:/var/run/docker.sock --env CODECLIMATE_CODE="$(pwd)" --volume "$(pwd)":/code --volume /tmp/cc:/tmp/cc codeclimate/codeclimate engines:install
Script for Code Climate
#!/usr/bin/env sh
CODE_DIRECTORY=$(pwd)
docker run \
--interactive \
--tty \
--rm \
--env CODECLIMATE_CODE="${CODE_DIRECTORY}" \
--volume "${CODE_DIRECTORY}":/code \
--volume /var/run/docker.sock:/var/run/docker.sock \
--volume /tmp/cc:/tmp/cc \
codeclimate/codeclimate $@
# vim: tw=78 ft=sh ts=2 sw=2 sts=2 nu:
Analyze code
[script above] analyze
or
npm run codeclimate