mirror of
https://github.com/github/codeql.git
synced 2026-05-05 05:35:13 +02:00
JS: Update OK-style comments to $-style
This commit is contained in:
@@ -1,36 +1,36 @@
|
||||
angular.module('app1', [])
|
||||
.run(['dep1', 'dep2', 'dep3', function(dep1, dep3, dep2) {}]); // NOT OK
|
||||
.run(['dep1', 'dep2', 'dep3', function(dep1, dep3, dep2) {}]); // $ Alert
|
||||
|
||||
angular.module('app2')
|
||||
.directive('mydirective', [ '$compile', function($compile, $http) { // NOT OK
|
||||
.directive('mydirective', [ '$compile', function($compile, $http) { // $ Alert
|
||||
// ...
|
||||
}]);
|
||||
|
||||
angular.module('app1', [])
|
||||
.run(['dep1', 'dep2', 'dep3', function(dep1, dep2, dep3) {}]); // OK
|
||||
.run(['dep1', 'dep2', 'dep3', function(dep1, dep2, dep3) {}]);
|
||||
|
||||
angular.module('app2')
|
||||
.directive('mydirective', [ '$compile', '$http', function($compile, $http) { // OK
|
||||
.directive('mydirective', [ '$compile', '$http', function($compile, $http) {
|
||||
// ...
|
||||
}]);
|
||||
|
||||
angular.module('app3', [])
|
||||
.run(function(dep1, dep3) {}); // OK
|
||||
.run(function(dep1, dep3) {});
|
||||
|
||||
angular.module('app4')
|
||||
.directive('mydirective', function($compile, $http) { // OK
|
||||
.directive('mydirective', function($compile, $http) {
|
||||
// ...
|
||||
});
|
||||
|
||||
angular.module('app5')
|
||||
.directive('mydirective', [ 'fully.qualified.name', function(name) { // OK
|
||||
.directive('mydirective', [ 'fully.qualified.name', function(name) {
|
||||
// ...
|
||||
}])
|
||||
|
||||
angular.module('app6')
|
||||
.directive('mydirective', function() {
|
||||
return {
|
||||
link: function (scope, element, attrs) { // OK
|
||||
link: function (scope, element, attrs) {
|
||||
}
|
||||
};
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user