Repository navigation
Support records in several additional rules - #3264
Conversation
Codecov Report
@@ Coverage Diff @@
## master #3264 +/- ##
==========================================
+ Coverage 93.48% 93.52% +0.04%
==========================================
Files 1002 1009 +7
Lines 109695 109886 +191
Branches 3724 3771 +47
==========================================
+ Hits 102550 102774 +224
+ Misses 6215 6165 -50
- Partials 930 947 +17 |
|
Issue still persists for the files that contains nested record type definitions (accessibility modifiers doesn't matter) I encountered the following analyzer failure when attempted to build the code: public class TopLevelClass : IDisposable
{
// Some logic that refers NestedRecordType
private record NestedRecordType(string name, int value);
}Error message: Record types defined with |
|
@ivan-nosar I suspect that you are using an old version. I can at least not reproduce this with 1.2.0-beta.556. The latest beta is currently the only way to get a good experience with these analyzers when using "new" language features. In particular, version 1.1.118 is from 2019 and does not handle modern c# well. If you are indeed using a late beta, then please create a new issue. |
|
@bjornhellander you're right, I'm using version |
private protectedFixes #3236