mirror of
https://github.com/astral-sh/ruff
synced 2026-01-22 22:10:48 -05:00
Implement C901 (mccabe) (#765)
This commit is contained in:
@@ -91,6 +91,9 @@ pub struct Cli {
|
||||
/// formatting.
|
||||
#[arg(long)]
|
||||
pub line_length: Option<usize>,
|
||||
/// Max McCabe complexity allowed for a function.
|
||||
#[arg(long)]
|
||||
pub max_complexity: Option<usize>,
|
||||
/// Round-trip auto-formatting.
|
||||
// TODO(charlie): This should be a sub-command.
|
||||
#[arg(long, hide = true)]
|
||||
|
||||
Reference in New Issue
Block a user