[code-quality] Flakes8 help on my short codes.

Ian Stapleton Cordasco graffatcolmingov at gmail.com
Sun May 5 11:54:07 EDT 2019


Flake8 allows you to create a plugin that accepts the parameter
"lines" which will provide you with a list of strings representing all
of the lines in the file (including empty/blank lines). You can then
call "len(lines)" and return an violation if that exceeds 500.

On Sat, May 4, 2019 at 6:47 PM oscar anomnihe <oscaranomnihe at gmail.com> wrote:
>
> Good day,
>
> How can I get flakes8 plugin to yell at me when I exceed 500 lines of code(not individual lines)? I need it to help me not exceed 500 lines of code.
> Kindly advice
>
> Regards
>
> Oscar
>
> Sent from my iPhone
> _______________________________________________
> code-quality mailing list
> code-quality at python.org
> https://mail.python.org/mailman/listinfo/code-quality


More information about the code-quality mailing list