(params, platform)
| 420 | } |
| 421 | |
| 422 | function jsDocFormatArguments(params, platform) { |
| 423 | if (!params) return '' |
| 424 | const theArgs = params.filter((param) => { |
| 425 | return param.name !== 'pluginConfig' |
| 426 | }).map((param) => { |
| 427 | return jsDocRenderArg(param) |
| 428 | }) |
| 429 | // console.log('theArgs', theArgs) |
| 430 | if (theArgs.length) { |
| 431 | return ` |
| 432 | |
| 433 | ### Configuration options for ${platform} |
| 434 | |
| 435 | | Option | description | |
| 436 | |:---------------------------|:-----------| |
| 437 | ${theArgs.join('\n')} |
| 438 | ` |
| 439 | } |
| 440 | return '' |
| 441 | } |
| 442 | |
| 443 | function jsDocRenderArg(param) { |
| 444 | const optionalText = (param.optional) ? '_optional_ - ' : '**required** - ' |
no test coverage detected