mirror of
https://github.com/pa11y/pa11y-dashboard.git
synced 2025-09-24 22:31:15 +00:00
Fix JSHint errors
This commit is contained in:
3
.jscsrc
3
.jscsrc
@@ -83,7 +83,6 @@
|
|||||||
"excludeFiles": [
|
"excludeFiles": [
|
||||||
"coverage",
|
"coverage",
|
||||||
"node_modules",
|
"node_modules",
|
||||||
"public/js/site.min.js",
|
"public/js"
|
||||||
"public/js/vendor"
|
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
@@ -1,4 +1,3 @@
|
|||||||
coverage
|
coverage
|
||||||
node_modules
|
node_modules
|
||||||
public/js/site.min.js
|
public/js
|
||||||
public/js/vendor
|
|
||||||
|
2
app.js
2
app.js
@@ -29,7 +29,7 @@ function initApp (config, callback) {
|
|||||||
config = defaultConfig(config);
|
config = defaultConfig(config);
|
||||||
|
|
||||||
var webserviceUrl = config.webservice;
|
var webserviceUrl = config.webservice;
|
||||||
if (typeof webserviceUrl == 'object') {
|
if (typeof webserviceUrl === 'object') {
|
||||||
webserviceUrl = 'http://' + webserviceUrl.host + ':' + webserviceUrl.port + '/';
|
webserviceUrl = 'http://' + webserviceUrl.host + ':' + webserviceUrl.port + '/';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -15,7 +15,6 @@
|
|||||||
|
|
||||||
'use strict';
|
'use strict';
|
||||||
|
|
||||||
var _ = require('underscore');
|
|
||||||
var presentTask = require('../../view/presenter/task');
|
var presentTask = require('../../view/presenter/task');
|
||||||
|
|
||||||
module.exports = route;
|
module.exports = route;
|
||||||
|
@@ -15,7 +15,6 @@
|
|||||||
|
|
||||||
'use strict';
|
'use strict';
|
||||||
|
|
||||||
var _ = require('underscore');
|
|
||||||
var presentTask = require('../../view/presenter/task');
|
var presentTask = require('../../view/presenter/task');
|
||||||
var getStandards = require('../../data/standards');
|
var getStandards = require('../../data/standards');
|
||||||
|
|
||||||
|
@@ -1,9 +1,5 @@
|
|||||||
'use strict';
|
'use strict';
|
||||||
|
|
||||||
var _ = require('underscore');
|
|
||||||
var presentTask = require('../../view/presenter/task');
|
|
||||||
var getStandards = require('../../data/standards');
|
|
||||||
|
|
||||||
module.exports = route;
|
module.exports = route;
|
||||||
|
|
||||||
// Route definition
|
// Route definition
|
||||||
|
@@ -21,7 +21,7 @@ module.exports = route;
|
|||||||
function route (app) {
|
function route (app) {
|
||||||
|
|
||||||
app.express.get('/:id/run', function (req, res, next) {
|
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) {
|
if (err) {
|
||||||
return next();
|
return next();
|
||||||
}
|
}
|
||||||
|
@@ -1,9 +1,5 @@
|
|||||||
'use strict';
|
'use strict';
|
||||||
|
|
||||||
var _ = require('underscore');
|
|
||||||
var presentTask = require('../../view/presenter/task');
|
|
||||||
var getStandards = require('../../data/standards');
|
|
||||||
|
|
||||||
module.exports = route;
|
module.exports = route;
|
||||||
|
|
||||||
// Route definition
|
// Route definition
|
||||||
|
@@ -22,7 +22,7 @@ module.exports = createWebserviceClient;
|
|||||||
// Create a webservice client
|
// Create a webservice client
|
||||||
function createWebserviceClient (config) {
|
function createWebserviceClient (config) {
|
||||||
var webserviceUrl = config.webservice;
|
var webserviceUrl = config.webservice;
|
||||||
if (typeof webserviceUrl == 'object') {
|
if (typeof webserviceUrl === 'object') {
|
||||||
webserviceUrl = 'http://' + webserviceUrl.host + ':' + webserviceUrl.port + '/';
|
webserviceUrl = 'http://' + webserviceUrl.host + ':' + webserviceUrl.port + '/';
|
||||||
}
|
}
|
||||||
return createClient(webserviceUrl);
|
return createClient(webserviceUrl);
|
||||||
|
@@ -13,8 +13,6 @@
|
|||||||
// You should have received a copy of the GNU General Public License
|
// You should have received a copy of the GNU General Public License
|
||||||
// along with pa11y-dashboard. If not, see <http://www.gnu.org/licenses/>.
|
// along with pa11y-dashboard. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
/* global beforeEach, describe, it */
|
|
||||||
/* jshint maxlen: false, maxstatements: false */
|
|
||||||
'use strict';
|
'use strict';
|
||||||
|
|
||||||
var assert = require('proclaim');
|
var assert = require('proclaim');
|
||||||
|
@@ -13,8 +13,6 @@
|
|||||||
// You should have received a copy of the GNU General Public License
|
// You should have received a copy of the GNU General Public License
|
||||||
// along with pa11y-dashboard. If not, see <http://www.gnu.org/licenses/>.
|
// along with pa11y-dashboard. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
/* global beforeEach, describe, it */
|
|
||||||
/* jshint maxlen: false, maxstatements: false */
|
|
||||||
'use strict';
|
'use strict';
|
||||||
|
|
||||||
var assert = require('proclaim');
|
var assert = require('proclaim');
|
||||||
|
@@ -13,8 +13,6 @@
|
|||||||
// You should have received a copy of the GNU General Public License
|
// You should have received a copy of the GNU General Public License
|
||||||
// along with pa11y-dashboard. If not, see <http://www.gnu.org/licenses/>.
|
// along with pa11y-dashboard. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
/* global beforeEach, describe, it */
|
|
||||||
/* jshint maxlen: false, maxstatements: false */
|
|
||||||
'use strict';
|
'use strict';
|
||||||
|
|
||||||
var assert = require('proclaim');
|
var assert = require('proclaim');
|
||||||
|
@@ -13,8 +13,6 @@
|
|||||||
// You should have received a copy of the GNU General Public License
|
// You should have received a copy of the GNU General Public License
|
||||||
// along with pa11y-dashboard. If not, see <http://www.gnu.org/licenses/>.
|
// along with pa11y-dashboard. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
/* global beforeEach, describe, it */
|
|
||||||
/* jshint maxlen: false, maxstatements: false */
|
|
||||||
'use strict';
|
'use strict';
|
||||||
|
|
||||||
var assert = require('proclaim');
|
var assert = require('proclaim');
|
||||||
|
@@ -13,8 +13,6 @@
|
|||||||
// You should have received a copy of the GNU General Public License
|
// You should have received a copy of the GNU General Public License
|
||||||
// along with pa11y-dashboard. If not, see <http://www.gnu.org/licenses/>.
|
// along with pa11y-dashboard. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
/* global beforeEach, describe, it */
|
|
||||||
/* jshint maxlen: false, maxstatements: false */
|
|
||||||
'use strict';
|
'use strict';
|
||||||
|
|
||||||
var assert = require('proclaim');
|
var assert = require('proclaim');
|
||||||
|
@@ -13,8 +13,6 @@
|
|||||||
// You should have received a copy of the GNU General Public License
|
// You should have received a copy of the GNU General Public License
|
||||||
// along with pa11y-dashboard. If not, see <http://www.gnu.org/licenses/>.
|
// along with pa11y-dashboard. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
/* global beforeEach, describe, it */
|
|
||||||
/* jshint maxlen: false, maxstatements: false */
|
|
||||||
'use strict';
|
'use strict';
|
||||||
|
|
||||||
var assert = require('proclaim');
|
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
|
// You should have received a copy of the GNU General Public License
|
||||||
// along with pa11y-dashboard. If not, see <http://www.gnu.org/licenses/>.
|
// along with pa11y-dashboard. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
/* global beforeEach, describe, it */
|
|
||||||
/* jshint maxlen: false, maxstatements: false */
|
|
||||||
'use strict';
|
'use strict';
|
||||||
|
|
||||||
var assert = require('proclaim');
|
var assert = require('proclaim');
|
||||||
|
@@ -13,8 +13,6 @@
|
|||||||
// You should have received a copy of the GNU General Public License
|
// You should have received a copy of the GNU General Public License
|
||||||
// along with pa11y-dashboard. If not, see <http://www.gnu.org/licenses/>.
|
// along with pa11y-dashboard. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
/* global beforeEach, describe, it */
|
|
||||||
/* jshint maxlen: false, maxstatements: false */
|
|
||||||
'use strict';
|
'use strict';
|
||||||
|
|
||||||
var assert = require('proclaim');
|
var assert = require('proclaim');
|
||||||
|
@@ -13,8 +13,6 @@
|
|||||||
// You should have received a copy of the GNU General Public License
|
// You should have received a copy of the GNU General Public License
|
||||||
// along with pa11y-dashboard. If not, see <http://www.gnu.org/licenses/>.
|
// along with pa11y-dashboard. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
/* global afterEach, before */
|
|
||||||
/* jshint maxlen: false, maxstatements: false */
|
|
||||||
'use strict';
|
'use strict';
|
||||||
|
|
||||||
var config = require('../../config/test.json');
|
var config = require('../../config/test.json');
|
||||||
|
@@ -15,7 +15,6 @@
|
|||||||
|
|
||||||
'use strict';
|
'use strict';
|
||||||
|
|
||||||
var _ = require('underscore');
|
|
||||||
var presentIgnoreRules = require('./ignore');
|
var presentIgnoreRules = require('./ignore');
|
||||||
var presentResult = require('./result');
|
var presentResult = require('./result');
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user