Closed mpickers closed 1 week ago
Hi @mpickers, thank you for reporting the issue. I think I can write a unit test for the Bogus.Tools.Analayzer
to cover this case. I'll try to have a fix by the end of this weekend.
Hi @mpickers , this issue should be fixed in Bogus.Tools.Analyzer v35.6.0.11
or later:
Awesome, thank you! Works as expected now.
Bogus NuGet Package
35.6.0
.NET Version
net 6
Visual Studio Version
17.10.3
What operating system are you using?
Windows
What locale are you using with Bogus?
en_US
Problem Description
When using the Bogus Premium Analyzer, the Analyzer doesn't ignore read-only properties in either base class or top-level classes.
I believe it should really ignore these for both the analyzer and the code gen.
LINQPad Example or Reproduction Steps
Expected Behavior
The Analyzer should ignore any read only fields and the code generator should not output any rules for these read only properties.
Actual Behavior
Code is being generated for readonly fields.
Known Workarounds
No response
Could you help with a pull-request?
No