Page MenuHomePhabricator

When lint identifies an unknown symbol, attempt to correct it if it is miscapitalized
ClosedPublic

Authored by epriestley on Feb 3 2021, 4:54 PM.
Tags
None
Referenced Files
F15486308: D21537.id51266.diff
Thu, Apr 10, 6:27 AM
F15458798: D21537.diff
Mon, Mar 31, 7:26 AM
F15447877: D21537.id51265.diff
Fri, Mar 28, 2:08 AM
F15446005: D21537.id51269.diff
Thu, Mar 27, 4:54 PM
F15444160: D21537.id51266.diff
Thu, Mar 27, 8:12 AM
F15441290: D21537.id.diff
Wed, Mar 26, 5:21 PM
F15434437: D21537.diff
Tue, Mar 25, 3:40 AM
Unknown Object (File)
Feb 23 2025, 9:44 AM
Subscribers
None

Details

Summary

Ref T13598. If you spell a symbol like "Polygon" as "PoLyGoN", you currently get an "unknown symbol" lint message. However, provided "Polygon" is a valid symbol, we can unambiguously correct the spelling of the symbol.

Note that this patch can only correct the spelling of application symbols, not builtin symbols (since none of the library maps contain builtin symbols).

Test Plan

Screen Shot 2021-02-03 at 8.50.07 AM.png (931×1 px, 388 KB)

Diff Detail

Repository
rARC Arcanist
Lint
Lint Not Applicable
Unit
Tests Not Applicable