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
Is it possible to get the cyclomatic complexity value as an output? #48
Comments
If you use:
then at least you will obtain the complexities for all the functions. You would have to parse the output to compute a proper report from this. |
I think it should be considered to be built into the linter. The team will take a look at it. |
Hello @avinashmaheshjoshi. There's no way right now to do this, except using the workaround that @hiqua mentioned. And since solhint is a linter, I don't think this feature would make sense. Either something is a warning or an error, or it isn't. It would be nice to have a different tool to do this, though. The code that does this is not too complex. Look at |
One could argue that it still belongs there, as part of a general report about the code quality, cf pylint as an example of a linter that goes a bit beyond warnings or errors (e.g. it can grade Python code). |
Closing this since we probably won't do this. |
Hi, I wish to calculate the cyclomatic complexity score for the contracts I'll be using. Is it possible to get that value?
As I understand, here we are just checking with a "max" number?
The text was updated successfully, but these errors were encountered: