From ea3cf14ef85994aa554158eaf284b057022837d2 Mon Sep 17 00:00:00 2001 From: Steve Gravrock Date: Wed, 25 Oct 2017 08:58:38 -0700 Subject: [PATCH] Exclude specs from CodeClimate ratings CodeClimate makes recommendations that, while helpful for production code, can be harmful for test code. In particular, following its recommendations would lead us to aggressively de-duplicate even small amounts of test setup code. That can create unwanted coupling, obscure the intent of the tests, and make it harder to maintain tests as their setup needs diverge. --- .codeclimate.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.codeclimate.yml b/.codeclimate.yml index f1f9d9c6..468ed1e4 100644 --- a/.codeclimate.yml +++ b/.codeclimate.yml @@ -4,6 +4,7 @@ ratings: paths: - "src/**/*.js" exclude_paths: +- "spec/**/*.js" - "lib/**" - "dist/*" - "grunt/**"