Page MenuHomePhabricator

Render lint patches which have newlines in a less misleading way
ClosedPublic

Authored by epriestley on Aug 31 2017, 7:25 PM.
Tags
None
Referenced Files
Unknown Object (File)
Thu, Apr 11, 10:01 AM
Unknown Object (File)
Tue, Apr 2, 9:19 AM
Unknown Object (File)
Mar 19 2024, 8:21 AM
Unknown Object (File)
Mar 6 2024, 4:08 AM
Unknown Object (File)
Mar 1 2024, 4:44 PM
Unknown Object (File)
Feb 26 2024, 5:18 PM
Unknown Object (File)
Feb 24 2024, 2:43 PM
Unknown Object (File)
Feb 24 2024, 2:21 PM
Subscribers
None

Details

Summary

Ref T9846. This rewrites the rendering algorithm in a mostly-compatible way and fixes the major issue.

  • Includes test coverage for removing a newline, from T12765.
  • Includes test coverage for mangling an XML tag, from T9846.

This omits two features, which I'll port forward separately:

  • For one-line patches, highlighting the patched section.
  • For zero-line patches, putting a little caret ("^") under the character where the warning occurred.

I'll restore these features in a followup change.

Test Plan

Ran unit tests, linted a few things.

Diff Detail

Repository
rARC Arcanist
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

This revision is now accepted and ready to land.Aug 31 2017, 7:43 PM
This revision was automatically updated to reflect the committed changes.