Gitcoin is GDPR complaint. Learn more in
Gitcoin's Terms & Conditions.
Check out the Issue Explorer
Looking to fund some work? You can submit a new Funded Issue here.
In the `printer_human_readable` branch we compute the cyclomatic complexity of a function: https://github.com/trailofbits/slither/blob/printer-human-readable/slither/utils/code_complexity.py
We can extend this idea and create a detector that detects complex functions. A complex function could be defined as:
- high cyclomatic complexity (this needs some tests to define what is a high value for a smart contract)
- numerous write to state variables
- numerous external calls
Other metrics are also possible.
- severity: informational