Skip to content

Commit e708c08

Browse files
authored
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.
1 parent 7390232 commit e708c08

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

crates/ruff_workspace/src/options.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2756,7 +2756,7 @@ pub struct PylintOptions {
27562756
///
27572757
/// If not specified, defaults to the value of `max-args`.
27582758
#[option(
2759-
default = r"3",
2759+
default = r"5", // Needs to be in sync with default of `max-args`.
27602760
value_type = "int",
27612761
example = r"max-positional-args = 3"
27622762
)]

0 commit comments

Comments
 (0)