roslynator
roslynator copied to clipboard
Suggestion: Extend RCS1051a with property accessors and method calls
trafficstars
RCS1051a now excludes only single token statements. It would be nice to also exclude (including chained) property access and method calls. In general, everything that don't have a relational operator.
var a = type.Sub.A ? 1 : 2; // Multi-level property access
var b= type.Sub.EvenMore.Call() ? 1 : 2; // Multi-level method call/prop access
var c = !type.Sub ? 1 : 2; // Negative multi-level