Repository navigation
Expand file tree
/
Copy pathDirectory.Build.props
More file actions
64 lines (51 loc) · 3.32 KB
/
Copy pathDirectory.Build.props
File metadata and controls
64 lines (51 loc) · 3.32 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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
<Project>
<PropertyGroup>
<!-- Enforce code style rules during build -->
<EnforceCodeStyleInBuild>true</EnforceCodeStyleInBuild>
<!-- Enable .NET analyzers -->
<EnableNETAnalyzers>true</EnableNETAnalyzers>
<!-- Pinned to the .NET 9 rule set. The .NET 10 SDK's `10.0-recommended` set adds CA1873 (logging argument
evaluation), which fires on every `logger.LogX(..., expensiveArgument)` call site in this codebase.
Raise this back to `latest-recommended` once those call sites guard their arguments. -->
<AnalysisLevel>9.0-recommended</AnalysisLevel>
<!-- Treat analyzer warnings as errors in CI (controlled by CI env variable) -->
<CodeAnalysisTreatWarningsAsErrors>false</CodeAnalysisTreatWarningsAsErrors>
<!-- Generate documentation XML -->
<GenerateDocumentationFile>true</GenerateDocumentationFile>
</PropertyGroup>
<ItemGroup>
<!-- StyleCop.Analyzers for consistent code style -->
<PackageReference Include="StyleCop.Analyzers" Version="1.2.0-beta.556">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
<!-- Meziantou.Analyzer for additional .NET best practices -->
<PackageReference Include="Meziantou.Analyzer" Version="2.0.187">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
<!-- Roslynator for code analysis and refactoring -->
<PackageReference Include="Roslynator.Analyzers" Version="4.12.11">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
</ItemGroup>
<ItemGroup>
<AdditionalFiles Include="$(MSBuildThisFileDirectory)stylecop.json" Link="stylecop.json"/>
</ItemGroup>
<ItemGroup>
<!-- AutoMapper 13.0.1 reaches us transitively via g0v0.osu.Game / ppy.osu.Game, which still pin that version
at their latest release, and AutoMapper 15+ is commercially licensed so it cannot simply be force-upgraded.
Suppress only this one advisory (CVE-2026-32933 / GHSA-rvv3-g6hj-g44x, DoS via uncontrolled recursion);
every other transitive package stays audited. -->
<NuGetAuditSuppress Include="https://github.com/advisories/GHSA-rvv3-g6hj-g44x"/>
<!-- SixLabors.ImageSharp 3.1.11 is transitive through g0v0.osu.Game. Suppress only its known advisories
until the upstream dependency moves to a fixed version; keep other package audits enabled. -->
<NuGetAuditSuppress Include="https://github.com/advisories/GHSA-gwg2-r3hj-4w44"/>
<NuGetAuditSuppress Include="https://github.com/advisories/GHSA-j3p4-wp97-rph4"/>
<NuGetAuditSuppress Include="https://github.com/advisories/GHSA-j9gm-c75j-xc9q"/>
<NuGetAuditSuppress Include="https://github.com/advisories/GHSA-jjfr-hcj7-qf5w"/>
<NuGetAuditSuppress Include="https://github.com/advisories/GHSA-v76p-62qx-wwq2"/>
<NuGetAuditSuppress Include="https://github.com/advisories/GHSA-wmxv-xphr-5c9g"/>
</ItemGroup>
</Project>