codeclimate/codeclimate

Name: codeclimate

Owner: Code Climate

Description: Code Climate CLI

Created: 2015-06-19 13:54:41.0

Updated: 2018-05-23 14:37:09.0

Pushed: 2018-04-19 14:53:50.0

Homepage: https://codeclimate.com/

Size: 1384

Language: Ruby

GitHub Committers

UserMost Recent Commit# Commits

Other Committers

UserEmailMost Recent Commit# Commits

README

Code Climate CLI

Code Climate

Overview

codeclimate is a command line interface for the Code Climate analysis platform. It allows you to run Code Climate engines on your local machine inside of Docker containers.

Prerequisites

The Code Climate CLI is distributed and run as a Docker image. The engines that perform the actual analyses are also Docker images. To support this, you must have Docker installed and running locally. We also require that the Docker daemon supports connections on the default Unix socket /var/run/docker.sock.

On macOS, we recommend using Docker for Mac.

Installation
er pull codeclimate/codeclimate
Usage
er run \
interactive --tty --rm \
env CODECLIMATE_CODE="$PWD" \
volume "$PWD":/code \
volume /var/run/docker.sock:/var/run/docker.sock \
volume /tmp/cc:/tmp/cc \
declimate/codeclimate help
Packages

The above is very transparent. It's clear what's happening, and any changes required to work with your specific Docker setup can be discovered easily. That said, it can be unwieldy to invoke such a command on a regular basis.

For this reason, we also provide packages that include a small wrapper script for the above invocation:

OS X
 tap codeclimate/formulae
 install codeclimate

To update the brew package, use brew update first:

 update
 upgrade codeclimate
Anywhere
 -L https://github.com/codeclimate/codeclimate/archive/master.tar.gz | tar xvz
odeclimate-* && sudo make install

To upgrade to a newer version, just run those steps again.

Commands

A list of available commands is accessible by running codeclimate or codeclimate help.

declimate help

lable commands:
analyze [-f format] [-e engine(:channel)] [--dev] [path]
console
engines:install
engines:list
help
validate-config
version

The following is a brief explanation of each available command.

Environment Variables
Copyright

See LICENSE


This work is supported by the National Institutes of Health's National Center for Advancing Translational Sciences, Grant Number U24TR002306. This work is solely the responsibility of the creators and does not necessarily represent the official views of the National Institutes of Health.