Skip to content

Rule to require leading underscores in private variables #90

Closed
@nventuro

Description

Hi! In OpenZeppelin we use leading underscores for private variables and functions, and internal functions (to both emphasize this attribute, and avoid clashing with public names).

Would it be possible to add a rule to enforce this sort of thing? I currently need to disable some rules, since e.g. I have private variables that are also constant (bytes4 private constant _INTERFACE_ID_ERC165 = 0x01ffc9a7), and the snake case rule doesn't support leading underscores.

Thanks!

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions