You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The correct and easier way to retrieve all rules is Get-ScriptAnalyzerRule.
The alias name that you are looking for is PSAvoidUsingCmdletAliases, therefore you can retrive it using Get-ScriptAnalyzerRule -Name PSAvoidUsingCmdletAliases
I don't understand your question about ConfigurableRule type. Can you please elaborate in case this answer has not solved your question please.
I don't understand your question about ConfigurableRule type.
Ok.
1-The AvoidAlias class should they not be inherited from the class ConfigurableRule ?
2-Today Get-ScriptAnalyzerRule can not filter configurable rules. The documentation says 'Rule' and 'Severity' but not if the rule is configurable.
Aha, I see now what you mean. Yes, I think you are right that the rule should probably inherit from ConfigurableRule but filtering configurable rules in Get-ScriptAnalyzer sounds more like a new (but useful) feature to me.
Activity
bergmeister commentedon Dec 2, 2017
The correct and easier way to retrieve all rules is
Get-ScriptAnalyzerRule.The alias name that you are looking for is
PSAvoidUsingCmdletAliases, therefore you can retrive it usingGet-ScriptAnalyzerRule -Name PSAvoidUsingCmdletAliasesI don't understand your question about ConfigurableRule type. Can you please elaborate in case this answer has not solved your question please.
LaurentDardenne commentedon Dec 4, 2017
I don't understand your question about ConfigurableRule type.
Ok.
1-The AvoidAlias class should they not be inherited from the class ConfigurableRule ?
2-Today Get-ScriptAnalyzerRule can not filter configurable rules. The documentation says 'Rule' and 'Severity' but not if the rule is configurable.
bergmeister commentedon Dec 4, 2017
Aha, I see now what you mean. Yes, I think you are right that the rule should probably inherit from
ConfigurableRulebut filtering configurable rules inGet-ScriptAnalyzersounds more like a new (but useful) feature to me.