ESLint glob pattern not matching files for lint
The file glob pattern in package.json */static openstack_dashboard/dashboards/*/static has been changed to openstack_dashboard/static and horizon/static as only then does it run lint on the openstack_dashboard folder. Fixed issues in files in openstack_dashboard that have unaddressed warnings. Change-Id: I1ae1346281f028821afae159d471e3e87b2d8d6d Closes-Bug: #1490704
This commit is contained in:
@@ -16,12 +16,12 @@
|
||||
(function () {
|
||||
'use strict';
|
||||
|
||||
describe('horizon.app.core.metadata.modal', function () {
|
||||
describe('horizon.app.core.metadata.modal', function() {
|
||||
|
||||
describe('service.modalservice', function(){
|
||||
describe('service.modalservice', function() {
|
||||
var modalService, metadataService, $modal;
|
||||
|
||||
beforeEach(module('ui.bootstrap', function($provide){
|
||||
beforeEach(module('ui.bootstrap', function($provide) {
|
||||
$modal = jasmine.createSpyObj('$modal', ['open']);
|
||||
|
||||
$provide.value('$modal', $modal);
|
||||
@@ -31,7 +31,7 @@
|
||||
$provide.constant('horizon.app.core.basePath', '/a/sample/path/');
|
||||
}));
|
||||
|
||||
beforeEach(module('horizon.app.core.metadata', function($provide){
|
||||
beforeEach(module('horizon.app.core.metadata', function($provide) {
|
||||
metadataService = jasmine.createSpyObj('metadataService', ['getMetadata', 'getNamespaces']);
|
||||
$provide.value('horizon.app.core.metadata.service', metadataService);
|
||||
}));
|
||||
|
@@ -329,7 +329,7 @@
|
||||
return apiService.get('/api/nova/aggregates/' + id + '/extra-specs/')
|
||||
.error(function () {
|
||||
toastService.add('error', gettext('Unable to retrieve the aggregate extra specs.'));
|
||||
});
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
|
@@ -18,6 +18,7 @@
|
||||
|
||||
var forEach = angular.forEach;
|
||||
|
||||
/* eslint-disable max-len */
|
||||
/**
|
||||
* @ngdoc factory
|
||||
* @name horizon.app.core.workflow.factory:horizon.app.core.workflow.decorator
|
||||
@@ -43,6 +44,7 @@
|
||||
* | {@link horizon.app.core.workflow.factory:horizon.app.core.workflow.decorator `horizon.app.core.workflow.decorator`} |
|
||||
*
|
||||
*/
|
||||
/* eslint-ensable max-len */
|
||||
angular
|
||||
.module('horizon.app.core.workflow')
|
||||
.factory('horizon.app.core.workflow.decorator', dashboardWorkflowDecorator);
|
||||
|
@@ -16,6 +16,7 @@
|
||||
(function () {
|
||||
'use strict';
|
||||
|
||||
/* eslint-disable max-len */
|
||||
/**
|
||||
* @ngdoc overview
|
||||
* @name horizon.app.core.workflow
|
||||
@@ -31,6 +32,7 @@
|
||||
* | {@link horizon.app.core.workflow.factory:dashboardWorkflowDecorator `dashboardWorkflowDecorator`} |
|
||||
*
|
||||
*/
|
||||
/* eslint-enable max-len */
|
||||
angular.module('horizon.app.core.workflow', []);
|
||||
|
||||
})();
|
||||
|
@@ -23,7 +23,7 @@
|
||||
"scripts": {
|
||||
"postinstall": "if [ ! -d .venv ]; then tox -epy27 --notest; fi",
|
||||
"test": "karma start horizon/karma.conf.js --single-run && karma start openstack_dashboard/karma.conf.js --single-run",
|
||||
"lint": "eslint --no-color */static openstack_dashboard/dashboards/*/static"
|
||||
"lint": "eslint --no-color openstack_dashboard/static horizon/static openstack_dashboard/dashboards/*/static"
|
||||
},
|
||||
"dependencies": {}
|
||||
}
|
||||
|
Reference in New Issue
Block a user