From 95681b98f73bea96e53a23cecad3b93bddf1c2b7 Mon Sep 17 00:00:00 2001 From: Joe Gordon Date: Thu, 16 Oct 2014 21:04:08 -0700 Subject: [PATCH] Put a cap on our cyclomatic complexity flake8 has support for cyclomatic complexity (Mccabe) currently our worst offender has a complexity of 67 (25 is considered very bad). So set our max-complexity to 68 so we at least don't make things any worse. This is the first step in bringing this number down to 25 or so. https://github.com/flintwork/mccabe Change-Id: I5117ca58ad28888e24c16251aa5e92084ead97ca --- tox.ini | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tox.ini b/tox.ini index 2a45b1d5cbca..c5a578e382ee 100644 --- a/tox.ini +++ b/tox.ini @@ -60,6 +60,9 @@ commands = python setup.py build_sphinx ignore = E121,E122,E123,E124,E125,E126,E127,E128,E129,E131,E251,H405,H803,H904 exclude = .venv,.git,.tox,dist,doc,*openstack/common*,*lib/python*,*egg,build,tools +# 67 is currently the most complex thing we have +# TODO(jogo): get this number down to 25 or so +max-complexity=68 [hacking] local-check-factory = nova.hacking.checks.factory