fix: filter format suggestions with all-inclusive range#194
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (2)
🚧 Files skipped from review as they are similar to previous changes (2)
WalkthroughUpdated line-range membership checks to include the range end by changing Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes Possibly related PRs
Suggested reviewers
🚥 Pre-merge checks | ✅ 3✅ Passed checks (3 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #194 +/- ##
=======================================
Coverage 98.29% 98.29%
=======================================
Files 24 24
Lines 1938 1938
=======================================
Hits 1905 1905
Misses 33 33 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
Python's `range()` is partially inclusive (`[start, end)`). where clang-format's CLI arg `--lines` uses an all inclusive range. refs: - cpp-linter/cpp-linter-action#416 - cpp-linter/cpp-linter-action#388 filter all suggestions with end + 1
966e98c to
2862892
Compare
Python's
range()is partially inclusive ([start, end)). where clang-format's CLI arg--linesuses an all inclusive range.Note, we already have a test that simulates the exact scenario we are trying resolve here. I just needed to adjust the validating logic so it reflects this patch's filtering logic.
refs:
Summary by CodeRabbit