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:
Joe Gordon
2014年10月16日 21:04:08 -07:00
parent 915918aea6
commit 95681b98f7

View File

@@ -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
openstack/nova
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.

The note is not visible to the blocked user.