From e063b2c2df91f845e2d48df438f31a9160625c31 Mon Sep 17 00:00:00 2001 From: Todd Lang Date: Fri, 17 Jul 2026 09:26:14 -0400 Subject: [PATCH] Apply changes to remove analyzer version mismatch warning --- src/D2L.CodeStyle.Analyzers/D2L.CodeStyle.Analyzers.csproj | 4 ---- .../D2L.CodeStyle.TestAnalyzers.csproj | 4 ---- src/D2L.CodeStyle.TestAnalyzers/NUnit/CategoryAnalyzer.cs | 2 +- .../D2L.CodeStyle.Analyzers.Rule.Constant.csproj | 4 ---- .../D2L.CodeStyle.Analyzers.Rule.csproj | 4 ---- 5 files changed, 1 insertion(+), 17 deletions(-) diff --git a/src/D2L.CodeStyle.Analyzers/D2L.CodeStyle.Analyzers.csproj b/src/D2L.CodeStyle.Analyzers/D2L.CodeStyle.Analyzers.csproj index 48d1e0ce..c47a0c81 100644 --- a/src/D2L.CodeStyle.Analyzers/D2L.CodeStyle.Analyzers.csproj +++ b/src/D2L.CodeStyle.Analyzers/D2L.CodeStyle.Analyzers.csproj @@ -41,10 +41,6 @@ runtime; build; native; contentfiles; analyzers; buildtransitive - - all - runtime; build; native; contentfiles; analyzers; buildtransitive - all runtime; build; native; contentfiles; analyzers; buildtransitive diff --git a/src/D2L.CodeStyle.TestAnalyzers/D2L.CodeStyle.TestAnalyzers.csproj b/src/D2L.CodeStyle.TestAnalyzers/D2L.CodeStyle.TestAnalyzers.csproj index 9458317a..40cb915b 100644 --- a/src/D2L.CodeStyle.TestAnalyzers/D2L.CodeStyle.TestAnalyzers.csproj +++ b/src/D2L.CodeStyle.TestAnalyzers/D2L.CodeStyle.TestAnalyzers.csproj @@ -42,10 +42,6 @@ runtime; build; native; contentfiles; analyzers; buildtransitive - - all - runtime; build; native; contentfiles; analyzers; buildtransitive - diff --git a/src/D2L.CodeStyle.TestAnalyzers/NUnit/CategoryAnalyzer.cs b/src/D2L.CodeStyle.TestAnalyzers/NUnit/CategoryAnalyzer.cs index 3b1c5a15..f573e40c 100644 --- a/src/D2L.CodeStyle.TestAnalyzers/NUnit/CategoryAnalyzer.cs +++ b/src/D2L.CodeStyle.TestAnalyzers/NUnit/CategoryAnalyzer.cs @@ -298,7 +298,7 @@ AnalyzerOptions options SourceText? allowedListText = bannedListFile.GetText(); if( allowedListText == null ) { - throw new Exception( "Couldn't read config" ); + throw new InvalidOperationException( "Couldn't read config" ); } foreach( TextLine line in allowedListText.Lines ) { diff --git a/src/Rules/D2L.CodeStyle.Analyzers.Rule.Constant/D2L.CodeStyle.Analyzers.Rule.Constant/D2L.CodeStyle.Analyzers.Rule.Constant.csproj b/src/Rules/D2L.CodeStyle.Analyzers.Rule.Constant/D2L.CodeStyle.Analyzers.Rule.Constant/D2L.CodeStyle.Analyzers.Rule.Constant.csproj index c48bb3e7..2347a377 100644 --- a/src/Rules/D2L.CodeStyle.Analyzers.Rule.Constant/D2L.CodeStyle.Analyzers.Rule.Constant/D2L.CodeStyle.Analyzers.Rule.Constant.csproj +++ b/src/Rules/D2L.CodeStyle.Analyzers.Rule.Constant/D2L.CodeStyle.Analyzers.Rule.Constant/D2L.CodeStyle.Analyzers.Rule.Constant.csproj @@ -13,10 +13,6 @@ runtime; build; native; contentfiles; analyzers; buildtransitive - - all - runtime; build; native; contentfiles; analyzers; buildtransitive - all runtime; build; native; contentfiles; analyzers; buildtransitive diff --git a/src/Rules/D2L.CodeStyle.Analyzers.Rule/D2L.CodeStyle.Analyzers.Rule/D2L.CodeStyle.Analyzers.Rule.csproj b/src/Rules/D2L.CodeStyle.Analyzers.Rule/D2L.CodeStyle.Analyzers.Rule/D2L.CodeStyle.Analyzers.Rule.csproj index 404aae11..399a471f 100644 --- a/src/Rules/D2L.CodeStyle.Analyzers.Rule/D2L.CodeStyle.Analyzers.Rule/D2L.CodeStyle.Analyzers.Rule.csproj +++ b/src/Rules/D2L.CodeStyle.Analyzers.Rule/D2L.CodeStyle.Analyzers.Rule/D2L.CodeStyle.Analyzers.Rule.csproj @@ -10,10 +10,6 @@ runtime; build; native; contentfiles; analyzers; buildtransitive - - all - runtime; build; native; contentfiles; analyzers; buildtransitive - all runtime; build; native; contentfiles; analyzers; buildtransitive