Query module HapaxLegomenon

name
Potentially misspelled property or variable name
description
A property or variable is only mentioned once, but there is one with the same name in different capitalization that is mentioned more than once, suggesting that this may be a typo.
kind
problem
problem.severity
warning
id
js/wrong-capitalization
tags
reliability
precision
low
deprecated
This query is prone to false positives. Deprecated since 1.17.

Imports

javascript

Provides classes for working with JavaScript programs, as well as JSON, YAML and HTML.

Predicates

candidateSpellingCount

Gets the number of occurrences of m, which is the same as hapax except for capitalization, ensuring that it occurs at least twice.

countOccurrences

Gets the number of identifiers and string literals that refer to name.

Classes

Hapax

An access to an undeclared variable or property that is only referenced once in the entire program.

UndeclaredGlobal

An access to a global variable that is neither declared nor covered by a linter directive, and that is only mentioned once in the entire program.

UndeclaredPropertyAccess

An access to a property that is covered neither by a JSLint property declaration nor by an externs declaration, and that is only mentioned once in the entire program.