@@ -8162,6 +8162,12 @@ block avoids the need for an `@example`. Defaults to an array with
81628162so be sure to add back `inheritdoc` if you wish its presence to cause
81638163exemption of the rule.
81648164
8165+ <a name=" eslint- plugin- jsdoc- rules- require- example- options- 18 - exemptnoarguments" ></a>
8166+ ##### <code>exemptNoArguments</code>
8167+
8168+ Boolean to indicate that no-argument functions should not be reported for
8169+ missing `@example` declarations.
8170+
81658171<a name=" eslint- plugin- jsdoc- rules- require- example- options- 18 - contexts- 4 " ></a>
81668172##### <code>contexts</code>
81678173
@@ -8199,7 +8205,7 @@ report a missing example description after this is added.
81998205|---|---|
82008206|Context|`ArrowFunctionExpression`, `FunctionDeclaration`, `FunctionExpression`; others when `contexts` option enabled|
82018207|Tags|`example`|
8202- |Options|`exemptedBy`, `avoidExampleOnConstructors`, `contexts`|
8208+ |Options|`exemptedBy`, `exemptNoArguments`, ` avoidExampleOnConstructors`, `contexts`|
82038209|Settings|`overrideReplacesDocs`, `augmentsExtendsReplacesDocs`, `implementsReplacesDocs`|
82048210
82058211The following patterns are considered problems:
@@ -8213,6 +8219,15 @@ function quux () {
82138219}
82148220// Message: Missing JSDoc @example declaration.
82158221
8222+ /**
8223+ *
8224+ */
8225+ function quux (someParam) {
8226+
8227+ }
8228+ // Options: [{" exemptNoArguments" :true}]
8229+ // Message: Missing JSDoc @example declaration.
8230+
82168231/**
82178232 *
82188233 */
@@ -8442,6 +8457,14 @@ class TestClass {
84428457 set Test(value) { }
84438458}
84448459// Options: [{" checkSetters" :true}]
8460+
8461+ /**
8462+ *
8463+ */
8464+ function quux () {
8465+
8466+ }
8467+ // Options: [{" exemptNoArguments" :true}]
84458468````
84468469
84478470
0 commit comments