[flake8-logging] Root logger calls (LOG015) (#14302)

This commit is contained in:
InSync 2024-11-13 16:11:55 +07:00 committed by GitHub
parent 3e36a7ab81
commit f789b12705
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
8 changed files with 330 additions and 0 deletions

View file

@ -1083,6 +1083,7 @@ pub fn code_to_rule(linter: Linter, code: &str) -> Option<(RuleGroup, Rule)> {
(Flake8Logging, "002") => (RuleGroup::Stable, rules::flake8_logging::rules::InvalidGetLoggerArgument),
(Flake8Logging, "007") => (RuleGroup::Stable, rules::flake8_logging::rules::ExceptionWithoutExcInfo),
(Flake8Logging, "009") => (RuleGroup::Stable, rules::flake8_logging::rules::UndocumentedWarn),
(Flake8Logging, "015") => (RuleGroup::Preview, rules::flake8_logging::rules::RootLoggerCall),
_ => return None,
})