Skip to content

Commit 9d00dff

Browse files
committed
Treat warnings as errors and increase warning level
1 parent e709f87 commit 9d00dff

File tree

2 files changed

+11
-1
lines changed

2 files changed

+11
-1
lines changed

src/Directory.Build.props

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

21-
</Project>
21+
<PropertyGroup>
22+
<WarningLevel>5</WarningLevel>
23+
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
24+
</PropertyGroup>
25+
26+
</Project>

tests/Directory.Build.props

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,4 +45,9 @@
4545
<CodeAnalysisRuleSet>$(SolutionDir)\stylecop.analyzers.ruleset</CodeAnalysisRuleSet>
4646
</PropertyGroup>
4747

48+
<PropertyGroup>
49+
<WarningLevel>5</WarningLevel>
50+
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
51+
</PropertyGroup>
52+
4853
</Project>

0 commit comments

Comments
 (0)