mirror of
https://github.com/astral-sh/ruff.git
synced 2025-08-03 18:28:24 +00:00
[refurb] Implement reimplemented-starmap
rule (FURB140
) (#7253)
## Summary This PR is part of a bigger effort of re-implementing `refurb` rules #1348. It adds support for [FURB140](https://github.com/dosisod/refurb/blob/master/refurb/checks/itertools/use_starmap.py) ## Test Plan I included a new test + checked that all other tests pass.
This commit is contained in:
parent
c6ba7dfbc6
commit
4123d074bd
9 changed files with 562 additions and 16 deletions
|
@ -854,12 +854,13 @@ mod tests {
|
|||
|
||||
const PREVIEW_RULES: &[Rule] = &[
|
||||
Rule::DirectLoggerInstantiation,
|
||||
Rule::InvalidGetLoggerArgument,
|
||||
Rule::ManualDictComprehension,
|
||||
Rule::ReimplementedStarmap,
|
||||
Rule::SliceCopy,
|
||||
Rule::TooManyPublicMethods,
|
||||
Rule::TooManyPublicMethods,
|
||||
Rule::UndocumentedWarn,
|
||||
Rule::InvalidGetLoggerArgument,
|
||||
];
|
||||
|
||||
#[allow(clippy::needless_pass_by_value)]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue