Skip to content

Commit 62bd220

Browse files
author
Kapil Borle
committed
Remove unused variable from UseShouldProcessForStateChanging rule
1 parent 31f09fd commit 62bd220

File tree

1 file changed

+0
-14
lines changed

1 file changed

+0
-14
lines changed

Rules/UseShouldProcessForStateChangingFunctions.cs

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -25,20 +25,6 @@ namespace Microsoft.Windows.PowerShell.ScriptAnalyzer.BuiltinRules
2525
[Export(typeof(IScriptRule))]
2626
public class UseShouldProcessForStateChangingFunctions : IScriptRule
2727
{
28-
/// <summary>
29-
/// Array of verbs that can potentially change the state of a system
30-
/// </summary>
31-
private string[] stateChangingVerbs =
32-
{
33-
"Restart-",
34-
"Stop-",
35-
"New-",
36-
"Set-",
37-
"Update-",
38-
"Reset-",
39-
"Remove-"
40-
};
41-
4228
/// <summary>
4329
/// AnalyzeScript: Analyzes the ast to check if ShouldProcess is included in Advanced functions if the Verb of the function could change system state.
4430
/// </summary>

0 commit comments

Comments
 (0)