We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8c0f7b3 commit c7d52abCopy full SHA for c7d52ab
dev-tools/xtask/src/clippy.rs
@@ -14,6 +14,9 @@ pub struct ClippyArgs {
14
/// Automatically apply lint suggestions.
15
#[clap(long)]
16
fix: bool,
17
+ /// Allow uncommitted changes
18
+ #[clap(long)]
19
+ allow_dirty: bool,
20
/// Error format passed to `cargo clippy`.
21
#[clap(long, value_name = "FMT")]
22
message_format: Option<String>,
@@ -27,6 +30,10 @@ pub fn run_cmd(args: ClippyArgs) -> Result<()> {
27
30
command.arg("--fix");
28
31
}
29
32
33
+ if args.allow_dirty {
34
+ command.arg("--allow-dirty");
35
+ }
36
+
37
// Pass along the `--message-format` flag if it was provided.
38
//
39
// We don't really care about validating that it's a valid argument to
0 commit comments