# Analyze project code quality with Code Climate CLIThis example shows how to run [Code Climate CLI][cli] on your code by using\GitLab CI and Docker.First, you need GitLab Runner with [docker-in-docker executor](../docker/using_docker_build.md#use-docker-in-docker-executor).Once you setup the Runner add new job to `.gitlab-ci.yml`:```yamlcodeclimate:image:docker:latestvariables:DOCKER_DRIVER:overlayservices:-docker:dindscript:-docker pull codeclimate/codeclimate-docker run --env CODECLIMATE_CODE="$PWD" --volume "$PWD":/code --volume /var/run/docker.sock:/var/run/docker.sock --volume /tmp/cc:/tmp/cc codeclimate/codeclimate init-docker run --env CODECLIMATE_CODE="$PWD" --volume "$PWD":/code --volume /var/run/docker.sock:/var/run/docker.sock --volume /tmp/cc:/tmp/cc codeclimate/codeclimate analyze -f json > codeclimate.jsonartifacts:paths:[codeclimate.json]```This will create a `codeclimate` job in your CI pipeline and will allow you todownload and analyze the report artifact in JSON format.[cli]:https://github.com/codeclimate/codeclimate