2323 * [ ` checkDestructured ` ] ( #user-content-require-param-options-checkdestructured )
2424 * [ ` checkDestructuredRoots ` ] ( #user-content-require-param-options-checkdestructuredroots )
2525 * [ ` useDefaultObjectProperties ` ] ( #user-content-require-param-options-usedefaultobjectproperties )
26+ * [ ` ignoreWhenAllParamsMissing ` ] ( #user-content-require-param-options-ignorewhenallparamsmissing )
2627* [ Context and settings] ( #user-content-require-param-context-and-settings )
2728* [ Failing examples] ( #user-content-require-param-failing-examples )
2829* [ Passing examples] ( #user-content-require-param-passing-examples )
@@ -437,6 +438,13 @@ documentation). Defaults to `true`.
437438Set to ` true ` if you wish to expect documentation of properties on objects
438439supplied as default values. Defaults to ` false ` .
439440
441+ <a name =" user-content-require-param-options-ignorewhenallparamsmissing " ></a >
442+ <a name =" require-param-options-ignorewhenallparamsmissing " ></a >
443+ ### <code >ignoreWhenAllParamsMissing</code >
444+
445+ Set to ` true ` to ignore reporting when all params are missing. Defaults to
446+ ` false ` .
447+
440448<a name =" user-content-require-param-context-and-settings " ></a >
441449<a name =" require-param-context-and-settings " ></a >
442450## Context and settings
@@ -447,7 +455,7 @@ supplied as default values. Defaults to `false`.
447455| Tags | ` param ` |
448456| Aliases | ` arg ` , ` argument ` |
449457| Recommended | true|
450- | Options | ` autoIncrementBase ` , ` checkConstructors ` , ` checkDestructured ` , ` checkDestructuredRoots ` , ` checkGetters ` , ` checkRestProperty ` , ` checkSetters ` , ` checkTypesPattern ` , ` contexts ` , ` enableFixer ` , ` enableRestElementFixer ` , ` enableRootFixer ` , ` exemptedBy ` , ` unnamedRootBase ` , ` useDefaultObjectProperties ` |
458+ | Options | ` autoIncrementBase ` , ` checkConstructors ` , ` checkDestructured ` , ` checkDestructuredRoots ` , ` checkGetters ` , ` checkRestProperty ` , ` checkSetters ` , ` checkTypesPattern ` , ` contexts ` , ` enableFixer ` , ` enableRestElementFixer ` , ` enableRootFixer ` , ` exemptedBy ` , ` ignoreWhenAllParamsMissing ` , ` unnamedRootBase ` , ` useDefaultObjectProperties ` |
451459| Settings | ` ignoreReplacesDocs ` , ` overrideReplacesDocs ` , ` augmentsExtendsReplacesDocs ` , ` implementsReplacesDocs ` |
452460
453461<a name =" user-content-require-param-failing-examples " ></a >
@@ -1162,6 +1170,14 @@ class A {
11621170 }
11631171}
11641172// Message: Missing JSDoc @param "root1" declaration.
1173+
1174+ /**
1175+ * Some desc.
1176+ * @param a
1177+ */
1178+ function quux (a , b ) {}
1179+ // "jsdoc/require-param": ["error"|"warn", {"ignoreWhenAllParamsMissing":true}]
1180+ // Message: Missing JSDoc @param "b" declaration.
11651181````
11661182
11671183
@@ -1813,5 +1829,11 @@ const inner = (c: number, d: string): void => {
18131829 console .log (d );
18141830};
18151831// Settings: {"jsdoc":{"contexts":["VariableDeclaration"]}}
1832+
1833+ /**
1834+ * Some desc.
1835+ */
1836+ function quux (a , b ) {}
1837+ // "jsdoc/require-param": ["error"|"warn", {"ignoreWhenAllParamsMissing":true}]
18161838````
18171839
0 commit comments