-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDirectory.Build.props
More file actions
26 lines (21 loc) · 950 Bytes
/
Copy pathDirectory.Build.props
File metadata and controls
26 lines (21 loc) · 950 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
<Project>
<!--
Shared Roslyn analyzer settings for the SplitIt backend.
Ratchet strategy: analyzers run as WARNINGS for now, so the build stays green
on the existing (legacy) codebase while still surfacing issues. Promote
individual rules to `error` in .editorconfig as the code gets cleaned up.
Do NOT add <TreatWarningsAsErrors>true</TreatWarningsAsErrors> here until the
warning backlog is close to zero.
-->
<PropertyGroup>
<AnalysisMode>Recommended</AnalysisMode>
<EnforceCodeStyleInBuild>true</EnforceCodeStyleInBuild>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="SonarAnalyzer.CSharp" Version="10.35.0.4138" PrivateAssets="all" />
</ItemGroup>
<!-- Test projects: xUnit naming conventions intentionally use underscores. -->
<PropertyGroup Condition="$(MSBuildProjectName.EndsWith('.Tests'))">
<NoWarn>$(NoWarn);CA1707;CA1861;CA1822</NoWarn>
</PropertyGroup>
</Project>