Fix JSHint errors

This commit is contained in:
Rowan Manning
2016-04-25 21:17:03 +01:00
parent d766029bbb
commit 90328cfa39
19 changed files with 44 additions and 76 deletions

View File

@@ -83,7 +83,6 @@
"excludeFiles": [
"coverage",
"node_modules",
"public/js/site.min.js",
"public/js/vendor"
"public/js"
]
}

View File

@@ -1,4 +1,3 @@
coverage
node_modules
public/js/site.min.js
public/js/vendor
public/js

2
app.js
View File

@@ -29,7 +29,7 @@ function initApp (config, callback) {
config = defaultConfig(config);
var webserviceUrl = config.webservice;
if (typeof webserviceUrl == 'object') {
if (typeof webserviceUrl === 'object') {
webserviceUrl = 'http://' + webserviceUrl.host + ':' + webserviceUrl.port + '/';
}

View File

@@ -15,7 +15,6 @@
'use strict';
var _ = require('underscore');
var presentTask = require('../../view/presenter/task');
module.exports = route;

View File

@@ -15,7 +15,6 @@
'use strict';
var _ = require('underscore');
var presentTask = require('../../view/presenter/task');
var getStandards = require('../../data/standards');

View File

@@ -1,9 +1,5 @@
'use strict';
var _ = require('underscore');
var presentTask = require('../../view/presenter/task');
var getStandards = require('../../data/standards');
module.exports = route;
// Route definition

View File

@@ -21,7 +21,7 @@ module.exports = route;
function route (app) {
app.express.get('/:id/run', function (req, res, next) {
app.webservice.task(req.params.id).run(function (err, task) {
app.webservice.task(req.params.id).run(function (err) {
if (err) {
return next();
}

View File

@@ -1,9 +1,5 @@
'use strict';
var _ = require('underscore');
var presentTask = require('../../view/presenter/task');
var getStandards = require('../../data/standards');
module.exports = route;
// Route definition

View File

@@ -22,7 +22,7 @@ module.exports = createWebserviceClient;
// Create a webservice client
function createWebserviceClient (config) {
var webserviceUrl = config.webservice;
if (typeof webserviceUrl == 'object') {
if (typeof webserviceUrl === 'object') {
webserviceUrl = 'http://' + webserviceUrl.host + ':' + webserviceUrl.port + '/';
}
return createClient(webserviceUrl);

View File

@@ -13,8 +13,6 @@
// You should have received a copy of the GNU General Public License
// along with pa11y-dashboard. If not, see <http://www.gnu.org/licenses/>.
/* global beforeEach, describe, it */
/* jshint maxlen: false, maxstatements: false */
'use strict';
var assert = require('proclaim');

View File

@@ -13,8 +13,6 @@
// You should have received a copy of the GNU General Public License
// along with pa11y-dashboard. If not, see <http://www.gnu.org/licenses/>.
/* global beforeEach, describe, it */
/* jshint maxlen: false, maxstatements: false */
'use strict';
var assert = require('proclaim');

View File

@@ -13,8 +13,6 @@
// You should have received a copy of the GNU General Public License
// along with pa11y-dashboard. If not, see <http://www.gnu.org/licenses/>.
/* global beforeEach, describe, it */
/* jshint maxlen: false, maxstatements: false */
'use strict';
var assert = require('proclaim');

View File

@@ -13,8 +13,6 @@
// You should have received a copy of the GNU General Public License
// along with pa11y-dashboard. If not, see <http://www.gnu.org/licenses/>.
/* global beforeEach, describe, it */
/* jshint maxlen: false, maxstatements: false */
'use strict';
var assert = require('proclaim');

View File

@@ -13,8 +13,6 @@
// You should have received a copy of the GNU General Public License
// along with pa11y-dashboard. If not, see <http://www.gnu.org/licenses/>.
/* global beforeEach, describe, it */
/* jshint maxlen: false, maxstatements: false */
'use strict';
var assert = require('proclaim');

View File

@@ -13,8 +13,6 @@
// You should have received a copy of the GNU General Public License
// along with pa11y-dashboard. If not, see <http://www.gnu.org/licenses/>.
/* global beforeEach, describe, it */
/* jshint maxlen: false, maxstatements: false */
'use strict';
var assert = require('proclaim');
@@ -132,4 +130,3 @@ describe('POST /<task-id>/edit', function () {
});
});

View File

@@ -13,8 +13,6 @@
// You should have received a copy of the GNU General Public License
// along with pa11y-dashboard. If not, see <http://www.gnu.org/licenses/>.
/* global beforeEach, describe, it */
/* jshint maxlen: false, maxstatements: false */
'use strict';
var assert = require('proclaim');

View File

@@ -13,8 +13,6 @@
// You should have received a copy of the GNU General Public License
// along with pa11y-dashboard. If not, see <http://www.gnu.org/licenses/>.
/* global beforeEach, describe, it */
/* jshint maxlen: false, maxstatements: false */
'use strict';
var assert = require('proclaim');

View File

@@ -13,8 +13,6 @@
// You should have received a copy of the GNU General Public License
// along with pa11y-dashboard. If not, see <http://www.gnu.org/licenses/>.
/* global afterEach, before */
/* jshint maxlen: false, maxstatements: false */
'use strict';
var config = require('../../config/test.json');

View File

@@ -15,7 +15,6 @@
'use strict';
var _ = require('underscore');
var presentIgnoreRules = require('./ignore');
var presentResult = require('./result');