Skip to content
This repository was archived by the owner on Nov 10, 2026. It is now read-only.

refactor: Resolve open SonarCloud issues - #383

Merged
vbreuss merged 3 commits into
mainfrom
chore/sonar-issues
Oct 10, 2026
Merged

vbreuss merged 3 commits into
mainfrom
chore/sonar-issues

Conversation

@vbreuss

@vbreuss vbreuss commented Oct 10, 2026

Copy link
Copy Markdown
Member

Issues in non-shipped files (build scripts, the build pipeline and benchmarks) only add noise to the quality gate, so these are now excluded from the analysis. The remaining issue in the tests is fixed and all third-party actions are pinned.

Changes

  • Exclude build.ps1, build.sh, Pipeline/** and Benchmarks/** from the Sonar analysis
  • Pin all third-party actions (NuGet/login, EnricoMi/publish-unit-test-result-action, softprops/action-gh-release, peter-evans/repository-dispatch, apexskier/github-release-commenter) to commit SHAs, so a moved tag cannot inject code into workflows that have access to secrets
  • Make TestClass.ParameterMethod in NonNullableResultTests static, as it does not access instance data

…ysis

They are not shipped code, so their issues only add noise to the quality gate.
Resolves the Sonar issue, as it does not access instance data.
Tags can be moved, so a compromised upstream could otherwise inject code into our workflows and their secrets.
@vbreuss vbreuss self-assigned this Oct 10, 2026
Copilot AI balanced review requested due to automatic review settings October 10, 2026 05:27

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@vbreuss
vbreuss enabled auto-merge (squash) October 10, 2026 05:28
@sonarqubecloud

Copy link
Copy Markdown

@github-actions

Copy link
Copy Markdown

Test Results

    13 files  ±0      13 suites  ±0   9m 48s ⏱️ - 1m 46s
 6 922 tests ±0   6 919 ✅ ±0   3 💤 ±0  0 ❌ ±0 
41 377 runs  ±0  41 364 ✅ ±0  13 💤 ±0  0 ❌ ±0 

Results for commit a54410f. ± Comparison against base commit ded659a.

@vbreuss
vbreuss merged commit a0469ab into main Oct 10, 2026
13 checks passed
@vbreuss
vbreuss deleted the chore/sonar-issues branch October 10, 2026 05:35
@github-actions

Copy link
Copy Markdown

🚀 Benchmark Results

Details

BenchmarkDotNet v0.15.8, Linux Ubuntu 24.04.5 LTS (Noble Numbat)
AMD EPYC 7763 2.45GHz, 1 CPU, 4 logical and 2 physical cores
.NET SDK 10.0.303
[Host] : .NET 10.0.12 (10.0.12, 10.0.1226.42308), X64 RyuJIT x86-64-v3
DefaultJob : .NET 10.0.12 (10.0.12, 10.0.1226.42308), X64 RyuJIT x86-64-v3

Method Mean Error StdDev Gen0 Allocated
TypeIsNotStatic_aweXpect 135.8 ns 2.74 ns 3.66 ns 0.0243 408 B

@github-actions

Copy link
Copy Markdown

👽 Mutation Results

Mutation testing badge

aweXpect.Reflection

Details
File Score Killed Survived Timeout No Coverage Ignored Compile Errors Runtime Errors Total Detected Total Undetected Total Mutants

The final mutation score is NaN%

Coverage Thresholds: high:80 low:60 break:0

@github-actions

Copy link
Copy Markdown

This is addressed in release v3.0.0.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

state: released The issue is released

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants