summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2017-06-21 17:44:52 +0200
committerDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2017-06-21 17:44:52 +0200
commit3ab088a2b83c7e87c060c798acac7e9f87f91918 (patch)
tree438a0ff7fc952d85a2b1d0554f10c60bf76aaef3
parent824415889d5cf48a803a0cb6b0bdb4ece8389ec6 (diff)
downloadgitlab-shell-3ab088a2b83c7e87c060c798acac7e9f87f91918.tar.gz
Add .codeclimate.yml config to the project
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
-rw-r--r--.codeclimate.yml19
-rw-r--r--.gitlab-ci.yml1
2 files changed, 19 insertions, 1 deletions
diff --git a/.codeclimate.yml b/.codeclimate.yml
new file mode 100644
index 0000000..172b2e3
--- /dev/null
+++ b/.codeclimate.yml
@@ -0,0 +1,19 @@
+---
+engines:
+ bundler-audit:
+ enabled: true
+ duplication:
+ enabled: true
+ config:
+ languages:
+ - ruby
+ fixme:
+ enabled: true
+ rubocop:
+ enabled: true
+exclude_paths:
+- spec/
+- lib/vendor/
+- go/vendor/
+- tmp/
+- coverage/
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 532e7db..20bd7ef 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -80,7 +80,6 @@ codeclimate:
- docker:dind
script:
- 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.json
artifacts:
paths: [codeclimate.json]