Page MenuHomePhabricator

Fix a similar lint rendering issue when trimming identical lines out of patches
ClosedPublic

Authored by epriestley on Sep 5 2017, 11:53 PM.
Tags
None
Referenced Files
Unknown Object (File)
Tue, Dec 10, 7:37 PM
Unknown Object (File)
Dec 9 2024, 2:02 PM
Unknown Object (File)
Dec 8 2024, 7:21 PM
Unknown Object (File)
Dec 3 2024, 11:58 AM
Unknown Object (File)
Dec 2 2024, 12:12 PM
Unknown Object (File)
Nov 27 2024, 12:21 PM
Unknown Object (File)
Nov 25 2024, 8:49 AM
Unknown Object (File)
Nov 20 2024, 7:42 PM
Subscribers

Details

Summary

Ref T9846. See PHI48. See D18538 for a similar fix. We can contract the suffix lines too much if, e.g, a newline after another newline is removed. Prevent contraction to fewer than 0 lines.

Test Plan

Added a failing test, made it pass.

Diff Detail

Repository
rARC Arcanist
Branch
remline
Lint
Lint Passed
Unit
Tests Passed
Build Status
Buildable 18307
Build 24636: Run Core Tests
Build 24635: arc lint + arc unit