-
Notifications
You must be signed in to change notification settings - Fork 31
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
Check the NPath calculation #35
Comments
I believe that NPath actually needs to consider ternary statements too, so this will need adding. |
I still have a doubt about this one, I think we need to multiply the _npathComplexity for each statement of the function (that's the difference with the cyclomatic). We should find some reference or some result to compare on a given test case. |
Ok, I've re-opened for now then. |
See https://modess.io/npath-complexity-cyclomatic-complexity-explained/ What we should do :
|
See http://codingswag.ghost.io/cyclomatic-and-npath-complexity-explained/.
We should add some test cases for this calculation.
The text was updated successfully, but these errors were encountered: