Closed
Description
Today if i publish custom rules, i use a module, but PSScriptAnalyzer need a path to load these custom rules.
I can write this:
$Path=(Import-Module ParameterSetRules -pass).Modulebase
Invoke-ScriptAnalyzer -CustomRulePath $Path
Here this code is not dependent to a path :
Invoke-ScriptAnalyzer -CustomRuleModule ParameterSetRules
#or
Invoke-ScriptAnalyzer -CustomRuleModule @{ RootModule = 'ParameterSetRules';ModuleVersion = '1.0'; GUID = 'a5d7c151-56cf-40a4-839f-0019898eb324' }