-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactor static errors and point all issues to tag
- Loading branch information
1 parent
0704bf2
commit dfee2f0
Showing
8 changed files
with
74 additions
and
158 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
12 changes: 6 additions & 6 deletions
12
...ake8_todo/snapshots/ruff__rules__flake8_todo__tests__missing-author-in-todo_TD002.py.snap
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,31 +1,31 @@ | ||
--- | ||
source: crates/ruff/src/rules/flake8_todo/mod.rs | ||
--- | ||
TD002.py:5:7: TD002 Missing author in TODO. Try: # TODO (<author_name>): ... | ||
TD002.py:5:3: TD002 Missing author in TODO. Try: # TODO (<author_name>): ... | ||
| | ||
5 | # TODO(evanrittenhouse): this also has an author | ||
6 | # T002 - errors | ||
7 | # TODO: this has no author | ||
| ^ TD002 | ||
| ^^^^ TD002 | ||
8 | # FIXME: neither does this | ||
9 | # TODO : and neither does this | ||
| | ||
|
||
TD002.py:6:8: TD002 Missing author in TODO. Try: # TODO (<author_name>): ... | ||
TD002.py:6:3: TD002 Missing author in TODO. Try: # TODO (<author_name>): ... | ||
| | ||
6 | # T002 - errors | ||
7 | # TODO: this has no author | ||
8 | # FIXME: neither does this | ||
| ^ TD002 | ||
| ^^^^^ TD002 | ||
9 | # TODO : and neither does this | ||
| | ||
|
||
TD002.py:7:7: TD002 Missing author in TODO. Try: # TODO (<author_name>): ... | ||
TD002.py:7:3: TD002 Missing author in TODO. Try: # TODO (<author_name>): ... | ||
| | ||
7 | # TODO: this has no author | ||
8 | # FIXME: neither does this | ||
9 | # TODO : and neither does this | ||
| ^ TD002 | ||
| ^^^^ TD002 | ||
| | ||
|
||
|
18 changes: 9 additions & 9 deletions
18
...lake8_todo/snapshots/ruff__rules__flake8_todo__tests__missing-colon-in-todo_TD004.py.snap
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,31 +1,31 @@ | ||
--- | ||
source: crates/ruff/src/rules/flake8_todo/mod.rs | ||
--- | ||
TD004.py:4:7: TD004 Missing colon in TODO. Try: # TODO: ... | ||
TD004.py:4:3: TD004 Missing colon in TODO. Try: # TODO: ... | ||
| | ||
4 | # TODO(evanrittenhouse): this has a colon | ||
5 | # T004 - errors | ||
6 | # TODO this has no colon | ||
| ^ TD004 | ||
7 | # TODO(evanrittenhouse) this has no colon | ||
| ^^^^ TD004 | ||
7 | # TODO(evanrittenhouse 😀) this has no colon | ||
8 | # FIXME add a colon | ||
| | ||
|
||
TD004.py:5:24: TD004 Missing colon in TODO. Try: # TODO: ... | ||
TD004.py:5:3: TD004 Missing colon in TODO. Try: # TODO: ... | ||
| | ||
5 | # T004 - errors | ||
6 | # TODO this has no colon | ||
7 | # TODO(evanrittenhouse) this has no colon | ||
| ^ TD004 | ||
7 | # TODO(evanrittenhouse 😀) this has no colon | ||
| ^^^^ TD004 | ||
8 | # FIXME add a colon | ||
| | ||
|
||
TD004.py:6:8: TD004 Missing colon in TODO. Try: # TODO: ... | ||
TD004.py:6:3: TD004 Missing colon in TODO. Try: # TODO: ... | ||
| | ||
6 | # TODO this has no colon | ||
7 | # TODO(evanrittenhouse) this has no colon | ||
7 | # TODO(evanrittenhouse 😀) this has no colon | ||
8 | # FIXME add a colon | ||
| ^ TD004 | ||
| ^^^^^ TD004 | ||
| | ||
|
||
|
16 changes: 8 additions & 8 deletions
16
...napshots/ruff__rules__flake8_todo__tests__missing-space-after-colon-in-todo_TD007.py.snap
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,41 +1,41 @@ | ||
--- | ||
source: crates/ruff/src/rules/flake8_todo/mod.rs | ||
--- | ||
TD007.py:5:25: TD007 Missing space after colon in TODO | ||
TD007.py:5:3: TD007 Missing space after colon in TODO | ||
| | ||
5 | # TODO: so does this | ||
6 | # T007 - errors | ||
7 | # TODO(evanrittenhouse):this has no space after a colon | ||
| ^ TD007 | ||
| ^^^^ TD007 | ||
8 | # TODO (evanrittenhouse):this doesn't either | ||
9 | # TODO:neither does this | ||
| | ||
|
||
TD007.py:6:26: TD007 Missing space after colon in TODO | ||
TD007.py:6:3: TD007 Missing space after colon in TODO | ||
| | ||
6 | # T007 - errors | ||
7 | # TODO(evanrittenhouse):this has no space after a colon | ||
8 | # TODO (evanrittenhouse):this doesn't either | ||
| ^ TD007 | ||
| ^^^^ TD007 | ||
9 | # TODO:neither does this | ||
10 | # FIXME:and lastly neither does this | ||
| | ||
|
||
TD007.py:7:8: TD007 Missing space after colon in TODO | ||
TD007.py:7:3: TD007 Missing space after colon in TODO | ||
| | ||
7 | # TODO(evanrittenhouse):this has no space after a colon | ||
8 | # TODO (evanrittenhouse):this doesn't either | ||
9 | # TODO:neither does this | ||
| ^ TD007 | ||
| ^^^^ TD007 | ||
10 | # FIXME:and lastly neither does this | ||
| | ||
|
||
TD007.py:8:9: TD007 Missing space after colon in TODO | ||
TD007.py:8:3: TD007 Missing space after colon in TODO | ||
| | ||
8 | # TODO (evanrittenhouse):this doesn't either | ||
9 | # TODO:neither does this | ||
10 | # FIXME:and lastly neither does this | ||
| ^ TD007 | ||
| ^^^^^ TD007 | ||
| | ||
|
||
|
12 changes: 6 additions & 6 deletions
12
...flake8_todo/snapshots/ruff__rules__flake8_todo__tests__missing-text-in-todo_TD005.py.snap
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,31 +1,31 @@ | ||
--- | ||
source: crates/ruff/src/rules/flake8_todo/mod.rs | ||
--- | ||
TD005.py:4:25: TD005 Missing text after 'TODO' | ||
TD005.py:4:3: TD005 Missing text after 'TODO' | ||
| | ||
4 | # TODO(evanrittenhouse): this has text, while the errors do not | ||
5 | # T005 - errors | ||
6 | # TODO(evanrittenhouse): | ||
| ^ TD005 | ||
| ^^^^ TD005 | ||
7 | # TODO(evanrittenhouse) | ||
8 | # FIXME | ||
| | ||
|
||
TD005.py:5:24: TD005 Missing text after 'TODO' | ||
TD005.py:5:3: TD005 Missing text after 'TODO' | ||
| | ||
5 | # T005 - errors | ||
6 | # TODO(evanrittenhouse): | ||
7 | # TODO(evanrittenhouse) | ||
| ^ TD005 | ||
| ^^^^ TD005 | ||
8 | # FIXME | ||
| | ||
|
||
TD005.py:6:8: TD005 Missing text after 'TODO' | ||
TD005.py:6:3: TD005 Missing text after 'TODO' | ||
| | ||
6 | # TODO(evanrittenhouse): | ||
7 | # TODO(evanrittenhouse) | ||
8 | # FIXME | ||
| ^ TD005 | ||
| ^^^^^ TD005 | ||
| | ||
|
||
|
Oops, something went wrong.