mirror of
https://github.com/astral-sh/ruff.git
synced 2025-08-03 18:28:24 +00:00
Fix default for max-positional-args
(#9838)
<!-- Thank you for contributing to Ruff! To help us out with reviewing, please consider the following: - Does this pull request include a summary of the change? (See below.) - Does this pull request include a descriptive title? - Does this pull request include references to any relevant issues? --> ## Summary `max-positional-args` defaults to `max-args` if it's not specified and the default to `max-args` is 5, so saying that the default is 3 is definitely wrong. Ideally, we wouldn't specify a default at all for this config option, but I don't think that's possible? <!-- What's the purpose of the change? What does it do, and why? --> ## Test Plan <!-- How was it tested? --> Not sure.
This commit is contained in:
parent
73902323d5
commit
e708c08b64
1 changed files with 1 additions and 1 deletions
|
@ -2756,7 +2756,7 @@ pub struct PylintOptions {
|
|||
///
|
||||
/// If not specified, defaults to the value of `max-args`.
|
||||
#[option(
|
||||
default = r"3",
|
||||
default = r"5", // Needs to be in sync with default of `max-args`.
|
||||
value_type = "int",
|
||||
example = r"max-positional-args = 3"
|
||||
)]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue