From fdf034724000a88147aa861294741d5ef37b2c0c Mon Sep 17 00:00:00 2001 From: Julian Lam Date: Wed, 13 Jan 2021 10:26:36 -0500 Subject: [PATCH] style: update codeclimate config to be less sensitive to duplicate code blocks After conversing with Dave from CodeClimate, he suggested these changes to adjust CodeClimate's detection so that it does not alert as frequently for code blocks that are similar, but functionally different. I also added a line to enforce the rule of threes, since CC often alerted only when two blocks were identical. --- .codeclimate.yml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/.codeclimate.yml b/.codeclimate.yml index 33d591df48..63c7d5cab1 100644 --- a/.codeclimate.yml +++ b/.codeclimate.yml @@ -17,6 +17,14 @@ checks: similar-code: config: threshold: 65 +plugins: + duplication: + enabled: true + config: + languages: + javascript: + mass_threshold: 110 + count_threshold: 3 exclude_paths: - "public/vendor/*" - "test/*" \ No newline at end of file