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
F18869153: D21537.id.diff
Nov 4 2025, 10:07 AM
F18826237: D21537.id51266.diff
Oct 24 2025, 3:06 AM
F18791674: D21537.id51265.diff
Oct 16 2025, 4:43 PM
F18791050: D21537.id51269.diff
Oct 16 2025, 12:09 AM
F18790053: D21537.id.diff
Oct 15 2025, 12:17 PM
F18630947: D21537.diff
Sep 16 2025, 1:43 PM
F18571529: D21537.id51269.diff
Sep 10 2025, 5:07 AM
F18571527: D21537.id51266.diff
Sep 10 2025, 5:07 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