Open pedrohba1 opened 1 year ago
hey @pedrohba1 🙌 ,
cyclomatic complexity is a little more complex to calculate that's why I took the shortcut with statement-based complexity scoring. statements that increase complexity add score to the function (https://github.com/ConsenSys/vscode-solidity-auditor/issues/62).
happy to take a PR if someone want's to take this on.
cheers, tin
In the same way that an UML can be generated, I think it would be great to detect cyclomatic complexities.
I think that somehow detecting Cyclomatic complexities might be good because of the following exempt from wikipedia:
A better explanation of it: https://en.wikipedia.org/wiki/Cyclomatic_complexity#Limiting_complexity_during_development