forked from RatScanner/RatScanner
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathDirectory.Build.props
More file actions
32 lines (30 loc) · 1.82 KB
/
Copy pathDirectory.Build.props
File metadata and controls
32 lines (30 loc) · 1.82 KB
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
27
28
29
30
31
32
<Project>
<!--
Solution-wide code-quality baseline. Intentionally repo-wide: every project
under this directory (including the RatEye submodule checkout and scratch
projects) gets the same analyzer policy, so there is one quality standard.
AnalysisLevel is pinned to the .NET 10 ruleset so analyzer behavior is
deliberate: an SDK upgrade cannot silently introduce new rules. global.json
pins the SDK; bump the level together with deliberate SDK upgrades.
The curated rule set that actually gates builds lives in .editorconfig
(warning severities under the "Code-quality gate" section). The elevated
WarningsAsErrors list below turns those selected rules into CI failures;
scripts/check-analyzer-gate.ps1 prevents the two definitions from drifting.
-->
<PropertyGroup>
<EnableNETAnalyzers>true</EnableNETAnalyzers>
<AnalysisLevel>10.0-recommended</AnalysisLevel>
<EnforceCodeStyleInBuild>true</EnforceCodeStyleInBuild>
<!-- XML documentation generation is required for IDE0005 (unused usings) to
participate in build analysis (roslyn#41640). CS1591 is intentionally
suppressed because XML documentation completeness is NOT an enforced
repository quality rule; the generated doc file is a build side effect. -->
<GenerateDocumentationFile>true</GenerateDocumentationFile>
<NoWarn>$(NoWarn);1591</NoWarn>
<!-- Curated correctness/dead-code rules are hard CI failures. This list must
match the warning-severity block in .editorconfig; CI enforces parity via
scripts/check-analyzer-gate.ps1. New findings fail the build instead of
silently passing. -->
<WarningsAsErrors>$(WarningsAsErrors);IDE0005;IDE0051;IDE0052;CA1001;CA1068;CA1305;CA1310;CA1806;CA1816;CA2016;CA2101;CA2201;CA2211</WarningsAsErrors>
</PropertyGroup>
</Project>