2022 Jan 07 1:23 PM
Is there an AdT-code formater (linter?) that goes beyond what shift+f1 does?!
What I would want it do do is stuff like this (which I as of now do by hand):
- If more than 1 empty line: replace those with exactly 1 empty line.
- Don't wast space in method definitions (this is how quick assists generates it)
* METHODS do_something_xy
* IMPORTING
* iv_param TYPE abap_bool.
METHODS do_something_xy IMPORTING iv_param TYPE abap_bool.
- don't waste a full line with only . and/or )
* lref_report->do_something_xy( iv_param = abap_true
* ).
lref_report->do_something_xy( iv_param = abap_true ).
2023 May 19 10:52 AM
Well, I think what I asked for is here now with ABAP Cleaner: https://github.com/SAP/abap-cleaner
2022 Jan 21 9:23 AM
abaplint seems to be a solution, but as I unterstand it builds on abapGit and (maybe sad, but true) I have not yet added that to my developers toobox).
2022 Jan 21 9:45 AM
Hi Joachim,
I never seen something like that. But it could be interesting to be able to customize the layout.
Fred
2022 Jan 25 9:36 AM
I think this add-on can provide what you are asking for...
ABAP Quick Fix Functions so far:
2022 Jan 25 10:27 AM
I have that AddOn installed, and I didn't think it does what I want, but I looked at it again and tried it and it seems to help quite a bit:
Those are the QuickAssists that help me in those case
Thanks!
2022 Jan 25 7:32 PM
Hi Joachim,
We have a tool in the pipeline to clean up ABAP code based on the clean code rules. SAP internal tests are already running. I will keep you posted.
Regards, Thomas
2022 Jan 25 10:05 PM
2022 Jan 26 12:25 PM
Oh, that's very nice to hear, thomasfiedler ! I'm looking forward to it, thanks a lot!
Joachim
2022 May 30 6:46 AM
Any news or a timeline for that, yet thomasfiedler ?
I am still very interested in that feature!
2022 Jun 01 1:11 PM
First steps are done towards an Open Source project. Let's see when it goes live.
Regards,
Thomas.
2022 Jun 01 2:22 PM
2022 Aug 17 9:14 AM
> "First steps are done towards an Open Source project"
sounds nice, but does this mean it will not be part of the SAP / AdT standard ?! 😞
I would hope for it to just work, once I am on a certain Backend+AdT-Release....
thomasfiedler
2022 Aug 18 1:58 PM
The tool is planned to be eclipse-only and works without any dependencies to the ABAP backend.
But as this will be an Open source tool it will not be part of the standard ADT installation. The same apporach as for the Code-PAL ATC Checks.
Regards,
Thomas.
2023 Jan 17 12:08 PM
2023 Oct 11 11:29 AM
Just for the record: ABAP Cleaner is what I wanted. And it's here now. Awesome!
https://github.com/SAP/abap-cleaner
2023 May 19 10:52 AM
Well, I think what I asked for is here now with ABAP Cleaner: https://github.com/SAP/abap-cleaner
2023 May 19 10:56 AM
Oh, it's also mentioned here: https://blogs.sap.com/2023/05/19/get-higher-quality-and-productivity-by-tackling-the-broken-window-e... . Thanks klaus.haeuptle !