Skip to content

Error when .gitignore has empty lines #40

@beraldoleal

Description

@beraldoleal

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions