[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:
@@ -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, "318") => (RuleGroup::Stable, rules::flake8_bandit::rules::SuspiciousXMLMiniDOMUsage),
|
||||
(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, "323") => (RuleGroup::Stable, rules::flake8_bandit::rules::SuspiciousUnverifiedContextUsage),
|
||||
(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`
|
||||
/// library is no longer necessary, `defusedxml` has [deprecated] its `lxml`
|
||||
/// module.
|
||||
|
||||
1
ruff.schema.json
generated
1
ruff.schema.json
generated
@@ -4089,7 +4089,6 @@
|
||||
"S318",
|
||||
"S319",
|
||||
"S32",
|
||||
"S320",
|
||||
"S321",
|
||||
"S323",
|
||||
"S324",
|
||||
|
||||
Reference in New Issue
Block a user