From 363b50e85ef32c4553f6864b32b91dc7e72300c4 Mon Sep 17 00:00:00 2001 From: Glenn <5834289+glennawatson@users.noreply.github.com> Date: Mon, 31 May 2021 18:35:45 +1000 Subject: [PATCH] housekeeping: Remove unused dependency (#51) * Housekeeping: Reduce the versions of dependencies * housekeeping: Remove unused dependency --- .editorconfig | 2 ++ .../EventGenerator.cs | 4 +--- ...es.ObservableEvents.SourceGenerator.csproj | 23 +++++++++++-------- 3 files changed, 16 insertions(+), 13 deletions(-) diff --git a/.editorconfig b/.editorconfig index c3058de..ff8681f 100644 --- a/.editorconfig +++ b/.editorconfig @@ -427,6 +427,8 @@ dotnet_diagnostic.SX1101.severity = error dotnet_diagnostic.SX1309.severity = error dotnet_diagnostic.SX1623.severity = none +dotnet_diagnostic.AD0001.severity = none + # C++ Files [*.{cpp,h,in}] curly_bracket_next_line = true diff --git a/src/ReactiveMarbles.ObservableEvents.SourceGenerator/EventGenerator.cs b/src/ReactiveMarbles.ObservableEvents.SourceGenerator/EventGenerator.cs index 990e824..e8d3af9 100644 --- a/src/ReactiveMarbles.ObservableEvents.SourceGenerator/EventGenerator.cs +++ b/src/ReactiveMarbles.ObservableEvents.SourceGenerator/EventGenerator.cs @@ -202,9 +202,7 @@ private static bool GenerateEvents( return true; } -#pragma warning disable RS1024 // Compare symbols correctly - var processedItems = new HashSet(TypeDefinitionNameComparer.Default); -#pragma warning restore RS1024 // Compare symbols correctly + var processedItems = new HashSet(SymbolEqualityComparer.Default); var fileType = isStatic ? "Static" : "Instance"; diff --git a/src/ReactiveMarbles.ObservableEvents.SourceGenerator/ReactiveMarbles.ObservableEvents.SourceGenerator.csproj b/src/ReactiveMarbles.ObservableEvents.SourceGenerator/ReactiveMarbles.ObservableEvents.SourceGenerator.csproj index ffb0d88..216895b 100644 --- a/src/ReactiveMarbles.ObservableEvents.SourceGenerator/ReactiveMarbles.ObservableEvents.SourceGenerator.csproj +++ b/src/ReactiveMarbles.ObservableEvents.SourceGenerator/ReactiveMarbles.ObservableEvents.SourceGenerator.csproj @@ -1,15 +1,18 @@  - - netstandard2.0 - enable - latest + + netstandard2.0 + enable + latest true - + $(NoWarn);AD0001 + - - - - - + + + + all + runtime; build; native; contentfiles; analyzers; buildtransitive + +