ScriptCop icon indicating copy to clipboard operation
ScriptCop copied to clipboard

Test-ForUnimportedModuleFile Requires external scripts

Open jaboc83 opened this issue 10 years ago • 0 comments

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

jaboc83 avatar May 20 '15 18:05 jaboc83