Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error when .gitignore has empty lines #40

Open
beraldoleal opened this issue Nov 12, 2019 · 0 comments
Open

Error when .gitignore has empty lines #40

beraldoleal opened this issue Nov 12, 2019 · 0 comments

Comments

@beraldoleal
Copy link
Member

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant