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

Fix "method_complexity" issue in checkdigit/luhn.py #11

Open
harens opened this issue Nov 28, 2020 · 0 comments
Open

Fix "method_complexity" issue in checkdigit/luhn.py #11

harens opened this issue Nov 28, 2020 · 0 comments
Labels
codacy Issues picked up by codacy

Comments

@harens
Copy link
Owner

harens commented Nov 28, 2020

Function calculate has a Cognitive Complexity of 12 (exceeds 5 allowed). Consider refactoring.

https://codeclimate.com/github/harens/checkdigit/checkdigit/luhn.py#issue_5fc23e4529cddf0001000020

@harens harens added the codacy Issues picked up by codacy label Nov 28, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
codacy Issues picked up by codacy
Projects
None yet
Development

No branches or pull requests

1 participant