CleanCode
CleanCode copied to clipboard
chained references for linq expression
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.
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.