Skip to content

Commit

Permalink
.NET 9 preparation
Browse files Browse the repository at this point in the history
- Move suppressions to `.ruleset` file.
- Set `NuGetAuditMode=direct`.
  • Loading branch information
martincostello committed Jul 11, 2024
1 parent f8e99bc commit bd1d3e5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions CodeAnalysisRules.ruleset
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
<?xml version="1.0" encoding="utf-8"?>
<RuleSet Name="CodeProjects" Description="Code analysis rules for JustSaying Code." ToolsVersion="15.0">
<Rules AnalyzerId="Microsoft.Analyzers.ManagedCodeAnalysis" RuleNamespace="Microsoft.Rules.Managed">
<Rule Id="CA1062" Action="None" />
<Rule Id="CA1303" Action="None" />
<Rule Id="CA1308" Action="None" />
<Rule Id="CA1515" Action="None" />
</Rules>
</RuleSet>
2 changes: 1 addition & 1 deletion Directory.Build.props
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
<EmbedUntrackedSources>true</EmbedUntrackedSources>
<EnableNETAnalyzers>true</EnableNETAnalyzers>
<ManagePackageVersionsCentrally>true</ManagePackageVersionsCentrally>
<NoWarn>$(NoWarn);CA1062;CA1303</NoWarn>
<NuGetAuditMode>direct</NuGetAuditMode>
<PackageIcon>package-icon.png</PackageIcon>
<PackageLicenseExpression>Apache-2.0</PackageLicenseExpression>
<PackageProjectUrl>https://github.com/justeattakeaway/JustSaying</PackageProjectUrl>
Expand Down

0 comments on commit bd1d3e5

Please sign in to comment.