Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[FF-3881] - Updated DotNet SDK to 7.0.200 #290

Merged
merged 2 commits into from
Feb 24, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
2 changes: 2 additions & 0 deletions src/Bench/RegexBench.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
using System;
using System.Diagnostics.CodeAnalysis;
using System.Diagnostics.Contracts;
using System.Runtime.CompilerServices;
using System.Text.RegularExpressions;
Expand All @@ -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)]
Expand Down
2 changes: 2 additions & 0 deletions src/Experiments/RegexTests.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
using System;
using System.Diagnostics.CodeAnalysis;
using System.Diagnostics.Contracts;
using System.Runtime.CompilerServices;
using System.Text.RegularExpressions;
Expand All @@ -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));
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
using System;
using System.Diagnostics.CodeAnalysis;
using System.Text.RegularExpressions;
using FunFair.Test.Common;
using Xunit;
Expand Down Expand Up @@ -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("-------------------------");
Expand Down
3 changes: 3 additions & 0 deletions src/Models/T1.cs
Original file line number Diff line number Diff line change
@@ -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
{
}
3 changes: 3 additions & 0 deletions src/Models/T2.cs
Original file line number Diff line number Diff line change
@@ -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
{
}
2 changes: 1 addition & 1 deletion src/global.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"sdk": {
"version": "7.0.102",
"version": "7.0.200",
"allowPrerelease": false,
"rollForward": "latestPatch"
}
Expand Down