Skip to content

Instantly share code, notes, and snippets.

@rmyers
Created December 17, 2013 15:37
Show Gist options
  • Save rmyers/8006867 to your computer and use it in GitHub Desktop.
Save rmyers/8006867 to your computer and use it in GitHub Desktop.
Cyclomatic Complexity of Trove
$ pip install radon
$ radon cc -anc trove
trove/tests/util/__init__.py
F 84:0 create_dbaas_client - C
trove/tests/unittests/util/matchers.py
M 376:4 XMLMatches._compare_node - C
M 63:4 DictMatches.match - C
trove/taskmanager/models.py
M 144:4 FreshInstanceTasks.create_instance - C
trove/openstack/common/config.py
F 117:0 setup_logging - C
trove/openstack/common/iniparser.py
M 61:4 BaseParser.parse - C
trove/openstack/common/jsonutils.py
F 64:0 to_primitive - D
trove/openstack/common/lockutils.py
F 142:0 lock - C
trove/openstack/common/log.py
F 393:0 _setup_logging_from_conf - C
trove/openstack/common/policy.py
F 451:0 _parse_tokenize - C
trove/openstack/common/processutils.py
F 71:0 execute - C
trove/openstack/common/sslutils.py
F 45:0 is_enabled - C
trove/openstack/common/wsgi.py
M 496:4 XMLDictSerializer._to_xml_node - C
trove/openstack/common/rpc/impl_fake.py
M 60:4 Consumer.call - C
trove/openstack/common/rpc/impl_kombu.py
M 521:4 Connection.reconnect - C
trove/openstack/common/rpc/impl_zmq.py
F 639:0 _call - C
trove/instance/models.py
M 174:4 SimpleInstance.status - C
M 442:4 Instance.create - C
trove/instance/views.py
M 87:4 InstanceDetailView.data - C
trove/common/wsgi.py
M 853:4 XMLDictSerializer._to_xml_node - C
20 blocks (classes, functions, methods) analyzed.
Average complexity: C (13.25)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment