Resharper standalone cleanup. The clean is not identical with the one in Visual studio.

Hello everybody,

I'm trying to write a script in order to cleanup all the files changed since the last git commit.

When i'm executing the next command:

.\cleanupcode.exe [path_to_my_solution] --include=[one cs file from this solution] --settings=[Prefix]\AppData\Roaming\JetBrains\Shared\vAny\GlobalSettingsStorage.DotSettings] --profile=[name of a my specific profile cleanup]

The cleanup is done on the file i'm giving as parameter, but the cleanup is not full.

For example :

void function(var a, var b, var c, 
var d,
var e);

should become:

void function (var a,
               var b,
               var c,
               var d,
               var e);

but become:

void function (var a, var b, var c,
               var d,
               var e);

Do you know why?

 

Thank you,

1
4 comments

Is anybody from the Resharper team can help me?

0

Hello Jeremy,

 

Sorry for the delay in responding.

Could you please provide GlobalSettingsStorage.DotSettings file? Have you performed any changes with it? 

There should be the following settings specified:

<s:Boolean x:Key="/Default/CodeStyle/CodeFormatting/CSharpFormat/ALIGN_MULTILINE_PARAMETER/@EntryValue">True</s:Boolean>
<s:String x:Key="/Default/CodeStyle/CodeFormatting/CSharpFormat/WRAP_PARAMETERS_STYLE/@EntryValue">CHOP_ALWAYS</s:String></wpf:ResourceDictionary>

I'd suggest changing these settings in different dotSettings file, e.g. solution settings layer file.

Thank you.

 

0

Hello,

Thank you for your answer and it indeed missed in the file.

Do you know why these lines had missed? Because I have used the save option from resharper cleanup profil.

Thank you

0

I've talked with a colleague. Apparently these lines are not written in the cleanup profil we use, but there is a kind of overwrite by VS/Resharper when cleaning up because there still are those applies on the code (indenting).

0

Please sign in to leave a comment.