ruff/crates/ruff_cli
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
..
resources/test/fixtures Keep track of when files are last seen in the cache (#5214) 2023-06-23 15:40:35 +02:00
src Add ruff rule --all subcommand (with JSON output) (#5059) 2023-07-04 19:45:38 +00:00
tests Add rule documentation URL to JSON output (#5187) 2023-06-19 21:09:15 +00:00
Cargo.toml Bump version to 0.0.276 (#5488) 2023-07-03 18:02:49 +00:00