Skip to content

fix(build): suppress CA1062 for unsupported target frameworks - #738

Merged
samtrion merged 3 commits into
mainfrom
fix/ca1062-unsupported-tfm
Nov 23, 2026
Merged

samtrion merged 3 commits into
mainfrom
fix/ca1062-unsupported-tfm

Conversation

@samtrion

Copy link
Copy Markdown
Contributor

Changes

  • SupportGeneral.targets: add CA1062 to NoWarn for target frameworks not compatible with net5.0 (e.g. netstandard2.0, net48).
  • template.editorconfig: extend dotnet_code_quality.CA1062.null_check_validation_methods with all ThrowIfNull* polyfills of NetEvolve.Arguments.
  • SupportGeneralTests: cover supported, unsupported and empty TargetFramework.

Notes

  • The net5.0 boundary is an assumption and may need to move to net8.0.
  • template.editorconfig is synced from the template repository, so the same change is needed upstream.

Add NoWarn for CA1062 on target frameworks not compatible with net5.0 and cover it with evaluation tests.
@samtrion
samtrion requested a review from a team as a code owner November 23, 2026 06:52
@samtrion
samtrion requested review from benwirren and removed request for a team November 23, 2026 06:52
@samtrion samtrion self-assigned this Nov 23, 2026
@samtrion samtrion added the type:chore Indicates some housework that needs to be done. label Nov 23, 2026
@codecov

codecov Bot commented Nov 23, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 100.00%. Comparing base (5d7d233) to head (ca7501d).

Additional details and impacted files
@@            Coverage Diff            @@
##              main      #738   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files            3         3           
  Lines          129       129           
  Branches        15        15           
=========================================
  Hits           129       129           

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@samtrion
samtrion merged commit aa6c02f into main Nov 23, 2026
12 checks passed
@samtrion
samtrion deleted the fix/ca1062-unsupported-tfm branch November 23, 2026 06:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

type:chore Indicates some housework that needs to be done.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant