From f53728e482b7b5be1a9c12706d810a2f7ba70d19 Mon Sep 17 00:00:00 2001 From: Simon Brunel Date: Sat, 6 Jan 2018 17:48:15 +0100 Subject: [PATCH] Attempt to handle the shareable config in CC --- .codeclimate.yml | 31 +++++++++++++++++++------------ 1 file changed, 19 insertions(+), 12 deletions(-) diff --git a/.codeclimate.yml b/.codeclimate.yml index bd32376436b..293f82d5549 100644 --- a/.codeclimate.yml +++ b/.codeclimate.yml @@ -1,3 +1,10 @@ +prepare: + fetch: + # WORKAROUND: CodeClimate doesn't support (custom) shareable ESLint config so let's fetch + # our dedicated one that only enables relevant rules (ie. complexity, max-statements, etc.) + # https://github.com/codeclimate/codeclimate/issues/480 + - url: 'https://raw.githubusercontent.com/chartjs/eslint-config-chartjs/master/.eslintrc.cc.yml' + path: '.eslintrc.yml' engines: duplication: enabled: true @@ -6,20 +13,20 @@ engines: - javascript eslint: enabled: true - channel: "eslint-4" + channel: 'eslint-4' fixme: enabled: true ratings: paths: - - "src/**/*.js" + - 'src/**/*.js' exclude_paths: -- '.github/' -- 'dist/' -- 'test/' -- 'docs/' -- 'samples/' -- 'scripts/' -- '**.md' -- '**.json' -- 'gulpfile.js' -- 'karma.conf.js' + - '.github/' + - 'dist/' + - 'test/' + - 'docs/' + - 'samples/' + - 'scripts/' + - '**.md' + - '**.json' + - 'gulpfile.js' + - 'karma.conf.js'