Skip to content

Commit f3d313f

Browse files
Copilotbcollamore
andcommitted
Fix build issues: revert .editorconfig, disable analyzer by default, fix formatting
Co-authored-by: bcollamore <57269455+bcollamore@users.noreply.github.com>
1 parent 47725f9 commit f3d313f

3 files changed

Lines changed: 3 additions & 6 deletions

File tree

.editorconfig

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -112,9 +112,6 @@ dotnet_diagnostic.CS7035.severity = none
112112
# We do not need compile-time generated RegExs in Unit Tests. We'll prefer code readability.
113113
dotnet_diagnostic.SYSLIB1045.severity = none
114114

115-
# Enable PH2146 analyzer as suggestion level for dogfood builds
116-
dotnet_diagnostic.PH2146.severity = suggestion
117-
118115
dotnet_diagnostic.IDE0001.severity = error
119116
dotnet_diagnostic.IDE0002.severity = error
120117
dotnet_diagnostic.IDE0003.severity = error

Documentation/Diagnostics/PH2146.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
| Analyzer | [TestShouldUseDisplayNameAnalyzer](https://github.com/philips-software/roslyn-analyzers/blob/main/Philips.CodeAnalysis.MsTestAnalyzers/TestShouldUseDisplayNameAnalyzer.cs)
99
| CodeFix | No |
1010
| Severity | Info |
11-
| Enabled By Default | Yes |
11+
| Enabled By Default | No |
1212

1313
## Introduction
1414

Philips.CodeAnalysis.MsTestAnalyzers/TestShouldUseDisplayNameAnalyzer.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ public class TestShouldUseDisplayNameAnalyzer : TestMethodDiagnosticAnalyzer
1818
private const string Description = @"Using DisplayName parameter for DataRow attributes or Description attribute for test methods makes test purpose more visible in test runners and provides better documentation.";
1919
private const string Category = Categories.MsTest;
2020

21-
private static readonly DiagnosticDescriptor Rule = new(DiagnosticId.UseDisplayNameOrDescription.ToId(), Title, MessageFormat, Category, DiagnosticSeverity.Error, isEnabledByDefault: true, description: Description);
21+
private static readonly DiagnosticDescriptor Rule = new(DiagnosticId.UseDisplayNameOrDescription.ToId(), Title, MessageFormat, Category, DiagnosticSeverity.Error, isEnabledByDefault: false, description: Description);
2222

2323
public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics => ImmutableArray.Create(Rule);
2424

@@ -142,7 +142,7 @@ private string ExtractCommentText(string commentTrivia)
142142

143143
// Filter out boilerplate comment patterns
144144
var upperText = text.ToUpperInvariant();
145-
if (upperText.StartsWith("TODO") ||
145+
if (upperText.StartsWith("TODO") ||
146146
upperText.StartsWith("FIXME") ||
147147
upperText.StartsWith("HACK") ||
148148
upperText.StartsWith("NOTE") ||

0 commit comments

Comments
 (0)