Ticket T523405
Visible to All Users

Code Cleanup - 'Remove redundant type qualifier' rule doesn't work in some cases

created 8 years ago

[DevExpress Support Team: CLONED FROM T523216: Coderush cleanup taking ages - or hung?]
It's very strange that it's the same "Appearance" problem as before which was fixed back in 16.2.4. After splitting the code into two files I can easily put:

C#
Infragistics.Win.Appearance a = new Infragistics.Win.Appearance();

in the code and clean up works changing it to

C#
var a = new Infragistics.Win.Appearance();

and keeping the namespace in place (even with using at the top). Clean up works on the designer code as well.

Show previous comments (26)
DevExpress Support Team 8 years ago

    Thank you for the clarification.

    We have corrected the "Remove redundant type qualifiers" rule in the context of your initial ticket. These changes are included in the 17.1.5 version. So, Code Cleanup doesn't hang on this file after update and processes it correctly.

    As for the ways to call Code Cleanup, the icon on the toolbar and the item in the Visual Studio menu work identically. Currently, CodeRush doesn't support notifications about issues on applying Code Cleanup if it was called using these ways. We have plans to implement notifications for these cases in the nearest releases. Now, I suggest you call Code Cleanup from the light bulb menu as it is shown in the screencast attached to this comment. This way supports usage of Visual Studio's notification bar.

    AM AM
    Alan Middleton999 8 years ago

      Hi

      I've uninstalled 17.1.5, and reinstalled the previous version I had - 17.1.4.17166

      Opened the code and cleaned up the cs file.

      1. Dropdown menu - FAILED - with the MS VS Error as before.
      2. Toolbar - Same as #1
      3. Lightbulb - Woop - Yellow notification bar on the error !!!

      Glad we've finally got to the bottom of this, must have been a headache for you trying to find the issue - apologies I wasn't aware of the calling of cleanup might have been the reason. I'll try and remember in future and test all 3 ways.

      Great news that 17.1.5 fixes the cleanup though - Now time to update to latest version again :)

      DevExpress Support Team 8 years ago

        Thank you for informing us. We are happy to hear that calling Code Cleanup from the light bulb menu works as expected on your side.

        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.