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
Unknown Object (File)
Sat, Jun 7, 12:56 AM
Unknown Object (File)
Thu, Jun 5, 5:06 PM
Unknown Object (File)
Fri, May 30, 10:01 AM
Unknown Object (File)
May 7 2025, 2:39 PM
Unknown Object (File)
May 7 2025, 12:58 AM
Unknown Object (File)
May 3 2025, 1:36 PM
Unknown Object (File)
Apr 29 2025, 2:59 PM
Unknown Object (File)
Apr 29 2025, 11:00 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