Skip to content

Test-ForUnimportedModuleFile Requires external scripts #10

Open

Description

@jaboc83

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions