pull/1378/head
Josselin Feist 2 years ago
parent aa68cacdce
commit 6571ada9a2
  1. 8
      slither/detectors/naming_convention/naming_convention.py

@ -89,14 +89,10 @@ Solidity defines a [naming convention](https://solidity.readthedocs.io/en/v0.4.2
if func.is_constructor: if func.is_constructor:
continue continue
if not self.is_mixed_case(func.name): if not self.is_mixed_case(func.name):
if ( if func.visibility in [
func.visibility
in [
"internal", "internal",
"private", "private",
] ] and self.is_mixed_case_with_underscore(func.name):
and self.is_mixed_case_with_underscore(func.name)
):
continue continue
if func.name.startswith(("echidna_", "crytic_")): if func.name.startswith(("echidna_", "crytic_")):
continue continue

Loading…
Cancel
Save