From 495a72e9c43cbe1282c46203fa9d128e02215660 Mon Sep 17 00:00:00 2001 From: Glenn <5834289+glennawatson@users.noreply.github.com> Date: Mon, 31 May 2021 17:12:34 +1000 Subject: [PATCH] Housekeeping: Reduce the versions of dependencies (#50) --- src/ReactiveMarbles.NuGet.Helpers/NuGetPackageHelper.cs | 2 +- .../AnalyzerReleases.Shipped.md | 8 ++++++-- .../EventGenerator.cs | 2 ++ ...eactiveMarbles.ObservableEvents.SourceGenerator.csproj | 8 ++------ .../ReactiveMarbles.ObservableEvents.Tests.csproj | 2 +- 5 files changed, 12 insertions(+), 10 deletions(-) diff --git a/src/ReactiveMarbles.NuGet.Helpers/NuGetPackageHelper.cs b/src/ReactiveMarbles.NuGet.Helpers/NuGetPackageHelper.cs index e6e810f..23c782a 100644 --- a/src/ReactiveMarbles.NuGet.Helpers/NuGetPackageHelper.cs +++ b/src/ReactiveMarbles.NuGet.Helpers/NuGetPackageHelper.cs @@ -150,7 +150,7 @@ public static async Task DownloadPackageFilesAndFolder( /// Optional v3 nuget source. Will default to default nuget.org servers. /// A optional cancellation token. /// The best matching PackageIdentity to the specified version range. - public static async Task GetBestMatch(LibraryRange identity, PackageSource nugetSource = null, CancellationToken token = default) + public static async Task GetBestMatch(LibraryRange identity, PackageSource? nugetSource = null, CancellationToken token = default) { if (identity == null) { diff --git a/src/ReactiveMarbles.ObservableEvents.SourceGenerator/AnalyzerReleases.Shipped.md b/src/ReactiveMarbles.ObservableEvents.SourceGenerator/AnalyzerReleases.Shipped.md index d567f14..e3eb7f6 100644 --- a/src/ReactiveMarbles.ObservableEvents.SourceGenerator/AnalyzerReleases.Shipped.md +++ b/src/ReactiveMarbles.ObservableEvents.SourceGenerator/AnalyzerReleases.Shipped.md @@ -1,3 +1,7 @@ -; Shipped analyzer releases -; https://github.com/dotnet/roslyn-analyzers/blob/master/src/Microsoft.CodeAnalysis.Analyzers/ReleaseTrackingAnalyzers.Help.md +## Release 1.0 +### New Rules + +Rule ID | Category | Severity | Notes +--------|----------|----------|-------------------- +RXPHARM001 | Compiler | Warning | diff --git a/src/ReactiveMarbles.ObservableEvents.SourceGenerator/EventGenerator.cs b/src/ReactiveMarbles.ObservableEvents.SourceGenerator/EventGenerator.cs index 364ddf9..990e824 100644 --- a/src/ReactiveMarbles.ObservableEvents.SourceGenerator/EventGenerator.cs +++ b/src/ReactiveMarbles.ObservableEvents.SourceGenerator/EventGenerator.cs @@ -202,7 +202,9 @@ 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 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 3412335..ffb0d88 100644 --- a/src/ReactiveMarbles.ObservableEvents.SourceGenerator/ReactiveMarbles.ObservableEvents.SourceGenerator.csproj +++ b/src/ReactiveMarbles.ObservableEvents.SourceGenerator/ReactiveMarbles.ObservableEvents.SourceGenerator.csproj @@ -7,13 +7,9 @@ true - - https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet-tools/nuget/v3/index.json ;$(RestoreAdditionalProjectSources) - - - - + + diff --git a/src/ReactiveMarbles.ObservableEvents.Tests/ReactiveMarbles.ObservableEvents.Tests.csproj b/src/ReactiveMarbles.ObservableEvents.Tests/ReactiveMarbles.ObservableEvents.Tests.csproj index 6c539f6..1bdcdb4 100644 --- a/src/ReactiveMarbles.ObservableEvents.Tests/ReactiveMarbles.ObservableEvents.Tests.csproj +++ b/src/ReactiveMarbles.ObservableEvents.Tests/ReactiveMarbles.ObservableEvents.Tests.csproj @@ -19,7 +19,7 @@ all runtime; build; native; contentfiles; analyzers; buildtransitive - +