Skip to content

Add local snippet ref remediation - #1315

Draft
danielporterda wants to merge 1 commit into
snippet-page-line-diagnosticsfrom
snippet-local-ref-remediation
Draft

Add local snippet ref remediation#1315
danielporterda wants to merge 1 commit into
snippet-page-line-diagnosticsfrom
snippet-local-ref-remediation

Conversation

@danielporterda

@danielporterda danielporterda commented Aug 7, 2026

Copy link
Copy Markdown
Contributor

What changed

Maps a committed-page local-ref policy failure to diagnostic SNIP007 with the explicit snippets:resolve-local command the author must run before pushing.

This PR does not add the CLI implementation or map any other validation rule to a diagnostic.

Why

Actionable remediation is distinct from both the local-ref policy decision and generic page/line diagnostic formatting.

Validation

  • python -m pytest tests/test_local_snippet_source_remediation.py tests/test_snippet_diagnostic_format.py tests/test_local_snippet_source_policy.py (6 passed)
  • python -m ruff check scripts/snippets/diagnostics.py tests/test_local_snippet_source_remediation.py
  • python -m mypy scripts/snippets/diagnostics.py
  • git diff --check

Signed-off-by: danielporterda <daniel.porter@digitalasset.com>
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