Check-in updated snapshot for SIM111 (#2836)
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
---
|
||||
source: src/rules/flake8_simplify/mod.rs
|
||||
source: crates/ruff/src/rules/flake8_simplify/mod.rs
|
||||
expression: diagnostics
|
||||
---
|
||||
- kind:
|
||||
@@ -108,4 +108,42 @@ expression: diagnostics
|
||||
row: 157
|
||||
column: 15
|
||||
parent: ~
|
||||
- kind:
|
||||
ConvertLoopToAll:
|
||||
all: return all(x in y for x in iterable)
|
||||
location:
|
||||
row: 162
|
||||
column: 4
|
||||
end_location:
|
||||
row: 164
|
||||
column: 24
|
||||
fix:
|
||||
content:
|
||||
- return all(x in y for x in iterable)
|
||||
location:
|
||||
row: 162
|
||||
column: 4
|
||||
end_location:
|
||||
row: 165
|
||||
column: 15
|
||||
parent: ~
|
||||
- kind:
|
||||
ConvertLoopToAll:
|
||||
all: return all(x <= y for x in iterable)
|
||||
location:
|
||||
row: 170
|
||||
column: 4
|
||||
end_location:
|
||||
row: 172
|
||||
column: 24
|
||||
fix:
|
||||
content:
|
||||
- return all(x <= y for x in iterable)
|
||||
location:
|
||||
row: 170
|
||||
column: 4
|
||||
end_location:
|
||||
row: 173
|
||||
column: 15
|
||||
parent: ~
|
||||
|
||||
|
||||
@@ -1,150 +0,0 @@
|
||||
---
|
||||
source: crates/ruff/src/rules/flake8_simplify/mod.rs
|
||||
assertion_line: 47
|
||||
expression: diagnostics
|
||||
---
|
||||
- kind:
|
||||
ConvertLoopToAll:
|
||||
all: return all(not check(x) for x in iterable)
|
||||
location:
|
||||
row: 25
|
||||
column: 4
|
||||
end_location:
|
||||
row: 27
|
||||
column: 24
|
||||
fix:
|
||||
content:
|
||||
- return all(not check(x) for x in iterable)
|
||||
location:
|
||||
row: 25
|
||||
column: 4
|
||||
end_location:
|
||||
row: 28
|
||||
column: 15
|
||||
parent: ~
|
||||
- kind:
|
||||
ConvertLoopToAll:
|
||||
all: return all(x.is_empty() for x in iterable)
|
||||
location:
|
||||
row: 33
|
||||
column: 4
|
||||
end_location:
|
||||
row: 35
|
||||
column: 24
|
||||
fix:
|
||||
content:
|
||||
- return all(x.is_empty() for x in iterable)
|
||||
location:
|
||||
row: 33
|
||||
column: 4
|
||||
end_location:
|
||||
row: 36
|
||||
column: 15
|
||||
parent: ~
|
||||
- kind:
|
||||
ConvertLoopToAll:
|
||||
all: return all(not check(x) for x in iterable)
|
||||
location:
|
||||
row: 64
|
||||
column: 4
|
||||
end_location:
|
||||
row: 68
|
||||
column: 19
|
||||
fix:
|
||||
content:
|
||||
- return all(not check(x) for x in iterable)
|
||||
location:
|
||||
row: 64
|
||||
column: 4
|
||||
end_location:
|
||||
row: 68
|
||||
column: 19
|
||||
parent: ~
|
||||
- kind:
|
||||
ConvertLoopToAll:
|
||||
all: return all(not check(x) for x in iterable)
|
||||
location:
|
||||
row: 83
|
||||
column: 4
|
||||
end_location:
|
||||
row: 87
|
||||
column: 19
|
||||
fix:
|
||||
content:
|
||||
- return all(not check(x) for x in iterable)
|
||||
location:
|
||||
row: 83
|
||||
column: 4
|
||||
end_location:
|
||||
row: 87
|
||||
column: 19
|
||||
parent: ~
|
||||
- kind:
|
||||
ConvertLoopToAll:
|
||||
all: return all(not check(x) for x in iterable)
|
||||
location:
|
||||
row: 134
|
||||
column: 4
|
||||
end_location:
|
||||
row: 136
|
||||
column: 24
|
||||
fix: ~
|
||||
parent: ~
|
||||
- kind:
|
||||
ConvertLoopToAll:
|
||||
all: return all(not check(x) for x in iterable)
|
||||
location:
|
||||
row: 154
|
||||
column: 4
|
||||
end_location:
|
||||
row: 156
|
||||
column: 24
|
||||
fix:
|
||||
content:
|
||||
- return all(not check(x) for x in iterable)
|
||||
location:
|
||||
row: 154
|
||||
column: 4
|
||||
end_location:
|
||||
row: 157
|
||||
column: 15
|
||||
parent: ~
|
||||
- kind:
|
||||
ConvertLoopToAll:
|
||||
all: return all(x in y for x in iterable)
|
||||
location:
|
||||
row: 162
|
||||
column: 4
|
||||
end_location:
|
||||
row: 164
|
||||
column: 24
|
||||
fix:
|
||||
content:
|
||||
- return all(x in y for x in iterable)
|
||||
location:
|
||||
row: 162
|
||||
column: 4
|
||||
end_location:
|
||||
row: 165
|
||||
column: 15
|
||||
parent: ~
|
||||
- kind:
|
||||
ConvertLoopToAll:
|
||||
all: return all(x <= y for x in iterable)
|
||||
location:
|
||||
row: 170
|
||||
column: 4
|
||||
end_location:
|
||||
row: 172
|
||||
column: 24
|
||||
fix:
|
||||
content:
|
||||
- return all(x <= y for x in iterable)
|
||||
location:
|
||||
row: 170
|
||||
column: 4
|
||||
end_location:
|
||||
row: 173
|
||||
column: 15
|
||||
parent: ~
|
||||
|
||||
Reference in New Issue
Block a user