Skip to content

Commit d8875b6

Browse files
committed
Added more analyzers
1 parent f913fdd commit d8875b6

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

src/Directory.Build.props

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,15 @@
1818
<CodeAnalysisRuleSet>$(MSBuildThisFileDirectory)\..\stylecop.analyzers.ruleset</CodeAnalysisRuleSet>
1919
</PropertyGroup>
2020

21+
<PropertyGroup Label="Analyzer settings">
22+
<AnalysisMode>AllEnabledByDefault</AnalysisMode>
23+
<EnableNETAnalyzers>true</EnableNETAnalyzers>
24+
<AnalysisLevel>preview</AnalysisLevel>
25+
<EnforceCodeStyleInBuild>true</EnforceCodeStyleInBuild>
26+
</PropertyGroup>
27+
2128
<PropertyGroup>
22-
<WarningLevel>5</WarningLevel>
29+
<WarningLevel>99</WarningLevel>
2330
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
2431
</PropertyGroup>
2532

0 commit comments

Comments
 (0)