fix: pass --extra-args to clang-tidy properly#386
Conversation
1. The conversion function was not being used in production code. 2. clang-tidy was finding the `--extra-arg` value as an unrecognized option. Prefer using `--extra-arg=...` instead.
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Repository UI (base), Organization UI (inherited) Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (2)
📝 WalkthroughWalkthroughThe PR changes how clang-tidy ChangesExtra-arg formatting change
Estimated code review effort🎯 2 (Simple) | ⏱️ ~8 minutes 🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches📝 Generate docstrings
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✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #386 +/- ##
==========================================
+ Coverage 92.54% 92.56% +0.02%
==========================================
Files 23 23
Lines 3700 3710 +10
==========================================
+ Hits 3424 3434 +10
Misses 276 276 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
Keeping the repo-root path relative breaks parsing of absolute paths in clang-tidy output. This didn't surface in the tests because they all use a compilation database generated for ninja (which uses relative paths). But in the test repo, we are using CMake which generates absolute paths in the compilation database. Remember, clang-tidy outputs filenames however they are stated in the compilation database. If not using a compilation database, then clang-tidy just outputs the filename as it was given in the CLI. I also removed an artifact debug log from developing the solution for #386 <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **Improvements** * Enhanced error handling for repository root paths with improved error messages when invalid paths are provided. <!-- end of auto-generated comment: release notes by coderabbit.ai -->
--extra-argvalue as an unrecognized option. Prefer using--extra-arg=...instead.Summary by CodeRabbit
Refactor
Tests