File tree Expand file tree Collapse file tree 2 files changed +27
-1
lines changed Expand file tree Collapse file tree 2 files changed +27
-1
lines changed Original file line number Diff line number Diff line change @@ -178,7 +178,9 @@ export default iterateJsdoc(({
178
178
indent,
179
179
} ) => {
180
180
if ( context . options [ 0 ] === 'never' ) {
181
- throw new Error ( 'The `never` option is not yet implemented for this rule.' ) ;
181
+ report ( 'The `never` option is not yet implemented for this rule.' ) ;
182
+
183
+ return ;
182
184
}
183
185
184
186
if ( context . options [ 0 ] !== 'always' ) {
Original file line number Diff line number Diff line change @@ -364,6 +364,26 @@ export default {
364
364
*/
365
365
` ,
366
366
} ,
367
+ {
368
+ code : `
369
+ /**
370
+ * Not implemented yet.
371
+ *
372
+ * @param {string} lorem Description.
373
+ * @param {int} sit Description multi words.
374
+ */
375
+ const fn = ( lorem, sit ) => {}
376
+ ` ,
377
+ errors : [
378
+ {
379
+ message : 'The `never` option is not yet implemented for this rule.' ,
380
+ type : 'Block' ,
381
+ } ,
382
+ ] ,
383
+ options : [
384
+ 'never' ,
385
+ ] ,
386
+ } ,
367
387
] ,
368
388
valid : [
369
389
{
@@ -533,7 +553,11 @@ export default {
533
553
code : `
534
554
/**
535
555
* Not validating without option.
556
+ *
557
+ * @param {string} lorem Description.
558
+ * @param {int} sit Description multi words.
536
559
*/
560
+ const fn = ( lorem, sit ) => {}
537
561
` ,
538
562
} ,
539
563
] ,
You can’t perform that action at this time.
0 commit comments