Skip to content

Text file

Report name: text_file

Available in all: No

Report that output issues in the file. Issues format follows Print Issues simple report format.

Enable with:

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

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 text_file --configure text_file.output_path=output/text_file.txt
[tool.robocop.lint]
reports = [
    "text_file"
]
configure = [
    "text_file.output_path=output/text_file.txt"
]

The default path is robocop.txt.

Skip on empty

By default, the report file is generated even if Robocop did not find any issue. Set the skip_on_empty option to True to not create the file when there is nothing to report:

robocop check --reports text_file --configure text_file.skip_on_empty=True
[tool.robocop.lint]
reports = [
    "text_file"
]
configure = [
    "text_file.skip_on_empty=True"
]

If the file was created by a previous run, it is left untouched.