nit: docs for ignore & select (#15883)

This commit is contained in:
Alexander Nordin 2025-02-04 01:05:41 -08:00 committed by GitHub
parent de4d9979eb
commit b848afeae8
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 11 additions and 8 deletions

View file

@ -656,7 +656,8 @@ pub struct LintCommonOptions {
///
/// When breaking ties between enabled and disabled rules (via `select` and
/// `ignore`, respectively), more specific prefixes override less
/// specific prefixes.
/// specific prefixes. `ignore` takes precedence over `select` if the same
/// prefix appears in both.
#[option(
default = "[]",
value_type = "list[RuleSelector]",
@ -742,7 +743,8 @@ pub struct LintCommonOptions {
///
/// When breaking ties between enabled and disabled rules (via `select` and
/// `ignore`, respectively), more specific prefixes override less
/// specific prefixes.
/// specific prefixes. `ignore` takes precedence over `select` if the
/// same prefix appears in both.
#[option(
default = r#"["E4", "E7", "E9", "F"]"#,
value_type = "list[RuleSelector]",