Feature Request: Format CDS Views
Espacially Case Statements
Doesn't CDS already have its own configurable pretty printer implementation in the base ADT installation?
have not found any settings for "Case" statements. And the goal for the abap cleaner is to be better than the "pretty printer" so why not add cds?
As far as I am aware the CDS pretty printer is implemented client side in ADT (i. e. in Java). Therefore it should already be independant of the backend release lifecycle and be extensible. Though of course I am all for it being open sourced as well :P
I also couldn't find any settings specific to case statements. Just for reference:
Hi Björn,
thanks for the idea – however, I'm afraid this is out of scope for ABAP cleaner, at least for the foreseeable future, because the tool was designed with (esp. object-oriented) ABAP in mind.
Kind regards, Jörg-Michael
Too bad that this is out of scope. It would be great, especially for the annotations. Such a pain in the arse:) Kudos for this great project anyway!!!
Hi @BjoernTheDev and @kaisicker,
as you maybe already noted in the Release Notes for version 1.19.1, ABAP cleaner now finally supports formatting of CDS views (i.e. Data Definition Language)! Therefore, very glad to remove the "out of scope" label for one of our oldest issues :-)
Formatting of annotations as requested by @kaisicker is already supported by the rules "Standardize annotation layout" and "Rearrange annotations". However, @BjoernTheDev originally asked about CASE statements, for which there is indeed no rule yet (but we're a lot closer now!), therefore reopening this with label "new cleanup rule" :-)
Kind regards, Jörg-Michael
Thank you so very much!
@jmgrassau thank you so much.😊