-
-
Notifications
You must be signed in to change notification settings - Fork 54
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
17 changed files
with
157 additions
and
121 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,12 @@ | ||
test/data/bug_equivalent_nodes.py:21:5 [FURB110]: Replace `x if x else y` with `x or y` | ||
test/data/bug_equivalent_nodes.py:30:5 [FURB110]: Replace `x if x else y` with `x or y` | ||
test/data/bug_equivalent_nodes.py:42:5 [FURB110]: Replace `x if x else y` with `x or y` | ||
test/data/bug_equivalent_nodes.py:49:5 [FURB110]: Replace `x if x else y` with `x or y` | ||
test/data/bug_equivalent_nodes.py:56:5 [FURB110]: Replace `x if x else y` with `x or y` | ||
test/data/bug_equivalent_nodes.py:63:5 [FURB110]: Replace `x if x else y` with `x or y` | ||
test/data/bug_equivalent_nodes.py:70:5 [FURB110]: Replace `x if x else y` with `x or y` | ||
test/data/bug_equivalent_nodes.py:77:5 [FURB110]: Replace `x if x else y` with `x or y` | ||
test/data/bug_equivalent_nodes.py:84:5 [FURB110]: Replace `x if x else y` with `x or y` | ||
test/data/bug_equivalent_nodes.py:91:5 [FURB110]: Replace `x if x else y` with `x or y` | ||
test/data/bug_equivalent_nodes.py:98:5 [FURB110]: Replace `x if x else y` with `x or y` | ||
test/data/bug_equivalent_nodes.py:105:5 [FURB110]: Replace `x if x else y` with `x or y` | ||
test/data/bug_equivalent_nodes.py:21:5 [FURB110]: Replace `bob.name if bob.name else "alice"` with `bob.name or "alice"` | ||
test/data/bug_equivalent_nodes.py:30:5 [FURB110]: Replace `nums[0] if nums[0] else 123` with `nums[0] or 123` | ||
test/data/bug_equivalent_nodes.py:42:5 [FURB110]: Replace `f(1) if f(1) else 2` with `f(1) or 2` | ||
test/data/bug_equivalent_nodes.py:49:5 [FURB110]: Replace `[1, 2, 3] if [1, 2, 3] else []` with `[1, 2, 3] or []` | ||
test/data/bug_equivalent_nodes.py:56:5 [FURB110]: Replace `[x, 4, 5, 6] if [x, 4, 5, 6] else []` with `[x, 4, 5, 6] or []` | ||
test/data/bug_equivalent_nodes.py:63:5 [FURB110]: Replace `not False if not False else False` with `not False or False` | ||
test/data/bug_equivalent_nodes.py:70:5 [FURB110]: Replace `1 + 2 if 1 + 2 else 3` with `1 + 2 or 3` | ||
test/data/bug_equivalent_nodes.py:77:5 [FURB110]: Replace `1 < 2 if 1 < 2 else 3` with `1 < 2 or 3` | ||
test/data/bug_equivalent_nodes.py:84:5 [FURB110]: Replace `nums[1:] if nums[1:] else nums` with `nums[1:] or nums` | ||
test/data/bug_equivalent_nodes.py:91:5 [FURB110]: Replace `{"k": "v"} if {"k": "v"} else {}` with `{"k": "v"} or {}` | ||
test/data/bug_equivalent_nodes.py:98:5 [FURB110]: Replace `(1, 2, 3) if (1, 2, 3) else ()` with `(1, 2, 3) or ()` | ||
test/data/bug_equivalent_nodes.py:105:5 [FURB110]: Replace `{1, 2, 3} if {1, 2, 3} else set()` with `{1, 2, 3} or set()` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
test/data/err_110.py:10:5 [FURB110]: Replace `x if x else y` with `x or y` | ||
test/data/err_110.py:11:5 [FURB110]: Replace `x if x else y` with `x or y` | ||
test/data/err_110.py:11:5 [FURB110]: Replace `True if True else y` with `True or y` | ||
test/data/err_110.py:13:5 [FURB110]: Replace `x if x else y` with `x or y` | ||
test/data/err_110.py:18:5 [FURB110]: Replace `x if x else y` with `x or y` | ||
test/data/err_110.py:18:5 [FURB110]: Replace `f() if f() else y` with `f() or y` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
test/data/err_116.py:3:5 [FURB116]: Replace `bin(num)[2:]` with `f"{num:b}"` | ||
test/data/err_116.py:4:5 [FURB116]: Replace `oct(num)[2:]` with `f"{num:o}"` | ||
test/data/err_116.py:5:5 [FURB116]: Replace `hex(num)[2:]` with `f"{num:x}"` | ||
test/data/err_116.py:3:5 [FURB116]: Replace `bin(1234)[2:]` with `f"{1234:b}"` | ||
test/data/err_116.py:4:5 [FURB116]: Replace `oct(1234)[2:]` with `f"{1234:o}"` | ||
test/data/err_116.py:5:5 [FURB116]: Replace `hex(1234)[2:]` with `f"{1234:x}"` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
test/data/err_119.py:3:1 [FURB119]: Replace `{str(x)}` with `{x}` | ||
test/data/err_119.py:5:1 [FURB119]: Replace `{repr(x)}` with `{x!r}` | ||
test/data/err_119.py:7:1 [FURB119]: Replace `{ascii(x)}` with `{x!a}` | ||
test/data/err_119.py:9:1 [FURB119]: Replace `{bin(x)}` with `{x:#b}` | ||
test/data/err_119.py:11:1 [FURB119]: Replace `{oct(x)}` with `{x:#o}` | ||
test/data/err_119.py:13:1 [FURB119]: Replace `{hex(x)}` with `{x:#x}` | ||
test/data/err_119.py:15:1 [FURB119]: Replace `{chr(x)}` with `{x:c}` | ||
test/data/err_119.py:17:1 [FURB119]: Replace `{format(x)}` with `{x}` | ||
test/data/err_119.py:3:1 [FURB119]: Replace `{str("hello world")}` with `{"hello world"}` | ||
test/data/err_119.py:5:1 [FURB119]: Replace `{repr(123)}` with `{123!r}` | ||
test/data/err_119.py:7:1 [FURB119]: Replace `{ascii("hello world")}` with `{"hello world"!a}` | ||
test/data/err_119.py:9:1 [FURB119]: Replace `{bin(12)}` with `{12:#b}` | ||
test/data/err_119.py:11:1 [FURB119]: Replace `{oct(511)}` with `{511:#o}` | ||
test/data/err_119.py:13:1 [FURB119]: Replace `{hex(255)}` with `{255:#x}` | ||
test/data/err_119.py:15:1 [FURB119]: Replace `{chr(65)}` with `{65:c}` | ||
test/data/err_119.py:17:1 [FURB119]: Replace `{format("hello world")}` with `{"hello world"}` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
test/data/err_131.py:6:1 [FURB131]: Replace `del x[:]` with `x.clear()` | ||
test/data/err_131.py:6:1 [FURB131]: Replace `del nums[:]` with `nums.clear()` |
Oops, something went wrong.