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 <[email protected]> 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: [email protected] 
> 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 
> [email protected] 
> http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-infra 
>
_______________________________________________
OpenStack-Infra mailing list
[email protected]
http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-infra

Reply via email to