Implement C901 (mccabe) (#765)

This commit is contained in:
Edgar R. M 2022-11-17 16:40:50 -06:00 committed by GitHub
parent 6a6f4651aa
commit f44fada446
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
22 changed files with 555 additions and 11 deletions

View file

@ -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)]