Skip to content

Gitlab

Report name: gitlab

Report that generates a Gitlab Code Quality output file.

It allows displaying issue information in the Gitlab, for example, in the PR view. More information at GitHub Code Quality Report. Read more about the integration of Robocop with Gitlab at Gitlab report.

Enable with:

robocop check --reports gitlab
[tool.robocop.lint]
reports = [
    "gitlab"
]

It is also possible to use --gitlab alias:

robocop check --gitlab
--gitlab is only supported in CLI.

It will create robocop-code-quality.json file in the current directory.

Configuration

Output path

You can configure an output path with the output_path option. It's a relative path to the file that will be produced by the report:

robocop check --reports gitlab --configure gitlab.output_path=output/robocop_code_quality.json
[tool.robocop.lint]
reports = [
    "gitlab"
]
configure = [
    "gitlab.output_path=output/robocop_code_quality.json"
]

The default path is robocop-code-quality.json.