extend C1802 to detect len() comparisons with zero #10658
Codecov / codecov/project
succeeded
Oct 20, 2025 in 0s
95.96% (target 95.00%)
View this Pull Request on Codecov
95.96% (target 95.00%)
Details
Codecov Report
❌ Patch coverage is 94.11765% with 5 lines in your changes missing coverage. Please review.
✅ Project coverage is 95.96%. Comparing base (3de1fbc) to head (4aacb64).
| Files with missing lines | Patch % | Lines |
|---|---|---|
| ...heckers/refactoring/implicit_booleaness_checker.py | 94.11% | 5 Missing |
Additional details and impacted files
@@ Coverage Diff @@
## main #10658 +/- ##
==========================================
- Coverage 95.96% 95.96% -0.01%
==========================================
Files 176 176
Lines 19502 19604 +102
==========================================
+ Hits 18715 18812 +97
- Misses 787 792 +5 | Files with missing lines | Coverage Δ | |
|---|---|---|
| ...heckers/refactoring/implicit_booleaness_checker.py | 97.79% <94.11%> (-2.21%) |
⬇️ |
🚀 New features to boost your workflow:
- ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
Loading