Skip to content

Commit

Permalink
Fix incomplete snapshots
Browse files Browse the repository at this point in the history
  • Loading branch information
JonathanPlasse committed Mar 17, 2023
1 parent 33d2457 commit a4daef4
Show file tree
Hide file tree
Showing 27 changed files with 1,435 additions and 50 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,26 @@ expression: diagnostics
row: 17
column: 0
parent: ~
- kind:
name: CompositeAssertion
body: Assertion should be broken down into multiple parts
suggestion: Break down assertion into multiple parts
fixable: true
location:
row: 16
column: 4
end_location:
row: 16
column: 39
fix:
content: " assert something\n assert something_else\n"
location:
row: 16
column: 0
end_location:
row: 17
column: 0
parent: ~
- kind:
name: CompositeAssertion
body: Assertion should be broken down into multiple parts
Expand Down Expand Up @@ -254,4 +274,134 @@ expression: diagnostics
column: 5
fix: ~
parent: ~
- kind:
name: CompositeAssertion
body: Assertion should be broken down into multiple parts
suggestion: Break down assertion into multiple parts
fixable: true
location:
row: 37
column: 4
end_location:
row: 37
column: 20
fix: ~
parent: ~
- kind:
name: CompositeAssertion
body: Assertion should be broken down into multiple parts
suggestion: Break down assertion into multiple parts
fixable: true
location:
row: 38
column: 4
end_location:
row: 38
column: 20
fix: ~
parent: ~
- kind:
name: CompositeAssertion
body: Assertion should be broken down into multiple parts
suggestion: ~
fixable: false
location:
row: 40
column: 4
end_location:
row: 40
column: 56
fix: ~
parent: ~
- kind:
name: CompositeAssertion
body: Assertion should be broken down into multiple parts
suggestion: ~
fixable: false
location:
row: 41
column: 4
end_location:
row: 41
column: 80
fix: ~
parent: ~
- kind:
name: CompositeAssertion
body: Assertion should be broken down into multiple parts
suggestion: ~
fixable: false
location:
row: 41
column: 4
end_location:
row: 41
column: 56
fix: ~
parent: ~
- kind:
name: CompositeAssertion
body: Assertion should be broken down into multiple parts
suggestion: ~
fixable: false
location:
row: 42
column: 4
end_location:
row: 42
column: 80
fix: ~
parent: ~
- kind:
name: CompositeAssertion
body: Assertion should be broken down into multiple parts
suggestion: ~
fixable: false
location:
row: 43
column: 4
end_location:
row: 43
column: 64
fix: ~
parent: ~
- kind:
name: CompositeAssertion
body: Assertion should be broken down into multiple parts
suggestion: ~
fixable: false
location:
row: 44
column: 4
end_location:
row: 44
column: 64
fix: ~
parent: ~
- kind:
name: CompositeAssertion
body: Assertion should be broken down into multiple parts
suggestion: Break down assertion into multiple parts
fixable: true
location:
row: 45
column: 4
end_location:
row: 51
column: 5
fix: ~
parent: ~
- kind:
name: CompositeAssertion
body: Assertion should be broken down into multiple parts
suggestion: Break down assertion into multiple parts
fixable: true
location:
row: 46
column: 4
end_location:
row: 52
column: 5
fix: ~
parent: ~

Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,26 @@ expression: diagnostics
row: 5
column: 0
parent: ~
- kind:
name: CollapsibleIf
body: "Use a single `if` statement instead of nested `if` statements"
suggestion: "Combine `if` statements using `and`"
fixable: true
location:
row: 6
column: 0
end_location:
row: 7
column: 9
fix:
content: "if a and b and c:\n d\n"
location:
row: 6
column: 0
end_location:
row: 9
column: 0
parent: ~
- kind:
name: CollapsibleIf
body: "Use a single `if` statement instead of nested `if` statements"
Expand Down Expand Up @@ -62,6 +82,32 @@ expression: diagnostics
row: 18
column: 0
parent: ~
- kind:
name: CollapsibleIf
body: "Use a single `if` statement instead of nested `if` statements"
suggestion: ~
fixable: false
location:
row: 16
column: 0
end_location:
row: 18
column: 9
fix: ~
parent: ~
- kind:
name: CollapsibleIf
body: "Use a single `if` statement instead of nested `if` statements"
suggestion: ~
fixable: false
location:
row: 17
column: 0
end_location:
row: 19
column: 9
fix: ~
parent: ~
- kind:
name: CollapsibleIf
body: "Use a single `if` statement instead of nested `if` statements"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,19 @@ expression: diagnostics
row: 35
column: 24
parent: ~
- kind:
name: NeedlessBool
body: "Return the condition `a` directly"
suggestion: ~
fixable: false
location:
row: 45
column: 4
end_location:
row: 48
column: 19
fix: ~
parent: ~
- kind:
name: NeedlessBool
body: "Return the condition `a` directly"
Expand All @@ -95,6 +108,19 @@ expression: diagnostics
column: 19
fix: ~
parent: ~
- kind:
name: NeedlessBool
body: "Return the condition `a` directly"
suggestion: ~
fixable: false
location:
row: 71
column: 4
end_location:
row: 74
column: 20
fix: ~
parent: ~
- kind:
name: NeedlessBool
body: "Return the condition `a` directly"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,19 @@ expression: diagnostics
row: 5
column: 9
parent: ~
- kind:
name: UseTernaryOperator
body: "Use ternary operator `abc = x if x > 0 else -x` instead of `if`-`else`-block"
suggestion: ~
fixable: false
location:
row: 55
column: 0
end_location:
row: 60
column: 12
fix: ~
parent: ~
- kind:
name: UseTernaryOperator
body: "Use ternary operator `abc = x if x > 0 else -x` instead of `if`-`else`-block"
Expand Down Expand Up @@ -55,6 +68,19 @@ expression: diagnostics
row: 85
column: 45
parent: ~
- kind:
name: UseTernaryOperator
body: "Use ternary operator `exitcode = 0 if True else 1` instead of `if`-`else`-block"
suggestion: ~
fixable: false
location:
row: 91
column: 0
end_location:
row: 94
column: 16
fix: ~
parent: ~
- kind:
name: UseTernaryOperator
body: "Use ternary operator `exitcode = 0 if True else 1` instead of `if`-`else`-block"
Expand All @@ -68,6 +94,32 @@ expression: diagnostics
column: 16
fix: ~
parent: ~
- kind:
name: UseTernaryOperator
body: "Use ternary operator `x = 3 if True else 5` instead of `if`-`else`-block"
suggestion: ~
fixable: false
location:
row: 98
column: 0
end_location:
row: 99
column: 11
fix: ~
parent: ~
- kind:
name: UseTernaryOperator
body: "Use ternary operator `x = 3 if True else 5` instead of `if`-`else`-block"
suggestion: ~
fixable: false
location:
row: 103
column: 0
end_location:
row: 106
column: 9
fix: ~
parent: ~
- kind:
name: UseTernaryOperator
body: "Use ternary operator `x = 3 if True else 5` instead of `if`-`else`-block"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,32 @@ expression: diagnostics
row: 87
column: 19
parent: ~
- kind:
name: ReimplementedBuiltin
body: "Use `return any(check(x) for x in iterable)` instead of `for` loop"
suggestion: "Replace with `return any(check(x) for x in iterable)`"
fixable: true
location:
row: 99
column: 4
end_location:
row: 101
column: 23
fix: ~
parent: ~
- kind:
name: ReimplementedBuiltin
body: "Use `return all(not check(x) for x in iterable)` instead of `for` loop"
suggestion: "Replace with `return all(not check(x) for x in iterable)`"
fixable: true
location:
row: 109
column: 4
end_location:
row: 111
column: 24
fix: ~
parent: ~
- kind:
name: ReimplementedBuiltin
body: "Use `return any(check(x) for x in iterable)` instead of `for` loop"
Expand Down
Loading

0 comments on commit a4daef4

Please sign in to comment.