Skip to content

issue-13: protect review dog against stray xml#15

Closed
alexmohr wants to merge 1 commit intomainfrom
bugfix/xml
Closed

issue-13: protect review dog against stray xml#15
alexmohr wants to merge 1 commit intomainfrom
bugfix/xml

Conversation

@alexmohr
Copy link
Contributor

Summary

If rustfmt produces output that contains <, > i.e. if a line is too long and contains such a char,
reviewdog will fail to parse this because the input is into reviewdog is not sanitized.
To address this 'diff' in a worktree is used instead using the raw rustfmt output

Checklist

  • I have tested my changes locally
  • I have added or updated documentation
  • I have linked related issues or discussions
  • I have added or updated tests

Related

Notes for Reviewers

Alexander Mohr alexander.m.mohr@mercedes-benz.com, Mercedes-Benz Tech Innovation GmbH
Provider Information

@alexmohr alexmohr force-pushed the bugfix/xml branch 4 times, most recently from fc457d3 to 559eea2 Compare February 25, 2026 21:01
remove <, > from output to prevent breaking
the xml parser of reviewdog

Signed-off-by: Alexander Mohr <alexander.m.mohr@mercedes-benz.com>
@alexmohr alexmohr closed this Feb 25, 2026
@alexmohr alexmohr deleted the bugfix/xml branch February 25, 2026 21:36
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