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
F22732230: D21537.id.diff
Sun, Oct 4, 7:18 AM
F22707266: D21537.id51265.diff
Sat, Oct 3, 8:29 AM
Unknown Object (File)
Jul 29 2026, 11:23 AM
Unknown Object (File)
Jul 29 2026, 4:51 AM
Unknown Object (File)
Jul 4 2026, 11:47 AM
Unknown Object (File)
Jul 4 2026, 11:47 AM
Unknown Object (File)
Jul 2 2026, 3:53 PM
Unknown Object (File)
Jun 25 2026, 9:18 PM
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