We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4f1ca19 commit 178f484Copy full SHA for 178f484
1 file changed
Rules/UseShouldProcessForStateChangingFunctions.cs
@@ -44,8 +44,7 @@ public IEnumerable<DiagnosticRecord> AnalyzeScript(Ast ast, string fileName)
44
string funcName = funcDefAst.Name;
45
bool hasShouldProcessAttribute = false;
46
47
- if (funcName.StartsWith("Get-", StringComparison.OrdinalIgnoreCase) ||
48
- funcName.StartsWith("Stop-", StringComparison.OrdinalIgnoreCase)||
+ if (funcName.StartsWith("Stop-", StringComparison.OrdinalIgnoreCase)||
49
funcName.StartsWith("New-", StringComparison.OrdinalIgnoreCase) ||
50
funcName.StartsWith("Set-", StringComparison.OrdinalIgnoreCase) ||
51
funcName.StartsWith("Update-", StringComparison.OrdinalIgnoreCase) ||
0 commit comments