Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add informational detector for high cyclomatic complexity #1591

Closed
montyly opened this issue Jan 11, 2023 · 1 comment
Closed

Add informational detector for high cyclomatic complexity #1591

montyly opened this issue Jan 11, 2023 · 1 comment

Comments

@montyly
Copy link
Member

montyly commented Jan 11, 2023

We should probably flag anything above 11 as risky for smart contracts (see https://en.wikipedia.org/wiki/Cyclomatic_complexity#Interpretation)

We already have a function that computes it: https://github.com/crytic/slither/blob/master/slither/utils/code_complexity.py#L64.

@0xalpharush
Copy link
Contributor

closed by #1618

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants