docs-15 follow-up: review fixes after merge to dev#205
Conversation
|
Caution Review failedPull request was closed or merged during review 📝 WalkthroughSummary: docs-15 Follow-up Review Fixes (PR
|
| Cohort / File(s) | Summary |
|---|---|
Code Review Documentation docs/bundles/code-review/run.md, docs/modules/code-review.md |
Clarified flag validation timing by specifying that Typer's _resolve_review_run_flags() handles certain conflicts (e.g., --include-tests + --exclude-tests), while command-layer validators (_validate_review_request(), _raise_if_targeting_styles_conflict()) handle other pairings. Added --json + --score-only as invalid combination. Tightened positional target guidance to explicitly reference .py/.pyi files. |
docs-15 Specification Updates openspec/changes/docs-15-code-review-validation-guardrails/design.md, proposal.md, tasks.md, specs/bundle-overview-pages/spec.md, specs/review-run-command/spec.md |
Added top-level document headers and refined requirement wording; updated "Bundle overview related links" to "Bundle overview-related links" and refined positional file terminology to align with public run(files: list[Path]) signature. |
Docs Site Validation Tooling scripts/docs_site_validation.py |
Enhanced directory-link resolution to consider candidate/index.md in addition to candidate/README.md. Modified scan_gemfile_lock_installability() to remove FileNotFoundError handling, now assuming bundle is always available on PATH. |
Documentation Parity Tests tests/unit/docs/test_code_review_docs_parity.py |
Extended test assertions to validate presence of progress, spinner/status, enforce default formatting, --bug-hunt flag, exploratory mode, review-report.json, and internal validator function names (_resolve_review_run_flags(), _validate_review_request(), _raise_if_targeting_styles_conflict()) |
Estimated code review effort
🎯 3 (Moderate) | ⏱️ ~22 minutes
Possibly related issues
- [Change] Docs validation guardrails for Code Review docs and module links #202: Implements the broader "docs-15 — Code review validation guardrails" effort that encompasses the validation documentation and specification work in this PR.
Possibly related PRs
- docs(docs-15): modules docs validation guardrails and code-review parity #203: Shares updates to
docs/bundles/code-review/run.mdand related parity test assertions documenting the same flag validation and CLI behavior. - Promote dev to main: code review hardening, sidecar FastAPI, CI signing #193: Introduced the validator helper functions (
_resolve_review_run_flags(),_validate_review_request(),_raise_if_targeting_styles_conflict()) that this PR's documentation and tests now explicitly reference. - docs: add missing command reference pages #114: Originally introduced
docs/bundles/code-review/run.md; this PR refines its validation guidance and timing details.
Suggested labels
documentation, openspec
🚥 Pre-merge checks | ❌ 3
❌ Failed checks (3 warnings)
| Check name | Status | Explanation | Resolution |
|---|---|---|---|
| Title check | Title uses descriptive language but lacks a Conventional Commits prefix (feat:, fix:, docs:, etc.) as specified in requirements. | Adopt Conventional Commits format: consider 'docs: docs-15 follow-up review fixes' or 'fix: docs-15 post-merge validation' to meet style guidelines. | |
| Description check | Description provides clear context and verification steps but omits most required template sections including Scope checkboxes, Bundle Impact, Validation Evidence, and CI/branch protection details. | Complete the required template sections: add Scope checkboxes (docs changes indicated), Bundle Impact (list affected bundles), and Validation Evidence (include command outputs/workflow runs for all required gates). | |
| Docstring Coverage | Docstring coverage is 20.00% which is insufficient. The required threshold is 80.00%. | Write docstrings for the functions missing them to satisfy the coverage threshold. |
✏️ Tip: You can configure your own custom pre-merge checks in the settings.
✨ Finishing Touches
📝 Generate docstrings
- Create stacked PR
- Commit on current branch
🧪 Generate unit tests (beta)
- Create PR with unit tests
- Commit unit tests in branch
fix/docs-15-post-merge-review
Comment @coderabbitai help to get the list of available commands and usage tips.
Follow-up to the docs-15 work merged via #203. This PR applies the remaining review feedback that landed after that merge.
Changes
run.md,code-review.md): Clarify Typer vsrun_command()validation, document--json+--score-only, and use neutral “positional file paths” wording.filescontract.docs_site_validation.py: Resolve directory links viaindex.mdafterREADME.md; do not swallowFileNotFoundErrorfor missingbundlewhen runningbundle check.Verification
pytest tests/unit/docs/test_code_review_docs_parity.pypython scripts/check-docs-commands.pyhatch run lintMade with Cursor