Current filter:
                                You should refresh the page.
                                  • Hello,
                                    please give an option to exclude designer files from CodeRush Cleanup if "Code cleanup when saving" is enabled.
                                    If "Code cleanup when saving" is activated, some cleanup functions will cause errors if, for example, a Dataset is edited in the designer.
                                    (See my video)

                                    It also takes a very long time to save forms with many controls and layouts if designer files included by "Code cleanup when saving".

                                    CodeRush has an Spell Checker option "Check designer files" and this is disabled by default.

                                    This feature in my opinion is also urgently needed for the "Cleanup when saving" function.

                                    Kind regards,

                                Show all comments
                                • Andrew A (DevExpress) 02.06.2019

                                  Hi Stefan,

                                  Thank you for your feedback. I have reproduced this problem locally. Currently, the Code Cleanup feature should not be applied for the designer files. We will fix this issue in our future builds.

                                • Stefan Remberg 02.06.2019

                                  Hello, Andrew,
                                  thank you for your reply.
                                  Unfortunately there is no option to NOT use Cleanup for designer files.
                                  The designer files are processed automatically when you make changes in design mode.
                                  (see my video)

                                  Kind regards,

                                • Stefan Remberg 02.06.2019

                                  I think the best solution would be to create an extra cleanup setup for designer files.
                                  Then you can e.g. setup that only a copyright text is added to the designer files etc..

                                  And the best best best solution would be to create different setups for different file types :-)

                                • Andrew A (DevExpress) 02.06.2019

                                  Please accept my apologies. I misled you. The Cleanup feature is not applied to generated files only when it is called in the project from the Solution Explorer window. However it should be called in your case.
                                  We see incorrect behavior of the "Remove redundant 'MyBase' qualifier" and "Apply 'Optional parenthesis' stype to invocations (constructor, method or property)" cleanup rules and will correct it.
                                  For the "Apply 'Optional parenthesis' stype to invocations (constructor, method or property)" cleanup rule I have created a separate ticket:
                                  "Apply 'Optional parenthesis' stype to invocations (constructor, method or property)" cleanup rule incorrectly works in the DataSet designer file in VB

                                  We will discuss the possibility of adding Cleanup profiles and an ability to apply it to specific cases.

                                • Stefan Remberg 02.06.2019

                                  Hello Andrew,
                                  thank you for your message and the always excellent support !

                                • Andrew A (DevExpress) 02.06.2019

                                  Thank you for your compliment! You are welcome!

                                1 Solution

                                Creation Date Importance Sort by


                                • Stefan Remberg 02.07.2019

                                  Hello Andrew,
                                  the problem also occurs in DataSets if you use the following cleanup functions:
                                  1. Use 'NameOf'
                                  2. Make properties auto-implemented

                                  Kind regards,

                                • Andrew A (DevExpress) 02.08.2019

                                  Thank you for the clarification.

                                  I have created a separate ticket for the "Make properties auto-implemented" cleanup rule:
                                  The "Make properties auto-implemented" cleanup rule produces compilation errors in the DataSet designer file in VB

                                  As for the "Use 'NameOf'" cleanup rule, it is disabled by default. The use of this functionality in automatic mode is associated with a certain risk.
                                  That is why, by default, this functionally is disabled and you can use it at your own risk. I suggest you turn off this code cleanup rule and manually apply the same refactoring from the code when it is required.