01-07-2022 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 ).
05-19-2023 10:52 AM
Well, I think what I asked for is here now with ABAP Cleaner: https://github.com/SAP/abap-cleaner
01-21-2022 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).
01-21-2022 9:45 AM
Hi Joachim,
I never seen something like that. But it could be interesting to be able to customize the layout.
Fred
01-25-2022 9:36 AM
I think this add-on can provide what you are asking for...
ABAP Quick Fix Functions so far:
01-25-2022 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!
01-25-2022 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
01-25-2022 10:05 PM
01-26-2022 12:25 PM
Oh, that's very nice to hear, thomasfiedler ! I'm looking forward to it, thanks a lot!
Joachim
05-30-2022 6:46 AM
Any news or a timeline for that, yet thomasfiedler ?
I am still very interested in that feature!
06-01-2022 1:11 PM
First steps are done towards an Open Source project. Let's see when it goes live.
Regards,
Thomas.
06-01-2022 2:22 PM
08-17-2022 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
08-18-2022 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.
01-17-2023 12:08 PM
10-11-2023 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
05-19-2023 10:52 AM
Well, I think what I asked for is here now with ABAP Cleaner: https://github.com/SAP/abap-cleaner
05-19-2023 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 !