You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There is a lack of indentation in LINQ after return.
I think any one of those would be better:
publicclassClassName{publicobjectLongUglyMethod(){// One indent after line break:returnfromiinEnumerable.Range(0,10)leti2=i*iwherei2<100selectnew{Square=i2,Root=i};}}publicclassClassName{publicobjectLongUglyMethod(){// Ident + wrap `from` so that it's aligned with rest of queryreturnfromiinEnumerable.Range(0,10)leti2=i*iwherei2<100selectnew{Square=i2,Root=i};}}publicclassClassName{publicobjectLongUglyMethod(){// Align everything on `from`, VS-style.returnfromiinEnumerable.Range(0,10)leti2=i*iwherei2<100selectnew{Square=i2,Root=i};}}
The text was updated successfully, but these errors were encountered:
Source:
Result on 0.22.0:
There is a lack of indentation in LINQ after
return
.I think any one of those would be better:
The text was updated successfully, but these errors were encountered: