-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDirectory.Build.props
More file actions
21 lines (20 loc) · 1.14 KB
/
Copy pathDirectory.Build.props
File metadata and controls
21 lines (20 loc) · 1.14 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
<Project>
<!-- All properties scoped to non-analyser projects -->
<PropertyGroup Condition="'$(MSBuildProjectName)' != 'CodeRag.Analyzers'">
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
<EnforceCodeStyleInBuild>true</EnforceCodeStyleInBuild>
<EnableNETAnalyzers>true</EnableNETAnalyzers>
<AnalysisLevel>latest-all</AnalysisLevel>
<!-- Required for IDE0005 (remove unnecessary usings) to work in build -->
<GenerateDocumentationFile>true</GenerateDocumentationFile>
<!-- NU1510: NuGet pruning suggestion — not a code quality issue -->
<!-- CI0002: public method test coverage — visible warning, not blocking until promoted -->
<WarningsNotAsErrors>$(WarningsNotAsErrors);NU1510;CI0002</WarningsNotAsErrors>
</PropertyGroup>
<!-- Custom analyser — runs on all projects except the analyser itself -->
<ItemGroup Condition="'$(MSBuildProjectName)' != 'CodeRag.Analyzers'">
<ProjectReference Include="$(MSBuildThisFileDirectory)src\CodeRag.Analyzers\CodeRag.Analyzers.csproj"
OutputItemType="Analyzer"
ReferenceOutputAssembly="false" />
</ItemGroup>
</Project>