CleanCode
CleanCode copied to clipboard
Condition complexity erroneously warns about lambdas with more than one statement
The following code gives a "Condition expression too complex" warning:
MyFoo.MyEvent += (sender, args) =>
{
bar = true;
baz = false;
};
There is no warning if the lambda contains only one statement.