Skip to content

Change property display name to be the same as property name #63

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Apr 24, 2015
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Engine/Commands/GetScriptAnalyzerRuleCommand.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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; }
Expand Down
4 changes: 2 additions & 2 deletions Engine/Generic/RuleInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ public class RuleInfo
/// Name: The name of the rule.
/// </summary>
[SuppressMessage("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")]
public string Name
public string RuleName
{
get { return name; }
private set { name = value; }
Expand Down Expand Up @@ -102,7 +102,7 @@ public RuleSeverity Severity
/// <param name="sourceName">Source name of the rule.</param>
public RuleInfo(string name, string commonName, string description, SourceType sourceType, string sourceName, RuleSeverity severity)
{
Name = name;
RuleName = name;
CommonName = commonName;
Description = description;
SourceType = sourceType;
Expand Down
8 changes: 4 additions & 4 deletions Engine/ScriptAnalyzer.format.ps1xml
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,15 @@
<TableHeaders>
<TableColumnHeader>
<Width>35</Width>
<Label>Rule Name</Label>
<Label>RuleName</Label>
</TableColumnHeader>
<TableColumnHeader>
<Width>12</Width>
<Label>Severity</Label>
</TableColumnHeader>
<TableColumnHeader>
<Width>10</Width>
<Label>File Name</Label>
<Label>FileName</Label>
</TableColumnHeader>
<TableColumnHeader>
<Width>5</Width>
Expand Down Expand Up @@ -63,7 +63,7 @@
<TableHeaders>
<TableColumnHeader>
<Width>35</Width>
<Label>Rule Name</Label>
<Label>RuleName</Label>
</TableColumnHeader>
<TableColumnHeader>
<Width>15</Width>
Expand All @@ -83,7 +83,7 @@
<Wrap/>
<TableColumnItems>
<TableColumnItem>
<PropertyName>Name</PropertyName>
<PropertyName>RuleName</PropertyName>
</TableColumnItem>
<TableColumnItem>
<PropertyName>Severity</PropertyName>
Expand Down
2 changes: 1 addition & 1 deletion Engine/ScriptAnalyzer.types.ps1xml
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
<PropertySet>
<Name>DefaultDisplayPropertySet</Name>
<ReferencedProperties>
<Name>Name</Name>
<Name>RuleName</Name>
<Name>Severity</Name>
<Name>Description</Name>
<Name>SourceName</Name>
Expand Down