Page MenuHomePhabricator

Correct lint rendering when patching trailing whitespace in files
ClosedPublic

Authored by epriestley on Sep 20 2017, 7:02 PM.
Tags
None
Referenced Files
Unknown Object (File)
Fri, Jan 3, 5:06 AM
Unknown Object (File)
Thu, Jan 2, 1:45 AM
Unknown Object (File)
Tue, Dec 31, 3:22 PM
Unknown Object (File)
Sun, Dec 29, 6:38 PM
Unknown Object (File)
Fri, Dec 27, 4:27 PM
Unknown Object (File)
Thu, Dec 19, 6:51 AM
Unknown Object (File)
Mon, Dec 16, 8:06 AM
Unknown Object (File)
Dec 6 2024, 10:04 PM
Subscribers
None

Details

Summary

Ref PHI48. If a patch removes all of the lines at the end of a file, we can get some array index errors.

Test Plan

Added failing test, made it pass.

Diff Detail

Repository
rARC Arcanist
Branch
extrawhite
Lint
Lint Passed
Unit
Tests Passed
Build Status
Buildable 18506
Build 24924: Run Core Tests
Build 24923: arc lint + arc unit

Event Timeline

This revision is now accepted and ready to land.Sep 20 2017, 7:04 PM
  • Be a little more clever so the test case does not need to have trailing whitespace itself.
  • Also, this made a lint description more concise.
This revision was automatically updated to reflect the committed changes.