SAP / abap-cleaner

ABAP cleaner applies 75+ cleanup rules to ABAP code at a single keystroke
Apache License 2.0
395 stars 44 forks source link

Feature request: Custom CDS names for rule "Use CamelCase for known CDS names" #281

Open ConjuringCoffee opened 3 months ago

ConjuringCoffee commented 3 months ago

Hi Jörg-Michael, would it be possible to somehow provide a list of custom CDS names to the rule "Use CamelCase for known CDS names"? Maybe an additional file that can be handled independently from the profile? 😉

jmgrassau commented 3 months ago

Hi ConjuringCoffee,

haha, I was literally waiting for this suggestion to come up, and you did it within less than 1 hour after the release!

Yes, this should be doable, and I already tried to consider this as a possible enhancement while implementing the current functionality.

My idea would be to

Would that make sense? Some open question include

Kind regards, Jörg-Michael

ConjuringCoffee commented 3 months ago

Thank you for the quick and elaborate response! Your basic idea is sound, but to me it would be important to be able to have the settings independently from the profile. Imagine one of the following scenarios:

jmgrassau commented 3 months ago

Hi ConjuringCoffee,

just to be sure that I understand you correctly: Where and how would a user then configure the location of their fiels with custom CDS names? And once configured, they would always be valid, regardless of the selected profile?

Kind regards, Jörg-Michael

ConjuringCoffee commented 3 months ago

Hi Jörg-Michael, here's how I'd imagine it:

Does that make sense? 😄

The whole thing relies on the possibility to have settings related to each ABAP project. Is that feasible?