Skip to content

Commit 2d95ca6

Browse files
committed
Change parameter -RuleName to -Name
According to cmdlet design guideline: we recommend omitting the cmdlet noun from parameter names since it's redundant (i.e. Get-ScriptAnalyzerRule -RuleName).
1 parent 7033a75 commit 2d95ca6

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Engine/Commands/GetScriptAnalyzerRuleCommand.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ public string[] CustomizedRulePath
4747
[Parameter(Mandatory = false)]
4848
[ValidateNotNullOrEmpty]
4949
[SuppressMessage("Microsoft.Performance", "CA1819:PropertiesShouldNotReturnArrays")]
50-
public string[] RuleName
50+
public string[] Name
5151
{
5252
get { return name; }
5353
set { name = value; }

Engine/ScriptAnalyzer.types.ps1xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@
4141
<PropertySet>
4242
<Name>DefaultDisplayPropertySet</Name>
4343
<ReferencedProperties>
44-
<Name>RuleName</Name>
44+
<Name>Name</Name>
4545
<Name>Severity</Name>
4646
<Name>Description</Name>
4747
<Name>SourceName</Name>

0 commit comments

Comments
 (0)