mirror of
https://github.com/astral-sh/ruff.git
synced 2025-09-30 05:45:24 +00:00
Implement C901 (mccabe) (#765)
This commit is contained in:
parent
6a6f4651aa
commit
f44fada446
22 changed files with 555 additions and 11 deletions
|
@ -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)]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue