erlang_ls icon indicating copy to clipboard operation
erlang_ls copied to clipboard

Check for misspelled atoms

Open richcarl opened this issue 3 years ago • 0 comments

Atoms in Erlang are sensitive to being misspelled, an the compiler doesn't have a way of checking this. Dialyzer can often detect it, but that has a long turnaround time.

A way to detect this in erlang_ls would be to check atoms in the source file against the levenshtein distance from known atoms in the code and known standard atoms in the system, and warn if the written atom is unknown but very close to some known atom.

richcarl avatar Feb 02 '21 14:02 richcarl