Open tygore587 opened 1 year ago
Thanks for reporting the issue and the clear examples. I have been able to reproduce it. The reorganization logic contains a number of tricks to try and maintain indentation as it moves elements around but the main fallback for when it can't preserve the indentation is that a cleanup is expected afterwards. Unfortunately, in this example the indentation isn't something CodeMaid would enforce so it isn't resolved by a cleanup.
Environment
Description
If you reorganize a class (Ctrl + M, Z) and you are using the following format for methods, the indentation of method parameters is wrong.
Example
Before reorganizing
After Reorganizing
The indentation of
parameter1
inMethodB
is wrong. It will be more indented if it is organized lower (so beeing pushed down 2 methods, the result is:Before
After
Steps to recreate
Expected behavior
Method parameters should not be indented more than the others. They should stay like they are before reorganizing.