Skip to content

Commit d267fe0

Browse files
authored
Code analysis fixes (#884)
1 parent b6951da commit d267fe0

File tree

7 files changed

+22
-24
lines changed

7 files changed

+22
-24
lines changed

.github/workflows/ci.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,9 @@ jobs:
3535
- name: Setup .NET SDK
3636
uses: actions/setup-dotnet@v4.0.0
3737
with:
38-
dotnet-version: 8.0.x
38+
dotnet-version: |
39+
8.0.x
40+
6.0.x
3941
- name: Setup Azure Functions Core Tools - Windows
4042
if: runner.os == 'Windows'
4143
run: |
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
[*.cs]
2+
3+
# ConfigureAwait(false)
4+
dotnet_diagnostic.CA2007.severity = none

src/IntegrationTests.HostV4/GlobalSuppressions.cs

Lines changed: 0 additions & 8 deletions
This file was deleted.
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
[*.cs]
2+
3+
# ConfigureAwait(false)
4+
dotnet_diagnostic.CA2007.severity = none
5+
6+
# Use pattern matching (may change code meaning)
7+
dotnet_diagnostic.IDE0078.severity = none
8+
9+
# Use pattern matching
10+
dotnet_diagnostic.IDE0083.severity = none
11+
12+
# Convert switch statement to expression
13+
dotnet_diagnostic.IDE0066.severity = none

src/NServiceBus.AzureFunctions.Analyzer.Tests/GlobalSuppressions.cs

Lines changed: 0 additions & 11 deletions
This file was deleted.

src/NServiceBus.AzureFunctions.Analyzer.Tests/NServiceBus.AzureFunctions.Analyzer.Tests.csproj

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@
22

33
<PropertyGroup>
44
<TargetFramework>net6.0</TargetFramework>
5-
<SignAssembly>true</SignAssembly>
6-
<AssemblyOriginatorKeyFile>..\NServiceBusTests.snk</AssemblyOriginatorKeyFile>
75
</PropertyGroup>
86

97
<ItemGroup>

src/NServiceBus.AzureFunctions.InProcess.ServiceBus/NServiceBus.AzureFunctions.InProcess.ServiceBus.csproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@
1313
<ItemGroup>
1414
<PackageReference Include="Microsoft.Azure.Functions.Extensions" Version="1.1.0" />
1515
<PackageReference Include="Microsoft.Azure.WebJobs.Extensions.ServiceBus" Version="5.16.4" />
16-
<PackageReference Include="NServiceBus.Newtonsoft.Json" Version="3.0.0" />
1716
<PackageReference Include="NServiceBus" Version="8.2.4" />
17+
<PackageReference Include="NServiceBus.Newtonsoft.Json" Version="3.0.0" />
1818
<PackageReference Include="NServiceBus.Transport.AzureServiceBus" Version="3.2.5" />
1919
<PackageReference Include="Obsolete.Fody" Version="5.3.0" PrivateAssets="All" />
2020
<PackageReference Include="Particular.Packaging" Version="4.2.0" PrivateAssets="All" />
@@ -36,8 +36,8 @@
3636
</Target>
3737

3838
<ItemGroup>
39-
<InternalsVisibleTo Include="ServiceBus.Tests" Key="$(NServiceBusTestsKey)" />
4039
<InternalsVisibleTo Include="ServiceBus.AcceptanceTests" Key="$(NServiceBusTestsKey)" />
40+
<InternalsVisibleTo Include="ServiceBus.Tests" Key="$(NServiceBusTestsKey)" />
4141
</ItemGroup>
4242

4343
</Project>

0 commit comments

Comments
 (0)