microsoft / microsoft/vs-threading
Warn if affinity does not match base member
Nobody has claimed this yet.
- Dominant language
- C#
- Stars
- 1k
- Forks
- 160
- Avg merge
- 1d 12h
- Merged PRs (30d)
- 28
Description
An analyzer should be provided that reports a warning in the following situation:
- A member
doverrides a memberximplements or implements an interface membery dis thread-affinitizedxoryis not thread affinitized
This situation can easily occur when applying fixes to warnings reported by VSTHRD010. Failure to correct the base member as well will lead to situations where an invocation through the base member will not be detected by static analysis.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reviewing the existing VSTHRD010 analyzer and how it models thread affinity on overridden and interface members. Add coverage for the listed mismatch cases, with the warning emitted when an affinitized member's base or interface member is not affinitized.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- csharp
- Domain
- tooling
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 30/100