Repository navigation
fix: double indentation in help message - #1379
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #1379 +/- ##
=========================================
Coverage 100.00% 100.00%
=========================================
Files 19 19
Lines 5216 5217 +1
Branches 1128 1128
=========================================
+ Hits 5216 5217 +1 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
|
Claude review below. I pushed an update based on that. 🤖 AI text below 🤖 My simplified form produces byte-identical output to the PR. I now have everything for the review. Code Review: PR #1379 — help message: fix double indentationOverviewWhen a nested option group's description was rendered, Verdict: the fix is correct and does what it claims. I built the branch, reproduced the PR's exact scenario (4-space → 2-space header), and diffed old vs. new behavior across edge cases. All 320 Old vs. new behavior (
The dangling Code quality & style
Test coverage — main gap
Correctness / risk
RecommendationApprove after: (1) adding a regression test, and ideally (2) the small simplification + naming fix. The core change is sound. |
|
Should this warning be fixed? |
|
🤖 AI text below 🤖 Yes — fixed in 6f3e872. Lambda default arguments are C++14, so the test lambda now takes |
🤖 _AI text below_ 🤖
Coverage uploads from `main` have failed since the branch became
protected:
```
error -- Upload queued for processing failed: {"message":"Token required because branch is protected"}
```
Codecov permits tokenless uploads for public repos only on unprotected
branches. Fork PRs get a colon-prefixed branch name (`fork:main`) and
upload correctly, but pushes to `main` are rejected. As a result Codecov
holds no report for any recent `main` commit and falls back to
`e4ee3af`, which is 228 commits old. Every PR then shows a coverage loss
that does not exist — see #1379, where Codecov reports "All modified and
coverable lines are covered by tests" but `codecov/project` still fails.
This adds the token input. The repository secret `CODECOV_TOKEN` must be
set for the fix to operate.
Simplify streamOutAsParagraph by reusing skipPrefixOnFirstLine as the per-line flag instead of a separate bool, and add a direct unit test guarding against a dangling line prefix after a trailing newline. Assisted-by: ClaudeCode:claude-opus-4.8
Lambda default arguments are a C++14 extension and fail the C++11 warnings-as-errors builds. Assisted-by: ClaudeCode:claude-opus-5
|
Thanks! |
In some cases using
indent_blockafterstreamOutAsParagraphresults in double indentationdue to the addition of one more prefix after the last line in function
streamOutAsParagraphto solve this, i moved prefix addition to the beginning of the loop iteration
this code produces double indentation before
[Option Group: subgroup 1]after fix