ruff/crates/ruff_linter
Tom Kuson c2a9cf8ae5
Ignore TODO tags in commented-out-code (#7523)
## Summary

Extend the `task-tags` checking logic to ignore TODO tags (with or
without parentheses). For example,

```python
# TODO(tjkuson): Rewrite in Rust
```

is no longer flagged as commented-out code.

Closes #7031.

I also updated the documentation to inform users that the rule is prone
to false positives like this!

EDIT: Accidentally linked to the wrong issue when first opening this PR,
now corrected.

## Test Plan

`cargo test`
2023-09-28 23:13:11 +00:00
..
resources/test fix(rules): improve S507 detection (#7661) 2023-09-28 21:35:59 +00:00
src Ignore TODO tags in commented-out-code (#7523) 2023-09-28 23:13:11 +00:00
Cargo.toml Implement our own small-integer optimization (#7584) 2023-09-25 15:13:21 +00:00