From e708c08b64108665aed2ae9914f7eff5eab46e27 Mon Sep 17 00:00:00 2001 From: Thomas M Kehrenberg Date: Mon, 5 Feb 2024 17:58:14 +0100 Subject: [PATCH] Fix default for `max-positional-args` (#9838) ## 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? ## Test Plan Not sure. --- crates/ruff_workspace/src/options.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/ruff_workspace/src/options.rs b/crates/ruff_workspace/src/options.rs index 734b543414..5fb8e8f47d 100644 --- a/crates/ruff_workspace/src/options.rs +++ b/crates/ruff_workspace/src/options.rs @@ -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" )]