Codacy on localhost via docker
Image | Size |
---|---|
codacy/codacy-analysis-cli | 414MB |
codacy-eslint | 1.02GB |
codacy-analysis-cli | 414MB |
codacy-metrics-eslint | 216MB |
codacy-metrics-cloc | 372MB |
codacy-tslint | 238MB |
codacy-duplication-jscpd | 85MB |
Setup
docker pull codacy/codacy-analysis-cli
Script for Codacy
#!/usr/bin/env sh
CODE_DIRECTORY=$(pwd)
docker run \
--interactive \
--tty \
--rm \
--env CODACY_CODE="${CODE_DIRECTORY}" \
--volume "${CODE_DIRECTORY}":"${CODE_DIRECTORY}" \
--volume /var/run/docker.sock:/var/run/docker.sock \
--volume /tmp:/tmp \
codacy/codacy-analysis-cli $@
# vim: tw=78 ft=sh ts=2 sw=2 sts=2 nu:
Analyze code
[script above] analyze --directory "$(pwd)"
or
npm run codacy