Dark Mode

Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Latest commit

History

History
64 lines (46 loc) * 1.37 KB

CODECLIMATE.md

File metadata and controls

64 lines (46 loc) * 1.37 KB

Code Climate on localhost

Docker image sizes

codeclimate/codeclimate 110MB
codeclimate/codeclimate-eslint 1.25GB
codeclimate/codeclimate-structure 5.16GB
codeclimate/codeclimate-duplication 5.16GB
codeclimate/codeclimate-tslint 559MB
codeclimate/codeclimate-editorconfig 74.1MB
codeclimate/codeclimate-fixme 58.8MB
codeclimate/codeclimate-git-legal 373MB

Initial docker images

#!/usr/bin/env sh

docker pull codeclimate/codeclimate-structure
docker pull codeclimate/codeclimate-duplication
docker pull codeclimate/codeclimate

# vim: tw=78 ft=sh ts=2 sw=2 sts=2 nu:

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 $@

docker run --interactive --tty --rm --env CODECLIMATE_CODE=\"./\" --volume \"./\":/code --volume /var/run/docker.sock:/var/run/docker.sock --volume /tmp/cc:/tmp/cc codeclimate/codeclimate analyze

# vim: tw=78 ft=sh ts=2 sw=2 sts=2 nu:

Install engines

[script above] engines:install duplication structure eslint nodesecurity requiresafe

Analyze code

[script above] analyze

or

npm run codeclimate