Skip to content

Commit 481508d

Browse files
committed
style: remove ws and enfore no-trailing-ws jscs rule
1 parent 12e4d3a commit 481508d

29 files changed

Lines changed: 67 additions & 67 deletions

.jscs.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
{
2-
"disallowKeywords": ["with"]
2+
"disallowKeywords": ["with"],
3+
"disallowTrailingWhitespace": true
34
}

.jscs.json.todo

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@
1313
"disallowImplicitTypeConversion": ["string"],
1414
"disallowMultipleLineBreaks": true,
1515
"disallowKeywordsOnNewLine": ["else"],
16-
"disallowTrailingWhitespace": true,
1716
"requireLineFeedAtFileEnd": true,
1817
"validateJSDoc": {
1918
"checkParamNames": true,

src/Angular.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -92,13 +92,13 @@
9292
* @name ng
9393
* @module ng
9494
* @description
95-
*
95+
*
9696
* # ng (core module)
9797
* The ng module is loaded by default when an AngularJS application is started. The module itself
9898
* contains the essential components for an AngularJS application to function. The table below
9999
* lists a high level breakdown of each of the services/factories, filters, directives and testing
100100
* components available within this core module.
101-
*
101+
*
102102
* <div doc-module-components="ng"></div>
103103
*/
104104

src/AngularPublic.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,10 @@
33
/* global
44
angularModule: true,
55
version: true,
6-
6+
77
$LocaleProvider,
88
$CompileProvider,
9-
9+
1010
htmlAnchorDirective,
1111
inputDirective,
1212
inputDirective,

src/auto/injector.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -350,7 +350,7 @@ function annotate(fn) {
350350
*
351351
* - `Object`: then it should have a `$get` method. The `$get` method will be invoked using
352352
* {@link auto.$injector#invoke $injector.invoke()} when an instance needs to be created.
353-
* - `Constructor`: a new instance of the provider will be created using
353+
* - `Constructor`: a new instance of the provider will be created using
354354
* {@link auto.$injector#instantiate $injector.instantiate()}, then treated as `object`.
355355
*
356356
* @returns {Object} registered provider instance
@@ -478,9 +478,9 @@ function annotate(fn) {
478478
* var Ping = function($http) {
479479
* this.$http = $http;
480480
* };
481-
*
481+
*
482482
* Ping.$inject = ['$http'];
483-
*
483+
*
484484
* Ping.prototype.send = function() {
485485
* return this.$http.get('/ping');
486486
* };

src/ng/anchorScroll.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
*
1616
* It also watches the `$location.hash()` and scrolls whenever it changes to match any anchor.
1717
* This can be disabled by calling `$anchorScrollProvider.disableAutoScrolling()`.
18-
*
18+
*
1919
* @example
2020
<example>
2121
<file name="index.html">
@@ -30,7 +30,7 @@
3030
// set the location.hash to the id of
3131
// the element you wish to scroll to.
3232
$location.hash('bottom');
33-
33+
3434
// call $anchorScroll()
3535
$anchorScroll();
3636
};

src/ng/animate.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ var $animateMinErr = minErr('$animate');
1717
*/
1818
var $AnimateProvider = ['$provide', function($provide) {
1919

20-
20+
2121
this.$$selectors = {};
2222

2323

@@ -153,7 +153,7 @@ var $AnimateProvider = ['$provide', function($provide) {
153153
* @description Moves the position of the provided element within the DOM to be placed
154154
* either after the `after` element or inside of the `parent` element. Once complete, the
155155
* done() callback will be fired (if provided).
156-
*
156+
*
157157
* @param {jQuery/jqLite element} element the element which will be moved around within the
158158
* DOM
159159
* @param {jQuery/jqLite element} parent the parent element where the element will be

src/ng/cacheFactory.js

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@
66
*
77
* @description
88
* Factory that constructs cache objects and gives access to them.
9-
*
9+
*
1010
* ```js
11-
*
11+
*
1212
* var cache = $cacheFactory('cacheId');
1313
* expect($cacheFactory.get('cacheId')).toBe(cache);
1414
* expect($cacheFactory.get('noSuchCacheId')).not.toBeDefined();
@@ -17,8 +17,8 @@
1717
* cache.put("another key", "another value");
1818
*
1919
* // We've specified no options on creation
20-
* expect(cache.info()).toEqual({id: 'cacheId', size: 2});
21-
*
20+
* expect(cache.info()).toEqual({id: 'cacheId', size: 2});
21+
*
2222
* ```
2323
*
2424
*
@@ -199,7 +199,7 @@ function $CacheFactoryProvider() {
199199
* The first time a template is used, it is loaded in the template cache for quick retrieval. You
200200
* can load templates directly into the cache in a `script` tag, or by consuming the
201201
* `$templateCache` service directly.
202-
*
202+
*
203203
* Adding via the `script` tag:
204204
* ```html
205205
* <html ng-app>
@@ -211,29 +211,29 @@ function $CacheFactoryProvider() {
211211
* ...
212212
* </html>
213213
* ```
214-
*
214+
*
215215
* **Note:** the `script` tag containing the template does not need to be included in the `head` of
216216
* the document, but it must be below the `ng-app` definition.
217-
*
217+
*
218218
* Adding via the $templateCache service:
219-
*
219+
*
220220
* ```js
221221
* var myApp = angular.module('myApp', []);
222222
* myApp.run(function($templateCache) {
223223
* $templateCache.put('templateId.html', 'This is the content of the template');
224224
* });
225225
* ```
226-
*
226+
*
227227
* To retrieve the template later, simply use it in your HTML:
228228
* ```html
229229
* <div ng-include=" 'templateId.html' "></div>
230230
* ```
231-
*
231+
*
232232
* or get it via Javascript:
233233
* ```js
234234
* $templateCache.get('templateId.html')
235235
* ```
236-
*
236+
*
237237
* See {@link ng.$cacheFactory $cacheFactory}.
238238
*
239239
*/

src/ng/directive/booleanAttrs.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,7 @@
191191
</example>
192192
*
193193
* @element INPUT
194-
* @param {expression} ngDisabled If the {@link guide/expression expression} is truthy,
194+
* @param {expression} ngDisabled If the {@link guide/expression expression} is truthy,
195195
* then special attribute "disabled" will be set on the element
196196
*/
197197

@@ -226,7 +226,7 @@
226226
</example>
227227
*
228228
* @element INPUT
229-
* @param {expression} ngChecked If the {@link guide/expression expression} is truthy,
229+
* @param {expression} ngChecked If the {@link guide/expression expression} is truthy,
230230
* then special attribute "checked" will be set on the element
231231
*/
232232

@@ -261,7 +261,7 @@
261261
</example>
262262
*
263263
* @element INPUT
264-
* @param {expression} ngReadonly If the {@link guide/expression expression} is truthy,
264+
* @param {expression} ngReadonly If the {@link guide/expression expression} is truthy,
265265
* then special attribute "readonly" will be set on the element
266266
*/
267267

@@ -280,7 +280,7 @@
280280
* The `ngSelected` directive solves this problem for the `selected` atttribute.
281281
* This complementary directive is not removed by the browser and so provides
282282
* a permanent reliable place to store the binding information.
283-
*
283+
*
284284
* @example
285285
<example>
286286
<file name="index.html">
@@ -300,7 +300,7 @@
300300
</example>
301301
*
302302
* @element OPTION
303-
* @param {expression} ngSelected If the {@link guide/expression expression} is truthy,
303+
* @param {expression} ngSelected If the {@link guide/expression expression} is truthy,
304304
* then special attribute "selected" will be set on the element
305305
*/
306306

@@ -336,7 +336,7 @@
336336
</example>
337337
*
338338
* @element DETAILS
339-
* @param {expression} ngOpen If the {@link guide/expression expression} is truthy,
339+
* @param {expression} ngOpen If the {@link guide/expression expression} is truthy,
340340
* then special attribute "open" will be set on the element
341341
*/
342342

src/ng/directive/form.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ var nullFormCtrl = {
3636
* - `pattern`
3737
* - `required`
3838
* - `url`
39-
*
39+
*
4040
* @description
4141
* `FormController` keeps track of all its controls and nested forms as well as state of them,
4242
* such as being valid/invalid or dirty/pristine.

0 commit comments

Comments
 (0)