Repository navigation
Commit db3068a
committed
fix(excessive_agency): match leading BOM in SKILL.md frontmatter bounds
_frontmatter_bounds anchored on \A---, so a BOM-prefixed SKILL.md returned
None and EA5 silently reported no frontmatter model pin. This is the third
frontmatter sniff in the same class as the two already fixed on this branch.
The BOM is absorbed into the opening match rather than stripped, because the
offsets this function returns index the caller's original content: _ea5_findings
slices it and derives line numbers and context from it, so removing characters
would shift every reported position by one.1 parent a285218 commit db3068a
2 files changed
Lines changed: 19 additions & 1 deletion
File tree
- src/skillspector/nodes/analyzers
- tests/unit
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
186 | 186 | | |
187 | 187 | | |
188 | 188 | | |
189 | | - | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
190 | 193 | | |
191 | 194 | | |
192 | 195 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
260 | 260 | | |
261 | 261 | | |
262 | 262 | | |
| 263 | + | |
| 264 | + | |
| 265 | + | |
| 266 | + | |
| 267 | + | |
| 268 | + | |
| 269 | + | |
| 270 | + | |
| 271 | + | |
| 272 | + | |
| 273 | + | |
| 274 | + | |
| 275 | + | |
| 276 | + | |
| 277 | + | |
263 | 278 | | |
264 | 279 | | |
265 | 280 | | |
| |||
0 commit comments