From 0405e6399d317f18e9ddec083b14c416f7d40173 Mon Sep 17 00:00:00 2001 From: YoshiRulz Date: Wed, 13 Jul 2022 22:29:29 +1000 Subject: [PATCH] Add `Meziantou.Analyzers` NuGet package --- Common.ruleset | 328 ++++++++++++++++++ src/BizHawk.Common/BizHawk.Common.csproj | 1 + .../MultiPredicateSortTests.cs | 2 + 3 files changed, 331 insertions(+) diff --git a/Common.ruleset b/Common.ruleset index 1b8c1706d9..5c143129be 100644 --- a/Common.ruleset +++ b/Common.ruleset @@ -78,6 +78,334 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/src/BizHawk.Common/BizHawk.Common.csproj b/src/BizHawk.Common/BizHawk.Common.csproj index 0302730688..4d511a3fae 100644 --- a/src/BizHawk.Common/BizHawk.Common.csproj +++ b/src/BizHawk.Common/BizHawk.Common.csproj @@ -13,6 +13,7 @@ + diff --git a/src/BizHawk.Tests/Common/MultiPredicateSort/MultiPredicateSortTests.cs b/src/BizHawk.Tests/Common/MultiPredicateSort/MultiPredicateSortTests.cs index a9a4e0e8d3..2871111605 100644 --- a/src/BizHawk.Tests/Common/MultiPredicateSort/MultiPredicateSortTests.cs +++ b/src/BizHawk.Tests/Common/MultiPredicateSort/MultiPredicateSortTests.cs @@ -26,10 +26,12 @@ namespace BizHawk.Tests.Common.MultiPredicateSort SortedByYDescThenXDesc, Unsorted.OrderByDescending(t => t.Y).ThenByDescending(t => t.X) ); +#pragma warning disable MA0030 AssertSequenceEqual( SortedByYDescThenXDesc, Unsorted.OrderByDescending(t => t.X).OrderByDescending(t => t.Y) ); +#pragma warning restore MA0030 } [TestMethod]