Skip to content

feat: Features/909 getvalueordefault analyzer#935

Open
SteveDunn wants to merge 2 commits into
mainfrom
features/909-getvalueordefault-analyzer
Open

feat: Features/909 getvalueordefault analyzer#935
SteveDunn wants to merge 2 commits into
mainfrom
features/909-getvalueordefault-analyzer

Conversation

@SteveDunn

Copy link
Copy Markdown
Owner

Implements #909

SteveDunn added 2 commits May 6, 2026 23:01
…less `GetValueOrDefault`

- Introduced `DoNotUseGetValueOrDefaultAnalyzer` to enforce rule `VOG038`.
- Blocks usage of `GetValueOrDefault()` on nullable Vogen value objects to prevent invalid default instances.
- Supports multi-struct scenarios and safe one-argument overloads.
- Added comprehensive analyzer tests and updated documentation.
- Refactored test sources to use raw string literals for better clarity and alignment.
- Applied consistent formatting across all test cases.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant