Commit 08665c7
committed
plan 88: conform error style, handle [TOC] link-ref ambiguity
Address Copilot review:
- Error message: drop trailing period and capital leading 'For',
matching the mdsmith CLAUDE.md convention (lowercase, no
trailing punctuation). New message keeps both pointers — the
missing heading-TOC generator and MDS019 for file indexes.
- Detection: `[TOC]` is a valid CommonMark shortcut reference
link. The earlier design would false-positive when a matching
`[TOC]: <url>` definition is present. Add an explicit
link-reference map lookup (case-insensitive label) before
emitting the diagnostic for this pattern; the other three
patterns keep their simple regex match.
- Tasks: add a step for the link-reference suppression and a
good fixture exercising it.1 parent c878ad9 commit 08665c7
1 file changed
Lines changed: 40 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
105 | 105 | | |
106 | 106 | | |
107 | 107 | | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
108 | 132 | | |
109 | 133 | | |
110 | 134 | | |
| |||
114 | 138 | | |
115 | 139 | | |
116 | 140 | | |
117 | | - | |
| 141 | + | |
118 | 142 | | |
119 | 143 | | |
120 | | - | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
121 | 147 | | |
122 | 148 | | |
123 | 149 | | |
| |||
133 | 159 | | |
134 | 160 | | |
135 | 161 | | |
136 | | - | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
137 | 167 | | |
138 | | - | |
139 | | - | |
140 | | - | |
141 | | - | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
142 | 175 | | |
143 | 176 | | |
144 | 177 | | |
| |||
0 commit comments