ruff/crates/ruff_workspace/src
Dhruv Manilawala 0d1fb823d6
[`flake8-logging`] Implement `LOG002`: `invalid-get-logger-argument` (#7399)
## Summary

This PR implements a new rule for `flake8-logging` plugin that checks
for
`logging.getLogger` calls with either `__file__` or `__cached__` as the
first
argument and generates a suggested fix to use `__name__` instead.

Refer: #7248

## Test Plan

Add test cases and `cargo test`
2023-09-16 12:21:30 -04:00
..
configuration.rs [`flake8-logging`] Implement `LOG002`: `invalid-get-logger-argument` (#7399) 2023-09-16 12:21:30 -04:00
lib.rs Move `Configuration` to `ruff_workspace` crate (#6920) 2023-08-28 06:21:35 +00:00
options.rs Move documentation to docs.astral.sh/ruff (#7419) 2023-09-15 22:49:42 -04:00
options_base.rs Move `Configuration` to `ruff_workspace` crate (#6920) 2023-08-28 06:21:35 +00:00
pyproject.rs Update rule selection to respect preview mode (#7195) 2023-09-11 12:28:39 -05:00
resolver.rs Move `Configuration` to `ruff_workspace` crate (#6920) 2023-08-28 06:21:35 +00:00