Skip to content

chore: fix markdownlint structural issues in docs (MD022/MD032/MD031)#196

Open
Prekzursil wants to merge 1 commit into
mainfrom
chore/codacy-markdown-sweep
Open

chore: fix markdownlint structural issues in docs (MD022/MD032/MD031)#196
Prekzursil wants to merge 1 commit into
mainfrom
chore/codacy-markdown-sweep

Conversation

@Prekzursil

@Prekzursil Prekzursil commented Jun 8, 2026

Copy link
Copy Markdown
Owner

User description

What

Runs markdownlint-cli2 --fix over the documentation set and commits the auto-fixable, formatter-only subset across 11 files (213 insertions / 6 deletions): blank lines around headings (MD022), lists (MD032) and fenced code blocks (MD031), plus a few stray trailing-space (MD009) / hard-tab (MD010) fixes.

Why

Clears the auto-fixable part of the dominant Codacy markdownlint backlog (a 100-issue census sample was 100% Markdown/CodeStyle in docs). This is Layer-2 step (a) of the green-main autofix plan (docs/quality-zero/GREEN-MAIN-AUTOFIX-FLEET-SOLUTION.md).

Safety / honesty

  • Formatter-only, no rendered-content change. MD011 (reversed links) and MD014 ($ in code) were not present and are not touched. Verified the diff is blank-line/whitespace only (git diff --ignore-cr-at-eol ≡ the structural change).
  • No suppressions. MD013 (line-length, ~328) and MD040 (code-fence language) are not auto-fixable and are left as open findings for a follow-up — not disabled/ignored.
  • README.md and TODO.md deferred to a separate line-ending-normalization PR — they carry mixed CRLF/LF committed endings that would add hundreds of lines of EOL noise here.

Note

This repo's main has 19 required checks (many currently red pre-existing) and auto-merge is not enabled, so this PR is for human review/merge — it does not self-merge.


Summary by cubic

Auto-fixed markdownlint issues in docs using markdownlint-cli2 --fix across 11 files to add required blank lines around headings, lists, and code fences (MD022/MD032/MD031) and clean up trailing spaces/tabs. Formatter-only; no rendered-content changes; MD013/MD040 left for follow-up; README.md and TODO.md deferred pending line-ending normalization.

Written for commit 56c99d6. Summary will update on new commits.

Review in cubic


CodeAnt-AI Description

Fix markdown spacing and list formatting across documentation

What Changed

  • Added missing blank lines around headings, lists, and code blocks in multiple docs so pages render with cleaner structure
  • Fixed a few stray spacing issues and a numbered list entry in the desktop updater guide
  • Kept the document content the same; this change only cleans up formatting

Impact

✅ Cleaner docs pages
✅ Fewer markdownlint warnings
✅ Easier-to-read setup and policy guides

💡 Usage Guide

Checking Your Pull Request

Every time you make a pull request, our system automatically looks through it. We check for security issues, mistakes in how you're setting up your infrastructure, and common code problems. We do this to make sure your changes are solid and won't cause any trouble later.

Talking to CodeAnt AI

Got a question or need a hand with something in your pull request? You can easily get in touch with CodeAnt AI right here. Just type the following in a comment on your pull request, and replace "Your question here" with whatever you want to ask:

@codeant-ai ask: Your question here

This lets you have a chat with CodeAnt AI about your pull request, making it easier to understand and improve your code.

Example

@codeant-ai ask: Can you suggest a safer alternative to storing this secret?

Preserve Org Learnings with CodeAnt

You can record team preferences so CodeAnt AI applies them in future reviews. Reply directly to the specific CodeAnt AI suggestion (in the same thread) and replace "Your feedback here" with your input:

@codeant-ai: Your feedback here

This helps CodeAnt AI learn and adapt to your team's coding style and standards.

Example

@codeant-ai: Do not flag unused imports.

Retrigger review

Ask CodeAnt AI to review the PR again, by typing:

@codeant-ai: review

Check Your Repository Health

To analyze the health of your code repository, visit our dashboard at https://app.codeant.ai. This tool helps you identify potential issues and areas for improvement in your codebase, ensuring your repository maintains high standards of code health.

Summary by CodeRabbit

  • Documentation
    • Enhanced formatting and organizational structure across development guides and operational documentation to improve readability and consistency. Updated documentation layout, section headings, and spacing throughout to standardize presentation while preserving all existing content and guidance.

Adds blank lines around headings, lists, and fenced code blocks and removes stray trailing whitespace across 11 documentation files via markdownlint-cli2 --fix, clearing the auto-fixable subset of the Codacy markdownlint backlog. Formatter-only: no rendered-content change (MD011/MD014 untouched; MD013 line-length and MD040 language hints left for follow-up, NOT suppressed). README.md and TODO.md are deferred to a separate line-ending-normalization PR (mixed CRLF/LF committed endings would add noise here).
@devloai

devloai Bot commented Jun 8, 2026

Copy link
Copy Markdown

Unable to trigger custom agent "Code Reviewer". You have run out of credits 😔
Please upgrade your plan or buy additional credits from the subscription page.

@qodo-code-review

Copy link
Copy Markdown

Qodo reviews are paused for this user.

Troubleshooting steps vary by plan Learn more →

On a Teams plan?
Reviews resume once this user has a paid seat and their Git account is linked in Qodo.
Link Git account →

Using GitHub Enterprise Server, GitLab Self-Managed, or Bitbucket Data Center?
These require an Enterprise plan - Contact us
Contact us →

@codeant-ai

codeant-ai Bot commented Jun 8, 2026

Copy link
Copy Markdown

CodeAnt AI is reviewing your PR.


Thanks for using CodeAnt! 🎉

We're free for open-source projects. if you're enjoying it, help us grow by sharing.

Share on X ·
Reddit ·
LinkedIn

@coderabbitai

coderabbitai Bot commented Jun 8, 2026

Copy link
Copy Markdown

Review Change Stack

📝 Walkthrough

Walkthrough

This PR restructures and reformats documentation across the repository to improve Markdown readability and organizational consistency. AGENTS.md introduces section headings for governance workflows. Core documentation files including governance, branch protection, KPI metrics, validation, and Baseline-Lite package guides receive whitespace and layout improvements without changing substantive content.

Changes

Documentation Formatting and Structure Improvements

Layer / File(s) Summary
Agent and Governance Documentation Structure
AGENTS.md, docs/GOVERNANCE.md
AGENTS.md reorganized with new section headings (## Operating Model, ## Scope Guardrails, ## Agent Queue Contract, ## Queue Trigger Warning). GOVERNANCE.md reformatted with consistent spacing and subsection structure for core documents, operational workflows, support documentation, templates, and development tools.
Baseline-Lite Package Documentation Standardization
docs/BASELINE_LITE_PACKAGE.md, docs/BASELINE_LITE_QUICKSTART.md
BASELINE_LITE_PACKAGE.md restructured with consistent headings and "Customization Points" subsections across all package components, deployment phases, monorepo overlays, and exception handling variants. BASELINE_LITE_QUICKSTART.md reformatted with spacing improvements across component selection, customization checklist, testing steps, common customizations, and troubleshooting sections.
Standard Documentation Markdown Improvements
docs/BRANCH_PROTECTION.md, docs/KPI_METRICS.md, docs/PHASE_3_4_VALIDATION.md, docs/regressions/README.md, services/worker/README.md
Branch protection, KPI metrics, and validation documentation receive whitespace and layout improvements with blank lines after headings and normalized spacing around code blocks and lists. Validation section duplicate content removed. Regression documentation clarified with explanation of per-slice maintenance. Worker service documentation spacing adjusted across task descriptions and configuration sections.
Desktop Application Documentation Updates
apps/desktop/README.md, apps/desktop/UPDATER.md
README.md adjusted whitespace in the WSL notes section. UPDATER.md renumbered release checklist steps and adjusted formatting around latest.json upload instructions and failure modes section.

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~8 minutes

Possibly related PRs

  • Prekzursil/Reframe#57: Introduced the AI operating model and agent queue contract structure in AGENTS.md that this PR now formalizes with section headings and reorganization.

Suggested labels

documentation, formatting, restructuring

Poem

🐰 A rabbit hops through docs so neat,
Adding spaces, headings sweet,
Structure grows, the text flows clear,
Organization brings good cheer!
📝✨

🚥 Pre-merge checks | ✅ 4 | ❌ 1

❌ Failed checks (1 warning)

Check name Status Explanation Resolution
Description check ⚠️ Warning The PR description provides clear summary, rationale, and safety considerations, but lacks key template sections including explicit Risk level/regression surface, Evidence with verification commands, Rollback plan, and Scope Guard checklist. Complete the PR description by adding: (1) Risk assessment (level, affected slices, security impact), (2) Evidence section with verification commands (make verify output), (3) Rollback plan, and (4) Scope Guard checklist with all required boxes explicitly addressed.
✅ Passed checks (4 passed)
Check name Status Explanation
Title check ✅ Passed The title clearly and specifically summarizes the main change: fixing markdownlint structural issues (MD022/MD032/MD031) in documentation files.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.

✏️ 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 chore/codacy-markdown-sweep

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.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@codeant-ai codeant-ai Bot added the size:L This PR changes 100-499 lines, ignoring generated files label Jun 8, 2026
@codacy-production

Copy link
Copy Markdown

Up to standards ✅

🟢 Issues 0 issues

Results:
0 new issues

View in Codacy

NEW Get contextual insights on your PRs based on Codacy's metrics, along with PR and Jira context, without leaving GitHub. Enable AI reviewer
TIP This summary will be updated as you push new changes.

Comment thread apps/desktop/UPDATER.md
Exact filenames differ by platform and bundler; use the files generated in `apps/desktop/src-tauri/target/release/bundle/`.

3) Create and upload `latest.json` as a release asset with this shape:
1) Create and upload `latest.json` as a release asset with this shape:

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Bug: The auto-formatter incorrectly renumbered the manual release steps in UPDATER.md, causing the critical third step to be mislabeled and breaking the release instructions.
Severity: HIGH

Suggested Fix

Disable the auto-formatter rule for this list or manually correct the numbering to restore the 1), 2), 3) sequence. You can add <!-- markdownlint-disable-next-line MD029 --> before the list to disable the rule for that section.

Prompt for AI Agent
Review the code at the location below. A potential bug has been identified by an AI
agent. Verify if this is a real issue. If it is, propose a fix; if not, explain why it's
not valid.

Location: apps/desktop/UPDATER.md#L72

Potential issue: In the `UPDATER.md` file, the auto-formatter has incorrectly renumbered
a list in the manual release instructions. The sequence of steps is now `1), 2), 1)`
instead of the correct `1), 2), 3)`. This mislabeling breaks the logical flow of the
procedure. The third step, which involves creating and uploading `latest.json`, is
critical for the Tauri updater to function. A user following these broken instructions
would miss this step, causing application updates to fail silently for end-users.

Did we get this right? 👍 / 👎 to inform future reviews.

Comment on lines 271 to 277
- [ ] Adjust thresholds and targets based on baseline

### Phase 6: Team Onboarding (Week 3-4)

- [ ] Document rollout in project README
- [ ] Add CONTRIBUTING.md with local setup
- [ ] Create onboarding issue template

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Bug: The auto-formatter replaced required tabs with spaces in a makefile code block, which will cause make to fail when a user copies the code.
Severity: MEDIUM

Suggested Fix

Re-introduce the tab characters at the beginning of the recipe lines in the makefile code block. To prevent the auto-formatter from removing them again, consider using a directive like <!-- markdownlint-disable-next-line MD010 -->.

Prompt for AI Agent
Review the code at the location below. A potential bug has been identified by an AI
agent. Verify if this is a real issue. If it is, propose a fix; if not, explain why it's
not valid.

Location: docs/BASELINE_LITE_PACKAGE.md#L271-L277

Potential issue: In the `BASELINE_LITE_PACKAGE.md` documentation, an auto-formatter has
replaced the required tab characters in a `makefile` code block with spaces. GNU Make
requires that recipe lines (the commands under a target) must be indented with a literal
tab character, not spaces. As a result, anyone copying this code snippet and trying to
use it with `make` will encounter a `*** missing separator. Stop.` error, preventing the
makefile from executing.

Did we get this right? 👍 / 👎 to inform future reviews.

Comment on lines 317 to 323
```makefile
frontend-test:
cd apps/web && npm test
cd apps/web && npm test

backend-test:
PYTHONPATH=.:apps/api python -m pytest apps/api/tests
PYTHONPATH=.:apps/api python -m pytest apps/api/tests

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟠 Architect Review — HIGH

The PR assumes hard-tab cleanup is formatter-only, but in this Makefile example the recipe command lines were changed from tab-indented to space-indented, which makes the snippet invalid when copied into a real Makefile (missing separator).

Suggestion: Keep literal tab indentation for recipe lines inside ```makefile fences (or explicitly document \t), and exclude these blocks from hard-tab autofix so documentation examples remain executable as written.

Fix in Cursor | Fix in VSCode Claude

(Use Cmd/Ctrl + Click for best experience)

Prompt for AI Agent 🤖
This is an **Architect / Logical Review** comment left during a code review. These reviews are first-class, important findings — not optional suggestions. Do NOT dismiss this as a 'big architectural change' just because the title says architect review; most of these can be resolved with a small, localized fix once the intent is understood.

**Path:** docs/BASELINE_LITE_PACKAGE.md
**Line:** 317:323
**Comment:**
	*HIGH: The PR assumes hard-tab cleanup is formatter-only, but in this Makefile example the recipe command lines were changed from tab-indented to space-indented, which makes the snippet invalid when copied into a real Makefile (`missing separator`).

Validate the correctness of the flagged issue. If correct, How can I resolve this? If you propose a fix, implement it and please make it concise.
If a suggested approach is provided above, use it as the authoritative instruction. If no explicit code suggestion is given, you MUST still draft and apply your own minimal, localized fix — do not punt back with 'no suggestion provided, review manually'. Keep the change as small as possible: add a guard clause, gate on a loading state, reorder an await, wrap in a conditional, etc. Do not refactor surrounding code or expand scope beyond the finding.
Once fix is implemented, also check other comments on the same PR, and ask user if the user wants to fix the rest of the comments as well. if said yes, then fetch all the comments validate the correctness and implement a minimal fix

@codeant-ai

codeant-ai Bot commented Jun 8, 2026

Copy link
Copy Markdown

CodeAnt AI finished reviewing your PR.

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 1

🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In `@apps/desktop/UPDATER.md`:
- Line 72: The numbered steps in the UPDATER.md manual release sequence reset
from "2)" back to "1)" at the line that currently reads "1) Create and upload
`latest.json`...", break the sequence; update that marker to "3)" so the list
continues deterministically (locate the step text "Create and upload
`latest.json` as a release asset with this shape:" and change its leading "1)"
to "3)").
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: 86f26af6-769b-40fc-8ef9-ca961c9cbdb4

📥 Commits

Reviewing files that changed from the base of the PR and between df95284 and 56c99d6.

📒 Files selected for processing (11)
  • AGENTS.md
  • apps/desktop/README.md
  • apps/desktop/UPDATER.md
  • docs/BASELINE_LITE_PACKAGE.md
  • docs/BASELINE_LITE_QUICKSTART.md
  • docs/BRANCH_PROTECTION.md
  • docs/GOVERNANCE.md
  • docs/KPI_METRICS.md
  • docs/PHASE_3_4_VALIDATION.md
  • docs/regressions/README.md
  • services/worker/README.md

Comment thread apps/desktop/UPDATER.md
Exact filenames differ by platform and bundler; use the files generated in `apps/desktop/src-tauri/target/release/bundle/`.

3) Create and upload `latest.json` as a release asset with this shape:
1) Create and upload `latest.json` as a release asset with this shape:

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Potential issue | 🟡 Minor | ⚡ Quick win

Fix manual release step numbering continuity.

Line 72 restarts at 1) after step 2), which can break sequence clarity in some renderers. Continue numbering as step 3) for deterministic procedural order.

Suggested fix
-1) Create and upload `latest.json` as a release asset with this shape:
+3) Create and upload `latest.json` as a release asset with this shape:
📝 Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
1) Create and upload `latest.json` as a release asset with this shape:
3) Create and upload `latest.json` as a release asset with this shape:
🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@apps/desktop/UPDATER.md` at line 72, The numbered steps in the UPDATER.md
manual release sequence reset from "2)" back to "1)" at the line that currently
reads "1) Create and upload `latest.json`...", break the sequence; update that
marker to "3)" so the list continues deterministically (locate the step text
"Create and upload `latest.json` as a release asset with this shape:" and change
its leading "1)" to "3)").

@cubic-dev-ai cubic-dev-ai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

2 issues found across 11 files

Prompt for AI agents (unresolved issues)

Check if these issues are valid — if so, understand the root cause of each and fix them. If appropriate, use sub-agents to investigate and fix each issue separately.


<file name="docs/BASELINE_LITE_PACKAGE.md">

<violation number="1" location="docs/BASELINE_LITE_PACKAGE.md:319">
P2: MD010 auto-fix replaced tabs with spaces inside a `makefile` fenced code block. Makefile recipes require tab indentation — space-indented recipes produce a missing-separator error. This makes the documentation inaccurate for anyone copying the example.</violation>
</file>

<file name="apps/desktop/UPDATER.md">

<violation number="1" location="apps/desktop/UPDATER.md:72">
P2: The auto-formatter incorrectly renumbered this step from `3)` to `1)`, breaking the procedural sequence. The manual release steps should read `1)`, `2)`, `3)` — this third step (creating and uploading `latest.json`) is critical for the Tauri updater to function and its mislabeling harms clarity.</violation>
</file>

Reply with feedback, questions, or to request a fix.

Re-trigger cubic

```makefile
frontend-test:
cd apps/web && npm test
cd apps/web && npm test

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2: MD010 auto-fix replaced tabs with spaces inside a makefile fenced code block. Makefile recipes require tab indentation — space-indented recipes produce a missing-separator error. This makes the documentation inaccurate for anyone copying the example.

Prompt for AI agents
Check if this issue is valid — if so, understand the root cause and fix it. At docs/BASELINE_LITE_PACKAGE.md, line 319:

<comment>MD010 auto-fix replaced tabs with spaces inside a `makefile` fenced code block. Makefile recipes require tab indentation — space-indented recipes produce a missing-separator error. This makes the documentation inaccurate for anyone copying the example.</comment>

<file context>
@@ -265,12 +313,13 @@ on:
 ```makefile
 frontend-test:
-	cd apps/web && npm test
+ cd apps/web && npm test
 
 backend-test:
</file context>
Suggested change
cd apps/web && npm test
cd apps/web && npm test

Comment thread apps/desktop/UPDATER.md
Exact filenames differ by platform and bundler; use the files generated in `apps/desktop/src-tauri/target/release/bundle/`.

3) Create and upload `latest.json` as a release asset with this shape:
1) Create and upload `latest.json` as a release asset with this shape:

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2: The auto-formatter incorrectly renumbered this step from 3) to 1), breaking the procedural sequence. The manual release steps should read 1), 2), 3) — this third step (creating and uploading latest.json) is critical for the Tauri updater to function and its mislabeling harms clarity.

Prompt for AI agents
Check if this issue is valid — if so, understand the root cause and fix it. At apps/desktop/UPDATER.md, line 72:

<comment>The auto-formatter incorrectly renumbered this step from `3)` to `1)`, breaking the procedural sequence. The manual release steps should read `1)`, `2)`, `3)` — this third step (creating and uploading `latest.json`) is critical for the Tauri updater to function and its mislabeling harms clarity.</comment>

<file context>
@@ -69,7 +69,7 @@ Manual (if needed):
 Exact filenames differ by platform and bundler; use the files generated in `apps/desktop/src-tauri/target/release/bundle/`.
 
-3) Create and upload `latest.json` as a release asset with this shape:
+1) Create and upload `latest.json` as a release asset with this shape:
 
 ```json
</file context>
Suggested change
1) Create and upload `latest.json` as a release asset with this shape:
3) Create and upload `latest.json` as a release asset with this shape:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size:L This PR changes 100-499 lines, ignoring generated files

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant