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
{{ message }}
Repository navigation
PSNativeCommandUseErrorActionPreference usage flagged by PSUseDeclaredVarsMoreThanAssignments #1882
Activity
StevenBucher98 commentedon Jan 30, 2023
$PSNativeCommandUseErrorActionPreferenceis an experimental feature in 7.3+, its likely it was never added to be excluded from that ruleChristoph Bergmeister (@bergmeister) is there a list of variables that this rule ignores that this could be added to?
bergmeister commentedon Feb 1, 2023
Steven Bucher (@StevenBucher98) Yes, you just need to add it to
AutomaticVariablesandAutomaticVariableTypesherehttps://github.com/PowerShell/PSScriptAnalyzer/blob/4869a78ca0330fc45edac27c11a2879dfbe3caef/Engine/SpecialVars.cs
aelij commentedon Dec 24, 2023
The feature is no longer experimental.