Skip to content

Commit

Permalink
refactor: change severity
Browse files Browse the repository at this point in the history
  • Loading branch information
earloc committed Oct 29, 2024
1 parent df4e097 commit 860ad27
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/TypealizR.Analyzers/AnalyzerReleases.Unshipped.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@

Rule ID | Category | Severity | Notes
--------|----------|----------|--------------------
TR1000 | Usage | Hidden | UseIndexerAnalyzer_UseIndexSignature
TR1000 | Usage | Warning | UseIndexerAnalyzer

2 changes: 1 addition & 1 deletion src/TypealizR.Analyzers/UseIndexerAnalyzer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ public class UseIndexerAnalyzer : DiagnosticAnalyzer
private static readonly LocalizableString Description = new LocalizableResourceString(nameof(Resources.AnalyzerDescription), Resources.ResourceManager, typeof(Resources));
private const string Category = "Usage";

private static readonly DiagnosticDescriptor Rule = new(DiagnosticId, Title, MessageFormat, Category, DiagnosticSeverity.Hidden, isEnabledByDefault: true, description: Description);
private static readonly DiagnosticDescriptor Rule = new(DiagnosticId, Title, MessageFormat, Category, DiagnosticSeverity.Warning, isEnabledByDefault: true, description: Description);

public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics => [Rule];

Expand Down

0 comments on commit 860ad27

Please sign in to comment.