Skip to main content

Dlen checks the length of the functions.

Project description

dlen

dlen for a world with less code.

Check the length of the method (maximum 20 lines) and the class (maximum 500 lines). To keep your code clean and clear you should always try to avoid having too many lines of code. Also recommended to use pep8, isort, pydocstyle pack.

Getting Started

Supports Python 2.7+

Installing

` git clone git@github.com:Endika/dlen.git cd dlen python setup.py install `

Or

` pip install dlen `

Using dlen

` dlen my_script.py `

Output

` [ERROR] 'my_script.py' big_function function too long (25 > 20 lines) [WARN] 'my_script.py' my_function function too long (13 > 12 lines) `

Or

` dlen . dlen /path/project `

Authors

Project details


Release history Release notifications

This version
History Node

0.0.2

History Node

0.0.1

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Filename, size & hash SHA256 hash help File type Python version Upload date
dlen-0.0.2-py2.py3-none-any.whl (5.2 kB) Copy SHA256 hash SHA256 Wheel py2.py3 Sep 7, 2017
dlen-0.0.2.tar.gz (3.8 kB) Copy SHA256 hash SHA256 Source None Sep 7, 2017

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging CloudAMQP CloudAMQP RabbitMQ AWS AWS Cloud computing Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page