Suggestion: Extend RCS1051a with property accessors and method calls
Open
- Dominant language
- C#
- Stars
- 3.5k
- Forks
- 294
- Avg merge
- 2h 30m
- Merged PRs (30d)
- 4
Description
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.
```csharp
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
```
Contributor guide
Assessment
This issue has not been assessed yet.