diff --git a/app.js b/app.js index 445e5389..fbac66fc 100755 --- a/app.js +++ b/app.js @@ -8,10 +8,8 @@ var _ = require('underscore'); var semver = require('semver'); const setICUEnvVariable = require('./lib/utils/icu-data-env-setter'); -// jshint undef:false var log = console.log.bind(console); var logError = console.error.bind(console); -// jshint undef:true var nodejsVersion = process.versions.node; const { engines } = require('./package.json'); diff --git a/lib/api/middlewares/error-middleware.js b/lib/api/middlewares/error-middleware.js index ffc64b2b..05d1bd49 100644 --- a/lib/api/middlewares/error-middleware.js +++ b/lib/api/middlewares/error-middleware.js @@ -5,8 +5,6 @@ const debug = require('debug')('windshaft:cartodb:error-middleware'); module.exports = function errorMiddleware (/* options */) { return function error (err, req, res, next) { - // jshint unused:false - // jshint maxcomplexity:9 var allErrors = Array.isArray(err) ? err : [err]; allErrors = populateLimitErrors(allErrors); @@ -115,7 +113,6 @@ module.exports.findStatusCode = findStatusCode; function statusFromErrorMessage (errMsg) { // Find an appropriate statusCode based on message - // jshint maxcomplexity:7 var statusCode = 400; if (errMsg.indexOf('permission denied') !== -1) { statusCode = 403; diff --git a/lib/backends/template-maps.js b/lib/backends/template-maps.js index e1e45c3e..9d09eb9d 100644 --- a/lib/backends/template-maps.js +++ b/lib/backends/template-maps.js @@ -83,7 +83,7 @@ TemplateMaps.prototype._redisCmd = function (redisFunc, redisArgs, callback) { var _reValidNameIdentifier = /^[a-z0-9][0-9a-z_-]*$/i; var _reValidPlaceholderIdentifier = /^[a-z][0-9a-z_]*$/i; -// jshint maxcomplexity:15 + TemplateMaps.prototype._checkInvalidTemplate = function (template) { if (template.version !== '0.0.1') { return new Error('Unsupported template version ' + template.version); diff --git a/lib/models/mapconfig/adapter/analysis-mapconfig-adapter.js b/lib/models/mapconfig/adapter/analysis-mapconfig-adapter.js index 29ffdabf..57fa8e95 100644 --- a/lib/models/mapconfig/adapter/analysis-mapconfig-adapter.js +++ b/lib/models/mapconfig/adapter/analysis-mapconfig-adapter.js @@ -15,7 +15,6 @@ function AnalysisMapConfigAdapter (analysisBackend) { module.exports = AnalysisMapConfigAdapter; AnalysisMapConfigAdapter.prototype.getMapConfig = function (user, requestMapConfig, params, context, callback) { - // jshint maxcomplexity:7 var self = this; if (!shouldAdaptLayers(requestMapConfig)) { diff --git a/test/unit/template-maps-test.js b/test/unit/template-maps-test.js index 57249be4..32bb0499 100644 --- a/test/unit/template-maps-test.js +++ b/test/unit/template-maps-test.js @@ -392,7 +392,6 @@ describe('template_maps', function () { }); it('instanciate templates', function () { - // jshint maxcomplexity:7 var tmap = new TemplateMaps(redisPool); assert.ok(tmap);