ruff/crates/ruff_cli/src
Charlie Marsh 5de95d7054
Reuse `FormatResult` and `FormatterIterationError` in `format_stdin.rs` (#6985)
## Summary

Ensures that we use the same error types and messages. Also renames
those struct to `FormatCommand*` for consistency, and removes the
`FormatCommandResult::Skipped` variant in favor of skipping in the
iterator directly.
2023-08-29 17:41:53 +00:00
..
bin Replace `.map_or(false, $closure)` with `.is_some_and(closure)` (#6244) 2023-08-01 19:29:42 +02:00
commands Reuse `FormatResult` and `FormatterIterationError` in `format_stdin.rs` (#6985) 2023-08-29 17:41:53 +00:00
args.rs Implement `Display` on formatter structs (#6983) 2023-08-29 16:57:26 +00:00
cache.rs Refactor `SourceKind` to store file content (#6640) 2023-08-18 13:45:38 +00:00
diagnostics.rs Add TOML files to `SourceType` (#6929) 2023-08-28 15:01:48 +00:00
lib.rs Move stdin formatting to its own command file (#6981) 2023-08-29 16:06:10 +00:00
panic.rs Disallow `unreachable_pub` (#4314) 2023-05-11 18:00:00 -04:00
printer.rs Refactor `SourceKind` to store file content (#6640) 2023-08-18 13:45:38 +00:00
resolve.rs Move `Configuration` to `ruff_workspace` crate (#6920) 2023-08-28 06:21:35 +00:00
stdin.rs Move stdin formatting to its own command file (#6981) 2023-08-29 16:06:10 +00:00