Keep colons inside quoted kubectl-style defaults out of option descriptions - #4702
Keep colons inside quoted kubectl-style defaults out of option descriptions#4702thomhurst wants to merge 1 commit into
Conversation
…of descriptions
KubectlOptionPattern captured the default value with [^:\s]*, so a quoted
default containing a colon ('gcr.io/k8s-minikube/kicbase:v0.0.51@sha256:...',
'[https://...]', 'qemu:///system') was cut at the first colon and the rest of
the value leaked into the option description. Capture single- or double-quoted
defaults whole before falling back to the unquoted form, and cover the three
minikube rows plus unquoted controls.
Closes #4696
Claude-Session: https://claude.ai/code/session_01MGEyXW2HYJpJ47tqnpjWMa
|
Warning Review limit reachedNext included review available in 4 minutes. View limit detailsLimit details: You’ve used all 4 included reviews currently available. You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Review configuration: ⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Team Run ID: 📒 Files selected for processing (2)
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 |
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
ReviewThis is a small, well-scoped fix: I traced a few edge cases an automated pass flagged, to check whether they're real regressions introduced by this diff:
None of these hold up as issues introduced by this change. The fix directly targets the reported bug, is minimal, and has direct test coverage. Nothing else in the diff stands out. |
Summary
The automated minikube regeneration (#4676) shipped XML docs that open with fragments of the default value (
v0.0.51@sha256:…': The base image…,//storage.googleapis.com/…]: Locations…,///system': The KVM QEMU…). The review attributed this to wrapped(default "…")continuations, but the rows are single lines:KubectlOptionPatterncaptures the default with[^:\s]*, so a quoted default containing a colon is cut at that colon and the remainder of the value becomes the description.KubectlOptionPatternnow captures a single- or double-quoted default whole ('[^']*'|"[^"]*") before the unquoted[^:\s]*form, so the:that precedes the description is found after the closing quote.string;--nodes=1:still yieldsint?.Quoted_Kubectl_Style_Defaults_Containing_Colons_Stay_Out_Of_Descriptionsuses the three real minikube rows plus--memory=''and--nodes=1controls; it reproduces the exact garbled descriptions on the previous regex and passes now.minikube derives from
CobraCliScraper, so no minikube-specific code is involved; kubectl-style rows in any Cobra-derived scraper get the same fix. #4676 will be refreshed by the push-triggered regeneration once this merges.Test plan
dotnet format --verify-no-changes --severity warnon the two changed files.Closes #4696
https://claude.ai/code/session_01MGEyXW2HYJpJ47tqnpjWMa