-
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.
- Loading branch information
1 parent
a482ede
commit 67b251a
Showing
3 changed files
with
75 additions
and
17 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
21 changes: 19 additions & 2 deletions
21
.../snapshots/ruff__rules__flake8_todo__tests__invalid-capitalization-in-todo_TDO006.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,21 +1,38 @@ | ||
--- | ||
source: crates/ruff/src/rules/flake8_todo/mod.rs | ||
--- | ||
TDO006.py:4:1: TDO006 Invalid TODO capitalization: `ToDo` should be `TODO` | ||
TDO006.py:4:1: TDO006 [*] Invalid TODO capitalization: `ToDo` should be `TODO` | ||
| | ||
4 | # TODO(evanrittenhouse): this is a valid TODO | ||
5 | # TDO006 - error | ||
6 | # ToDo(evanrittenhouse): invalid capitalization | ||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ TDO006 | ||
7 | # todo(evanrittenhouse): another invalid capitalization | ||
| | ||
= help: Fix capitalization in `TODO` | ||
|
||
TDO006.py:5:1: TDO006 Invalid TODO capitalization: `todo` should be `TODO` | ||
ℹ Suggested fix | ||
1 1 | # TDO006 - accepted | ||
2 2 | # TODO(evanrittenhouse): this is a valid TODO | ||
3 3 | # TDO006 - error | ||
4 |-# ToDo(evanrittenhouse): invalid capitalization | ||
4 |+# TODO(evanrittenhouse): invalid capitalization | ||
5 5 | # todo(evanrittenhouse): another invalid capitalization | ||
|
||
TDO006.py:5:1: TDO006 [*] Invalid TODO capitalization: `todo` should be `TODO` | ||
| | ||
5 | # TDO006 - error | ||
6 | # ToDo(evanrittenhouse): invalid capitalization | ||
7 | # todo(evanrittenhouse): another invalid capitalization | ||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ TDO006 | ||
| | ||
= help: Fix capitalization in `TODO` | ||
|
||
ℹ Suggested fix | ||
2 2 | # TODO(evanrittenhouse): this is a valid TODO | ||
3 3 | # TDO006 - error | ||
4 4 | # ToDo(evanrittenhouse): invalid capitalization | ||
5 |-# todo(evanrittenhouse): another invalid capitalization | ||
5 |+# TODO(evanrittenhouse): another invalid capitalization | ||
|
||
|