Repository navigation
What's in this release:
- 🔮 C# 15 readiness: 21 false positives fixed for the new language features, from union types and closed classes to extension indexers and labeled
break/continue.
False Positives
NET-744 Fix S2933 FP: support extensions usage
NET-4264 Fix S6444 FP: Do not raise on constant regex patterns without quantifiers
NET-4811 Fix S2326 FP: C# 15 An unused Type Parameter cannot be removed from a closed type
NET-4840 Fix S3626 FP: C# 15 labeled for loops are not redundant jumps
NET-4841 Fix S1751 FP: C# 15 labeled loops do more than one iteration
NET-4873 Fix S1694 FP: C# 15 closed classes should not be suggested for conversion to an interface
NET-4875 Fix S3878 FP: C# 15 collection-expression with(...) argument dropped by params suggestion
NET-4881 Fix S6967 FP: .NET 11 async DataAnnotations validation (TryValidateObjectAsync) not recognized
NET-4885 Fix S1125 FP: C# 15 union types should not be reported for 'is true'/'is false'
NET-4887 Fix S6797 FP: DateOnly and TimeOnly query parameters are reported as unsupported
NET-4888 Fix S3168 FP: C# 15 async void method in a union is not exempted when passed as an argument
NET-4889 Fix S4583 FP: C# 15 BeginInvoke paired with EndInvoke inside an indexer is reported
NET-4890 Fix S1940 FP: C# 15 negated ordering comparison on Decimal32/BFloat16 gets an unsafe "opposite operator" suggestion
NET-4892 Fix S3453 FP: C# 15 collection expression with(...) arguments should count as instantiating a private constructor
NET-4893 Fix S2094 FP: C# 15 empty closed class should not be reported
NET-4894 Fix S2094 FP: C# 15 empty union case type should not be reported
NET-4907 Fix S3060 FP: C# 15 union types should not be reported for type tests on this
NET-4908 Fix S2701 FP: C# 15 union compared with a bool literal should not be reported
NET-4932 Fix S3973 FP: labeled loops are reported when the label is on the same line as the loop
NET-4949 Fix S3267 FP: C# 15 assignment followed by a labeled break should suggest "Where" instead of "Any"
NET-4973 Fix S1144 FP: C# 15 private extension indexers used via element access are reported as unused
NET-4974 Fix S1144 FP: C# 15 private constructors called only through collection expression with(...) are reported as unused
NET-4989 Fix S3247 FP: C# 15 union implementing an interface is reported for 'is'/cast and 'is'/'as' on that interface
NET-4991 Fix S2219 FP: C# 15 union values must not be suggested to use the "is" operator
NET-4998 Fix S6617 FP: "Contains" suggestion changes behavior when the Equals argument needs an implicit conversion (e.g. C# 15 unions)
Performance
NET-5175 Restore IsAutoProperty as a method and evaluate it last in SE TrackedSymbol