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

test cyclomatic complexity #230

Closed
wants to merge 5 commits into from
Closed

test cyclomatic complexity #230

wants to merge 5 commits into from

Conversation

tomkukral
Copy link
Contributor

Run mccabe to check cyclomatic complexity.

@@ -19,7 +19,7 @@ jobs:
- pip install -e ".[test]"
- pip check
script:
- python3 -m flake8
- python3 -m flake8 --max-complexity 10
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we can increase amount if necessary ) just for notice
This practice was adopted by the NIST Structured Testing methodology, with an observation that since McCabe's original publication, the figure of 10 had received substantial corroborating evidence, but that in some circumstances it may be appropriate to relax the restriction and permit modules with a complexity as high as 15.

Copy link
Contributor Author

@tomkukral tomkukral Feb 27, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Most of the code can by easily refactored ... except Cluster.topology_data which is a nightmare and have 22.

@tomkukral tomkukral changed the title test cyclomatic completixy test cyclomatic complexity Mar 1, 2018
@naumvd95 naumvd95 added the backlog delayed fixes/features label Jul 2, 2018
@tomkukral tomkukral closed this Sep 25, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backlog delayed fixes/features P3 - nice to have
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants