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,
Stefan
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.
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
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 :-)
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.
Hello Andrew,
thank you for your message and the always excellent support !
Thank you for your compliment! You are welcome!