Prevent Resharper from producing trailing whitespaces after method wrap

Hi,

is it possible to prevent Resharper from producing whitespaces at the end of line while wrapping methods  when using code cleanup?

For example, Resharper formats this definition

ThisIsAVeryLongMethodWithoutAnySense(int parameter1, int parameter2, int parameter3, int parameter4, int parameter5, int parameter6, int parameter7, int parameter8, int parameter9)

to this

ThisIsAVeryLongMethodWithoutAnySense(
            int parameter1, int parameter2, int parameter3, int parameter4, int parameter5, int parameter6, int parameter7,_
            int parameter8, int parameter9)

which violates StyleCop+ rule SP2000 (CodeLineMustNotEndWithWhitespace).

Thanks

0
2 comments
Avatar
Permanently deleted user

Hello Christopher
     There's no option to control this behavior in ReSharper at the moment. You can try installing the StyleCop plug-in for ReSharper and check if it offers a fix for this problem. Thank you!

Andrey Serebryansky

Software Developer

JetBrains, Inc

http://www.jetbrains.com

"Develop with pleasure!"

0

Hey,

this question is rather old, but are there any updates on this one? I work on some open source projects, that do throw a warning every time resharper produces trailing white spaces and its a bit annonying. Maybe you can add a new feature request?

Thanks advance

Jannik

0

Please sign in to leave a comment.