func-name-mixedcase

August 12, 2025 ยท View on GitHub

Recommended Badge Category Badge Default Severity Badge warn

The {"extends": "solhint:recommended"} property in a configuration file enables this rule.

Description

Function name must be in mixedCase.

Options

This rule accepts a string option for rule severity. Must be one of "error", "warn", "off". Defaults to warn.

Example Config

{
  "rules": {
    "func-name-mixedcase": "warn"
  }
}

Notes

  • SNAKE_CASE allowed only in interfaces when matching constant/immutable getter signatures.
  • Return must be elementary, enum, UDVT, or contract/interface.

Examples

This rule does not have examples.

Version

This rule was introduced in Solhint 2.0.0-alpha.0

Resources