Skip to content

id-denylist

Allows you to specify a list of forbidden identifiers.

Examples of incorrect code for this rule:

contract Example {
uint public I;
uint public l;
uint public O;
}

This rule has an array option. By default, the following identifiers are disallowed: ["I", "l", "O"].

You can customize the list of disallowed identifiers by providing your own array of strings:

"id-denylist": ["error", ["I", "l", "O", "zero", "one", "two"]]