Skip to content

Commit

Permalink
Update style in pylint messages
Browse files Browse the repository at this point in the history
  • Loading branch information
edgarrmondragon committed Mar 16, 2023
1 parent 7dc22b2 commit e17a361
Show file tree
Hide file tree
Showing 13 changed files with 19 additions and 19 deletions.
2 changes: 1 addition & 1 deletion crates/ruff/src/rules/pylint/rules/too_many_arguments.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ impl Violation for TooManyArguments {
#[derive_message_formats]
fn message(&self) -> String {
let TooManyArguments { c_args, max_args } = self;
format!("Too many arguments to function call ({c_args}/{max_args})")
format!("Too many arguments to function call ({c_args} > {max_args})")
}
}

Expand Down
2 changes: 1 addition & 1 deletion crates/ruff/src/rules/pylint/rules/too_many_branches.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ impl Violation for TooManyBranches {
branches,
max_branches,
} = self;
format!("Too many branches ({branches}/{max_branches})")
format!("Too many branches ({branches} > {max_branches})")
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ impl Violation for TooManyReturnStatements {
returns,
max_returns,
} = self;
format!("Too many return statements ({returns}/{max_returns})")
format!("Too many return statements ({returns} > {max_returns})")
}
}

Expand Down
2 changes: 1 addition & 1 deletion crates/ruff/src/rules/pylint/rules/too_many_statements.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ impl Violation for TooManyStatements {
statements,
max_statements,
} = self;
format!("Too many statements ({statements}/{max_statements})")
format!("Too many statements ({statements} > {max_statements})")
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ expression: diagnostics
---
- kind:
name: TooManyReturnStatements
body: Too many return statements (11/6)
body: Too many return statements (11 > 6)
suggestion: ~
fixable: false
location:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ expression: diagnostics
---
- kind:
name: TooManyBranches
body: Too many branches (13/12)
body: Too many branches (13 > 12)
suggestion: ~
fixable: false
location:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ expression: diagnostics
---
- kind:
name: TooManyArguments
body: Too many arguments to function call (8/5)
body: Too many arguments to function call (8 > 5)
suggestion: ~
fixable: false
location:
Expand All @@ -17,7 +17,7 @@ expression: diagnostics
parent: ~
- kind:
name: TooManyArguments
body: Too many arguments to function call (6/5)
body: Too many arguments to function call (6 > 5)
suggestion: ~
fixable: false
location:
Expand All @@ -30,7 +30,7 @@ expression: diagnostics
parent: ~
- kind:
name: TooManyArguments
body: Too many arguments to function call (6/5)
body: Too many arguments to function call (6 > 5)
suggestion: ~
fixable: false
location:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ expression: diagnostics
---
- kind:
name: TooManyStatements
body: Too many statements (52/50)
body: Too many statements (52 > 50)
suggestion: ~
fixable: false
location:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ expression: diagnostics
---
- kind:
name: TooManyArguments
body: Too many arguments to function call (6/4)
body: Too many arguments to function call (6 > 4)
suggestion: ~
fixable: false
location:
Expand All @@ -17,7 +17,7 @@ expression: diagnostics
parent: ~
- kind:
name: TooManyArguments
body: Too many arguments to function call (6/4)
body: Too many arguments to function call (6 > 4)
suggestion: ~
fixable: false
location:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ expression: diagnostics
---
- kind:
name: TooManyArguments
body: Too many arguments to function call (6/5)
body: Too many arguments to function call (6 > 5)
suggestion: ~
fixable: false
location:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ expression: diagnostics
---
- kind:
name: TooManyBranches
body: Too many branches (2/1)
body: Too many branches (2 > 1)
suggestion: ~
fixable: false
location:
Expand All @@ -17,7 +17,7 @@ expression: diagnostics
parent: ~
- kind:
name: TooManyBranches
body: Too many branches (2/1)
body: Too many branches (2 > 1)
suggestion: ~
fixable: false
location:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ expression: diagnostics
---
- kind:
name: TooManyReturnStatements
body: Too many return statements (2/1)
body: Too many return statements (2 > 1)
suggestion: ~
fixable: false
location:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ expression: diagnostics
---
- kind:
name: TooManyStatements
body: Too many statements (2/1)
body: Too many statements (2 > 1)
suggestion: ~
fixable: false
location:
Expand All @@ -17,7 +17,7 @@ expression: diagnostics
parent: ~
- kind:
name: TooManyStatements
body: Too many statements (3/1)
body: Too many statements (3 > 1)
suggestion: ~
fixable: false
location:
Expand All @@ -30,7 +30,7 @@ expression: diagnostics
parent: ~
- kind:
name: TooManyStatements
body: Too many statements (2/1)
body: Too many statements (2 > 1)
suggestion: ~
fixable: false
location:
Expand Down

0 comments on commit e17a361

Please sign in to comment.