Skip to content

Commit

Permalink
Disable rule with ruleset
Browse files Browse the repository at this point in the history
Disable CA1515 in the ruleset file rather than with NoWarn.
  • Loading branch information
martincostello authored Jun 11, 2024
1 parent ead5976 commit 9d92c9b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Directory.Build.props
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
<LangVersion>preview</LangVersion>
<ManagePackageVersionsCentrally>true</ManagePackageVersionsCentrally>
<NeutralLanguage>en-US</NeutralLanguage>
<NoWarn>$(NoWarn);CA1515;CS1591</NoWarn>
<NoWarn>$(NoWarn);CS1591</NoWarn>
<Nullable>enable</Nullable>
<PackageLicenseExpression>Apache-2.0</PackageLicenseExpression>
<PackageProjectUrl>https://github.com/martincostello/project-euler</PackageProjectUrl>
Expand Down
1 change: 1 addition & 0 deletions ProjectEuler.ruleset
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
<Rule Id="CA1056" Action="None" />
<Rule Id="CA1062" Action="None" />
<Rule Id="CA1303" Action="None" />
<Rule Id="CA1515" Action="None" />
<Rule Id="CA1812" Action="None" />
<Rule Id="CA1819" Action="None" />
<Rule Id="CA2007" Action="None" />
Expand Down

0 comments on commit 9d92c9b

Please sign in to comment.