Skip to main content

Dlen checks the length of the functions.

Project description


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+


` git clone cd dlen python install `


` pip install dlen `

Using dlen

` dlen `


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


` dlen . dlen /path/project `


Project details

Download files

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

Files for dlen, version 0.0.1
Filename, size File type Python version Upload date Hashes
Filename, size dlen-0.0.1-py2.py3-none-any.whl (5.2 kB) File type Wheel Python version py2.py3 Upload date Hashes View
Filename, size dlen-0.0.1.tar.gz (3.8 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page