More strict cyclomatic complexity check
This commit is contained in:
parent
9c6c63c167
commit
116da64e5c
@ -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
|
||||||
|
@ -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);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user