mirror of
https://github.com/pa11y/pa11y-dashboard.git
synced 2025-09-24 14:21:13 +00:00
Fix JSHint errors
This commit is contained in:
3
.jscsrc
3
.jscsrc
@@ -83,7 +83,6 @@
|
||||
"excludeFiles": [
|
||||
"coverage",
|
||||
"node_modules",
|
||||
"public/js/site.min.js",
|
||||
"public/js/vendor"
|
||||
"public/js"
|
||||
]
|
||||
}
|
||||
|
@@ -1,4 +1,3 @@
|
||||
coverage
|
||||
node_modules
|
||||
public/js/site.min.js
|
||||
public/js/vendor
|
||||
public/js
|
||||
|
2
app.js
2
app.js
@@ -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 + '/';
|
||||
}
|
||||
|
||||
|
@@ -15,7 +15,6 @@
|
||||
|
||||
'use strict';
|
||||
|
||||
var _ = require('underscore');
|
||||
var presentTask = require('../../view/presenter/task');
|
||||
|
||||
module.exports = route;
|
||||
|
@@ -15,7 +15,6 @@
|
||||
|
||||
'use strict';
|
||||
|
||||
var _ = require('underscore');
|
||||
var presentTask = require('../../view/presenter/task');
|
||||
var getStandards = require('../../data/standards');
|
||||
|
||||
|
@@ -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
|
||||
|
@@ -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();
|
||||
}
|
||||
|
@@ -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
|
||||
|
@@ -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);
|
||||
|
@@ -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');
|
||||
|
@@ -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');
|
||||
|
@@ -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');
|
||||
|
@@ -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');
|
||||
|
@@ -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');
|
||||
|
@@ -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 () {
|
||||
});
|
||||
|
||||
});
|
||||
|
||||
|
@@ -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');
|
||||
|
@@ -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');
|
||||
|
@@ -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');
|
||||
|
@@ -15,7 +15,6 @@
|
||||
|
||||
'use strict';
|
||||
|
||||
var _ = require('underscore');
|
||||
var presentIgnoreRules = require('./ignore');
|
||||
var presentResult = require('./result');
|
||||
|
||||
|
Reference in New Issue
Block a user