Skip to content

Commit fbc7cd5

Browse files
committed
docs(cli): update --format json example to match the new field order
The struct-layout fix in internal/output.jsonDiagnostic (previous commit) reordered Go struct fields to group pointer-containing fields before scalars, which changes encoding/json's emitted key order. This reference page's --format json example still showed the pre-fix order. Verified against actual `mdsmith check --format json` output. Found by an independent adversarial review pass on PR #765. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01SNiF3CVZG2NCizbsTgur4V
1 parent 24c91c0 commit fbc7cd5

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

docs/reference/cli.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -154,13 +154,13 @@ path (`····^`) pointing to the exact column.
154154
[
155155
{
156156
"file": "README.md",
157-
"line": 10,
158-
"column": 81,
159157
"rule": "MDS001",
160158
"name": "line-length",
161159
"severity": "error",
162160
"message": "line too long (120 > 80)",
163161
"source_lines": ["Previous line.", "Another context.", "The long line...", "Next.", "Another."],
162+
"line": 10,
163+
"column": 81,
164164
"source_start_line": 8
165165
}
166166
]

0 commit comments

Comments
 (0)