From 7b236e6a1f54e29fe0607724d858b9f781ca308e Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Sun, 1 Sep 2024 03:31:26 +0000 Subject: [PATCH 1/2] chore(deps): bump the all group with 4 updates Bumps the all group with 4 updates: [Microsoft.NET.Test.Sdk](https://github.com/microsoft/vstest), [SonarAnalyzer.CSharp](https://github.com/SonarSource/sonar-dotnet), [csharpier](https://github.com/belav/csharpier) and [husky](https://github.com/alirezanet/husky.net). Updates `Microsoft.NET.Test.Sdk` from 17.10.0 to 17.11.0 - [Release notes](https://github.com/microsoft/vstest/releases) - [Changelog](https://github.com/microsoft/vstest/blob/main/docs/releases.md) - [Commits](https://github.com/microsoft/vstest/compare/v17.10.0...v17.11.0) Updates `SonarAnalyzer.CSharp` from 9.30.0.95878 to 9.32.0.97167 - [Release notes](https://github.com/SonarSource/sonar-dotnet/releases) - [Commits](https://github.com/SonarSource/sonar-dotnet/compare/9.30.0.95878...9.32.0.97167) Updates `csharpier` from 0.28.2 to 0.29.1 - [Release notes](https://github.com/belav/csharpier/releases) - [Changelog](https://github.com/belav/csharpier/blob/main/CHANGELOG.md) - [Commits](https://github.com/belav/csharpier/compare/0.28.2...0.29.1) Updates `husky` from 0.7.0 to 0.7.1 - [Release notes](https://github.com/alirezanet/husky.net/releases) - [Commits](https://github.com/alirezanet/husky.net/compare/v0.7.0...v0.7.1) --- updated-dependencies: - dependency-name: Microsoft.NET.Test.Sdk dependency-type: direct:production update-type: version-update:semver-minor dependency-group: all - dependency-name: SonarAnalyzer.CSharp dependency-type: direct:production update-type: version-update:semver-minor dependency-group: all - dependency-name: csharpier dependency-type: direct:production update-type: version-update:semver-minor dependency-group: all - dependency-name: husky dependency-type: direct:production update-type: version-update:semver-patch dependency-group: all ... Signed-off-by: dependabot[bot] --- .config/dotnet-tools.json | 4 ++-- Eon.Tests/Eon.Tests.csproj | 2 +- Eon/Eon.csproj | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.config/dotnet-tools.json b/.config/dotnet-tools.json index 91a8f15..fd68428 100644 --- a/.config/dotnet-tools.json +++ b/.config/dotnet-tools.json @@ -3,13 +3,13 @@ "isRoot": true, "tools": { "husky": { - "version": "0.7.0", + "version": "0.7.1", "commands": [ "husky" ] }, "csharpier": { - "version": "0.28.2", + "version": "0.29.1", "commands": [ "dotnet-csharpier" ] diff --git a/Eon.Tests/Eon.Tests.csproj b/Eon.Tests/Eon.Tests.csproj index 46bd847..1e9c13d 100644 --- a/Eon.Tests/Eon.Tests.csproj +++ b/Eon.Tests/Eon.Tests.csproj @@ -9,7 +9,7 @@ - + diff --git a/Eon/Eon.csproj b/Eon/Eon.csproj index ad06a78..e825bfe 100644 --- a/Eon/Eon.csproj +++ b/Eon/Eon.csproj @@ -54,7 +54,7 @@ all runtime; build; native; contentfiles; analyzers; buildtransitive - + all runtime; build; native; contentfiles; analyzers; buildtransitive From aa0d1eedc88e7e1822bee966087b86df2085f954 Mon Sep 17 00:00:00 2001 From: bmazzarol Date: Sun, 1 Sep 2024 22:48:56 +0800 Subject: [PATCH 2/2] chore: format --- Eon.Tests/Examples/FixedTests.cs | 2 +- Eon.Tests/Examples/PollyExamples.cs | 4 ++-- Eon.Tests/Examples/WindowedTests.cs | 2 +- Eon/Schedule.Interleave.cs | 2 +- Eon/Schedule.Intersect.cs | 2 +- Eon/Schedule.Union.cs | 4 ++-- 6 files changed, 8 insertions(+), 8 deletions(-) diff --git a/Eon.Tests/Examples/FixedTests.cs b/Eon.Tests/Examples/FixedTests.cs index f0c6bb6..16429a6 100644 --- a/Eon.Tests/Examples/FixedTests.cs +++ b/Eon.Tests/Examples/FixedTests.cs @@ -12,7 +12,7 @@ public static void Case1() now, now + TimeSpan.FromSeconds(6), now + TimeSpan.FromSeconds(1), - now + TimeSpan.FromSeconds(4) + now + TimeSpan.FromSeconds(4), } .AsEnumerable() .GetEnumerator(); diff --git a/Eon.Tests/Examples/PollyExamples.cs b/Eon.Tests/Examples/PollyExamples.cs index cc40ab6..2dfb6cf 100644 --- a/Eon.Tests/Examples/PollyExamples.cs +++ b/Eon.Tests/Examples/PollyExamples.cs @@ -18,7 +18,7 @@ public static async Task Case1() MaxRetryAttempts = schedule.Count ?? int.MaxValue, Delay = TimeSpan.Zero, DelayGenerator = x => - ValueTask.FromResult((TimeSpan)schedule[x.AttemptNumber]) + ValueTask.FromResult((TimeSpan)schedule[x.AttemptNumber]), }; ResiliencePipeline pipeline = new ResiliencePipelineBuilder().AddRetry(options).Build(); int attempts = 0; @@ -49,7 +49,7 @@ public static async Task Case2() MaxRetryAttempts = int.MaxValue, Delay = TimeSpan.Zero, DelayGenerator = x => - ValueTask.FromResult((TimeSpan)schedule[x.AttemptNumber]) + ValueTask.FromResult((TimeSpan)schedule[x.AttemptNumber]), }; ResiliencePipeline pipeline = new ResiliencePipelineBuilder().AddRetry(options).Build(); int attempts = 0; diff --git a/Eon.Tests/Examples/WindowedTests.cs b/Eon.Tests/Examples/WindowedTests.cs index fa12946..4d23b79 100644 --- a/Eon.Tests/Examples/WindowedTests.cs +++ b/Eon.Tests/Examples/WindowedTests.cs @@ -12,7 +12,7 @@ public static void Case1() now, now + TimeSpan.FromSeconds(6), now + TimeSpan.FromSeconds(1), - now + TimeSpan.FromSeconds(4) + now + TimeSpan.FromSeconds(4), } .AsEnumerable() .GetEnumerator(); diff --git a/Eon/Schedule.Interleave.cs b/Eon/Schedule.Interleave.cs index 8f4bc77..a783252 100644 --- a/Eon/Schedule.Interleave.cs +++ b/Eon/Schedule.Interleave.cs @@ -29,7 +29,7 @@ private sealed record SchInterleave(Schedule Left, Schedule Right) : Schedule ({ } lCount, { } rCount) => Math.Min(lCount, rCount), ({ } lCount, _) => lCount, (_, { } rCount) => rCount, - _ => null + _ => null, } * 2; public override bool CanCount => Left.CanCount || Right.CanCount; diff --git a/Eon/Schedule.Intersect.cs b/Eon/Schedule.Intersect.cs index 191c4aa..993fec7 100644 --- a/Eon/Schedule.Intersect.cs +++ b/Eon/Schedule.Intersect.cs @@ -57,7 +57,7 @@ private sealed record SchIntersect(Schedule Left, Schedule Right) : Schedule ({ } lCount, { } rCount) => Math.Min(lCount, rCount), ({ } lCount, _) => lCount, (_, { } rCount) => rCount, - _ => null + _ => null, }; public override bool CanCount => Left.CanCount || Right.CanCount; diff --git a/Eon/Schedule.Union.cs b/Eon/Schedule.Union.cs index ee394fc..6db6c2a 100644 --- a/Eon/Schedule.Union.cs +++ b/Eon/Schedule.Union.cs @@ -55,7 +55,7 @@ private sealed record SchUnion(Schedule Left, Schedule Right) : Schedule (Left.Count, Right.Count) switch { ({ } lCount, { } rCount) => Math.Max(lCount, rCount), - _ => null + _ => null, }; public override bool CanCount => Left.CanCount && Right.CanCount; @@ -73,7 +73,7 @@ public override IEnumerator GetEnumerator() { true when hasRight => Math.Min(left.Current, right.Current), true => left.Current, - _ => right.Current + _ => right.Current, }; hasLeft = hasLeft && left.MoveNext();