Fix Max cyclomatic complexity value

This commit is contained in:
Raul Ochoa 2015-03-16 00:36:38 +01:00
parent 645a2cd442
commit b6d3785599
3 changed files with 3 additions and 1 deletions

View File

@ -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" : 6, // {int} Max cyclomatic complexity per function
"maxcomplexity" : 8, // {int} Max cyclomatic complexity per function
"maxlen" : 120, // {int} Max number of characters per line
//
// // Relaxing

View File

@ -547,6 +547,7 @@ module.exports = function(redisPool) {
);
};
// jshint maxcomplexity:10
/**
* Whitelist input and get database name & default geometry type from
* subdomain/user metadata held in CartoDB Redis

View File

@ -89,6 +89,7 @@ o._redisCmd = function(redisFunc, redisArgs, callback) {
};
var _reValidIdentifier = /^[a-zA-Z][0-9a-zA-Z_]*$/;
// jshint maxcomplexity:15
o._checkInvalidTemplate = function(template) {
if ( template.version != '0.0.1' ) {
return new Error("Unsupported template version " + template.version);