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


Download files

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

Source Distribution

dlen-0.0.2.tar.gz (3.8 kB view details)

Uploaded Source

Built Distribution

dlen-0.0.2-py2.py3-none-any.whl (5.2 kB view details)

Uploaded Python 2Python 3

File details

Details for the file dlen-0.0.2.tar.gz.

File metadata

  • Download URL: dlen-0.0.2.tar.gz
  • Upload date:
  • Size: 3.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for dlen-0.0.2.tar.gz
Algorithm Hash digest
SHA256 564677ce1dfeac4a753c0ab6a94dd0181fa1f79e6ca81fc5ac5b39ed0a9a0bbb
MD5 269da4c50f3395d8fe38d71beab94ba6
BLAKE2b-256 2e35ae27f510a045d3ccb133c6ab28ec476e5c98327314b9afa576f70f8dd3ee

See more details on using hashes here.

File details

Details for the file dlen-0.0.2-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for dlen-0.0.2-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 c4cd58ea995d81539b0d783d562b7c15a7004ba0da9dea450d94a71a618a55e8
MD5 78c47b3597d47553d85064d8dacc4d41
BLAKE2b-256 fe60c9013871e43adb548bab34a45242f4c8b3194ae322714d345de01441951b

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page