dotnet / dotnet/roslynator

Suggestion: Extend RCS1051a with property accessors and method calls

Open
#765 0 comments 0 reactions 0 assignees View on GitHub
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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.