mirror of
https://github.com/astral-sh/ruff.git
synced 2025-09-30 22:01:47 +00:00
Support linting input from stdin (#387)
This commit is contained in:
parent
209dce2033
commit
8ba872ece4
6 changed files with 176 additions and 3 deletions
|
@ -78,6 +78,9 @@ pub struct Cli {
|
|||
// TODO(charlie): This should be a sub-command.
|
||||
#[arg(long, hide = true)]
|
||||
pub autoformat: bool,
|
||||
/// The name of the file when passing it through stdin.
|
||||
#[arg(long)]
|
||||
pub stdin_filename: Option<String>,
|
||||
}
|
||||
|
||||
pub enum Warnable {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue