Skip to content

Recommendations on how to leverage ABAP Cleaner as part of a pipeline #246

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
diegodiff opened this issue Feb 12, 2024 · 3 comments
Open
Labels
documentation Improvements or additions to documentation

Comments

@diegodiff
Copy link

Currently considering building a pipeline that auto-generates ABAP Code and it will be great to be able to via CI/CD tool to call the ABAP Cleaner pass a piece of code, request to clean it and get the code back.

As of now, the only viable way would be using some scripting tool with a VM and the standalone ABAP Cleaner BUT perhaps you're thinking about that or already figured it out.

Thanks, Diego.

@ConjuringCoffee
Copy link
Contributor

You might want to get in touch with @stockbal. He was working on a GitHub workflow last year: #118 (comment)

@larshp
Copy link

larshp commented Feb 12, 2024

if generating code, I assume that there is multiple things that needs to fit together, ie. you'd like early feedback on the syntax

something like https://github.com/abap-openapi/abap-openapi generates ABAP code, and checks it with abaplint for early syntax feedback

can also quick fix issues npm install @abaplint/cli -g && abaplint --fix

@jmgrassau
Copy link
Member

Hi Diego,

regarding ABAP cleaner, you could check how far you can get with Calling ABAP cleaner from the command line, which also includes an example of a GitHub Actions workflow usage.

Kind regards,
Jörg-Michael

@jmgrassau jmgrassau added the documentation Improvements or additions to documentation label May 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation
Projects
None yet
Development

No branches or pull requests

4 participants