ScriptCop
ScriptCop copied to clipboard
Test-ForUnimportedModuleFile Requires external scripts
Running Test-ForUnimportedModuleFile without External *.ps1 scripts throws the following error.
Compare-Object : Cannot bind argument to parameter 'ReferenceObject' because it is null.
At C:\Users\jmoening\workspace\ScriptCop\Rules\Test-ForUnimportedModuleFile.ps1:21 char:37
+ Compare-Object -ReferenceObject $verbNounPairFiles -DifferenceObject $module ...
+ ~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidData: (:) [Compare-Object], ParameterBindingValidationException
+ FullyQualifiedErrorId : ParameterArgumentValidationErrorNullNotAllowed,Microsoft.PowerShell.Commands.CompareObjectCommand