From 116da64e5ce5e21ec872162726c43ff8f379cd38 Mon Sep 17 00:00:00 2001 From: Raul Ochoa Date: Wed, 15 Jul 2015 15:10:59 +0200 Subject: [PATCH] More strict cyclomatic complexity check --- .jshintrc | 2 +- test/unit/cartodb/template_maps.test.js | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.jshintrc b/.jshintrc index 8972be0b..fa18ac74 100644 --- a/.jshintrc +++ b/.jshintrc @@ -31,7 +31,7 @@ // "maxparams" : false, // {int} Max number of formal params allowed per function // "maxdepth" : false, // {int} Max depth of nested blocks (within functions) // "maxstatements" : false, // {int} Max number statements per function - "maxcomplexity" : 8, // {int} Max cyclomatic complexity per function + "maxcomplexity" : 6, // {int} Max cyclomatic complexity per function "maxlen" : 120, // {int} Max number of characters per line // // // Relaxing diff --git a/test/unit/cartodb/template_maps.test.js b/test/unit/cartodb/template_maps.test.js index 1f9792d1..472d57b8 100644 --- a/test/unit/cartodb/template_maps.test.js +++ b/test/unit/cartodb/template_maps.test.js @@ -360,6 +360,7 @@ describe('template_maps', function() { }); it('instanciate templates', function() { + // jshint maxcomplexity:7 var tmap = new TemplateMaps(redis_pool); assert.ok(tmap);