Skip to content
This repository has been archived by the owner on Aug 28, 2020. It is now read-only.

Fix "method_complexity" issue in config.py #105

Open
thinkingserious opened this issue Oct 30, 2017 · 2 comments
Open

Fix "method_complexity" issue in config.py #105

thinkingserious opened this issue Oct 30, 2017 · 2 comments

Comments

@thinkingserious
Copy link
Contributor

Function init_environment has a Cognitive Complexity of 6 (exceeds 5 allowed). Consider refactoring.

https://codeclimate.com/github/sendgrid/open-source-library-data-collector/config.py#issue_59f69b9f7d682f0001000025

@anshuman73
Copy link

Hi, Is there a way to test the cognitive complexity locally ?

@jlax47
Copy link

jlax47 commented Oct 31, 2017

I created a pull request with a small refactor that I think will get around the warning.
#115

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

No branches or pull requests

4 participants