Commit 1d4cbb5
committed
fix: Only flag TODO comments in script code, not in strings/docstrings
Updated TODO detection to only flag actual TODO comments in the script code:
- Match pattern: '# TODO:' at start of line (actual work needed)
- Ignore: TODOs in docstrings, strings, or variable names
- Allows scripts like review_pr.py to check for TODOs in other code
Example false positive fixed:
- '"""Check for TODO/FIXME comments."""' - Not flagged
- 'pattern = re.compile(r"TODO")' - Not flagged
- '# TODO: implement this feature' - Still flagged (correct)1 parent e07ca9b commit 1d4cbb5
1 file changed
Lines changed: 4 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
155 | 155 | | |
156 | 156 | | |
157 | 157 | | |
158 | | - | |
159 | | - | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
160 | 162 | | |
161 | 163 | | |
162 | 164 | | |
| |||
0 commit comments