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
This commit is contained in:
1 changed files with 3 additions and 0 deletions
3
tox.ini
3
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
Reference in New Issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.