Bug Report T802340
Visible to All Users

Code Cleanup – Attributes are kept in the same line if the Format Document rule is enabled

created 6 years ago

Hi

I think that code cleanup may have been slightly broken by the last update.

Please take a look at the Linked video screencast

As you can see although attributes are correctly broken apart they are not listed as the setting within the options would suggest that they should be.

Show previous comments (3)
DevExpress Support Team 6 years ago

    Dom,
     
    I have reproduced the code cleanup issue using your settings. We need some time to research it.

      Alex

      Can you tell me if 19.1.8 will fix the following scenario.

      Code rush settings are as per zip file above.

      I am working through adding some code to a class which needs / requires some thing about (as it affects licencing issues).  there are a number of constant strings to be declared, some complex, which will be used later on in the code.  The complexity of the strings means that I want to save them as I go, but code cleanup, bless it, is stripping them out.

      I think you need to think seriously about stripping out the code formatting aspects of code cleanup (which I really value) to a separate CR option group so that one can always have that (activated on save).  The rest of code cleanup needs so clearly defined rules so that  you can apply so or all of it at different stages of a class file's life.  As things stand code cleanup is fast becoming more trouble than it's actually worth, which is a great shame because it could be so useful if only it didn't go at things like a bull in a china shop.

      Dom

      DevExpress Support Team 6 years ago

        Dom,

        Thank you for the additional comment and provided feedback.
        We will consider adding an ability to configure code cleanup rules for document saving in the context of the following tickets:
        T802425
        T746402

        As a workaround I can suggest you disable running code cleanup on document save and apply it from the tool bar action.

        Answers approved by DevExpress Support

        created 6 years ago

        We have fixed the issue described in this ticket and will include the fix in our next maintenance update. To apply this solution before the official update, request a hotfix by clicking the corresponding link for product versions you require.

        Note: Hotfixes may be unavailable for beta versions and updates that are about to be released.

          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.