avocado-framework / inspektor

Inspektor code checker
Other
11 stars 17 forks source link

Error when .gitignore has empty lines #40

Open beraldoleal opened 4 years ago

beraldoleal commented 4 years ago

If your .gitignore has one or more empty lines, inspektor will ignore all files and return FAIL:

avocado) [bleal@laptop avocado]$ inspekt lint --exclude ".git"
Pylint disabled: W,R,C,E1002,E1101,E1103,E1120,F0401,I0011
Pylint enabled : W0611
Syntax check FAIL
(avocado) [user@laptop avocado]$ echo $?
1

If I remove the empty lines on .gitignore the result it is as expected:

(avocado) [user@laptop avocado]$ inspekt lint --exclude ".git"
Running 'pylint --help'
Pylint disabled: W,R,C,E1002,E1101,E1103,E1120,F0401,I0011
Pylint enabled : W0611
(avocado) [user@laptop avocado]$ echo $?
0