Skip to content

Commit b90c159

Browse files
committed
[flake8-bandit] Remove suspicious-xmle-tree-usage (S320)
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
1 parent aaf6c9b commit b90c159

File tree

3 files changed

+3
-4
lines changed

3 files changed

+3
-4
lines changed

crates/ruff_linter/src/codes.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -660,7 +660,7 @@ pub fn code_to_rule(linter: Linter, code: &str) -> Option<(RuleGroup, Rule)> {
660660
(Flake8Bandit, "317") => (RuleGroup::Stable, rules::flake8_bandit::rules::SuspiciousXMLSaxUsage),
661661
(Flake8Bandit, "318") => (RuleGroup::Stable, rules::flake8_bandit::rules::SuspiciousXMLMiniDOMUsage),
662662
(Flake8Bandit, "319") => (RuleGroup::Stable, rules::flake8_bandit::rules::SuspiciousXMLPullDOMUsage),
663-
(Flake8Bandit, "320") => (RuleGroup::Deprecated, rules::flake8_bandit::rules::SuspiciousXMLETreeUsage),
663+
(Flake8Bandit, "320") => (RuleGroup::Removed, rules::flake8_bandit::rules::SuspiciousXMLETreeUsage),
664664
(Flake8Bandit, "321") => (RuleGroup::Stable, rules::flake8_bandit::rules::SuspiciousFTPLibUsage),
665665
(Flake8Bandit, "323") => (RuleGroup::Stable, rules::flake8_bandit::rules::SuspiciousUnverifiedContextUsage),
666666
(Flake8Bandit, "324") => (RuleGroup::Stable, rules::flake8_bandit::rules::HashlibInsecureHashFunction),

crates/ruff_linter/src/rules/flake8_bandit/rules/suspicious_function_call.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -789,9 +789,9 @@ impl Violation for SuspiciousXMLPullDOMUsage {
789789
}
790790
}
791791

792-
/// ## Deprecation
792+
/// ## Removed
793793
///
794-
/// This rule was deprecated as the `lxml` library has been modified to address
794+
/// This rule was removed as the `lxml` library has been modified to address
795795
/// known vulnerabilities and unsafe defaults. As such, the `defusedxml`
796796
/// library is no longer necessary, `defusedxml` has [deprecated] its `lxml`
797797
/// module.

ruff.schema.json

Lines changed: 0 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)