Bug Report T925052
Visible to All Users

Code Cleanup - Certain lines are moved to the right by one indent each time Code Cleanup is executed

created 5 years ago

Hi,

Each time I execute Code Cleanup some lines move to the right by one indent. So much so that the line eventually moves out of view on the right hand side of the screen. Is this a bug or misconfiguration? It seems to only happen for variable assignments that are wrapped.

In the sample code below the second line will keep moving to the right by one indent each time Code Cleanup is run.

C#
_evolutionConnectionString = values.GetConnectionString(SystemOptionsNames.EvolutionCompanyDatabaseConnectionString);

In the sample code below all lines from the second line on will keep moving to the right by one indent each time Code Cleanup is run.

C#
var notificationIds = request .Task .Select(a => a.NotificationId) .ToArray();
Comments (3)
SL SL
Stephan Lotter 5 years ago

    I noticed now that this seems to only happen inside lambda functions for chained method calls. If wrapping's align by is set to either Expression or First Dot.

    Below is the rest of the code in which my first example above appears.

    C#
    Receive<SystemOptionResponse>(response => { switch(response) { case SystemOptionResponse.Failure failure: throw new Exception(failure.Error); case SystemOptionResponse.Success success: var values = success.Values; _onfleetApiDescriptor = values.ToOnfleetApiDescriptor(); _evolutionConnectionString = values.GetConnectionString(SystemOptionsNames.EvolutionCompanyDatabaseConnectionString); Become(Ready); break; } });
    DevExpress Support Team 5 years ago

      Hello Stephan,

      Thank you for contacting us and providing a code sample.

      I tried to reproduce this issue with Code Cleanup but everything works fine on my side.

      To help us research this issue, please share the following information:

      • CodeRush settings (from "%AppData%\CodeRush\Settings");
      • CodeRush log files (from "%LocalAppData%\CodeRush\Logs").

      We look forward to your response.

      DevExpress Support Team 4 years ago

        Stephan,

        Thank you for the information.
        I have reproduced this issue with your settings.

        We will research it and notify you as soon as we have any results.

        Answers approved by DevExpress Support

        created 4 years ago

        We have addressed the issue described in this ticket and will include a fix in our next maintenance update. To apply this solution before official release, request a hotfix by clicking the appropriate version link.

        Note: Hotfixes may be unavailable for betas/updates set for release within a week.

          Disclaimer: The information provided on DevExpress.com and affiliated web properties (including the DevExpress Support Center) is provided "as is" without warranty of any kind. Developer Express Inc disclaims all warranties, either express or implied, including the warranties of merchantability and fitness for a particular purpose. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.

          Confidential Information: Developer Express Inc does not wish to receive, will not act to procure, nor will it solicit, confidential or proprietary materials and information from you through the DevExpress Support Center or its web properties. Any and all materials or information divulged during chats, email communications, online discussions, Support Center tickets, or made available to Developer Express Inc in any manner will be deemed NOT to be confidential by Developer Express Inc. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.