Grammar and format checker for ABB Rapid code.
- 🔎 Checks ABB RAPID code (.sys modules)
- 🦾 Tested with RobotWare 5 code.
- 🐍 Powered by Python and pyparsing.
rapidchecker
checks for:
- Code that violates the ABB RAPID grammar.
- Bad indentation.
- Lowercase keywords (
if
instead ofIF
,module
instead ofMODULE
etc) - Trailing space.
- Too many empty lines.
Install with pip install rapidchecker
Then check a RAPID module (or a directory containing modules) by running
python -m rapidchecker <path-to-file-or-dir>
If any grammar or format errors are found, they are printed to stdout and the command exits with exitcode 1.
You can enable/disable different checks by adding a rapidchecker.toml
file to the folder in which rapidchecker runs.
See rapidchecker.template.toml for reference.