Upgrade RustPython to support parenthesized context managers (#1228)

This commit is contained in:
Charlie Marsh 2022-12-13 10:16:43 -05:00 committed by GitHub
parent f3e11a30cb
commit a58b9b5063
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
48 changed files with 371 additions and 338 deletions

8
Cargo.lock generated
View file

@ -1942,7 +1942,7 @@ dependencies = [
[[package]] [[package]]
name = "rustpython-ast" name = "rustpython-ast"
version = "0.1.0" version = "0.1.0"
source = "git+https://github.com/RustPython/RustPython.git?rev=2edd0d264c50c7807bcff03a52a6509e8b7f187f#2edd0d264c50c7807bcff03a52a6509e8b7f187f" source = "git+https://github.com/RustPython/RustPython.git?rev=8d879a53197f9c73062f6160410bdba796a71cbf#8d879a53197f9c73062f6160410bdba796a71cbf"
dependencies = [ dependencies = [
"num-bigint", "num-bigint",
"rustpython-common", "rustpython-common",
@ -1952,7 +1952,7 @@ dependencies = [
[[package]] [[package]]
name = "rustpython-common" name = "rustpython-common"
version = "0.0.0" version = "0.0.0"
source = "git+https://github.com/RustPython/RustPython.git?rev=2edd0d264c50c7807bcff03a52a6509e8b7f187f#2edd0d264c50c7807bcff03a52a6509e8b7f187f" source = "git+https://github.com/RustPython/RustPython.git?rev=8d879a53197f9c73062f6160410bdba796a71cbf#8d879a53197f9c73062f6160410bdba796a71cbf"
dependencies = [ dependencies = [
"ascii", "ascii",
"cfg-if 1.0.0", "cfg-if 1.0.0",
@ -1975,7 +1975,7 @@ dependencies = [
[[package]] [[package]]
name = "rustpython-compiler-core" name = "rustpython-compiler-core"
version = "0.1.2" version = "0.1.2"
source = "git+https://github.com/RustPython/RustPython.git?rev=2edd0d264c50c7807bcff03a52a6509e8b7f187f#2edd0d264c50c7807bcff03a52a6509e8b7f187f" source = "git+https://github.com/RustPython/RustPython.git?rev=8d879a53197f9c73062f6160410bdba796a71cbf#8d879a53197f9c73062f6160410bdba796a71cbf"
dependencies = [ dependencies = [
"bincode", "bincode",
"bitflags", "bitflags",
@ -1992,7 +1992,7 @@ dependencies = [
[[package]] [[package]]
name = "rustpython-parser" name = "rustpython-parser"
version = "0.1.2" version = "0.1.2"
source = "git+https://github.com/RustPython/RustPython.git?rev=2edd0d264c50c7807bcff03a52a6509e8b7f187f#2edd0d264c50c7807bcff03a52a6509e8b7f187f" source = "git+https://github.com/RustPython/RustPython.git?rev=8d879a53197f9c73062f6160410bdba796a71cbf#8d879a53197f9c73062f6160410bdba796a71cbf"
dependencies = [ dependencies = [
"ahash", "ahash",
"anyhow", "anyhow",

View file

@ -44,9 +44,9 @@ regex = { version = "1.6.0" }
ropey = { version = "1.5.0", features = ["cr_lines", "simd"], default-features = false } ropey = { version = "1.5.0", features = ["cr_lines", "simd"], default-features = false }
ruff_macros = { version = "0.0.178", path = "ruff_macros" } ruff_macros = { version = "0.0.178", path = "ruff_macros" }
rustc-hash = { version = "1.1.0" } rustc-hash = { version = "1.1.0" }
rustpython-ast = { features = ["unparse"], git = "https://github.com/RustPython/RustPython.git", rev = "2edd0d264c50c7807bcff03a52a6509e8b7f187f" } rustpython-ast = { features = ["unparse"], git = "https://github.com/RustPython/RustPython.git", rev = "8d879a53197f9c73062f6160410bdba796a71cbf" }
rustpython-common = { git = "https://github.com/RustPython/RustPython.git", rev = "2edd0d264c50c7807bcff03a52a6509e8b7f187f" } rustpython-common = { git = "https://github.com/RustPython/RustPython.git", rev = "8d879a53197f9c73062f6160410bdba796a71cbf" }
rustpython-parser = { features = ["lalrpop"], git = "https://github.com/RustPython/RustPython.git", rev = "2edd0d264c50c7807bcff03a52a6509e8b7f187f" } rustpython-parser = { features = ["lalrpop"], git = "https://github.com/RustPython/RustPython.git", rev = "8d879a53197f9c73062f6160410bdba796a71cbf" }
serde = { version = "1.0.147", features = ["derive"] } serde = { version = "1.0.147", features = ["derive"] }
serde_json = { version = "1.0.87" } serde_json = { version = "1.0.87" }
strum = { version = "0.24.1", features = ["strum_macros"] } strum = { version = "0.24.1", features = ["strum_macros"] }

View file

@ -1073,8 +1073,7 @@ conflicts with the `isort` rules, like `I001`).
Beyond the rule set, Ruff suffers from the following limitations vis-à-vis Flake8: Beyond the rule set, Ruff suffers from the following limitations vis-à-vis Flake8:
1. Ruff does not yet support a few Python 3.9 and 3.10 language features, including structural 1. Ruff does not yet support structural pattern matching.
pattern matching and parenthesized context managers.
2. Flake8 has a plugin architecture and supports writing custom lint rules. (Instead, popular Flake8 2. Flake8 has a plugin architecture and supports writing custom lint rules. (Instead, popular Flake8
plugins are re-implemented in Rust as part of Ruff itself.) plugins are re-implemented in Rust as part of Ruff itself.)

View file

@ -2028,7 +2028,7 @@ dependencies = [
[[package]] [[package]]
name = "rustpython-ast" name = "rustpython-ast"
version = "0.1.0" version = "0.1.0"
source = "git+https://github.com/RustPython/RustPython.git?rev=2edd0d264c50c7807bcff03a52a6509e8b7f187f#2edd0d264c50c7807bcff03a52a6509e8b7f187f" source = "git+https://github.com/RustPython/RustPython.git?rev=8d879a53197f9c73062f6160410bdba796a71cbf#8d879a53197f9c73062f6160410bdba796a71cbf"
dependencies = [ dependencies = [
"num-bigint", "num-bigint",
"rustpython-common", "rustpython-common",
@ -2038,7 +2038,7 @@ dependencies = [
[[package]] [[package]]
name = "rustpython-common" name = "rustpython-common"
version = "0.0.0" version = "0.0.0"
source = "git+https://github.com/RustPython/RustPython.git?rev=2edd0d264c50c7807bcff03a52a6509e8b7f187f#2edd0d264c50c7807bcff03a52a6509e8b7f187f" source = "git+https://github.com/RustPython/RustPython.git?rev=8d879a53197f9c73062f6160410bdba796a71cbf#8d879a53197f9c73062f6160410bdba796a71cbf"
dependencies = [ dependencies = [
"ascii", "ascii",
"cfg-if 1.0.0", "cfg-if 1.0.0",
@ -2061,7 +2061,7 @@ dependencies = [
[[package]] [[package]]
name = "rustpython-compiler-core" name = "rustpython-compiler-core"
version = "0.1.2" version = "0.1.2"
source = "git+https://github.com/RustPython/RustPython.git?rev=2edd0d264c50c7807bcff03a52a6509e8b7f187f#2edd0d264c50c7807bcff03a52a6509e8b7f187f" source = "git+https://github.com/RustPython/RustPython.git?rev=8d879a53197f9c73062f6160410bdba796a71cbf#8d879a53197f9c73062f6160410bdba796a71cbf"
dependencies = [ dependencies = [
"bincode", "bincode",
"bitflags", "bitflags",
@ -2078,7 +2078,7 @@ dependencies = [
[[package]] [[package]]
name = "rustpython-parser" name = "rustpython-parser"
version = "0.1.2" version = "0.1.2"
source = "git+https://github.com/RustPython/RustPython.git?rev=2edd0d264c50c7807bcff03a52a6509e8b7f187f#2edd0d264c50c7807bcff03a52a6509e8b7f187f" source = "git+https://github.com/RustPython/RustPython.git?rev=8d879a53197f9c73062f6160410bdba796a71cbf#8d879a53197f9c73062f6160410bdba796a71cbf"
dependencies = [ dependencies = [
"ahash", "ahash",
"anyhow", "anyhow",

View file

@ -10,13 +10,13 @@ except ValueError as e:
print(e) print(e)
def f1(): def f():
x = 1 x = 1
y = 2 y = 2
z = x + y z = x + y
def f2(): def f():
foo = (1, 2) foo = (1, 2)
(a, b) = (1, 2) (a, b) = (1, 2)
@ -26,12 +26,12 @@ def f2():
(x, y) = baz = bar (x, y) = baz = bar
def f3(): def f():
locals() locals()
x = 1 x = 1
def f4(): def f():
_ = 1 _ = 1
__ = 1 __ = 1
_discarded = 1 _discarded = 1
@ -40,26 +40,26 @@ def f4():
a = 1 a = 1
def f5(): def f():
global a global a
# Used in `f7` via `nonlocal`. # Used in `c` via `nonlocal`.
b = 1 b = 1
def f6(): def c():
# F841 # F841
b = 1 b = 1
def f7(): def d():
nonlocal b nonlocal b
def f6(): def f():
annotations = [] annotations = []
assert len([annotations for annotations in annotations]) assert len([annotations for annotations in annotations])
def f7(): def f():
def connect(): def connect():
return None, None return None, None
@ -67,6 +67,22 @@ def f7():
cursor.execute("SELECT * FROM users") cursor.execute("SELECT * FROM users")
def f8(): def f():
with open("file") as f, open("") as ((a, b)): def connect():
return None, None
with (connect() as (connection, cursor)):
cursor.execute("SELECT * FROM users")
def f():
with open("file") as my_file, open("") as ((this, that)):
print("hello")
def f():
with (
open("file") as my_file,
open("") as ((this, that)),
):
print("hello") print("hello")

View file

@ -11,8 +11,8 @@ itertools = { version = "0.10.5" }
libcst = { git = "https://github.com/charliermarsh/LibCST", rev = "f2f0b7a487a8725d161fe8b3ed73a6758b21e177" } libcst = { git = "https://github.com/charliermarsh/LibCST", rev = "f2f0b7a487a8725d161fe8b3ed73a6758b21e177" }
once_cell = { version = "1.16.0" } once_cell = { version = "1.16.0" }
ruff = { path = ".." } ruff = { path = ".." }
rustpython-ast = { features = ["unparse"], git = "https://github.com/RustPython/RustPython.git", rev = "2edd0d264c50c7807bcff03a52a6509e8b7f187f" } rustpython-ast = { features = ["unparse"], git = "https://github.com/RustPython/RustPython.git", rev = "8d879a53197f9c73062f6160410bdba796a71cbf" }
rustpython-common = { git = "https://github.com/RustPython/RustPython.git", rev = "2edd0d264c50c7807bcff03a52a6509e8b7f187f" } rustpython-common = { git = "https://github.com/RustPython/RustPython.git", rev = "8d879a53197f9c73062f6160410bdba796a71cbf" }
rustpython-parser = { features = ["lalrpop"], git = "https://github.com/RustPython/RustPython.git", rev = "2edd0d264c50c7807bcff03a52a6509e8b7f187f" } rustpython-parser = { features = ["lalrpop"], git = "https://github.com/RustPython/RustPython.git", rev = "8d879a53197f9c73062f6160410bdba796a71cbf" }
strum = { version = "0.24.1", features = ["strum_macros"] } strum = { version = "0.24.1", features = ["strum_macros"] }
strum_macros = { version = "0.24.3" } strum_macros = { version = "0.24.3" }

View file

@ -8,7 +8,7 @@ expression: checks
row: 29 row: 29
column: 4 column: 4
end_location: end_location:
row: 35 row: 30
column: 0 column: 16
fix: ~ fix: ~

View file

@ -8,8 +8,8 @@ expression: checks
row: 4 row: 4
column: 0 column: 0
end_location: end_location:
row: 9 row: 5
column: 0 column: 8
fix: ~ fix: ~
- kind: - kind:
MissingTypeFunctionArgument: a MissingTypeFunctionArgument: a
@ -35,8 +35,8 @@ expression: checks
row: 9 row: 9
column: 0 column: 0
end_location: end_location:
row: 14 row: 10
column: 0 column: 8
fix: ~ fix: ~
- kind: - kind:
MissingTypeFunctionArgument: b MissingTypeFunctionArgument: b
@ -62,8 +62,8 @@ expression: checks
row: 19 row: 19
column: 0 column: 0
end_location: end_location:
row: 24 row: 20
column: 0 column: 8
fix: ~ fix: ~
- kind: - kind:
MissingReturnTypePublicFunction: foo MissingReturnTypePublicFunction: foo
@ -71,8 +71,8 @@ expression: checks
row: 24 row: 24
column: 0 column: 0
end_location: end_location:
row: 29 row: 25
column: 0 column: 8
fix: ~ fix: ~
- kind: - kind:
DynamicallyTypedExpression: a DynamicallyTypedExpression: a

View file

@ -8,8 +8,8 @@ expression: checks
row: 5 row: 5
column: 4 column: 4
end_location: end_location:
row: 10 row: 6
column: 0 column: 11
fix: ~ fix: ~
- kind: - kind:
MissingReturnTypeMagicMethod: __init__ MissingReturnTypeMagicMethod: __init__
@ -17,8 +17,8 @@ expression: checks
row: 11 row: 11
column: 4 column: 4
end_location: end_location:
row: 16 row: 12
column: 0 column: 11
fix: ~ fix: ~
- kind: - kind:
MissingReturnTypePrivateFunction: __init__ MissingReturnTypePrivateFunction: __init__
@ -26,7 +26,7 @@ expression: checks
row: 40 row: 40
column: 0 column: 0
end_location: end_location:
row: 42 row: 41
column: 0 column: 7
fix: ~ fix: ~

View file

@ -8,8 +8,8 @@ expression: checks
row: 45 row: 45
column: 0 column: 0
end_location: end_location:
row: 50 row: 46
column: 0 column: 15
fix: ~ fix: ~
- kind: - kind:
MissingReturnTypePublicFunction: foo MissingReturnTypePublicFunction: foo
@ -17,7 +17,7 @@ expression: checks
row: 50 row: 50
column: 0 column: 0
end_location: end_location:
row: 56 row: 55
column: 0 column: 14
fix: ~ fix: ~

View file

@ -7,7 +7,7 @@ expression: checks
row: 22 row: 22
column: 8 column: 8
end_location: end_location:
row: 25 row: 23
column: 4 column: 42
fix: ~ fix: ~

View file

@ -8,8 +8,8 @@ expression: checks
row: 17 row: 17
column: 0 column: 0
end_location: end_location:
row: 22 row: 19
column: 0 column: 13
fix: ~ fix: ~
- kind: - kind:
AbstractBaseClassWithoutAbstractMethod: MetaBase_1 AbstractBaseClassWithoutAbstractMethod: MetaBase_1
@ -17,8 +17,8 @@ expression: checks
row: 58 row: 58
column: 0 column: 0
end_location: end_location:
row: 63 row: 60
column: 0 column: 13
fix: ~ fix: ~
- kind: - kind:
AbstractBaseClassWithoutAbstractMethod: abc_Base_1 AbstractBaseClassWithoutAbstractMethod: abc_Base_1
@ -26,8 +26,8 @@ expression: checks
row: 69 row: 69
column: 0 column: 0
end_location: end_location:
row: 74 row: 71
column: 0 column: 13
fix: ~ fix: ~
- kind: - kind:
AbstractBaseClassWithoutAbstractMethod: abc_Base_2 AbstractBaseClassWithoutAbstractMethod: abc_Base_2
@ -35,8 +35,8 @@ expression: checks
row: 74 row: 74
column: 0 column: 0
end_location: end_location:
row: 79 row: 76
column: 0 column: 13
fix: ~ fix: ~
- kind: - kind:
AbstractBaseClassWithoutAbstractMethod: notabc_Base_1 AbstractBaseClassWithoutAbstractMethod: notabc_Base_1
@ -44,8 +44,8 @@ expression: checks
row: 79 row: 79
column: 0 column: 0
end_location: end_location:
row: 84 row: 81
column: 0 column: 13
fix: ~ fix: ~
- kind: - kind:
AbstractBaseClassWithoutAbstractMethod: abc_set_class_variable_4 AbstractBaseClassWithoutAbstractMethod: abc_set_class_variable_4
@ -53,7 +53,7 @@ expression: checks
row: 128 row: 128
column: 0 column: 0
end_location: end_location:
row: 130 row: 129
column: 0 column: 7
fix: ~ fix: ~

View file

@ -8,8 +8,8 @@ expression: checks
row: 15 row: 15
column: 0 column: 0
end_location: end_location:
row: 22 row: 20
column: 0 column: 9
fix: ~ fix: ~
- kind: - kind:
DuplicateTryBlockException: pickle.PickleError DuplicateTryBlockException: pickle.PickleError
@ -17,8 +17,8 @@ expression: checks
row: 22 row: 22
column: 0 column: 0
end_location: end_location:
row: 31 row: 29
column: 0 column: 9
fix: ~ fix: ~
- kind: - kind:
DuplicateTryBlockException: TypeError DuplicateTryBlockException: TypeError
@ -26,8 +26,8 @@ expression: checks
row: 31 row: 31
column: 0 column: 0
end_location: end_location:
row: 39 row: 38
column: 0 column: 9
fix: ~ fix: ~
- kind: - kind:
DuplicateTryBlockException: ValueError DuplicateTryBlockException: ValueError
@ -35,7 +35,7 @@ expression: checks
row: 31 row: 31
column: 0 column: 0
end_location: end_location:
row: 39 row: 38
column: 0 column: 9
fix: ~ fix: ~

View file

@ -8,8 +8,8 @@ expression: checks
row: 12 row: 12
column: 4 column: 4
end_location: end_location:
row: 15 row: 13
column: 4 column: 11
fix: ~ fix: ~
- kind: - kind:
EmptyMethodWithoutAbstractDecorator: AbstractClass EmptyMethodWithoutAbstractDecorator: AbstractClass
@ -17,8 +17,8 @@ expression: checks
row: 15 row: 15
column: 4 column: 4
end_location: end_location:
row: 18 row: 16
column: 4 column: 12
fix: ~ fix: ~
- kind: - kind:
EmptyMethodWithoutAbstractDecorator: AbstractClass EmptyMethodWithoutAbstractDecorator: AbstractClass
@ -26,8 +26,8 @@ expression: checks
row: 18 row: 18
column: 4 column: 4
end_location: end_location:
row: 22 row: 20
column: 4 column: 11
fix: ~ fix: ~
- kind: - kind:
EmptyMethodWithoutAbstractDecorator: AbstractClass EmptyMethodWithoutAbstractDecorator: AbstractClass
@ -35,7 +35,7 @@ expression: checks
row: 22 row: 22
column: 4 column: 4
end_location: end_location:
row: 29 row: 27
column: 4 column: 12
fix: ~ fix: ~

View file

@ -89,8 +89,8 @@ expression: checks
row: 10 row: 10
column: 0 column: 0
end_location: end_location:
row: 13 row: 11
column: 0 column: 8
fix: ~ fix: ~
- kind: - kind:
BuiltinVariableShadowing: slice BuiltinVariableShadowing: slice
@ -98,8 +98,8 @@ expression: checks
row: 13 row: 13
column: 0 column: 0
end_location: end_location:
row: 16 row: 14
column: 0 column: 8
fix: ~ fix: ~
- kind: - kind:
BuiltinVariableShadowing: ValueError BuiltinVariableShadowing: ValueError
@ -107,8 +107,8 @@ expression: checks
row: 18 row: 18
column: 0 column: 0
end_location: end_location:
row: 21 row: 19
column: 0 column: 7
fix: ~ fix: ~
- kind: - kind:
BuiltinVariableShadowing: memoryview BuiltinVariableShadowing: memoryview

View file

@ -17,7 +17,7 @@ expression: checks
row: 7 row: 7
column: 4 column: 4
end_location: end_location:
row: 9 row: 8
column: 0 column: 12
fix: ~ fix: ~

View file

@ -7,8 +7,8 @@ expression: checks
row: 7 row: 7
column: 4 column: 4
end_location: end_location:
row: 12 row: 8
column: 0 column: 16
fix: ~ fix: ~
- kind: ImplicitReturn - kind: ImplicitReturn
location: location:
@ -45,8 +45,8 @@ expression: checks
row: 29 row: 29
column: 8 column: 8
end_location: end_location:
row: 34 row: 30
column: 0 column: 20
fix: ~ fix: ~
- kind: ImplicitReturn - kind: ImplicitReturn
location: location:

View file

@ -8,8 +8,8 @@ expression: checks
row: 5 row: 5
column: 4 column: 4
end_location: end_location:
row: 16 row: 13
column: 0 column: 16
fix: ~ fix: ~
- kind: - kind:
SuperfluousElseReturn: Elif SuperfluousElseReturn: Elif
@ -17,8 +17,8 @@ expression: checks
row: 17 row: 17
column: 4 column: 4
end_location: end_location:
row: 27 row: 26
column: 4 column: 13
fix: ~ fix: ~
- kind: - kind:
SuperfluousElseReturn: Elif SuperfluousElseReturn: Elif
@ -26,8 +26,8 @@ expression: checks
row: 38 row: 38
column: 4 column: 4
end_location: end_location:
row: 49 row: 46
column: 0 column: 16
fix: ~ fix: ~
- kind: - kind:
SuperfluousElseReturn: Else SuperfluousElseReturn: Else
@ -35,8 +35,8 @@ expression: checks
row: 50 row: 50
column: 4 column: 4
end_location: end_location:
row: 58 row: 55
column: 0 column: 16
fix: ~ fix: ~
- kind: - kind:
SuperfluousElseReturn: Else SuperfluousElseReturn: Else
@ -44,8 +44,8 @@ expression: checks
row: 61 row: 61
column: 8 column: 8
end_location: end_location:
row: 67 row: 66
column: 4 column: 20
fix: ~ fix: ~
- kind: - kind:
SuperfluousElseReturn: Else SuperfluousElseReturn: Else
@ -53,8 +53,8 @@ expression: checks
row: 73 row: 73
column: 4 column: 4
end_location: end_location:
row: 81 row: 80
column: 4 column: 13
fix: ~ fix: ~
- kind: - kind:
SuperfluousElseReturn: Else SuperfluousElseReturn: Else
@ -62,8 +62,8 @@ expression: checks
row: 86 row: 86
column: 8 column: 8
end_location: end_location:
row: 91 row: 90
column: 4 column: 17
fix: ~ fix: ~
- kind: - kind:
SuperfluousElseReturn: Else SuperfluousElseReturn: Else
@ -71,7 +71,7 @@ expression: checks
row: 97 row: 97
column: 4 column: 4
end_location: end_location:
row: 109 row: 103
column: 0 column: 23
fix: ~ fix: ~

View file

@ -8,8 +8,8 @@ expression: checks
row: 5 row: 5
column: 4 column: 4
end_location: end_location:
row: 16 row: 13
column: 0 column: 26
fix: ~ fix: ~
- kind: - kind:
SuperfluousElseRaise: Elif SuperfluousElseRaise: Elif
@ -17,8 +17,8 @@ expression: checks
row: 17 row: 17
column: 4 column: 4
end_location: end_location:
row: 27 row: 26
column: 4 column: 13
fix: ~ fix: ~
- kind: - kind:
SuperfluousElseRaise: Else SuperfluousElseRaise: Else
@ -26,8 +26,8 @@ expression: checks
row: 31 row: 31
column: 4 column: 4
end_location: end_location:
row: 39 row: 36
column: 0 column: 26
fix: ~ fix: ~
- kind: - kind:
SuperfluousElseRaise: Else SuperfluousElseRaise: Else
@ -35,8 +35,8 @@ expression: checks
row: 42 row: 42
column: 8 column: 8
end_location: end_location:
row: 48 row: 47
column: 4 column: 30
fix: ~ fix: ~
- kind: - kind:
SuperfluousElseRaise: Else SuperfluousElseRaise: Else
@ -44,8 +44,8 @@ expression: checks
row: 54 row: 54
column: 4 column: 4
end_location: end_location:
row: 62 row: 61
column: 4 column: 13
fix: ~ fix: ~
- kind: - kind:
SuperfluousElseRaise: Else SuperfluousElseRaise: Else
@ -53,8 +53,8 @@ expression: checks
row: 67 row: 67
column: 8 column: 8
end_location: end_location:
row: 72 row: 71
column: 4 column: 17
fix: ~ fix: ~
- kind: - kind:
SuperfluousElseRaise: Else SuperfluousElseRaise: Else
@ -62,7 +62,7 @@ expression: checks
row: 78 row: 78
column: 4 column: 4
end_location: end_location:
row: 90 row: 84
column: 0 column: 33
fix: ~ fix: ~

View file

@ -8,8 +8,8 @@ expression: checks
row: 6 row: 6
column: 8 column: 8
end_location: end_location:
row: 14 row: 11
column: 0 column: 17
fix: ~ fix: ~
- kind: - kind:
SuperfluousElseContinue: Elif SuperfluousElseContinue: Elif
@ -17,8 +17,8 @@ expression: checks
row: 16 row: 16
column: 8 column: 8
end_location: end_location:
row: 26 row: 25
column: 8 column: 17
fix: ~ fix: ~
- kind: - kind:
SuperfluousElseContinue: Else SuperfluousElseContinue: Else
@ -26,8 +26,8 @@ expression: checks
row: 34 row: 34
column: 8 column: 8
end_location: end_location:
row: 40 row: 37
column: 0 column: 17
fix: ~ fix: ~
- kind: - kind:
SuperfluousElseContinue: Else SuperfluousElseContinue: Else
@ -35,8 +35,8 @@ expression: checks
row: 44 row: 44
column: 12 column: 12
end_location: end_location:
row: 50 row: 49
column: 8 column: 24
fix: ~ fix: ~
- kind: - kind:
SuperfluousElseContinue: Else SuperfluousElseContinue: Else
@ -44,8 +44,8 @@ expression: checks
row: 57 row: 57
column: 8 column: 8
end_location: end_location:
row: 65 row: 64
column: 8 column: 17
fix: ~ fix: ~
- kind: - kind:
SuperfluousElseContinue: Else SuperfluousElseContinue: Else
@ -53,8 +53,8 @@ expression: checks
row: 71 row: 71
column: 12 column: 12
end_location: end_location:
row: 76 row: 75
column: 8 column: 21
fix: ~ fix: ~
- kind: - kind:
SuperfluousElseContinue: Else SuperfluousElseContinue: Else
@ -62,7 +62,7 @@ expression: checks
row: 83 row: 83
column: 8 column: 8
end_location: end_location:
row: 92 row: 89
column: 0 column: 24
fix: ~ fix: ~

View file

@ -8,8 +8,8 @@ expression: checks
row: 6 row: 6
column: 8 column: 8
end_location: end_location:
row: 14 row: 11
column: 0 column: 17
fix: ~ fix: ~
- kind: - kind:
SuperfluousElseBreak: Elif SuperfluousElseBreak: Elif
@ -17,8 +17,8 @@ expression: checks
row: 16 row: 16
column: 8 column: 8
end_location: end_location:
row: 26 row: 25
column: 8 column: 17
fix: ~ fix: ~
- kind: - kind:
SuperfluousElseBreak: Else SuperfluousElseBreak: Else
@ -26,8 +26,8 @@ expression: checks
row: 31 row: 31
column: 8 column: 8
end_location: end_location:
row: 37 row: 34
column: 0 column: 17
fix: ~ fix: ~
- kind: - kind:
SuperfluousElseBreak: Else SuperfluousElseBreak: Else
@ -35,8 +35,8 @@ expression: checks
row: 41 row: 41
column: 12 column: 12
end_location: end_location:
row: 47 row: 46
column: 8 column: 21
fix: ~ fix: ~
- kind: - kind:
SuperfluousElseBreak: Else SuperfluousElseBreak: Else
@ -44,8 +44,8 @@ expression: checks
row: 54 row: 54
column: 8 column: 8
end_location: end_location:
row: 62 row: 61
column: 8 column: 17
fix: ~ fix: ~
- kind: - kind:
SuperfluousElseBreak: Else SuperfluousElseBreak: Else
@ -53,8 +53,8 @@ expression: checks
row: 68 row: 68
column: 12 column: 12
end_location: end_location:
row: 73 row: 72
column: 8 column: 21
fix: ~ fix: ~
- kind: - kind:
SuperfluousElseBreak: Else SuperfluousElseBreak: Else
@ -62,7 +62,7 @@ expression: checks
row: 80 row: 80
column: 8 column: 8
end_location: end_location:
row: 92 row: 86
column: 0 column: 21
fix: ~ fix: ~

View file

@ -10,8 +10,8 @@ expression: checks
row: 2 row: 2
column: 0 column: 0
end_location: end_location:
row: 7 row: 3
column: 0 column: 8
fix: ~ fix: ~
- kind: - kind:
FunctionIsTooComplex: FunctionIsTooComplex:
@ -21,8 +21,8 @@ expression: checks
row: 7 row: 7
column: 0 column: 0
end_location: end_location:
row: 12 row: 8
column: 0 column: 10
fix: ~ fix: ~
- kind: - kind:
FunctionIsTooComplex: FunctionIsTooComplex:
@ -32,8 +32,8 @@ expression: checks
row: 12 row: 12
column: 0 column: 0
end_location: end_location:
row: 19 row: 15
column: 0 column: 12
fix: ~ fix: ~
- kind: - kind:
FunctionIsTooComplex: FunctionIsTooComplex:
@ -43,8 +43,8 @@ expression: checks
row: 19 row: 19
column: 0 column: 0
end_location: end_location:
row: 29 row: 25
column: 0 column: 47
fix: ~ fix: ~
- kind: - kind:
FunctionIsTooComplex: FunctionIsTooComplex:
@ -54,8 +54,8 @@ expression: checks
row: 29 row: 29
column: 0 column: 0
end_location: end_location:
row: 40 row: 36
column: 0 column: 47
fix: ~ fix: ~
- kind: - kind:
FunctionIsTooComplex: FunctionIsTooComplex:
@ -65,8 +65,8 @@ expression: checks
row: 40 row: 40
column: 0 column: 0
end_location: end_location:
row: 46 row: 42
column: 0 column: 16
fix: ~ fix: ~
- kind: - kind:
FunctionIsTooComplex: FunctionIsTooComplex:
@ -76,8 +76,8 @@ expression: checks
row: 46 row: 46
column: 0 column: 0
end_location: end_location:
row: 54 row: 50
column: 0 column: 19
fix: ~ fix: ~
- kind: - kind:
FunctionIsTooComplex: FunctionIsTooComplex:
@ -87,8 +87,8 @@ expression: checks
row: 54 row: 54
column: 0 column: 0
end_location: end_location:
row: 62 row: 58
column: 0 column: 16
fix: ~ fix: ~
- kind: - kind:
FunctionIsTooComplex: FunctionIsTooComplex:
@ -98,8 +98,8 @@ expression: checks
row: 62 row: 62
column: 0 column: 0
end_location: end_location:
row: 73 row: 69
column: 0 column: 7
fix: ~ fix: ~
- kind: - kind:
FunctionIsTooComplex: FunctionIsTooComplex:
@ -109,8 +109,8 @@ expression: checks
row: 63 row: 63
column: 4 column: 4
end_location: end_location:
row: 69 row: 67
column: 4 column: 11
fix: ~ fix: ~
- kind: - kind:
FunctionIsTooComplex: FunctionIsTooComplex:
@ -120,8 +120,8 @@ expression: checks
row: 64 row: 64
column: 8 column: 8
end_location: end_location:
row: 67 row: 65
column: 8 column: 16
fix: ~ fix: ~
- kind: - kind:
FunctionIsTooComplex: FunctionIsTooComplex:
@ -131,8 +131,8 @@ expression: checks
row: 73 row: 73
column: 0 column: 0
end_location: end_location:
row: 85 row: 81
column: 0 column: 16
fix: ~ fix: ~
- kind: - kind:
FunctionIsTooComplex: FunctionIsTooComplex:
@ -142,8 +142,8 @@ expression: checks
row: 85 row: 85
column: 0 column: 0
end_location: end_location:
row: 96 row: 92
column: 0 column: 16
fix: ~ fix: ~
- kind: - kind:
FunctionIsTooComplex: FunctionIsTooComplex:
@ -153,8 +153,8 @@ expression: checks
row: 96 row: 96
column: 0 column: 0
end_location: end_location:
row: 107 row: 103
column: 0 column: 12
fix: ~ fix: ~
- kind: - kind:
FunctionIsTooComplex: FunctionIsTooComplex:
@ -164,8 +164,8 @@ expression: checks
row: 107 row: 107
column: 0 column: 0
end_location: end_location:
row: 112 row: 108
column: 0 column: 17
fix: ~ fix: ~
- kind: - kind:
FunctionIsTooComplex: FunctionIsTooComplex:
@ -175,8 +175,8 @@ expression: checks
row: 113 row: 113
column: 4 column: 4
end_location: end_location:
row: 139 row: 138
column: 0 column: 40
fix: ~ fix: ~
- kind: - kind:
FunctionIsTooComplex: FunctionIsTooComplex:
@ -186,8 +186,8 @@ expression: checks
row: 118 row: 118
column: 12 column: 12
end_location: end_location:
row: 121 row: 119
column: 12 column: 20
fix: ~ fix: ~
- kind: - kind:
FunctionIsTooComplex: FunctionIsTooComplex:
@ -197,8 +197,8 @@ expression: checks
row: 121 row: 121
column: 12 column: 12
end_location: end_location:
row: 125 row: 123
column: 8 column: 24
fix: ~ fix: ~
- kind: - kind:
FunctionIsTooComplex: FunctionIsTooComplex:
@ -208,8 +208,8 @@ expression: checks
row: 126 row: 126
column: 12 column: 12
end_location: end_location:
row: 129 row: 127
column: 12 column: 20
fix: ~ fix: ~
- kind: - kind:
FunctionIsTooComplex: FunctionIsTooComplex:
@ -219,8 +219,8 @@ expression: checks
row: 129 row: 129
column: 12 column: 12
end_location: end_location:
row: 132 row: 130
column: 12 column: 20
fix: ~ fix: ~
- kind: - kind:
FunctionIsTooComplex: FunctionIsTooComplex:
@ -230,8 +230,8 @@ expression: checks
row: 132 row: 132
column: 12 column: 12
end_location: end_location:
row: 135 row: 133
column: 12 column: 20
fix: ~ fix: ~
- kind: - kind:
FunctionIsTooComplex: FunctionIsTooComplex:
@ -241,7 +241,7 @@ expression: checks
row: 135 row: 135
column: 12 column: 12
end_location: end_location:
row: 138 row: 136
column: 8 column: 20
fix: ~ fix: ~

View file

@ -10,8 +10,8 @@ expression: checks
row: 73 row: 73
column: 0 column: 0
end_location: end_location:
row: 85 row: 81
column: 0 column: 16
fix: ~ fix: ~
- kind: - kind:
FunctionIsTooComplex: FunctionIsTooComplex:
@ -21,7 +21,7 @@ expression: checks
row: 113 row: 113
column: 4 column: 4
end_location: end_location:
row: 139 row: 138
column: 0 column: 40
fix: ~ fix: ~

View file

@ -8,8 +8,8 @@ expression: checks
row: 1 row: 1
column: 0 column: 0
end_location: end_location:
row: 5 row: 2
column: 0 column: 8
fix: ~ fix: ~
- kind: - kind:
InvalidClassName: _bad InvalidClassName: _bad
@ -17,8 +17,8 @@ expression: checks
row: 5 row: 5
column: 0 column: 0
end_location: end_location:
row: 9 row: 6
column: 0 column: 8
fix: ~ fix: ~
- kind: - kind:
InvalidClassName: bad_class InvalidClassName: bad_class
@ -26,8 +26,8 @@ expression: checks
row: 9 row: 9
column: 0 column: 0
end_location: end_location:
row: 13 row: 10
column: 0 column: 8
fix: ~ fix: ~
- kind: - kind:
InvalidClassName: Bad_Class InvalidClassName: Bad_Class
@ -35,8 +35,8 @@ expression: checks
row: 13 row: 13
column: 0 column: 0
end_location: end_location:
row: 17 row: 14
column: 0 column: 8
fix: ~ fix: ~
- kind: - kind:
InvalidClassName: BAD_CLASS InvalidClassName: BAD_CLASS
@ -44,7 +44,7 @@ expression: checks
row: 17 row: 17
column: 0 column: 0
end_location: end_location:
row: 21 row: 18
column: 0 column: 8
fix: ~ fix: ~

View file

@ -8,8 +8,8 @@ expression: checks
row: 4 row: 4
column: 0 column: 0
end_location: end_location:
row: 8 row: 5
column: 0 column: 8
fix: ~ fix: ~
- kind: - kind:
InvalidFunctionName: _Bad InvalidFunctionName: _Bad
@ -17,8 +17,8 @@ expression: checks
row: 8 row: 8
column: 0 column: 0
end_location: end_location:
row: 12 row: 9
column: 0 column: 8
fix: ~ fix: ~
- kind: - kind:
InvalidFunctionName: BAD InvalidFunctionName: BAD
@ -26,8 +26,8 @@ expression: checks
row: 12 row: 12
column: 0 column: 0
end_location: end_location:
row: 16 row: 13
column: 0 column: 8
fix: ~ fix: ~
- kind: - kind:
InvalidFunctionName: BAD_FUNC InvalidFunctionName: BAD_FUNC
@ -35,8 +35,8 @@ expression: checks
row: 16 row: 16
column: 0 column: 0
end_location: end_location:
row: 20 row: 17
column: 0 column: 8
fix: ~ fix: ~
- kind: - kind:
InvalidFunctionName: testTest InvalidFunctionName: testTest
@ -44,7 +44,7 @@ expression: checks
row: 40 row: 40
column: 4 column: 4
end_location: end_location:
row: 42 row: 41
column: 0 column: 19
fix: ~ fix: ~

View file

@ -7,15 +7,15 @@ expression: checks
row: 1 row: 1
column: 0 column: 0
end_location: end_location:
row: 5 row: 2
column: 0 column: 8
fix: ~ fix: ~
- kind: DunderFunctionName - kind: DunderFunctionName
location: location:
row: 14 row: 14
column: 4 column: 4
end_location: end_location:
row: 17 row: 15
column: 4 column: 12
fix: ~ fix: ~

View file

@ -8,8 +8,8 @@ expression: checks
row: 9 row: 9
column: 0 column: 0
end_location: end_location:
row: 13 row: 10
column: 0 column: 8
fix: ~ fix: ~
- kind: - kind:
ErrorSuffixOnExceptionName: E ErrorSuffixOnExceptionName: E
@ -17,7 +17,7 @@ expression: checks
row: 17 row: 17
column: 0 column: 0
end_location: end_location:
row: 19 row: 18
column: 0 column: 8
fix: ~ fix: ~

View file

@ -7,23 +7,23 @@ expression: checks
row: 4 row: 4
column: 0 column: 0
end_location: end_location:
row: 7 row: 5
column: 0 column: 8
fix: ~ fix: ~
- kind: DoNotUseBareExcept - kind: DoNotUseBareExcept
location: location:
row: 11 row: 11
column: 0 column: 0
end_location: end_location:
row: 14 row: 12
column: 0 column: 8
fix: ~ fix: ~
- kind: DoNotUseBareExcept - kind: DoNotUseBareExcept
location: location:
row: 16 row: 16
column: 0 column: 0
end_location: end_location:
row: 19 row: 17
column: 0 column: 8
fix: ~ fix: ~

View file

@ -215,8 +215,8 @@ expression: checks
row: 71 row: 71
column: 0 column: 0
end_location: end_location:
row: 74 row: 72
column: 0 column: 8
fix: ~ fix: ~
- kind: - kind:
AmbiguousVariableName: l AmbiguousVariableName: l

View file

@ -8,8 +8,8 @@ expression: checks
row: 1 row: 1
column: 0 column: 0
end_location: end_location:
row: 5 row: 2
column: 0 column: 8
fix: ~ fix: ~
- kind: - kind:
AmbiguousClassName: I AmbiguousClassName: I
@ -17,8 +17,8 @@ expression: checks
row: 5 row: 5
column: 0 column: 0
end_location: end_location:
row: 9 row: 6
column: 0 column: 8
fix: ~ fix: ~
- kind: - kind:
AmbiguousClassName: O AmbiguousClassName: O
@ -26,7 +26,7 @@ expression: checks
row: 9 row: 9
column: 0 column: 0
end_location: end_location:
row: 13 row: 10
column: 0 column: 8
fix: ~ fix: ~

View file

@ -8,8 +8,8 @@ expression: checks
row: 1 row: 1
column: 0 column: 0
end_location: end_location:
row: 5 row: 2
column: 0 column: 8
fix: ~ fix: ~
- kind: - kind:
AmbiguousFunctionName: I AmbiguousFunctionName: I
@ -17,8 +17,8 @@ expression: checks
row: 5 row: 5
column: 0 column: 0
end_location: end_location:
row: 9 row: 6
column: 0 column: 8
fix: ~ fix: ~
- kind: - kind:
AmbiguousFunctionName: O AmbiguousFunctionName: O
@ -26,7 +26,7 @@ expression: checks
row: 10 row: 10
column: 4 column: 4
end_location: end_location:
row: 14 row: 11
column: 0 column: 12
fix: ~ fix: ~

View file

@ -7,7 +7,7 @@ expression: checks
row: 15 row: 15
column: 0 column: 0
end_location: end_location:
row: 72 row: 69
column: 0 column: 12
fix: ~ fix: ~

View file

@ -7,23 +7,23 @@ expression: checks
row: 23 row: 23
column: 4 column: 4
end_location: end_location:
row: 26 row: 24
column: 4 column: 12
fix: ~ fix: ~
- kind: PublicMethod - kind: PublicMethod
location: location:
row: 56 row: 56
column: 4 column: 4
end_location: end_location:
row: 59 row: 57
column: 4 column: 12
fix: ~ fix: ~
- kind: PublicMethod - kind: PublicMethod
location: location:
row: 68 row: 68
column: 4 column: 4
end_location: end_location:
row: 72 row: 69
column: 0 column: 12
fix: ~ fix: ~

View file

@ -7,7 +7,7 @@ expression: checks
row: 400 row: 400
column: 0 column: 0
end_location: end_location:
row: 401 row: 400
column: 0 column: 27
fix: ~ fix: ~

View file

@ -7,7 +7,7 @@ expression: checks
row: 64 row: 64
column: 4 column: 4
end_location: end_location:
row: 67 row: 65
column: 4 column: 12
fix: ~ fix: ~

View file

@ -7,15 +7,15 @@ expression: checks
row: 60 row: 60
column: 4 column: 4
end_location: end_location:
row: 63 row: 61
column: 4 column: 12
fix: ~ fix: ~
- kind: PublicInit - kind: PublicInit
location: location:
row: 534 row: 534
column: 4 column: 4
end_location: end_location:
row: 538 row: 535
column: 0 column: 12
fix: ~ fix: ~

View file

@ -9,8 +9,8 @@ expression: checks
row: 283 row: 283
column: 4 column: 4
end_location: end_location:
row: 296 row: 293
column: 0 column: 16
fix: ~ fix: ~
- kind: - kind:
DocumentAllArguments: DocumentAllArguments:
@ -19,8 +19,8 @@ expression: checks
row: 300 row: 300
column: 0 column: 0
end_location: end_location:
row: 309 row: 306
column: 0 column: 7
fix: ~ fix: ~
- kind: - kind:
DocumentAllArguments: DocumentAllArguments:
@ -31,8 +31,8 @@ expression: checks
row: 324 row: 324
column: 4 column: 4
end_location: end_location:
row: 332 row: 330
column: 4 column: 11
fix: ~ fix: ~
- kind: - kind:
DocumentAllArguments: DocumentAllArguments:
@ -43,8 +43,8 @@ expression: checks
row: 336 row: 336
column: 4 column: 4
end_location: end_location:
row: 345 row: 343
column: 4 column: 11
fix: ~ fix: ~
- kind: - kind:
DocumentAllArguments: DocumentAllArguments:
@ -55,8 +55,8 @@ expression: checks
row: 349 row: 349
column: 4 column: 4
end_location: end_location:
row: 357 row: 355
column: 4 column: 11
fix: ~ fix: ~
- kind: - kind:
DocumentAllArguments: DocumentAllArguments:
@ -66,8 +66,8 @@ expression: checks
row: 361 row: 361
column: 4 column: 4
end_location: end_location:
row: 369 row: 367
column: 4 column: 11
fix: ~ fix: ~
- kind: - kind:
DocumentAllArguments: DocumentAllArguments:
@ -76,8 +76,8 @@ expression: checks
row: 389 row: 389
column: 0 column: 0
end_location: end_location:
row: 401 row: 398
column: 0 column: 7
fix: ~ fix: ~
- kind: - kind:
DocumentAllArguments: DocumentAllArguments:
@ -88,8 +88,8 @@ expression: checks
row: 425 row: 425
column: 4 column: 4
end_location: end_location:
row: 436 row: 434
column: 4 column: 11
fix: ~ fix: ~
- kind: - kind:
DocumentAllArguments: DocumentAllArguments:
@ -100,8 +100,8 @@ expression: checks
row: 440 row: 440
column: 4 column: 4
end_location: end_location:
row: 455 row: 453
column: 4 column: 11
fix: ~ fix: ~
- kind: - kind:
DocumentAllArguments: DocumentAllArguments:
@ -111,8 +111,8 @@ expression: checks
row: 459 row: 459
column: 4 column: 4
end_location: end_location:
row: 471 row: 469
column: 4 column: 11
fix: ~ fix: ~
- kind: - kind:
DocumentAllArguments: DocumentAllArguments:
@ -121,7 +121,7 @@ expression: checks
row: 489 row: 489
column: 4 column: 4
end_location: end_location:
row: 498 row: 497
column: 0 column: 11
fix: ~ fix: ~

View file

@ -7,23 +7,23 @@ expression: checks
row: 34 row: 34
column: 4 column: 4
end_location: end_location:
row: 38 row: 36
column: 4 column: 11
fix: ~ fix: ~
- kind: SkipDocstring - kind: SkipDocstring
location: location:
row: 90 row: 90
column: 4 column: 4
end_location: end_location:
row: 94 row: 92
column: 4 column: 11
fix: ~ fix: ~
- kind: SkipDocstring - kind: SkipDocstring
location: location:
row: 110 row: 110
column: 0 column: 0
end_location: end_location:
row: 115 row: 112
column: 0 column: 7
fix: ~ fix: ~

View file

@ -7,15 +7,15 @@ expression: checks
row: 1 row: 1
column: 0 column: 0
end_location: end_location:
row: 4 row: 2
column: 0 column: 8
fix: ~ fix: ~
- kind: IfTuple - kind: IfTuple
location: location:
row: 7 row: 7
column: 4 column: 4
end_location: end_location:
row: 9 row: 8
column: 4 column: 12
fix: ~ fix: ~

View file

@ -7,23 +7,23 @@ expression: checks
row: 3 row: 3
column: 0 column: 0
end_location: end_location:
row: 5 row: 4
column: 0 column: 8
fix: ~ fix: ~
- kind: DefaultExceptNotLast - kind: DefaultExceptNotLast
location: location:
row: 10 row: 10
column: 0 column: 0
end_location: end_location:
row: 12 row: 11
column: 0 column: 8
fix: ~ fix: ~
- kind: DefaultExceptNotLast - kind: DefaultExceptNotLast
location: location:
row: 19 row: 19
column: 0 column: 0
end_location: end_location:
row: 21 row: 20
column: 0 column: 8
fix: ~ fix: ~

View file

@ -10,7 +10,7 @@ expression: checks
row: 10 row: 10
column: 0 column: 0
end_location: end_location:
row: 12 row: 11
column: 0 column: 8
fix: ~ fix: ~

View file

@ -10,7 +10,7 @@ expression: checks
row: 4 row: 4
column: 0 column: 0
end_location: end_location:
row: 6 row: 5
column: 0 column: 8
fix: ~ fix: ~

View file

@ -10,7 +10,7 @@ expression: checks
row: 8 row: 8
column: 8 column: 8
end_location: end_location:
row: 10 row: 9
column: 0 column: 16
fix: ~ fix: ~

View file

@ -21,7 +21,7 @@ expression: checks
row: 9 row: 9
column: 8 column: 8
end_location: end_location:
row: 11 row: 10
column: 0 column: 16
fix: ~ fix: ~

View file

@ -8,8 +8,8 @@ expression: checks
row: 3 row: 3
column: 0 column: 0
end_location: end_location:
row: 7 row: 4
column: 0 column: 8
fix: ~ fix: ~
- kind: - kind:
UnusedVariable: z UnusedVariable: z
@ -66,12 +66,21 @@ expression: checks
column: 9 column: 9
fix: ~ fix: ~
- kind: - kind:
UnusedVariable: f UnusedVariable: my_file
location: location:
row: 71 row: 79
column: 25 column: 25
end_location: end_location:
row: 71 row: 79
column: 26 column: 32
fix: ~
- kind:
UnusedVariable: my_file
location:
row: 85
column: 24
end_location:
row: 85
column: 31
fix: ~ fix: ~

View file

@ -8,8 +8,8 @@ expression: checks
row: 3 row: 3
column: 0 column: 0
end_location: end_location:
row: 7 row: 4
column: 0 column: 8
fix: ~ fix: ~
- kind: - kind:
UnusedVariable: foo UnusedVariable: foo
@ -84,12 +84,21 @@ expression: checks
column: 9 column: 9
fix: ~ fix: ~
- kind: - kind:
UnusedVariable: f UnusedVariable: my_file
location: location:
row: 71 row: 79
column: 25 column: 25
end_location: end_location:
row: 71 row: 79
column: 26 column: 32
fix: ~
- kind:
UnusedVariable: my_file
location:
row: 85
column: 24
end_location:
row: 85
column: 31
fix: ~ fix: ~

View file

@ -7,23 +7,23 @@ expression: checks
row: 7 row: 7
column: 4 column: 4
end_location: end_location:
row: 10 row: 8
column: 4 column: 29
fix: ~ fix: ~
- kind: PropertyWithParameters - kind: PropertyWithParameters
location: location:
row: 11 row: 11
column: 4 column: 4
end_location: end_location:
row: 14 row: 12
column: 4 column: 29
fix: ~ fix: ~
- kind: PropertyWithParameters - kind: PropertyWithParameters
location: location:
row: 15 row: 15
column: 4 column: 4
end_location: end_location:
row: 19 row: 16
column: 0 column: 29
fix: ~ fix: ~

View file

@ -7,55 +7,55 @@ expression: checks
row: 6 row: 6
column: 4 column: 4
end_location: end_location:
row: 11 row: 10
column: 4 column: 31
fix: ~ fix: ~
- kind: UselessElseOnLoop - kind: UselessElseOnLoop
location: location:
row: 16 row: 16
column: 4 column: 4
end_location: end_location:
row: 20 row: 19
column: 4 column: 31
fix: ~ fix: ~
- kind: UselessElseOnLoop - kind: UselessElseOnLoop
location: location:
row: 23 row: 23
column: 0 column: 0
end_location: end_location:
row: 34 row: 31
column: 0 column: 21
fix: ~ fix: ~
- kind: UselessElseOnLoop - kind: UselessElseOnLoop
location: location:
row: 34 row: 34
column: 0 column: 0
end_location: end_location:
row: 40 row: 38
column: 0 column: 21
fix: ~ fix: ~
- kind: UselessElseOnLoop - kind: UselessElseOnLoop
location: location:
row: 40 row: 40
column: 0 column: 0
end_location: end_location:
row: 48 row: 45
column: 0 column: 13
fix: ~ fix: ~
- kind: UselessElseOnLoop - kind: UselessElseOnLoop
location: location:
row: 81 row: 81
column: 4 column: 4
end_location: end_location:
row: 90 row: 89
column: 4 column: 19
fix: ~ fix: ~
- kind: UselessElseOnLoop - kind: UselessElseOnLoop
location: location:
row: 96 row: 96
column: 8 column: 8
end_location: end_location:
row: 101 row: 100
column: 4 column: 21
fix: ~ fix: ~