UNPKG

@slippy-lint/slippy

Version:

A simple but powerful linter for Solidity

24 lines (17 loc) 320 B
# private-vars Enforces that all state variables are private. ## Rule details Examples of **incorrect** code for this rule: ```solidity contract Example { uint public x; uint internal y; } ``` Examples of **correct** code for this rule: ```solidity contract Example { uint private x; uint private y; } ```