# func-visibility

# Description

Explicitly mark visibility in function.

# Options

description default
A JSON object with a single property "ignoreConstructors" specifying if the rule should ignore constructors. (Note: This is required to be true for Solidity >=0.7.0 and false for <0.7.0) {"ignoreConstructors":false}

# Example Config

{
  "id": "func-visibility",
  "severity": "WARNING",
  "data": {
    "ignoreConstructors": false
  }
}

# Examples

# Good

Functions explicitly marked with visibility

function b() internal { }
function b() external { }
function b() private { }
function b() public { }
constructor() public { }

# Bad

Functions without explicitly marked visibility

function b() { }

# References