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
Copy file name to clipboardExpand all lines: Utils/RuleMaker.psm1
+58Lines changed: 58 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -364,19 +364,57 @@ Function Remove-RuleTest($Rule)
364
364
Remove-Item-Path $ruleTestFilePath
365
365
}
366
366
367
+
<#
368
+
.SYNOPSIS
369
+
Adds a C# based builtin rule to Rules project in PSScriptAnalyzer solution
370
+
.EXAMPLE
371
+
C:\PS> Add-Rule -Name UseCompatibleCmdlets -Severity Warning -CommonName 'Use Compatible Cmdlets' -Description 'Checks if a cmdlet is compatible with a given PowerShell version, edition and os combination' -Error '{0} command is not compatible with PowerShell version {1}, edition {2} and OS {3}'
0 commit comments