Skip to main content

Grammar and format checker for ABB RAPID code.

Project description

rapidchecker

Grammar and format checker for ABB Rapid code.

  • 🔎 Checks ABB RAPID code (.sys modules)
  • 🦾 Tested with RobotWare 5 code.
  • 🐍 Powered by Python and pyparsing.

Features

rapidchecker checks for:

  • Code that violates the ABB RAPID grammar.
  • Bad indentation.
  • Lowercase keywords (if instead of IF, module instead of MODULE etc)
  • Trailing space.
  • Too many empty lines.

Getting started

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.

Configuration

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.

References

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

rapidchecker-0.1.5.tar.gz (22.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

rapidchecker-0.1.5-py3-none-any.whl (21.8 kB view details)

Uploaded Python 3

File details

Details for the file rapidchecker-0.1.5.tar.gz.

File metadata

  • Download URL: rapidchecker-0.1.5.tar.gz
  • Upload date:
  • Size: 22.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.7.3

File hashes

Hashes for rapidchecker-0.1.5.tar.gz
Algorithm Hash digest
SHA256 9db78b0a8ca72ffb1d0d7c86df98b3deaacda58f4ca74b8c82e2b86e7c6b96c1
MD5 2040f8d622f0794ea0a296a177bf8703
BLAKE2b-256 70d04b8b804d7bf462a4348399d6dde3571416bc749253efcff30b031a47d886

See more details on using hashes here.

File details

Details for the file rapidchecker-0.1.5-py3-none-any.whl.

File metadata

File hashes

Hashes for rapidchecker-0.1.5-py3-none-any.whl
Algorithm Hash digest
SHA256 c143426f15a8dd857115e46377da6a5f484efac5603d483c414506e2230dcbe6
MD5 f29d4167adee4cbd9aa775defc0ea2ce
BLAKE2b-256 9fb0aab6384ddf754c85ad127d758f0a30c0458edb71e47a456a5cf5734c16ec

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page