-
Notifications
You must be signed in to change notification settings - Fork 3
/
Directory.Build.props
21 lines (18 loc) · 1.07 KB
/
Directory.Build.props
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<LangVersion>12</LangVersion>
<Nullable>enable</Nullable>
<WarningsAsErrors>true</WarningsAsErrors>
</PropertyGroup>
<PropertyGroup Label="Code Analysis">
<AnalysisLevel>latest-Recommended</AnalysisLevel>
<NoWarn>$(NoWarn);CA1051</NoWarn> <!-- Do not declare visible instance fields -->
<NoWarn>$(NoWarn);CA1069</NoWarn> <!-- Enums values should not be duplicated -->
<NoWarn>$(NoWarn);CA1309</NoWarn> <!-- Use ordinal string comparison (NOTE: this rule seems broken) -->
<NoWarn>$(NoWarn);CA1720</NoWarn> <!-- Identifier contains type name -->
<NoWarn>$(NoWarn);CA1716</NoWarn> <!-- Identifiers should not match keywords -->
<NoWarn>$(NoWarn);CA1510</NoWarn> <!-- Use ArgumentNullException.ThrowIfNull -->
<NoWarn>$(NoWarn);CA1711</NoWarn> <!-- Identifiers should not have incorrect suffix -->
<NoWarn>$(NoWarn);CA1863</NoWarn> <!-- Cache a 'CompositeFormat' for repeated use in this formatting operation -->
</PropertyGroup>
</Project>