Automatic Analysis is off in SonarCloud; the new SonarCloud workflow runs SonarScanner for .NET 12.0 around a real Release build, with Cobertura coverage from the unit tests and from the smoke test run under dotnet-coverage, and waits for the quality gate. Fork and Dependabot pull requests get no SONAR_TOKEN, so their analysis is skipped instead of failing. Both tools join .config/dotnet-tools.json. Benchmarks are analysed as test code, eng/ scripts stay out of coverage, and gate failures on main are reported like other CI failures. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
19 lines
641 B
XML
19 lines
641 B
XML
<Project Sdk="Microsoft.NET.Sdk">
|
|
<PropertyGroup>
|
|
<OutputType>Exe</OutputType>
|
|
<IsPackable>false</IsPackable>
|
|
<!-- Run manually, see docs/ARCHITECTURE.md (Benchmarks). -->
|
|
<Optimize>true</Optimize>
|
|
<!-- SonarCloud analyses benchmarks as test code: they are not product code and have no coverage. -->
|
|
<SonarQubeTestProject>true</SonarQubeTestProject>
|
|
</PropertyGroup>
|
|
|
|
<ItemGroup>
|
|
<PackageReference Include="BenchmarkDotNet" />
|
|
</ItemGroup>
|
|
|
|
<ItemGroup>
|
|
<ProjectReference Include="..\..\src\HashTool.Core\HashTool.Core.csproj" />
|
|
</ItemGroup>
|
|
</Project>
|