@@ -218,77 +218,77 @@ describe('lib/rules/validate-jsdoc/enforce-existence', function () {
218
218
] ) ;
219
219
} ) ;
220
220
221
- describe ( 'with allExcept paramless-procedures' , function ( ) {
222
- checker . rules ( { enforceExistence : { allExcept : [ 'paramless-procedures' ] } } ) ;
221
+ describe ( 'with allExcept paramless-procedures' , function ( ) {
222
+ checker . rules ( { enforceExistence : { allExcept : [ 'paramless-procedures' ] } } ) ;
223
223
224
- checker . cases ( [
225
- /* jshint ignore:start */
226
- {
227
- it : 'should not report jsdocs absence for function expressions without parameters' ,
228
- code : function ( ) {
229
- var functionalExpression = function ( ) {
230
- } ;
231
- }
232
- } , {
233
- it : 'should not report jsdocs absence for function declarations without parameters' ,
234
- code : function ( ) {
235
- function func ( ) {
236
- }
237
- }
238
- } , {
239
- it : 'should not report jsdocs absence for function expressions with undefined returns' ,
240
- code : function ( ) {
241
- var functionalExpression = function ( ) {
242
- return ;
243
- } ;
244
- var functionalExpressionNoReturn = function ( ) {
224
+ checker . cases ( [
225
+ /* jshint ignore:start */
226
+ {
227
+ it : 'should not report jsdocs absence for function expressions without parameters' ,
228
+ code : function ( ) {
229
+ var functionalExpression = function ( ) {
230
+ } ;
231
+ }
232
+ } , {
233
+ it : 'should not report jsdocs absence for function declarations without parameters' ,
234
+ code : function ( ) {
235
+ function func ( ) {
236
+ }
237
+ }
238
+ } , {
239
+ it : 'should not report jsdocs absence for function expressions with undefined returns' ,
240
+ code : function ( ) {
241
+ var functionalExpression = function ( ) {
242
+ return ;
243
+ } ;
244
+ var functionalExpressionNoReturn = function ( ) {
245
245
/** @returns {number }*/
246
246
var nestedHasReturn = function ( ) {
247
247
return 1 ;
248
248
} ;
249
- } ;
250
- }
251
- } , {
252
- it : 'should report jsdocs absence for function expressions with defined returns' ,
253
- code : function ( ) {
254
- var functionalExpression = function ( ) {
255
- return false ;
256
- } ;
249
+ } ;
250
+ }
251
+ } , {
252
+ it : 'should report jsdocs absence for function expressions with defined returns' ,
253
+ code : function ( ) {
254
+ var functionalExpression = function ( ) {
255
+ return false ;
256
+ } ;
257
257
var functionalExpressionNoReturn = function ( ) {
258
258
var nestedHasReturn = function ( ) {
259
259
return 1 ;
260
260
} ;
261
261
} ;
262
- } ,
263
- errors : 2
264
- } , {
265
- it : 'should not report jsdocs absence for function declarations with undefined returns' ,
266
- code : function ( ) {
267
- function func ( ) {
268
- return ;
269
- }
270
- function noReturn ( ) {
271
- /** @returns {number }*/
272
- function nestedHasReturn ( ) {
273
- return 1 ;
274
- }
275
- }
276
- }
277
- } , {
278
- it : 'should report jsdocs absence for function declarations with defined returns' ,
279
- code : function ( ) {
280
- function func ( ) {
281
- return false ;
282
- }
262
+ } ,
263
+ errors : 2
264
+ } , {
265
+ it : 'should not report jsdocs absence for function declarations with undefined returns' ,
266
+ code : function ( ) {
267
+ function func ( ) {
268
+ return ;
269
+ }
283
270
function noReturn ( ) {
271
+ /** @returns {number }*/
284
272
function nestedHasReturn ( ) {
285
273
return 1 ;
286
274
}
287
275
}
288
- } ,
289
- errors : 2
290
- }
291
- /* jshint ignore:end */
292
- ] ) ;
293
- } ) ;
276
+ }
277
+ } , {
278
+ it : 'should report jsdocs absence for function declarations with defined returns' ,
279
+ code : function ( ) {
280
+ function func ( ) {
281
+ return false ;
282
+ }
283
+ function noReturn ( ) {
284
+ function nestedHasReturn ( ) {
285
+ return 1 ;
286
+ }
287
+ }
288
+ } ,
289
+ errors : 2
290
+ }
291
+ /* jshint ignore:end */
292
+ ] ) ;
293
+ } ) ;
294
294
} ) ;
0 commit comments