Closed johlju closed 3 years ago
The parameter BuiltModulePath is never used in the function but is still mandatory to pass.
BuiltModulePath
https://github.com/dsccommunity/DscResource.DocGenerator/blob/0be498bdf35dc82087b2fca86ee73b058a856b80/source/Private/New-DscMofResourceWikiPage.ps1#L44-L46
This fails the Script Analyzer rule PSReviewUnusedParameter which are suppressed (will be merged in a pending PR).
n/a
No unused parameters (especially mandatory ones)
Must pass mandatory parameter that is never used.
Remove unused parameter, and remove the suppression of the rule PSReviewUnusedParameter.
latest
Details of the scenario you tried and the problem that is occurring
The parameter
BuiltModulePath
is never used in the function but is still mandatory to pass.https://github.com/dsccommunity/DscResource.DocGenerator/blob/0be498bdf35dc82087b2fca86ee73b058a856b80/source/Private/New-DscMofResourceWikiPage.ps1#L44-L46
This fails the Script Analyzer rule PSReviewUnusedParameter which are suppressed (will be merged in a pending PR).
Steps to reproduce the problem
n/a
Expected behavior
No unused parameters (especially mandatory ones)
Current behavior
Must pass mandatory parameter that is never used.
Suggested solution to the issue
Remove unused parameter, and remove the suppression of the rule PSReviewUnusedParameter.
The operating system the target node is running
n/a
Version and build of PowerShell the target node is running
n/a
Version of the module that was used
latest