[openstack-dev] [all] add cyclomatic complexity check to pep8 target

Ed Leafe ed at leafe.com
Mon Oct 20 17:24:36 UTC 2014


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 10/16/2014 11:09 PM, Joe Gordon wrote:
> First step in fixing this, put a cap on it: 
> https://review.openstack.org/129125

To get the maximums down to more reasonable levels, I have two patches
that bring the libvirt driver _get_guest_config() from 67 down to 40,
and nova/tests/db/fakes.py stub_out_db_network_api from 57 down to 2.

https://review.openstack.org/#/c/129325/
https://review.openstack.org/#/c/129648/

These are just refactorings that will the maximum set in
https://review.openstack.org/#/c/129125/ to be set to something a little
saner than 68!


- -- Ed Leafe
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.14 (GNU/Linux)

iQIcBAEBAgAGBQJURUVUAAoJEKMgtcocwZqLwXgQAKEdX/Ir5ud6DJIwyBgbBwIW
ScFcfIuNQZmZ5OWx/YGsiTBo9bkuARmknOcQm0TwUtXvKJkjPVzFl+6oSYov+fzT
aF4qsk7tAJaDbCi06YEAxGfy2yqQKO6D5FayTBwXUmMwg1IUQhZXMLhPlkbu65F1
WQDLJeGLXyoBbBQetUgy39jAHeCseIEe0IqR0PWgG/CVoGwRz96orNXCzFFvZPQT
nJ5qN3NFvwmBUha98Axu5rnt/k+Ua4rnbyY4dycn0jcGxFAgt7E086NgLKMLSBMv
ncgFfUzUfTr+dhQcaAaVCj63sgNRAtZIrHwniYsXtVo7o4O1QrKE9gnT0haWmUFb
dkwoNT/tYFVLFIkgIhucoWUf/6csyB4Sm2xd3jFAIPLa+Zmxc6jvBD/YWthjSlHu
rBSSujqAJxJ5jldh4YiCJMyXXp+W6t4wwjV0JDhNYDWyx2vHScp5H2Nf5DjTufad
Jm85h7GsaYLQcqUuaoBqZnwXzLan76DfPoSnfJsMSR3HmNSutMFumb7vEHDoO9Ib
keIGun1SKvM/Th5d+QJ0CMIcxJRD2HHlOtE2te/SB6YVlbTzxxZuykbmEhE/8nHW
ir/JaTCpp96zK0uLScNW3RXeVBymU2YyK4UnL2co0VzLUK/OUhP1FKXmul3aBYp+
JHvMZy8/LsqFr75v20cs
=dszR
-----END PGP SIGNATURE-----



More information about the OpenStack-dev mailing list