https://github.com/qluxzz/exhaustivedictionaryanalyzer
Analyzer that ensures that dictionary with enum key type sets values for all defined enum keys
https://github.com/qluxzz/exhaustivedictionaryanalyzer
analyzer csharp roslyn-analyzer
Last synced: 3 months ago
JSON representation
Analyzer that ensures that dictionary with enum key type sets values for all defined enum keys
- Host: GitHub
- URL: https://github.com/qluxzz/exhaustivedictionaryanalyzer
- Owner: Qluxzz
- License: mit
- Created: 2025-03-08T20:22:59.000Z (8 months ago)
- Default Branch: main
- Last Pushed: 2025-06-06T14:38:06.000Z (5 months ago)
- Last Synced: 2025-07-07T07:04:30.597Z (4 months ago)
- Topics: analyzer, csharp, roslyn-analyzer
- Language: C#
- Homepage:
- Size: 59.6 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Exhaustive Dictionary Analyzer in C#
Install `ExhaustiveDictionary.Analyzer` and `ExhaustiveDictionary.Attribute` and place a `[Exhaustive]` attribute on an `Dictionary` to get exhaustive checks that you have added all members of the enum to the dictionary
| Package | Version |
| ----------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------- |
| [ExhaustiveDictionary.Analyzer](https://www.nuget.org/packages/ExhaustiveDictionary.Analyzer) | [](https://www.nuget.org/packages/ExhaustiveDictionary.Analyzer) |
| [ExhaustiveDictionary.Attribute](https://www.nuget.org/packages/ExhaustiveDictionary.Attribute) | [](https://www.nuget.org/packages/ExhaustiveDictionary.Attribute) |