Skip to content

Commit 178f484

Browse files
committed
Update UseShouldProcessForStateChangingFunctions.cs
Remove check for "Get-'" Get does not modify system Status
1 parent 4f1ca19 commit 178f484

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

Rules/UseShouldProcessForStateChangingFunctions.cs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,7 @@ public IEnumerable<DiagnosticRecord> AnalyzeScript(Ast ast, string fileName)
4444
string funcName = funcDefAst.Name;
4545
bool hasShouldProcessAttribute = false;
4646

47-
if (funcName.StartsWith("Get-", StringComparison.OrdinalIgnoreCase) ||
48-
funcName.StartsWith("Stop-", StringComparison.OrdinalIgnoreCase)||
47+
if (funcName.StartsWith("Stop-", StringComparison.OrdinalIgnoreCase)||
4948
funcName.StartsWith("New-", StringComparison.OrdinalIgnoreCase) ||
5049
funcName.StartsWith("Set-", StringComparison.OrdinalIgnoreCase) ||
5150
funcName.StartsWith("Update-", StringComparison.OrdinalIgnoreCase) ||

0 commit comments

Comments
 (0)