dsccommunity / DscResource.DocGenerator

Module for generation of DSC resource documentation
MIT License
9 stars 10 forks source link

`New-DscMofResourceWikiPage`: The parameter `BuiltModulePath` is never used #85

Closed johlju closed 3 years ago

johlju commented 3 years ago

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