mirror of
https://github.com/astral-sh/ruff.git
synced 2025-10-02 22:55:08 +00:00
[docs] fix extend-unsafe-fixes
and extend-safe-fixes
example error (#8139)
This commit is contained in:
parent
6199590072
commit
2401e91ab9
1 changed files with 2 additions and 2 deletions
|
@ -566,7 +566,7 @@ pub struct LintCommonOptions {
|
||||||
value_type = "list[RuleSelector]",
|
value_type = "list[RuleSelector]",
|
||||||
example = r#"
|
example = r#"
|
||||||
# Allow applying all unsafe fixes in the `E` rules and `F401` without the `--unsafe-fixes` flag
|
# Allow applying all unsafe fixes in the `E` rules and `F401` without the `--unsafe-fixes` flag
|
||||||
extend_safe_fixes = ["E", "F401"]
|
extend-safe-fixes = ["E", "F401"]
|
||||||
"#
|
"#
|
||||||
)]
|
)]
|
||||||
pub extend_safe_fixes: Option<Vec<RuleSelector>>,
|
pub extend_safe_fixes: Option<Vec<RuleSelector>>,
|
||||||
|
@ -578,7 +578,7 @@ pub struct LintCommonOptions {
|
||||||
value_type = "list[RuleSelector]",
|
value_type = "list[RuleSelector]",
|
||||||
example = r#"
|
example = r#"
|
||||||
# Require the `--unsafe-fixes` flag when fixing the `E` rules and `F401`
|
# Require the `--unsafe-fixes` flag when fixing the `E` rules and `F401`
|
||||||
extend_unsafe_fixes = ["E", "F401"]
|
extend-unsafe-fixes = ["E", "F401"]
|
||||||
"#
|
"#
|
||||||
)]
|
)]
|
||||||
pub extend_unsafe_fixes: Option<Vec<RuleSelector>>,
|
pub extend_unsafe_fixes: Option<Vec<RuleSelector>>,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue