Quantcast
Channel: YouTrackReSharper (RSRP) - Bug and Issue Tracker
Viewing all articles
Browse latest Browse all 106942

RSRP-88220: Formatting fluent interface & lambda C#

$
0
0
Reporter Peter Mounce (pfm1021263858798932) Peter Mounce (pfm1021263858798932)
Created Dec 11, 2008 12:35:33 AM
Updated Jan 23, 2012 11:18:10 PM
Priority Critical
Type Usability Problem
Fix versions Mirabile Futurum
State Open
Assignee Ilya Ryzhenkov (orangy)
Subsystem No subsystem
Affected versions No Affected versions
Fixed in build No Fixed in build
I'm writing quite a lot of code that makes use of fluent interfaces. For example, Rhino Mocks looks like:
mockCrypto.Expect(c => c.Hash("authenticationHashSalt", "ignoring arguments")).IgnoreArguments().Return("hashed");


I would prefer that to reformat to:
mockCrypto.Expect(c => c.Hash("authenticationHashSalt", "ignoring arguments"))
    .IgnoreArguments()
    .Return("hashed");

(where the indent is a single tab).

For LINQ queries, same thing. I'd like each fluent call to be one a new line, indented and aligned.

Viewing all articles
Browse latest Browse all 106942

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>