From 345d3378e716bcf992a81dc2e22ddda0d46afe9b Mon Sep 17 00:00:00 2001 From: Trevor Livingston Date: Fri, 19 Sep 2014 11:52:54 -0500 Subject: [PATCH] updated jshint settings for complexity with switch statements --- .jshintrc | 2 +- lib/validator.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.jshintrc b/.jshintrc index 9776863..84c3ee3 100644 --- a/.jshintrc +++ b/.jshintrc @@ -65,5 +65,5 @@ "maxparams": 5, "maxdepth": 5, "maxstatements": 50, - "maxcomplexity": 10 + "maxcomplexity": 15 } diff --git a/lib/validator.js b/lib/validator.js index dd3b6a6..686f258 100644 --- a/lib/validator.js +++ b/lib/validator.js @@ -92,7 +92,7 @@ function coercion(parameter) { var fn; switch (parameter.type) { - case 'array': + case 'array' : fn = function (data) { var sep = pathsep(parameter.collectionFormat || 'csv'); return data.split(sep);