Rename Autofix to Fix (#7657)

**Summary** Mostly mechanical symbol rename and search-and-replace, with
small changes to the markdown docs to read better
This commit is contained in:
konsti 2023-09-28 12:53:05 +02:00 committed by GitHub
parent 8028de8956
commit 1e173f7909
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
231 changed files with 943 additions and 960 deletions

View file

@ -87,7 +87,7 @@ pub struct Options {
)]
pub output_format: Option<SerializationFormat>,
/// Enable autofix behavior by-default when running `ruff` (overridden
/// Enable fix behavior by-default when running `ruff` (overridden
/// by the `--fix` and `--no-fix` command-line flags).
#[option(default = "false", value_type = "bool", example = "fix = true")]
pub fix: Option<bool>,
@ -108,7 +108,7 @@ pub struct Options {
)]
pub show_source: Option<bool>,
/// Whether to show an enumeration of all autofixed lint violations
/// Whether to show an enumeration of all fixed lint violations
/// (overridden by the `--show-fixes` command-line flag).
#[option(
default = "false",
@ -451,13 +451,13 @@ pub struct LintOptions {
)]
pub extend_select: Option<Vec<RuleSelector>>,
/// A list of rule codes or prefixes to consider autofixable, in addition to those
/// A list of rule codes or prefixes to consider fixable, in addition to those
/// specified by `fixable`.
#[option(
default = r#"[]"#,
value_type = "list[RuleSelector]",
example = r#"
# Enable autofix for flake8-bugbear (`B`), on top of any rules specified by `fixable`.
# Enable fix for flake8-bugbear (`B`), on top of any rules specified by `fixable`.
extend-fixable = ["B"]
"#
)]
@ -486,13 +486,13 @@ pub struct LintOptions {
)]
pub external: Option<Vec<String>>,
/// A list of rule codes or prefixes to consider autofixable. By default,
/// all rules are considered autofixable.
/// A list of rule codes or prefixes to consider fixable. By default,
/// all rules are considered fixable.
#[option(
default = r#"["ALL"]"#,
value_type = "list[RuleSelector]",
example = r#"
# Only allow autofix behavior for `E` and `F` rules.
# Only allow fix behavior for `E` and `F` rules.
fixable = ["E", "F"]
"#
)]
@ -599,12 +599,12 @@ pub struct LintOptions {
)]
pub typing_modules: Option<Vec<String>>,
/// A list of rule codes or prefixes to consider non-autofix-able.
/// A list of rule codes or prefixes to consider non-fixable.
#[option(
default = "[]",
value_type = "list[RuleSelector]",
example = r#"
# Disable autofix for unused imports (`F401`).
# Disable fix for unused imports (`F401`).
unfixable = ["F401"]
"#
)]