Fix split delimiter for float nuisances#1247
Fix split delimiter for float nuisances#1247secholak wants to merge 1 commit intocms-analysis:mainfrom
Conversation
📝 WalkthroughWalkthroughA delimiter parsing fix in Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~12 minutes Poem
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 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 |
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.
Inline comments:
In `@src/Combine.cc`:
- Around line 634-637: The CI failure is due to formatting changes around the
block handling floatNuisances_ in Combine.cc; run clang-format (or
git-clang-format HEAD~ -- src/) and reformat the block containing the
floatNuisances_ check/branch (the if (floatNuisances_=="all") {
toFloat.add(*nuisances); } else { std::vector<std::string> nuisToFloat =
Utils::split(floatNuisances_, ","); }) so whitespace/brace placement matches
project style, then stage the reformatted changes and push.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
| if (floatNuisances_=="all") { | ||
| toFloat.add(*nuisances); | ||
| } else { | ||
| std::vector<std::string> nuisToFloat = Utils::split(floatNuisances_, "n"); | ||
| std::vector<std::string> nuisToFloat = Utils::split(floatNuisances_, ","); |
There was a problem hiding this comment.
Run clang-format on the touched block.
The comma delimiter fix on Line 637 looks correct and matches the freeze-parameter parser, but CI is failing with git-clang-format differences around Line 634.
git clang-format HEAD~ -- src/🧰 Tools
🪛 GitHub Actions: clang-format
[error] 634-634: CI failed due to git-clang-format formatting differences in this file. The pipeline suggests running locally: git-clang-format HEAD~ (command: git clang-format ... -- src/).
🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.
In `@src/Combine.cc` around lines 634 - 637, The CI failure is due to formatting
changes around the block handling floatNuisances_ in Combine.cc; run
clang-format (or git-clang-format HEAD~ -- src/) and reformat the block
containing the floatNuisances_ check/branch (the if (floatNuisances_=="all") {
toFloat.add(*nuisances); } else { std::vector<std::string> nuisToFloat =
Utils::split(floatNuisances_, ","); }) so whitespace/brace placement matches
project style, then stage the reformatted changes and push.
Codecov Report❌ Patch coverage is
❌ Your patch check has failed because the patch coverage (0.00%) is below the target coverage (98.00%). You can increase the patch coverage or adjust the target coverage. Additional details and impacted files@@ Coverage Diff @@
## main #1247 +/- ##
=======================================
Coverage 20.89% 20.89%
=======================================
Files 195 195
Lines 26310 26310
Branches 3947 3947
=======================================
Hits 5498 5498
Misses 20812 20812
🚀 New features to boost your workflow:
|
Bug in the floatNuisances parsing logic.
Summary by CodeRabbit