Browse Source

Cap maximal cyclomatic complexity

flake8 has support for cyclomatic complexity (Mccabe) currently our
worst offender has a complexity of 28. So
set our max-complexity to 29 so that don't make things any worse.

https://github.com/flintwork/mccabe

Change-Id: Ib6db9de92b3e6e196008580318a2139976610349
changes/51/129151/2
Andreas Jaeger 7 years ago
parent
commit
3fd52a5a0b
1 changed files with 2 additions and 0 deletions
  1. +2
    -0
      tox.ini

+ 2
- 0
tox.ini View File

@ -41,3 +41,5 @@ show-source = True
ignore = E123,E125,H803
builtins = _
exclude=.venv,.git,.tox,dist,*openstack/common*,*lib/python*,*egg,build,*autogenerate_config_docs/venv,*autogenerate_config_docs/sources
# 28 is currently the most complex thing we have
max-complexity=29

Loading…
Cancel
Save