Skip to content

Display line diffs in dsl --verify error messages#2592

Draft
dejmedus wants to merge 1 commit intomainfrom
jb-add-diff-output-to-error-msg
Draft

Display line diffs in dsl --verify error messages#2592
dejmedus wants to merge 1 commit intomainfrom
jb-add-diff-output-to-error-msg

Conversation

@dejmedus
Copy link
Copy Markdown
Contributor

Motivation

When tapioca dsl --verify detects out of date RBI files, the error message lists which files were added, removed, or changed. We could make it easier to visualize these changes by including the line diff output in the error message

Output example tapioca-verify-diff

Implementation

This PR diffs updateds file against the originals during RBI verification and then includes it in the error message when the diff is 50 lines or less

Tests

  • updated verify tests to include line diff
  • added a test for multi file changes and changes longer than 50 lines

When `dsl --verify` detects out of date RBI files,
the error message lists which files were added,
removed, or changed. We could make it easier to
understand what has changed by including the line
diff output in the error message as well

This commit grabs the line diff output during RBI
verification and includes it in the error message
when the diff is 50 lines or less
@dejmedus dejmedus added the enhancement New feature or request label Apr 10, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant