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

RSRP-330297: Allow formatting of hierarchical fluent APIs

$
0
0
Reporter Alexander Groß (alexandergross) Alexander Groß (alexandergross)
Created Sep 30, 2012 1:48:31 AM
Updated Apr 23, 2018 12:55:58 PM
Resolved Sep 30, 2012 6:05:56 AM
Subsystem Code Style - Formatter
Assignee Dmitry Osinovsky (Dmitry.Osinovsky)
Priority Normal
State Duplicate
Type Usability Problem
Fix version No Fix versions
Affected versions 7.1
Fixed In Version ReSharper Undefined
VsVersion All Versions
Consider a fluent API like the one NServiceBus for its initialization:

Bus = Configure.With()
.Log4Net()
.DefaultBuilder()
.XmlSerializer()
.MsmqTransport()
.IsTransactional(false)
.PurgeOnStartup(false)
.UnicastBus()
.ImpersonateSender(false)
.CreateBus()
.Start(() => Configure.Instance.ForInstallationOn<NServiceBus.Installation.Environments.Windows>().Install());

Reformat code will re-indent lines that belong to a specific API like the one invoked by MsMqTransport():

Bus = Configure.With()
.Log4Net()
.DefaultBuilder()
.XmlSerializer()
.MsmqTransport()
.IsTransactional(false)
.PurgeOnStartup(false)
.UnicastBus()
.ImpersonateSender(false)
.CreateBus()
.Start(() => Configure.Instance.ForInstallationOn<Windows>().Install());

Please add settings or logic to prevent that. Thank you.

Viewing all articles
Browse latest Browse all 106942

Trending Articles



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