Invert code and style analysis configuration (#6334)

Co-authored-by: Bond-009 <bond.009@outlook.com>
This commit is contained in:
Rich Lander
2021-07-30 00:49:28 -07:00
committed by GitHub
parent 92c2d20609
commit c07e83fdf8
37 changed files with 44 additions and 133 deletions

14
Directory.Build.props Normal file
View File

@@ -0,0 +1,14 @@
<Project>
<!-- Sets defaults for all projects in the repo -->
<PropertyGroup>
<Nullable>enable</Nullable>
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
<CodeAnalysisRuleSet>$(MSBuildThisFileDirectory)/jellyfin.ruleset</CodeAnalysisRuleSet>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)' == 'Debug' ">
<AnalysisMode>AllEnabledByDefault</AnalysisMode>
</PropertyGroup>
</Project>