diff --git a/Engine/Commands/GetScriptAnalyzerRuleCommand.cs b/Engine/Commands/GetScriptAnalyzerRuleCommand.cs index 33ec3f1a6..6ba2003ea 100644 --- a/Engine/Commands/GetScriptAnalyzerRuleCommand.cs +++ b/Engine/Commands/GetScriptAnalyzerRuleCommand.cs @@ -47,7 +47,7 @@ public string[] CustomizedRulePath [Parameter(Mandatory = false)] [ValidateNotNullOrEmpty] [SuppressMessage("Microsoft.Performance", "CA1819:PropertiesShouldNotReturnArrays")] - public string[] Name + public string[] RuleName { get { return name; } set { name = value; } diff --git a/Engine/Generic/RuleInfo.cs b/Engine/Generic/RuleInfo.cs index b4c6e4369..666c84afa 100644 --- a/Engine/Generic/RuleInfo.cs +++ b/Engine/Generic/RuleInfo.cs @@ -35,7 +35,7 @@ public class RuleInfo /// Name: The name of the rule. /// [SuppressMessage("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")] - public string Name + public string RuleName { get { return name; } private set { name = value; } @@ -102,7 +102,7 @@ public RuleSeverity Severity /// Source name of the rule. public RuleInfo(string name, string commonName, string description, SourceType sourceType, string sourceName, RuleSeverity severity) { - Name = name; + RuleName = name; CommonName = commonName; Description = description; SourceType = sourceType; diff --git a/Engine/ScriptAnalyzer.format.ps1xml b/Engine/ScriptAnalyzer.format.ps1xml index 6e9448d18..188b73ecc 100644 --- a/Engine/ScriptAnalyzer.format.ps1xml +++ b/Engine/ScriptAnalyzer.format.ps1xml @@ -10,7 +10,7 @@ 35 - + 12 @@ -18,7 +18,7 @@ 10 - + 5 @@ -63,7 +63,7 @@ 35 - + 15 @@ -83,7 +83,7 @@ - Name + RuleName Severity diff --git a/Engine/ScriptAnalyzer.types.ps1xml b/Engine/ScriptAnalyzer.types.ps1xml index c6f12268d..ded4e0922 100644 --- a/Engine/ScriptAnalyzer.types.ps1xml +++ b/Engine/ScriptAnalyzer.types.ps1xml @@ -41,7 +41,7 @@ DefaultDisplayPropertySet - Name + RuleName Severity Description SourceName