Robot Framework Robocop

8.2.5 · active · verified Sun Apr 12

Robocop is a static code analysis tool (linter) and code formatter specifically designed for Robot Framework. It uses the official Robot Framework parsing API to analyze files and enforce code quality standards and formatting. Currently at version 8.2.5, the library maintains an active development status with regular minor/patch releases and impactful major version updates approximately once a year.

Warnings

Install

Imports

Quickstart

Robocop is primarily a command-line interface (CLI) tool. The most common way to use it is by running `robocop check` for linting or `robocop format` for code formatting in your project directory.

# To lint Robot Framework files in the current directory:
robocop check

# To format Robot Framework files in the current directory:
robocop format

# To lint a specific file:
robocop check path/to/your_file.robot

# To format a specific file:
robocop format path/to/your_file.robot

# For help with available commands and options:
robocop -h

view raw JSON →