From 6fc35af26441a5732cf66f290949b35978604290 Mon Sep 17 00:00:00 2001 From: Owen Smith Date: Sat, 28 Nov 2020 19:18:23 -0500 Subject: [PATCH] s/TypeDeclarationImmutabilityAnalyzer/ImmutabilityAnalyzer (#667) --- ...clarationImmutabilityAnalyzer.cs => ImmutabilityAnalyzer.cs} | 2 +- ...clarationImmutabilityAnalyzer.cs => ImmutabilityAnalyzer.cs} | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) rename src/D2L.CodeStyle.Analyzers/Immutability/{TypeDeclarationImmutabilityAnalyzer.cs => ImmutabilityAnalyzer.cs} (95%) rename tests/D2L.CodeStyle.Analyzers.Test/Specs/{TypeDeclarationImmutabilityAnalyzer.cs => ImmutabilityAnalyzer.cs} (98%) diff --git a/src/D2L.CodeStyle.Analyzers/Immutability/TypeDeclarationImmutabilityAnalyzer.cs b/src/D2L.CodeStyle.Analyzers/Immutability/ImmutabilityAnalyzer.cs similarity index 95% rename from src/D2L.CodeStyle.Analyzers/Immutability/TypeDeclarationImmutabilityAnalyzer.cs rename to src/D2L.CodeStyle.Analyzers/Immutability/ImmutabilityAnalyzer.cs index 7c6f21643..5eb8cae09 100644 --- a/src/D2L.CodeStyle.Analyzers/Immutability/TypeDeclarationImmutabilityAnalyzer.cs +++ b/src/D2L.CodeStyle.Analyzers/Immutability/ImmutabilityAnalyzer.cs @@ -9,7 +9,7 @@ namespace D2L.CodeStyle.Analyzers.Immutability { [DiagnosticAnalyzer( LanguageNames.CSharp )] - public sealed class TypeDeclarationImmutabilityAnalyzer : DiagnosticAnalyzer { + public sealed class ImmutabilityAnalyzer : DiagnosticAnalyzer { public override ImmutableArray SupportedDiagnostics => ImmutableArray.Create( Diagnostics.ArraysAreMutable, diff --git a/tests/D2L.CodeStyle.Analyzers.Test/Specs/TypeDeclarationImmutabilityAnalyzer.cs b/tests/D2L.CodeStyle.Analyzers.Test/Specs/ImmutabilityAnalyzer.cs similarity index 98% rename from tests/D2L.CodeStyle.Analyzers.Test/Specs/TypeDeclarationImmutabilityAnalyzer.cs rename to tests/D2L.CodeStyle.Analyzers.Test/Specs/ImmutabilityAnalyzer.cs index bb5c425d3..e945291fd 100644 --- a/tests/D2L.CodeStyle.Analyzers.Test/Specs/TypeDeclarationImmutabilityAnalyzer.cs +++ b/tests/D2L.CodeStyle.Analyzers.Test/Specs/ImmutabilityAnalyzer.cs @@ -1,4 +1,4 @@ -// analyzer: D2L.CodeStyle.Analyzers.Immutability.TypeDeclarationImmutabilityAnalyzer +// analyzer: D2L.CodeStyle.Analyzers.Immutability.ImmutabilityAnalyzer using System; using D2L.CodeStyle.Annotations;