Skip to content

Commit

Permalink
Bump the nuget group with 13 updates (#868)
Browse files Browse the repository at this point in the history
* Bump the nuget group with 13 updates

Bumps the nuget group with 13 updates:

| Package | From | To |
| --- | --- | --- |
| [Microsoft.Extensions.Http.Polly](https://github.com/dotnet/aspnetcore) | `8.0.1` | `8.0.2` |
| [Meziantou.Analyzer](https://github.com/meziantou/Meziantou.Analyzer) | `2.0.139` | `2.0.145` |
| [Microsoft.VisualStudio.Threading.Analyzers](https://github.com/microsoft/vs-threading) | `17.8.14` | `17.9.28` |
| [Roslynator.Analyzers](https://github.com/dotnet/roslynator) | `4.10.0` | `4.11.0` |
| [Roslynator.CodeAnalysis.Analyzers](https://github.com/dotnet/roslynator) | `4.10.0` | `4.11.0` |
| [Roslynator.Formatting.Analyzers](https://github.com/dotnet/roslynator) | `4.10.0` | `4.11.0` |
| [coverlet.msbuild](https://github.com/coverlet-coverage/coverlet) | `6.0.0` | `6.0.1` |
| [xunit.analyzers](https://github.com/xunit/xunit.analyzers) | `1.10.0` | `1.11.0` |
| [NSubstitute.Analyzers.CSharp](https://github.com/nsubstitute/NSubstitute.Analyzers) | `1.0.16` | `1.0.17` |
| [Microsoft.AspNetCore.Mvc.Testing](https://github.com/dotnet/aspnetcore) | `6.0.26` | `6.0.27` |
| [coverlet.collector](https://github.com/coverlet-coverage/coverlet) | `6.0.0` | `6.0.1` |
| [xunit](https://github.com/xunit/xunit) | `2.6.6` | `2.7.0` |
| [xunit.runner.visualstudio](https://github.com/xunit/visualstudio.xunit) | `2.5.6` | `2.5.7` |


Updates `Microsoft.Extensions.Http.Polly` from 8.0.1 to 8.0.2
- [Release notes](https://github.com/dotnet/aspnetcore/releases)
- [Changelog](https://github.com/dotnet/aspnetcore/blob/main/docs/ReleasePlanning.md)
- [Commits](dotnet/aspnetcore@v8.0.1...v8.0.2)

Updates `Meziantou.Analyzer` from 2.0.139 to 2.0.145
- [Release notes](https://github.com/meziantou/Meziantou.Analyzer/releases)
- [Commits](meziantou/Meziantou.Analyzer@2.0.139...2.0.145)

Updates `Microsoft.VisualStudio.Threading.Analyzers` from 17.8.14 to 17.9.28
- [Release notes](https://github.com/microsoft/vs-threading/releases)
- [Commits](https://github.com/microsoft/vs-threading/commits)

Updates `Roslynator.Analyzers` from 4.10.0 to 4.11.0
- [Release notes](https://github.com/dotnet/roslynator/releases)
- [Changelog](https://github.com/dotnet/roslynator/blob/main/ChangeLog.md)
- [Commits](dotnet/roslynator@v4.10.0...v4.11.0)

Updates `Roslynator.CodeAnalysis.Analyzers` from 4.10.0 to 4.11.0
- [Release notes](https://github.com/dotnet/roslynator/releases)
- [Changelog](https://github.com/dotnet/roslynator/blob/main/ChangeLog.md)
- [Commits](dotnet/roslynator@v4.10.0...v4.11.0)

Updates `Roslynator.Formatting.Analyzers` from 4.10.0 to 4.11.0
- [Release notes](https://github.com/dotnet/roslynator/releases)
- [Changelog](https://github.com/dotnet/roslynator/blob/main/ChangeLog.md)
- [Commits](dotnet/roslynator@v4.10.0...v4.11.0)

Updates `coverlet.msbuild` from 6.0.0 to 6.0.1
- [Release notes](https://github.com/coverlet-coverage/coverlet/releases)
- [Commits](coverlet-coverage/coverlet@v6.0.0...v6.0.1)

Updates `xunit.analyzers` from 1.10.0 to 1.11.0
- [Commits](xunit/xunit.analyzers@1.10.0...1.11.0)

Updates `NSubstitute.Analyzers.CSharp` from 1.0.16 to 1.0.17
- [Changelog](https://github.com/nsubstitute/NSubstitute.Analyzers/blob/1.0.17/ReleaseNotes.md)
- [Commits](nsubstitute/NSubstitute.Analyzers@1.0.16...1.0.17)

Updates `Microsoft.AspNetCore.Mvc.Testing` from 6.0.26 to 6.0.27
- [Release notes](https://github.com/dotnet/aspnetcore/releases)
- [Changelog](https://github.com/dotnet/aspnetcore/blob/main/docs/ReleasePlanning.md)
- [Commits](dotnet/aspnetcore@v6.0.26...v6.0.27)

Updates `coverlet.collector` from 6.0.0 to 6.0.1
- [Release notes](https://github.com/coverlet-coverage/coverlet/releases)
- [Commits](coverlet-coverage/coverlet@v6.0.0...v6.0.1)

Updates `xunit` from 2.6.6 to 2.7.0
- [Commits](xunit/xunit@2.6.6...2.7.0)

Updates `xunit.runner.visualstudio` from 2.5.6 to 2.5.7
- [Release notes](https://github.com/xunit/visualstudio.xunit/releases)
- [Commits](xunit/visualstudio.xunit@2.5.6...2.5.7)

---
updated-dependencies:
- dependency-name: Microsoft.Extensions.Http.Polly
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: nuget
- dependency-name: Meziantou.Analyzer
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: nuget
- dependency-name: Microsoft.VisualStudio.Threading.Analyzers
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: nuget
- dependency-name: Roslynator.Analyzers
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: nuget
- dependency-name: Roslynator.CodeAnalysis.Analyzers
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: nuget
- dependency-name: Roslynator.Formatting.Analyzers
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: nuget
- dependency-name: coverlet.msbuild
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: nuget
- dependency-name: xunit.analyzers
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: nuget
- dependency-name: NSubstitute.Analyzers.CSharp
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: nuget
- dependency-name: Microsoft.AspNetCore.Mvc.Testing
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: nuget
- dependency-name: coverlet.collector
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: nuget
- dependency-name: xunit
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: nuget
- dependency-name: xunit.runner.visualstudio
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: nuget
...

Signed-off-by: dependabot[bot] <support@github.com>

* Fix warnings and remove pragmas that aren't needed anymore

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Eduardo Serrano <eduardomserrano@outlook.com>
  • Loading branch information
dependabot[bot] and edumserrano authored Mar 3, 2024
1 parent 863e093 commit 49686b3
Show file tree
Hide file tree
Showing 14 changed files with 25 additions and 35 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,10 @@ public static IHostBuilder UseConfigurationValue(this IHostBuilder hostBuilder,
{
var memoryConfigurationSource = new MemoryConfigurationSource
{
InitialData = new List<KeyValuePair<string, string?>>
{
InitialData =
[
new KeyValuePair<string, string?>(key, value),
},
],
};
builder.Add(memoryConfigurationSource);
});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,10 @@ public static IWebHostBuilder UseConfigurationValue(this IWebHostBuilder builder
{
var memoryConfigurationSource = new MemoryConfigurationSource
{
InitialData = new List<KeyValuePair<string, string?>>
{
InitialData =
[
new KeyValuePair<string, string?>(key, value),
},
],
};
appConfigBuilder.Add(memoryConfigurationSource);
});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ public static ICollection<string> GetServerAddresses(this IHost host)
var server = host.Services.GetRequiredService<IServer>();
var addressFeature = server.Features.Get<IServerAddressesFeature>();
return addressFeature is null
? new List<string>()
? []
: addressFeature.Addresses;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
</PackageReference>
<PackageReference Include="Microsoft.Extensions.Http.Polly" Version="8.0.1" />
<PackageReference Include="xunit" Version="2.6.6" />
<PackageReference Include="xunit.runner.visualstudio" Version="2.5.6">
<PackageReference Include="xunit.runner.visualstudio" Version="2.5.7">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,12 @@ namespace DotNet.Sdk.Extensions.Testing.Tests.HostedServices;
[Trait("Category", XUnitCategories.HostedServices)]
public class RunUntilHostExtensionsWithAsyncPredicateTests
{
#pragma warning disable CA2000 // Dispose objects before losing scope - the test method will do the dispose
public static TheoryData<IHost, RunUntilPredicateAsync, Type, string> ValidateArgumentsData =>
new TheoryData<IHost, RunUntilPredicateAsync, Type, string>
{
{ null!, () => Task.FromResult(true), typeof(ArgumentNullException), "Value cannot be null. (Parameter 'host')" },
{ CreateHost(), null!, typeof(ArgumentNullException), "Value cannot be null. (Parameter 'predicateAsync')" },
};
#pragma warning disable CA2000 // Dispose objects before losing scope - the test method will do the dispose

private static IHost CreateHost()
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,12 @@ namespace DotNet.Sdk.Extensions.Testing.Tests.HostedServices;
[Trait("Category", XUnitCategories.HostedServices)]
public class RunUntilHostExtensionsWithSyncPredicateTests
{
#pragma warning disable CA2000 // Dispose objects before losing scope - the test method will do the dispose
public static TheoryData<IHost, RunUntilPredicate, Type, string> ValidateArgumentsData =>
new TheoryData<IHost, RunUntilPredicate, Type, string>
{
{ null!, () => true, typeof(ArgumentNullException), "Value cannot be null. (Parameter 'host')" },
{ CreateHost(), null!, typeof(ArgumentNullException), "Value cannot be null. (Parameter 'predicate')" },
};
#pragma warning disable CA2000 // Dispose objects before losing scope - the test method will do the dispose

private static IHost CreateHost()
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,12 @@ namespace DotNet.Sdk.Extensions.Testing.Tests.HostedServices;
[Trait("Category", XUnitCategories.HostedServices)]
public class RunUntilWebApplicationFactoryExtensionsWithAsyncPredicateTests
{
#pragma warning disable CA2000 // Dispose objects before losing scope - the test method will do the dispose
public static TheoryData<HostedServicesWebApplicationFactory, RunUntilPredicateAsync, Type, string> ValidateArgumentsData =>
new TheoryData<HostedServicesWebApplicationFactory, RunUntilPredicateAsync, Type, string>
{
{ null!, () => Task.FromResult(true), typeof(ArgumentNullException), "Value cannot be null. (Parameter 'webApplicationFactory')" },
{ new HostedServicesWebApplicationFactory(), null!, typeof(ArgumentNullException), "Value cannot be null. (Parameter 'predicateAsync')" },
};
#pragma warning restore CA2000 // Dispose objects before losing scope - the test method will do the dispose

/// <summary>
/// Validates the arguments for the <see cref="RunUntilExtensions.RunUntilAsync{T}(WebApplicationFactory{T},RunUntilPredicateAsync)"/>
Expand All @@ -35,15 +33,13 @@ public void ValidatesArguments(
webApplicationFactory?.Dispose();
}

#pragma warning disable CA2000 // Dispose objects before losing scope - the test method will do the dispose
public static TheoryData<HostedServicesWebApplicationFactory, RunUntilPredicateAsync, Action<RunUntilOptions>, Type, string> ValidateArgumentsWithOptionsData =>
new TheoryData<HostedServicesWebApplicationFactory, RunUntilPredicateAsync, Action<RunUntilOptions>, Type, string>
{
{ null!, () => Task.FromResult(true), _ => { }, typeof(ArgumentNullException), "Value cannot be null. (Parameter 'webApplicationFactory')" },
{ new HostedServicesWebApplicationFactory(), null!, _ => { }, typeof(ArgumentNullException), "Value cannot be null. (Parameter 'predicateAsync')" },
{ new HostedServicesWebApplicationFactory(), () => Task.FromResult(true), null!, typeof(ArgumentNullException), "Value cannot be null. (Parameter 'configureOptions')" },
};
#pragma warning restore CA2000 // Dispose objects before losing scope - the test method will do the dispose

/// <summary>
/// Validates the arguments for the <see cref="RunUntilExtensions.RunUntilAsync{T}(WebApplicationFactory{T},RunUntilPredicateAsync,Action{RunUntilOptions})"/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,12 @@ namespace DotNet.Sdk.Extensions.Testing.Tests.HostedServices;
[Trait("Category", XUnitCategories.HostedServices)]
public class RunUntilWebApplicationFactoryExtensionsWithSyncPredicateTests
{
#pragma warning disable CA2000 // Dispose objects before losing scope - the test method will do the dispose
public static TheoryData<HostedServicesWebApplicationFactory, RunUntilPredicate, Type, string> ValidateArgumentsData =>
new TheoryData<HostedServicesWebApplicationFactory, RunUntilPredicate, Type, string>
{
{ null!, () => true, typeof(ArgumentNullException), "Value cannot be null. (Parameter 'webApplicationFactory')" },
{ new HostedServicesWebApplicationFactory(), null!, typeof(ArgumentNullException), "Value cannot be null. (Parameter 'predicate')" },
};
#pragma warning disable CA2000 // Dispose objects before losing scope - the test method will do the dispose

/// <summary>
/// Validates the arguments for the <see cref="RunUntilExtensions.RunUntilAsync{T}(WebApplicationFactory{T},RunUntilPredicate)"/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
<PackageReference Include="xunit" Version="2.6.6" />
<PackageReference Include="xunit.runner.visualstudio" Version="2.5.6">
<PackageReference Include="xunit.runner.visualstudio" Version="2.5.7">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ public class AddOptionsValueTests
[Fact]
public void AddsOptionsType1()
{
using var configuration = new ConfigurationRoot(new List<IConfigurationProvider>());
using var configuration = new ConfigurationRoot([]);
var serviceCollection = new ServiceCollection();
serviceCollection.AddOptionsValue<MyOptions>(configuration);
var serviceProvider = serviceCollection.BuildServiceProvider();
Expand All @@ -25,7 +25,7 @@ public void AddsOptionsType1()
[Fact]
public void ValidatesArguments1()
{
using var configuration = new ConfigurationRoot(new List<IConfigurationProvider>());
using var configuration = new ConfigurationRoot([]);
var servicesArgumentNullException = Should.Throw<ArgumentNullException>(() =>
{
OptionsBuilderExtensions.AddOptionsValue<MyOptions>(services: null!, configuration);
Expand All @@ -42,10 +42,10 @@ public void AddsOptionsType2()
{
var memoryConfigurationSource = new MemoryConfigurationSource
{
InitialData = new List<KeyValuePair<string, string?>>
{
InitialData =
[
new KeyValuePair<string, string?>("MyOptionsSection:SomeOption", "some value"),
},
],
};
var memoryConfigurationProvider = new MemoryConfigurationProvider(memoryConfigurationSource);
var configurationProviders = new List<IConfigurationProvider> { memoryConfigurationProvider };
Expand All @@ -65,7 +65,7 @@ public void AddsOptionsType2()
[Fact]
public void ValidatesArguments2()
{
using var configuration = new ConfigurationRoot(new List<IConfigurationProvider>());
using var configuration = new ConfigurationRoot([]);
var serviceCollection = new ServiceCollection();
var servicesArgumentNullException = Should.Throw<ArgumentNullException>(() =>
{
Expand All @@ -86,7 +86,7 @@ public void ValidatesArguments2()
[Fact]
public void AddsOptionsType3()
{
using var configuration = new ConfigurationRoot(new List<IConfigurationProvider>());
using var configuration = new ConfigurationRoot([]);
var serviceCollection = new ServiceCollection();
serviceCollection
.AddOptions<MyOptions>()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@ namespace DotNet.Sdk.Extensions.Tests.Polly.Http.CircuitBreaker.Auxiliary;

public class CircuitBreakerPolicyEventHandlerCalls
{
public IList<BreakEvent> OnBreakAsyncCalls { get; } = new List<BreakEvent>();
public IList<BreakEvent> OnBreakAsyncCalls { get; } = [];

public IList<HalfOpenEvent> OnHalfOpenAsyncCalls { get; } = new List<HalfOpenEvent>();
public IList<HalfOpenEvent> OnHalfOpenAsyncCalls { get; } = [];

public IList<ResetEvent> OnResetAsyncCalls { get; } = new List<ResetEvent>();
public IList<ResetEvent> OnResetAsyncCalls { get; } = [];

public void AddOnBreak(BreakEvent breakEvent)
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@ namespace DotNet.Sdk.Extensions.Tests.Polly.Http.Fallback.Auxiliary;

public class FallbackPolicyEventHandlerCalls
{
public IList<FallbackEvent> OnHttpRequestExceptionFallbackAsyncCalls { get; } = new List<FallbackEvent>();
public IList<FallbackEvent> OnHttpRequestExceptionFallbackAsyncCalls { get; } = [];

public IList<FallbackEvent> OnTimeoutFallbackAsyncCalls { get; } = new List<FallbackEvent>();
public IList<FallbackEvent> OnTimeoutFallbackAsyncCalls { get; } = [];

public IList<FallbackEvent> OnBrokenCircuitFallbackAsyncCalls { get; } = new List<FallbackEvent>();
public IList<FallbackEvent> OnBrokenCircuitFallbackAsyncCalls { get; } = [];

public IList<FallbackEvent> OnTaskCancelledFallbackAsyncCalls { get; } = new List<FallbackEvent>();
public IList<FallbackEvent> OnTaskCancelledFallbackAsyncCalls { get; } = [];

public void AddOnHttpRequestExceptionFallback(FallbackEvent fallbackEvent)
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ namespace DotNet.Sdk.Extensions.Tests.Polly.Http.Retry.Auxiliary;

public class RetryPolicyEventHandlerCalls
{
public IList<RetryEvent> OnRetryAsyncCalls { get; } = new List<RetryEvent>();
public IList<RetryEvent> OnRetryAsyncCalls { get; } = [];

public void AddOnRetry(RetryEvent retryEvent)
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ namespace DotNet.Sdk.Extensions.Tests.Polly.Http.Timeout.Auxiliary;

public class TimeoutPolicyEventHandlerCalls
{
public IList<TimeoutEvent> OnTimeoutAsyncCalls { get; } = new List<TimeoutEvent>();
public IList<TimeoutEvent> OnTimeoutAsyncCalls { get; } = [];

public void AddOnTimeout(TimeoutEvent timeoutEvent)
{
Expand Down

0 comments on commit 49686b3

Please sign in to comment.