ruff/crates/ruff_cli/src
Aarni Koskela d7214e77e6
Add ruff rule --all subcommand (with JSON output) (#5059)
## Summary

This adds a `ruff rule --all` switch that prints out a human-readable
Markdown or a machine-readable JSON document of the lint rules known to
Ruff.

I needed a machine-readable document of the rules [for a
project](https://github.com/astral-sh/ruff/discussions/5078), and
figured it could be useful for other people – or tooling! – to be able
to interrogate Ruff about its arcane knowledge.

The JSON output is an array of the same objects printed by `ruff rule
--format=json`.

## Test Plan

I ran `ruff rule --all --format=json`. I think more might be needed, but
maybe a snapshot test is overkill?
2023-07-04 19:45:38 +00:00
..
bin Add support for providing command-line arguments via argfile (#4087) 2023-04-25 17:58:21 -06:00
commands Add ruff rule --all subcommand (with JSON output) (#5059) 2023-07-04 19:45:38 +00:00
args.rs Add ruff rule --all subcommand (with JSON output) (#5059) 2023-07-04 19:45:38 +00:00
cache.rs Keep track of when files are last seen in the cache (#5214) 2023-06-23 15:40:35 +02:00
diagnostics.rs Experimental release for Jupyter notebook integration (#5363) 2023-06-26 21:22:42 +05:30
lib.rs Add ruff rule --all subcommand (with JSON output) (#5059) 2023-07-04 19:45:38 +00:00
panic.rs Disallow unreachable_pub (#4314) 2023-05-11 18:00:00 -04:00
printer.rs Add option (-o/--output-file) to write output to a file (#4950) 2023-06-20 22:16:49 +05:30
resolve.rs Add a script that tests formatter stability on repositories (#5055) 2023-06-19 14:13:38 +00:00