Skip to content

Writing lint output to file #4754

@TalAmuyal

Description

@TalAmuyal

TL;DR: I couldn't find how to tell Ruff to write the report to file.

Examples:

  • bandit -> --output=reports/report.txt
  • flake8 -> --output-file=reports/report.txt
  • pylint -> --output-format=text:reports/report.txt

Motivation:

I'm using Ruff with Pants.
Pants parallelises Ruff's run for monorepos.
In general, it runs linters in a sandbox, collects their reports and puts them in dist/[linter]/... which can then be used by Jenkins to display the results to the user.

Metadata

Metadata

Assignees

Labels

configurationRelated to settings and configuration

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions