Skip to content

Commit 64f0987

Browse files
Copilotbcollamore
andcommitted
Change PH2144 to PH2147 and fix formatting issues
Co-authored-by: bcollamore <57269455+bcollamore@users.noreply.github.com>
1 parent 46bb2e7 commit 64f0987

3 files changed

Lines changed: 5 additions & 7 deletions

File tree

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
# PH2144: Avoid variables named exactly '_'
1+
# PH2147: Avoid variables named exactly '_'
22

33
| Property | Value |
44
|--|--|
55
| Package | [Philips.CodeAnalysis.MaintainabilityAnalyzers](https://www.nuget.org/packages/Philips.CodeAnalysis.MaintainabilityAnalyzers) |
6-
| Diagnostic ID | PH2144 |
6+
| Diagnostic ID | PH2147 |
77
| Category | [Naming](../Naming.md) |
88
| Analyzer | [AvoidVariableNamedUnderscoreAnalyzer](https://github.com/philips-software/roslyn-analyzers/blob/main/Philips.CodeAnalysis.MaintainabilityAnalyzers/Naming/AvoidVariableNamedUnderscoreAnalyzer.cs)
99
| CodeFix | No |
@@ -78,5 +78,5 @@ This rule is enabled by default with Error severity.
7878
## Suppression
7979

8080
```csharp
81-
[SuppressMessage("Philips.CodeAnalysis.MaintainabilityAnalyzers", "PH2144:Avoid variables named exactly '_'", Justification = "Reviewed.")]
81+
[SuppressMessage("Philips.CodeAnalysis.MaintainabilityAnalyzers", "PH2147:Avoid variables named exactly '_'", Justification = "Reviewed.")]
8282
```

Philips.CodeAnalysis.Common/DiagnosticId.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,6 +137,6 @@ public enum DiagnosticId
137137
AvoidEmptyRegions = 2141,
138138
AvoidCastToString = 2142,
139139
AvoidAssemblyGetEntryAssembly = 2143,
140-
AvoidVariableNamedUnderscore = 2144,
140+
AvoidVariableNamedUnderscore = 2147,
141141
}
142142
}

Philips.CodeAnalysis.MaintainabilityAnalyzers/Naming/AvoidVariableNamedUnderscoreAnalyzer.cs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
// © 2019 Koninklijke Philips N.V. See License.md in the project root for license information.
22

3-
#pragma warning disable IDE0055 // Fix formatting
4-
53
using System.Linq;
64
using Microsoft.CodeAnalysis;
75
using Microsoft.CodeAnalysis.CSharp;
@@ -122,4 +120,4 @@ private void AnalyzeArgument(SyntaxNodeAnalysisContext context)
122120
}
123121
}
124122
}
125-
}
123+
}

0 commit comments

Comments
 (0)