Skip to content

Commit

Permalink
Bump SonarAnalyzer.CSharp from 9.23.1.88495 to 9.23.2.88755 in /src i…
Browse files Browse the repository at this point in the history
…n the analyzers group (#113)
  • Loading branch information
dependabot[bot] committed Apr 15, 2024
1 parent f4c6982 commit bc9aaaa
Show file tree
Hide file tree
Showing 12 changed files with 31 additions and 19 deletions.
12 changes: 12 additions & 0 deletions src/.editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -3560,6 +3560,18 @@ dotnet_diagnostic.xUnit1042.severity = suggestion
# xUnit1043: Constructors on classes derived from FactAttribute must be public when used on test methods
dotnet_diagnostic.xUnit1043.severity = error

# xUnit1044: Avoid using TheoryData type arguments that are not serializable
dotnet_diagnostic.xUnit1044.severity = none

# xUnit1045: Avoid using TheoryData type arguments that might not be serializable
dotnet_diagnostic.xUnit1045.severity = none

# xUnit1046: Avoid using TheoryDataRow arguments that are not serializable
dotnet_diagnostic.xUnit1046.severity = none

# xUnit1047: Avoid using TheoryDataRow arguments that might not be serializable
dotnet_diagnostic.xUnit1047.severity = none

# xUnit2000: Constants and literals should be the expected argument
dotnet_diagnostic.xUnit2000.severity = warning

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
<PackageReference Include="SonarAnalyzer.CSharp" Version="9.23.1.88495">
<PackageReference Include="SonarAnalyzer.CSharp" Version="9.23.2.88755">
<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 @@ -101,7 +101,7 @@
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
<PackageReference Include="SonarAnalyzer.CSharp" Version="9.23.1.88495">
<PackageReference Include="SonarAnalyzer.CSharp" Version="9.23.2.88755">
<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 @@ -77,7 +77,7 @@
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
<PackageReference Include="SonarAnalyzer.CSharp" Version="9.23.1.88495">
<PackageReference Include="SonarAnalyzer.CSharp" Version="9.23.2.88755">
<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 @@ -101,7 +101,7 @@
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
<PackageReference Include="SonarAnalyzer.CSharp" Version="9.23.1.88495">
<PackageReference Include="SonarAnalyzer.CSharp" Version="9.23.2.88755">
<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 @@ -76,7 +76,7 @@
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
<PackageReference Include="SonarAnalyzer.CSharp" Version="9.23.1.88495">
<PackageReference Include="SonarAnalyzer.CSharp" Version="9.23.2.88755">
<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 @@ -101,7 +101,7 @@
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
<PackageReference Include="SonarAnalyzer.CSharp" Version="9.23.1.88495">
<PackageReference Include="SonarAnalyzer.CSharp" Version="9.23.2.88755">
<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 @@ -86,9 +86,9 @@ public void GivenNoArguments_WhenConstructorIsInvoked_ThenExceptionIsThrown()
[InlineData(1, 1)]
[InlineData("a", "a")]
[Theory(DisplayName = "GIVEN identical arguments WHEN constructor is invoked THEN unique parameters are properly assigned")]
public void GivenIdenticalArguments_WhenConstructorIsInvoked_ThenUniqueParametersAreProperlyAssigned(
object first,
object second)
public void GivenIdenticalArguments_WhenConstructorIsInvoked_ThenUniqueParametersAreProperlyAssigned<T>(
T first,
T second)
{
// Arrange
var attribute = new ExceptAttribute(first, second);
Expand All @@ -114,8 +114,8 @@ public void GivenNoArguments_WhenConstructorIsInvoked_ThenExceptionIsThrown()

[MemberData(nameof(CustomizationUsageTestData))]
[Theory(DisplayName = "GIVEN valid parameters WHEN customization is used THEN expected values are generated")]
public void GivenValidParameters_WhenCustomizationIsUsed_ThenExpectedValuesAreGenerated(
object item)
public void GivenValidParameters_WhenCustomizationIsUsed_ThenExpectedValuesAreGenerated<T>(
T item)
{
// Arrange
var attribute = new ExceptAttribute(item);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -93,9 +93,9 @@ public void GivenNoArguments_WhenConstructorIsInvoked_ThenExceptionIsThrown()
[InlineData(1, 1)]
[InlineData("a", "a")]
[Theory(DisplayName = "GIVEN identical arguments WHEN constructor is invoked THEN unique parameters are properly assigned")]
public void GivenIdenticalArguments_WhenConstructorIsInvoked_ThenUniqueParametersAreProperlyAssigned(
object first,
object second)
public void GivenIdenticalArguments_WhenConstructorIsInvoked_ThenUniqueParametersAreProperlyAssigned<T>(
T first,
T second)
{
// Arrange
var attribute = new PickFromValuesAttribute(first, second);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -111,10 +111,10 @@ public void GivenUninitializedArgument_WhenCreateIsInvoked_ThenExceptionIsThrown

[MemberData(nameof(NumericTypeUsageTestData))]
[Theory(DisplayName = "GIVEN supported numeric type WHEN Create is invoked THEN returns request with expected range")]
public void GivenSupportedNumericType_WhenCreateIsInvoked_ThenReturnsRequestWithExpectedRange(
public void GivenSupportedNumericType_WhenCreateIsInvoked_ThenReturnsRequestWithExpectedRange<T>(
Type type,
object min,
object max)
T min,
T max)
{
// Arrange
// Act
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
<PackageReference Include="SonarAnalyzer.CSharp" Version="9.23.1.88495">
<PackageReference Include="SonarAnalyzer.CSharp" Version="9.23.2.88755">
<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 @@ -82,7 +82,7 @@
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
<PackageReference Include="SonarAnalyzer.CSharp" Version="9.23.1.88495">
<PackageReference Include="SonarAnalyzer.CSharp" Version="9.23.2.88755">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
Expand Down

0 comments on commit bc9aaaa

Please sign in to comment.