Open Source ABAP tools – abaplint and abapCov
Continuous Integration is a hot topic, but it has always been difficult to do anything for ABAP open source projects, as it would require a dedicated SAP system to run the tests on.
abaplint will work for objects that have been serialized using abapGit, or files containing the raw abap code.
Currently different 17 rules have been implemented, see https://github.com/larshp/abaplint/wiki. The checks can be enabled or disabled plus configured via a abaplint.json file. The project is open source and is work in progress, so expect some problems, but pull requests and suggestions are also welcome.
abaplint can be setup to run on Travis CI(see example at https://travis-ci.org/larshp/abapGit), each time a push is done to the ABAP git repository, Travis will download the latest abaplint via npm and run the linter on the committed code.
It also works in the Atom editor,
And in Eclipse(update site to be created),
Plus on the web
abapCov takes a step towards visualizing the coverage of the unit tests run on the ABAP server.
Run abapCov on the ABAP server, it will run the unit tests with coverage enabled, and the coverage result is then uploaded to https://codecov.io where anyone can check it out.
See example at https://codecov.io/github/larshp/abapOpenChecks
https://github.com/larshp/abaplint or via npm
nice one. For me it is a step to early to publish it at a "real" system. But for playing around and see the ongoing process I will take my time and feel into it:-)
Yea, for real systems the Code Inspector works a lot better than abaplint.
You can install the Atom package(linter-abaplint) to try it out locally, alternatively it also runs nicely on https://c9.io/ (one free private workspace)
Very nice information but a quick question here, can we add new rules in Abaplint or turn off some rules. Because after installing through npm i am not able to see any config file where i can do the same.
Thanks in advance.
Turn off rules
to get the default config
put the file in your root folder as “abaplint.json”, it should be picked up automatically by abaplint. See example repository https://github.com/sbcgua/abap_data_parser
Add new rules
Yes, pull requests welcome on github, https://github.com/larshp/abaplint
Feel free to create an issue on github if you have any ideas or find any bugs