Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/cezarypiatek/MultithreadingAnalyzer
A set of Roslyn analyzers related to multithreading
https://github.com/cezarypiatek/MultithreadingAnalyzer
roslyn roslyn-analyzers
Last synced: 3 months ago
JSON representation
A set of Roslyn analyzers related to multithreading
- Host: GitHub
- URL: https://github.com/cezarypiatek/MultithreadingAnalyzer
- Owner: cezarypiatek
- License: mit
- Created: 2019-08-02T20:14:54.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2019-09-17T20:45:47.000Z (about 5 years ago)
- Last Synced: 2024-05-18T22:34:19.507Z (6 months ago)
- Topics: roslyn, roslyn-analyzers
- Language: C#
- Homepage:
- Size: 114 KB
- Stars: 29
- Watchers: 3
- Forks: 3
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-analyzers - SmartAnalyzers.MultithreadingAnalyzer - A set of Roslyn analyzers related to multithreading (Popular Analyzers / Async/multithreading)
README
# MultithreadingAnalyzer
A set of Roslyn analyzers related to multithreadingAll potential issues diagnosed by `MultithreadingAnalyzer` are described in depth in the following articles:
- [Avoid multithreading traps with Roslyn: Lock object selection](https://cezarypiatek.github.io/post/avoid-multithreading-traps-p1/)
- [Avoid thread synchronization problems with Roslyn: Synchronization primitives traps](https://cezarypiatek.github.io/post/avoid-multithreading-traps-p2/)## Currently implemented rules:
- MT1000: Lock on publicly accessible member
- MT1001: Lock on this reference
- MT1002: Lock on object with weak identity
- MT1003: Lock on non-readonly member
- MT1004: Lock on value type instance
- MT1010: Method level synchronization
- MT1012: Acquiring lock without guarantee of releasing
- MT1013: Releasing lock without guarantee of execution
- MT1014: Passed by value SpinLock is useless
- MT1015: Readonly SpinLock is useless
- MT1016: Replace ReaderWriterLock with ReaderWriterLockSlim