@@ -218,77 +218,77 @@ describe('lib/rules/validate-jsdoc/enforce-existence', function () {
218218 ] ) ;
219219 } ) ;
220220
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' ] } } ) ;
223223
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 ( ) {
245245 /** @returns {number }*/
246246 var nestedHasReturn = function ( ) {
247247 return 1 ;
248248 } ;
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+ } ;
257257 var functionalExpressionNoReturn = function ( ) {
258258 var nestedHasReturn = function ( ) {
259259 return 1 ;
260260 } ;
261261 } ;
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+ }
283270 function noReturn ( ) {
271+ /** @returns {number }*/
284272 function nestedHasReturn ( ) {
285273 return 1 ;
286274 }
287275 }
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+ } ) ;
294294} ) ;
0 commit comments