[OpenStack-Infra] Should we enforce check for lengthy functions or module

Monty Taylor mordred at inaugust.com
Sun Dec 22 19:55:58 UTC 2013


Flake8 has a built-in check, called McCabe, which checks for complexity (how many levels if nesting deep) It's a bit of a disaster trying to run it right now... But I'd start with trying to get that going.

On Dec 22, 2013 1:22 PM, Denny Zhang <denny at unitedstack.com> wrote:
>
> hi Stackers 
>
> When I go through the implementation of various OpenStack projects, I used to find: 
> 1. lengthy function, which may be several hundreds. 
> 2. lengthy module, which may be several thousands 
>
> Dividing lengthy code into small segments can help others to understand it. 
>
> Should we enforce the check in gate check pipeline of OpenStack Infra's jenkins? 
>
> -- 
> Denny Zhang(张巍) 
> Email: filebat.mark at gmail.com 
> Github: https://github.com/DennyZhang 
> Blog: http://blog.ec-ae.com/ 
>
> When you blame others, you give up your power to change 
>
> O(∩_∩)O 
>
> _______________________________________________ 
> OpenStack-Infra mailing list 
> OpenStack-Infra at lists.openstack.org 
> http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-infra 
>


More information about the OpenStack-Infra mailing list