(root: Path)
| 310 | |
| 311 | |
| 312 | def cases_d(root: Path) -> list[Case]: |
| 313 | out: list[Case] = [] |
| 314 | for p in _liquid_files(root): |
| 315 | masked = mask_inactive(_read(p)) |
| 316 | ln = _Lines(masked) |
| 317 | rel = _rel(root, p) |
| 318 | for sp in _LIQUID_SPAN.finditer(masked): |
| 319 | for m in _SETTING.finditer(sp.group(0)): |
| 320 | out.append((rel, ln.of(sp.start() + m.start()), f"{m.group(1)}.{m.group(2) or m.group(4)}")) |
| 321 | return out |
| 322 | |
| 323 | |
| 324 | _META_BRACKET = re.compile(r"""metafields\[['"]([\w-]+)['"]\]\[['"]([\w-]+)['"]\]""") |
no test coverage detected