Change to startswith

pull/317/head
Alex Groce 5 years ago committed by GitHub
parent d3ba27baea
commit 5468bc1bb1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      slither/detectors/naming_convention/naming_convention.py

@ -98,7 +98,7 @@ Solidity defines a [naming convention](https://solidity.readthedocs.io/en/v0.4.2
if not self.is_mixed_case(func.name):
if func.visibility in ['internal', 'private'] and self.is_mixed_case_with_underscore(func.name):
continue
if (func.name.find("echidna_") == 0) or (func.name.find("crytic_") == 0):
if func.name.startswith("echidna_") or func.name.startswith("crytic_"):
continue
info = "Function '{}' ({}) is not in mixedCase\n"
info = info.format(func.canonical_name, func.source_mapping_str)

Loading…
Cancel
Save