Add lint rule for calling chmod with non-octal integers (#18541)

Co-authored-by: Micha Reiser <micha@reiser.io>
This commit is contained in:
Frazer McLean 2025-06-19 11:30:29 +02:00 committed by GitHub
parent dcf0a8d4d7
commit f67ff33177
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
8 changed files with 621 additions and 0 deletions

View file

@ -1028,6 +1028,7 @@ pub fn code_to_rule(linter: Linter, code: &str) -> Option<(RuleGroup, Rule)> {
(Ruff, "059") => (RuleGroup::Preview, rules::ruff::rules::UnusedUnpackedVariable),
(Ruff, "060") => (RuleGroup::Preview, rules::ruff::rules::InEmptyCollection),
(Ruff, "061") => (RuleGroup::Preview, rules::ruff::rules::LegacyFormPytestRaises),
(Ruff, "064") => (RuleGroup::Preview, rules::ruff::rules::NonOctalPermissions),
(Ruff, "100") => (RuleGroup::Stable, rules::ruff::rules::UnusedNOQA),
(Ruff, "101") => (RuleGroup::Stable, rules::ruff::rules::RedirectedNOQA),
(Ruff, "102") => (RuleGroup::Preview, rules::ruff::rules::InvalidRuleCode),