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

RSRP-287922: Clean Code adds very strange linebreaks

$
0
0
Reporter Daniel Hilgarth (DanielH) Daniel Hilgarth (DanielH)
Created Jan 22, 2012 8:34:37 PM
Updated Jan 27, 2012 12:30:07 AM
Priority Normal
Type Bug
Fix versions No Fix versions
State Submitted
Assignee Evgeny Pasynkov (pasynkov)
Subsystem Code Cleanup
Affected versions 6.1.1
Fixed in build No Fixed in build
I have the following code:

public WaitForReferenceSoundActivity CreateSut() { return new WaitForReferenceSoundActivity(new StreamingSoundAnalyzerFactoryStub(StreamingSoundAnalyzer)) { MaximumWaitTime = new InArgument<TimeSpan>(x => Fixture.CreateAnonymous<TimeSpan>()), MinimumRequiredQuality = new InArgument<Percentage>(x => Fixture.CreateAnonymous<Percentage>()), DetectionResult = new OutArgument<DetectionResult>(), ReferenceSound = new InArgument<IPcmAudioStream>(x => Fixture.CreateAnonymous<IPcmAudioStream>()), SoundSource = new InArgument<IStreamingSoundSource>(x => Fixture.CreateAnonymous<IStreamingSoundSource>()) }; }

When I execute "Clean Code", it results in this:

public WaitForReferenceSoundActivity CreateSut() { return new WaitForReferenceSoundActivity(new StreamingSoundAnalyzerFactoryStub(StreamingSoundAnalyzer)) { MaximumWaitTime = new InArgument<TimeSpan>( x => Fixture.CreateAnonymous<TimeSpan>()), MinimumRequiredQuality = new InArgument<Percentage>( x => Fixture.CreateAnonymous<Percentage>( )), DetectionResult = new OutArgument<DetectionResult>(), ReferenceSound = new InArgument<IPcmAudioStream>( x => Fixture.CreateAnonymous <IPcmAudioStream>()), SoundSource = new InArgument<IStreamingSoundSource>( x => Fixture.CreateAnonymous <IStreamingSoundSource>()) }; }

It looks like a bug in ReSharper, because I set up my ReSharper to wrap long lines only when they exceed 160 characters. It works well in other parts of the code.
I am using ReSharper 6.1.38.046 in conjunction with StyleCop 4.7.5.0. Please see attached settings.

Viewing all articles
Browse latest Browse all 106942

Trending Articles



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