Skip to content

Commit

Permalink
Exclude deprecated extend-ignore from the JSON schema
Browse files Browse the repository at this point in the history
Now that the option is deprecated we no longer
want IDEs to suggest it in their autocompletion.
  • Loading branch information
not-my-profile committed Jan 30, 2023
1 parent 7b60bf2 commit 2ac1d8b
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 12 deletions.
10 changes: 0 additions & 10 deletions ruff.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -66,16 +66,6 @@
"type": "string"
}
},
"extend-ignore": {
"description": "A list of rule codes or prefixes to ignore, in addition to those specified by `ignore`.\n\nThis option has been DEPRECATED in favor of `ignore` since its usage is now interchangeable with `ignore`.",
"type": [
"array",
"null"
],
"items": {
"$ref": "#/definitions/RuleSelector"
}
},
"extend-select": {
"description": "A list of rule codes or prefixes to enable, in addition to those specified by `select`.",
"type": [
Expand Down
3 changes: 1 addition & 2 deletions ruff_cli/src/args.rs
Original file line number Diff line number Diff line change
Expand Up @@ -117,8 +117,7 @@ pub struct CheckArgs {
help_heading = "Rule selection"
)]
pub extend_select: Option<Vec<RuleSelector>>,
/// Like --ignore, but adds additional rule codes on top of the ignored
/// ones.
/// Like --ignore. (Deprecated: You can just use --ignore instead.)
#[arg(
long,
value_delimiter = ',',
Expand Down
1 change: 1 addition & 0 deletions src/settings/options.rs
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,7 @@ pub struct Options {
///
/// This option has been DEPRECATED in favor of `ignore`
/// since its usage is now interchangeable with `ignore`.
#[schemars(skip)]
pub extend_ignore: Option<Vec<RuleSelector>>,
#[option(
default = "[]",
Expand Down

0 comments on commit 2ac1d8b

Please sign in to comment.