Menu

#11 Resolve "too many" branches & statements issue

Develop
open
nobody
pylint (4)
2017-12-30
2017-12-30
No

pylint found these issues with Too many branches or statements:

R: 37, 0: Too many branches (19/12) (too-many-branches)
R: 37, 0: Too many statements (68/50) (too-many-statements)

Too many branches (%s/%s) comes up when a function or method has too many branches, making it hard to follow.
Too many statements (%s/%s) comes up when a function or method has too many statements.It should then be split up into smaller functions / methods.

Line 37 is the start of the main() function. May need more investigation if they are still present after the rewrite for argparse and for python v3.

Discussion


Log in to post a comment.