Skip to content

Commit 2e8206f

Browse files
Infra-Workleaprenovate-botGérald Barré
authored
chore(deps): update dependency microsoft.codeanalysis.netanalyzers to v9 (#56)
--------- Co-authored-by: Renovate Bot <bot@renovateapp.com> Co-authored-by: Gérald Barré <gerald.barre@gsoft.com>
1 parent a1e4fd2 commit 2e8206f

File tree

8 files changed

+56
-7
lines changed

8 files changed

+56
-7
lines changed

.github/workflows/semgrep.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,5 +10,6 @@ on:
1010
jobs:
1111
call-workflow-semgrep:
1212
permissions:
13+
contents: read
1314
security-events: write
1415
uses: gsoft-inc/wl-reusable-workflows/.github/workflows/reusable-semgrep-workflow.yml@main

Build.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ Process {
3838

3939
# Push to a NuGet feed if the environment variables are set
4040
if (($null -ne $env:NUGET_SOURCE ) -and ($null -ne $env:NUGET_API_KEY)) {
41-
Exec { & dotnet nuget push "$nupkgsPath" -s $env:NUGET_SOURCE -k $env:NUGET_API_KEY }
41+
Exec { & dotnet nuget push "$nupkgsPath" -s $env:NUGET_SOURCE -k $env:NUGET_API_KEY --skip-duplicate }
4242
}
4343
}
4444
finally {

Directory.Build.props

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,6 @@
55
</PropertyGroup>
66

77
<ItemGroup>
8-
<PackageReference Include="Workleap.DotNet.CodingStandards" Version="0.6.0" />
8+
<PackageReference Include="Workleap.DotNet.CodingStandards" Version="0.7.0" />
99
</ItemGroup>
10-
</Project>
10+
</Project>

Workleap.DotNet.CodingStandards.nuspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
<repository type="git" url="$RepositoryUrl$" commit="$RepositoryCommit$" branch="$RepositoryBranch$" />
1515
<dependencies>
1616
<dependency id="Microsoft.CodeAnalysis.BannedApiAnalyzers" version="3.3.4" />
17-
<dependency id="Microsoft.CodeAnalysis.NetAnalyzers" version="8.0.0" />
17+
<dependency id="Microsoft.CodeAnalysis.NetAnalyzers" version="9.0.0" />
1818
<dependency id="StyleCop.Analyzers" version="1.2.0-beta.556" />
1919
</dependencies>
2020
</metadata>

src/build/Workleap.DotNet.CodingStandards.props

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,9 @@
99
<IncludeSymbols Condition="'$(IncludeSymbols)' == ''">true</IncludeSymbols>
1010
<SymbolPackageFormat Condition="'$(SymbolPackageFormat)' == ''">snupkg</SymbolPackageFormat>
1111

12+
<!-- Prevent warning when the .NET SDK version and the Microsoft.CodeAnalysis.NetAnalyzers version mismatch -->
13+
<_SkipUpgradeNetAnalyzersNuGetWarning>true</_SkipUpgradeNetAnalyzersNuGetWarning>
14+
1215
<!-- https://learn.microsoft.com/en-us/nuget/release-notes/nuget-5.5#summary-whats-new-in-55 -->
1316
<RestoreUseStaticGraphEvaluation Condition="'$(RestoreUseStaticGraphEvaluation)' == ''">true</RestoreUseStaticGraphEvaluation>
1417

src/files/analyzers/Analyzer.Microsoft.CodeAnalysis.NetAnalyzers.editorconfig

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -395,6 +395,16 @@ dotnet_diagnostic.CA1512.severity = warning
395395
# Enabled: True, Severity: suggestion
396396
dotnet_diagnostic.CA1513.severity = warning
397397

398+
# CA1514: Avoid redundant length argument
399+
# Help link: https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1514
400+
# Enabled: True, Severity: suggestion
401+
dotnet_diagnostic.CA1514.severity = suggestion
402+
403+
# CA1515: Consider making public types internal
404+
# Help link: https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1515
405+
# Enabled: False, Severity: warning
406+
dotnet_diagnostic.CA1515.severity = none
407+
398408
# CA1700: Do not name enum values 'Reserved'
399409
# Help link: https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1700
400410
# Enabled: False, Severity: warning
@@ -781,6 +791,16 @@ dotnet_diagnostic.CA1869.severity = warning
781791
# Enabled: True, Severity: suggestion
782792
dotnet_diagnostic.CA1870.severity = warning
783793

794+
# CA1871: Do not pass a nullable struct to 'ArgumentNullException.ThrowIfNull'
795+
# Help link: https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1871
796+
# Enabled: True, Severity: suggestion
797+
dotnet_diagnostic.CA1871.severity = suggestion
798+
799+
# CA1872: Prefer 'Convert.ToHexString' and 'Convert.ToHexStringLower' over call chains based on 'BitConverter.ToString'
800+
# Help link: https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1872
801+
# Enabled: True, Severity: suggestion
802+
dotnet_diagnostic.CA1872.severity = suggestion
803+
784804
# CA2000: Dispose objects before losing scope
785805
# Help link: https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca2000
786806
# Enabled: False, Severity: warning
@@ -864,6 +884,11 @@ dotnet_diagnostic.CA2020.severity = warning
864884
# Enabled: True, Severity: warning
865885
dotnet_diagnostic.CA2021.severity = warning
866886

887+
# CA2022: Avoid inexact read with 'Stream.Read'
888+
# Help link: https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca2022
889+
# Enabled: True, Severity: warning
890+
dotnet_diagnostic.CA2022.severity = warning
891+
867892
# CA2100: Review SQL queries for security vulnerabilities
868893
# Help link: https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca2100
869894
# Enabled: False, Severity: warning
@@ -1091,6 +1116,26 @@ dotnet_diagnostic.CA2260.severity = warning
10911116
# Enabled: True, Severity: warning
10921117
dotnet_diagnostic.CA2261.severity = warning
10931118

1119+
# CA2262: Set 'MaxResponseHeadersLength' properly
1120+
# Help link: https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca2262
1121+
# Enabled: True, Severity: suggestion
1122+
dotnet_diagnostic.CA2262.severity = suggestion
1123+
1124+
# CA2263: Prefer generic overload when type is known
1125+
# Help link: https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca2263
1126+
# Enabled: True, Severity: suggestion
1127+
dotnet_diagnostic.CA2263.severity = suggestion
1128+
1129+
# CA2264: Do not pass a non-nullable value to 'ArgumentNullException.ThrowIfNull'
1130+
# Help link: https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca2264
1131+
# Enabled: True, Severity: warning
1132+
dotnet_diagnostic.CA2264.severity = warning
1133+
1134+
# CA2265: Do not compare Span<T> to 'null' or 'default'
1135+
# Help link: https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca2265
1136+
# Enabled: True, Severity: warning
1137+
dotnet_diagnostic.CA2265.severity = warning
1138+
10941139
# CA2300: Do not use insecure deserializer BinaryFormatter
10951140
# Help link: https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca2300
10961141
# Enabled: False, Severity: warning

tests/Workleap.DotNet.CodingStandards.Tests/Workleap.DotNet.CodingStandards.Tests.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
<ItemGroup>
1010
<PackageReference Include="CliWrap" Version="3.6.7" />
11-
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.11.1" />
11+
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.12.0" />
1212
<PackageReference Include="xunit" Version="2.9.2" />
1313
<PackageReference Include="xunit.runner.visualstudio" Version="2.8.2">
1414
<PrivateAssets>all</PrivateAssets>

tools/ConfigurationFilesGenerator/ConfigurationFilesGenerator.csproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,12 @@
88
</PropertyGroup>
99

1010
<ItemGroup>
11-
<PackageReference Include="Meziantou.Framework.FullPath" Version="1.0.13" />
11+
<PackageReference Include="Meziantou.Framework.FullPath" Version="1.0.14" />
1212
<PackageReference Include="Microsoft.CodeAnalysis.Common" Version="4.11.0" />
1313
<PackageReference Include="Microsoft.CodeAnalysis.CSharp.Workspaces" Version="4.11.0" />
1414
<PackageReference Include="Microsoft.CodeAnalysis.VisualBasic" Version="4.11.0" />
1515
<PackageReference Include="Microsoft.CodeAnalysis.VisualBasic.Workspaces" Version="4.11.0" />
16-
<PackageReference Include="NuGet.Protocol" Version="6.11.1" />
16+
<PackageReference Include="NuGet.Protocol" Version="6.12.1" />
1717
</ItemGroup>
1818

1919
</Project>

0 commit comments

Comments
 (0)