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
This commit is contained in:
Andreas Jaeger 2014-10-17 09:01:32 +02:00
parent 5fedeb2af4
commit 3fd52a5a0b

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