Skip to content

fix: diagnose conditional Task result access#49

Merged
georgepwall1991 merged 1 commit into
masterfrom
fix/cc015-conditional-result
Jul 21, 2026
Merged

fix: diagnose conditional Task result access#49
georgepwall1991 merged 1 commit into
masterfrom
fix/cc015-conditional-result

Conversation

@georgepwall1991

Copy link
Copy Markdown
Owner

Summary

  • diagnose null-conditional Task<T>/ValueTask<T> .Result access inside async code
  • reuse the existing semantic task-like and async-function gates
  • intentionally offer no fix because null-preserving await rewrites are context-dependent
  • update analyzer health metadata for v1.27.194

Verification

  • red: new test expected 1 CC015 diagnostic and received 0
  • green: focused CC015 suite passed 19/19
  • Release build: 62 expected sample warnings, 0 errors
  • full Release suite: 655/655 passed
  • packed dependency-free CancelCop.Analyzer.1.27.194.nupkg with both analyzer DLLs
  • touched-file whitespace check passed

Review

  • self-review requested by repository owner; no Claude review used

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant