[refurb] Implement repeated-append rule (FURB113) (#6702)

## Summary

As an initial effort with replicating `refurb` rules (#1348 ), this PR
adds support for
[FURB113](https://github.com/dosisod/refurb/blob/master/refurb/checks/builtin/list_extend.py)
and adds a new category of checks.

## Test Plan

I included a new test + checked that all other tests pass.
This commit is contained in:
Valeriy Savchenko 2023-08-28 23:51:59 +01:00 committed by GitHub
parent 1439bb592e
commit 26d53c56a2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
13 changed files with 1003 additions and 11 deletions

View file

@ -117,7 +117,7 @@ impl Ranged for Member<'_> {
}
/// A definition within a Python program.
#[derive(Debug)]
#[derive(Debug, is_macro::Is)]
pub enum Definition<'a> {
Module(Module<'a>),
Member(Member<'a>),