diff --git a/PSQualityCheck.psm1 b/PSQualityCheck.psm1 index 4da5eb6..ac25e35 100644 --- a/PSQualityCheck.psm1 +++ b/PSQualityCheck.psm1 @@ -177,7 +177,7 @@ function Invoke-PSQualityCheck { } else { - $helpRulesPath = (Join-Path -Path $module.ModuleBase -ChildPath "Checks\HelpElementRules.psd1") + $helpRulesPath = (Join-Path -Path $modulePath -ChildPath "Checks\HelpRules.psd1") }