Skip to content

Commit

Permalink
Bump SonarAnalyzer.CSharp from 8.51.0.59060 to 8.56.0.67649 (#1149)
Browse files Browse the repository at this point in the history
  • Loading branch information
dependabot[bot] committed Apr 21, 2023
1 parent 0c3f643 commit febd641
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
5 changes: 4 additions & 1 deletion .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,7 @@ tab_width = 2
[*.cs]

# Put any C# specific settings here
dotnet_code_quality.CA1062.null_check_validation_methods = NotNull
dotnet_code_quality.CA1062.null_check_validation_methods = NotNull

# S2094 // Classes should not be empty
dotnet_diagnostic.S2094.severity = suggestion
2 changes: 1 addition & 1 deletion src/Directory.Packages.props
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
<PackageVersion Include="Microsoft.SourceLink.GitHub" Version="1.1.1" />
<PackageVersion Include="Moq" Version="4.18.4" />
<PackageVersion Include="ReportGenerator" Version="5.1.19" />
<PackageVersion Include="SonarAnalyzer.CSharp" Version="8.51.0.59060" />
<PackageVersion Include="SonarAnalyzer.CSharp" Version="8.56.0.67649" />
<PackageVersion Include="StyleCop.Analyzers" Version="1.2.0-beta.435" />
<PackageVersion Include="System.ComponentModel.Annotations" Version="4.5.0" />
<PackageVersion Include="System.Diagnostics.DiagnosticSource" Version="7.0.0" />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ public void Execute_HappyPath()
SetupLimiter(cts.Token);

_lease.Setup(v => v.IsAcquired).Returns(true);
_lease.Protected().Setup("Dispose", exactParameterMatch: true, new object[] { true });
_lease.Protected().Setup("Dispose", exactParameterMatch: true, true);

Create().Should().NotBeNull();

Expand Down Expand Up @@ -56,7 +56,7 @@ public void Execute_LeaseRejected(bool hasEvents, bool hasRetryAfter)
SetupLimiter(cts.Token);

_lease.Setup(v => v.IsAcquired).Returns(false);
_lease.Protected().Setup("Dispose", exactParameterMatch: true, new object[] { true });
_lease.Protected().Setup("Dispose", exactParameterMatch: true, true);
_lease.Setup(v => v.TryGetMetadata("RETRY_AFTER", out metadata)).Returns(hasRetryAfter);

if (hasEvents)
Expand Down

0 comments on commit febd641

Please sign in to comment.