Skip to content

fix(lsp): decouple URP for in-memory validation and refactor Z403 Body markdown#159

Merged
PythonWoods-Dev merged 3 commits into
mainfrom
fix/zls-urp-remediation
Jul 14, 2026
Merged

fix(lsp): decouple URP for in-memory validation and refactor Z403 Body markdown#159
PythonWoods-Dev merged 3 commits into
mainfrom
fix/zls-urp-remediation

Conversation

@PythonWoods-Dev

Copy link
Copy Markdown
Contributor

Overview

This pull request completely decouples the Uniform Resolver Pipeline (URP) to support pure in-memory document validation, ensuring 100% diagnostic parity between the CLI (zenzic check) and the VS Code Language Server.

Key Changes

  • Decoupled Pipeline: Introduced validate_single_document_urp() to run HTML integrity checks (Z120-Z124, Z205), same-page anchors (Z102), and absolute paths (Z105) without redundant disk I/O.
  • Single Source of Truth: server.py is stripped of hardcoded validation rules and now acts strictly as a transport layer.
  • Rule Unification: Refactored Z403 (Missing Alt Text) into a native BaseRule, guaranteeing consistent behavior across both execution paths.

Type of Change

  • Bug fix (non-breaking change which fixes an issue)
  • Refactoring (architecture improvements)

Signed-off-by: PythonWoods-Dev <gianluca.catalano@gmail.com>
Signed-off-by: PythonWoods-Dev <gianluca.catalano@gmail.com>
Signed-off-by: PythonWoods-Dev <gianluca.catalano@gmail.com>
@PythonWoods-Dev
PythonWoods-Dev merged commit 3720808 into main Jul 14, 2026
7 checks passed
@PythonWoods-Dev
PythonWoods-Dev deleted the fix/zls-urp-remediation branch July 14, 2026 11:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant