More strict cyclomatic complexity check

This commit is contained in:
Raul Ochoa 2015-07-15 15:10:59 +02:00
parent 9c6c63c167
commit 116da64e5c
2 changed files with 2 additions and 1 deletions

View File

@ -31,7 +31,7 @@
// "maxparams" : false, // {int} Max number of formal params allowed per function // "maxparams" : false, // {int} Max number of formal params allowed per function
// "maxdepth" : false, // {int} Max depth of nested blocks (within functions) // "maxdepth" : false, // {int} Max depth of nested blocks (within functions)
// "maxstatements" : false, // {int} Max number statements per function // "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 "maxlen" : 120, // {int} Max number of characters per line
// //
// // Relaxing // // Relaxing

View File

@ -360,6 +360,7 @@ describe('template_maps', function() {
}); });
it('instanciate templates', function() { it('instanciate templates', function() {
// jshint maxcomplexity:7
var tmap = new TemplateMaps(redis_pool); var tmap = new TemplateMaps(redis_pool);
assert.ok(tmap); assert.ok(tmap);