mirror of
https://github.com/astral-sh/ruff.git
synced 2025-11-14 18:00:07 +00:00
[flake8-bandit] Remove suspicious-xmle-tree-usage (S320) (#18617)
Summary -- Closes #13707. The rule was deprecated in 0.10 (#16680) and slated for removal in either this or the next release. Test Plan -- N/a
This commit is contained in:
parent
b01195b166
commit
34dc8e0531
3 changed files with 3 additions and 4 deletions
|
|
@ -660,7 +660,7 @@ pub fn code_to_rule(linter: Linter, code: &str) -> Option<(RuleGroup, Rule)> {
|
||||||
(Flake8Bandit, "317") => (RuleGroup::Stable, rules::flake8_bandit::rules::SuspiciousXMLSaxUsage),
|
(Flake8Bandit, "317") => (RuleGroup::Stable, rules::flake8_bandit::rules::SuspiciousXMLSaxUsage),
|
||||||
(Flake8Bandit, "318") => (RuleGroup::Stable, rules::flake8_bandit::rules::SuspiciousXMLMiniDOMUsage),
|
(Flake8Bandit, "318") => (RuleGroup::Stable, rules::flake8_bandit::rules::SuspiciousXMLMiniDOMUsage),
|
||||||
(Flake8Bandit, "319") => (RuleGroup::Stable, rules::flake8_bandit::rules::SuspiciousXMLPullDOMUsage),
|
(Flake8Bandit, "319") => (RuleGroup::Stable, rules::flake8_bandit::rules::SuspiciousXMLPullDOMUsage),
|
||||||
(Flake8Bandit, "320") => (RuleGroup::Deprecated, rules::flake8_bandit::rules::SuspiciousXMLETreeUsage),
|
(Flake8Bandit, "320") => (RuleGroup::Removed, rules::flake8_bandit::rules::SuspiciousXMLETreeUsage),
|
||||||
(Flake8Bandit, "321") => (RuleGroup::Stable, rules::flake8_bandit::rules::SuspiciousFTPLibUsage),
|
(Flake8Bandit, "321") => (RuleGroup::Stable, rules::flake8_bandit::rules::SuspiciousFTPLibUsage),
|
||||||
(Flake8Bandit, "323") => (RuleGroup::Stable, rules::flake8_bandit::rules::SuspiciousUnverifiedContextUsage),
|
(Flake8Bandit, "323") => (RuleGroup::Stable, rules::flake8_bandit::rules::SuspiciousUnverifiedContextUsage),
|
||||||
(Flake8Bandit, "324") => (RuleGroup::Stable, rules::flake8_bandit::rules::HashlibInsecureHashFunction),
|
(Flake8Bandit, "324") => (RuleGroup::Stable, rules::flake8_bandit::rules::HashlibInsecureHashFunction),
|
||||||
|
|
|
||||||
|
|
@ -789,9 +789,9 @@ impl Violation for SuspiciousXMLPullDOMUsage {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/// ## Deprecation
|
/// ## Removed
|
||||||
///
|
///
|
||||||
/// This rule was deprecated as the `lxml` library has been modified to address
|
/// This rule was removed as the `lxml` library has been modified to address
|
||||||
/// known vulnerabilities and unsafe defaults. As such, the `defusedxml`
|
/// known vulnerabilities and unsafe defaults. As such, the `defusedxml`
|
||||||
/// library is no longer necessary, `defusedxml` has [deprecated] its `lxml`
|
/// library is no longer necessary, `defusedxml` has [deprecated] its `lxml`
|
||||||
/// module.
|
/// module.
|
||||||
|
|
|
||||||
1
ruff.schema.json
generated
1
ruff.schema.json
generated
|
|
@ -4089,7 +4089,6 @@
|
||||||
"S318",
|
"S318",
|
||||||
"S319",
|
"S319",
|
||||||
"S32",
|
"S32",
|
||||||
"S320",
|
|
||||||
"S321",
|
"S321",
|
||||||
"S323",
|
"S323",
|
||||||
"S324",
|
"S324",
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue