Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/cezarypiatek/ExceptionAnalyzer
A set of Roslyn analyzers related to exceptions usages
https://github.com/cezarypiatek/ExceptionAnalyzer
roslyn-analyzers
Last synced: 25 days ago
JSON representation
A set of Roslyn analyzers related to exceptions usages
- Host: GitHub
- URL: https://github.com/cezarypiatek/ExceptionAnalyzer
- Owner: cezarypiatek
- License: mit
- Created: 2019-04-11T19:22:24.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2019-09-17T20:42:45.000Z (about 5 years ago)
- Last Synced: 2024-05-13T20:53:03.024Z (7 months ago)
- Topics: roslyn-analyzers
- Language: C#
- Size: 73.2 KB
- Stars: 20
- Watchers: 3
- Forks: 2
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
- awesome-analyzers - SmartAnalyzers.ExceptionAnalyzer - A set of Roslyn analyzers related to exceptions usages. (Popular Analyzers / Miscellaneous)
README
A set of Roslyn analyzers inspired by [The art of designing exceptions](https://cezarypiatek.github.io/post/the-art-of-designing-exceptions/). A detailed description of currently implemented rules can be find in [Exception usage analyzer](https://cezarypiatek.github.io/post/exceptions-usages-analyzer/) article.
## Currently implemented rules:
- EX001: Don not use generic exception types
- EX002: Use context aware exception constructor
- EX003: Always provide inner exception when throw from the catch clauses
- EX005: Use parameter related exception only for method parameters
- EX006: Do not write logic driven by exceptions.