https://github.com/rikimaru0345/ensure-base-call-analyzer
A roslyn code analyzer to check if override methods call their base implementation.
https://github.com/rikimaru0345/ensure-base-call-analyzer
code-analysis roslyn
Last synced: over 1 year ago
JSON representation
A roslyn code analyzer to check if override methods call their base implementation.
- Host: GitHub
- URL: https://github.com/rikimaru0345/ensure-base-call-analyzer
- Owner: rikimaru0345
- Created: 2017-06-20T08:59:56.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2017-06-20T09:26:04.000Z (about 9 years ago)
- Last Synced: 2025-01-30T09:41:27.645Z (over 1 year ago)
- Topics: code-analysis, roslyn
- Language: C#
- Homepage:
- Size: 22.5 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Ensure-Base-Call-Analyzer
A roslyn code analyzer to check if override methods call their base implementation.
__**How to use**__
1) Compile and install the VSIX
2) Create an attribute in your code somewhere like this: `class EnsureBaseCallAttribute : Attribute { }`
3) Add the attribute to any method you want checked and the analyzer will show an error if you do not call the base implementation of that method (or if it is unreachable). Example:
