diff --git a/CHANGELOG.md b/CHANGELOG.md index 51b23857..719d63fc 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -45,7 +45,7 @@ Please ADD ALL Changes to the UNRELASED SECTION and not a specific release - FF-1429 - Updated Microsoft.Extensions to 7.0.0 - FF-1429 - Updated FunFair.Test.Common to 6.0.7.2278 - FF-1429 - Updated SonarAnalyzer.CSharp to 8.48.0.56517 -- FF-3881 - Updated DotNet SDK to 7.0.102 +- FF-3881 - Updated DotNet SDK to 7.0.200 ### Removed diff --git a/src/Bench/RegexBench.cs b/src/Bench/RegexBench.cs index 6ff948e9..8d7383de 100644 --- a/src/Bench/RegexBench.cs +++ b/src/Bench/RegexBench.cs @@ -1,4 +1,5 @@ using System; +using System.Diagnostics.CodeAnalysis; using System.Diagnostics.Contracts; using System.Runtime.CompilerServices; using System.Text.RegularExpressions; @@ -13,6 +14,7 @@ public abstract partial class RegexBench : BenchBase private const string GOOD = "0123456789abcdef"; private const string BAD = "0123456789abcdefg"; + [SuppressMessage(category: "Meziantou.Analyzers", checkId: "MA0110: Use regex source generator", Justification = "cannot be for a test case")] private static readonly Regex CompiledRegex = new(pattern: @"^[0-9a-fA-F]+$", RegexOptions.CultureInvariant | RegexOptions.ExplicitCapture | RegexOptions.Singleline, TimeSpan.FromSeconds(1)); [GeneratedRegex(pattern: @"^[0-9a-fA-F]+$", RegexOptions.CultureInvariant | RegexOptions.ExplicitCapture | RegexOptions.Singleline)] diff --git a/src/Experiments/RegexTests.cs b/src/Experiments/RegexTests.cs index 3bcecaec..3e3e5dee 100644 --- a/src/Experiments/RegexTests.cs +++ b/src/Experiments/RegexTests.cs @@ -1,4 +1,5 @@ using System; +using System.Diagnostics.CodeAnalysis; using System.Diagnostics.Contracts; using System.Runtime.CompilerServices; using System.Text.RegularExpressions; @@ -9,6 +10,7 @@ namespace Experiments; public sealed class RegexTests : TestBase { + [SuppressMessage(category: "Meziantou.Analyzers", checkId: "MA0110: Use regex source generator", Justification = "cannot be for a test case")] private static readonly Regex Regex = new(pattern: @"^[0-9a-fA-F]+$", RegexOptions.Compiled | RegexOptions.CultureInvariant | RegexOptions.ExplicitCapture | RegexOptions.Singleline, TimeSpan.FromSeconds(1)); diff --git a/src/Experiments/RemoveBlankLinesBetweenXmlDocAndSuppressMessage.cs b/src/Experiments/RemoveBlankLinesBetweenXmlDocAndSuppressMessage.cs index ee45cd06..487d01a1 100644 --- a/src/Experiments/RemoveBlankLinesBetweenXmlDocAndSuppressMessage.cs +++ b/src/Experiments/RemoveBlankLinesBetweenXmlDocAndSuppressMessage.cs @@ -1,4 +1,5 @@ using System; +using System.Diagnostics.CodeAnalysis; using System.Text.RegularExpressions; using FunFair.Test.Common; using Xunit; @@ -26,6 +27,7 @@ public RemoveBlankLinesBetweenXmlDocAndSuppressMessage(ITestOutputHelper output) } [Fact] + [SuppressMessage(category: "Meziantou.Analyzers", checkId: "MA0110: Use regex source generator", Justification = "cannot be for a test case")] public void Detect() { this._output.WriteLine("-------------------------"); diff --git a/src/Models/T1.cs b/src/Models/T1.cs index 6de22c4c..905197fb 100644 --- a/src/Models/T1.cs +++ b/src/Models/T1.cs @@ -1,5 +1,8 @@ +using System.Diagnostics.CodeAnalysis; + namespace Models; +[SuppressMessage(category: "Meziantou.Analyzers", checkId: "MA0036: Make class static", Justification = "cannot be for a test case")] public sealed class T1 { } \ No newline at end of file diff --git a/src/Models/T2.cs b/src/Models/T2.cs index f0dc4b83..f2406579 100644 --- a/src/Models/T2.cs +++ b/src/Models/T2.cs @@ -1,5 +1,8 @@ +using System.Diagnostics.CodeAnalysis; + namespace Models; +[SuppressMessage(category: "Meziantou.Analyzers", checkId: "MA0036: Make class static", Justification = "cannot be for a test case")] public sealed class T2 { } \ No newline at end of file diff --git a/src/global.json b/src/global.json index abfa559d..f26d52c0 100644 --- a/src/global.json +++ b/src/global.json @@ -1,6 +1,6 @@ { "sdk": { - "version": "7.0.102", + "version": "7.0.200", "allowPrerelease": false, "rollForward": "latestPatch" }