klen / pylama

Code audit tool for python.
MIT License
1.05k stars 99 forks source link

Fix crash in case of empty file in directory #217

Closed mutt0-ds closed 2 years ago

mutt0-ds commented 2 years ago

I have added a simple check for the issue #214, that skips the regex check SKIP_PATTERN when there are no lines to analyze.

I think that the fact that there is an empty file in the directory should be flagged as en error, but i would like to hear your opinion first before working on it.

Thanks for your work :)

klen commented 2 years ago

@mutt0-ds Thank you!