CleanCode icon indicating copy to clipboard operation
CleanCode copied to clipboard

chained references for linq expression

Open sbradl opened this issue 5 years ago • 3 comments

Probably this is tricky to implement in a general way but I would think of Linq as a fluent API and so it should not count into chained references. At the moment lots of warnings occur in my code because of Linq statements.

sbradl avatar May 20 '20 06:05 sbradl

That is a good question - should it be only considered for linq expression or also for a fluent api?

There are also open discussions on the original code, regarding this issue:

https://github.com/hhariri/CleanCode/issues/15 https://github.com/hhariri/CleanCode/issues/20

The easiest way for you, would be to increase the setting for "MaximumChainedReferences" to a higher value.

MO2k4 avatar May 27 '20 10:05 MO2k4