-
Notifications
You must be signed in to change notification settings - Fork 50
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
Return with exit code 0 if no files are found #133
Comments
@jd1378 Thank you for your interesting suggestion. I understand your point. Can you show me some linters that behave so? For example, eslint that has immense popularity exits with code 0 when it found no files.
[memo] OTOH, it exits with 2 when the glob doesn't match any files.
|
You are right, I wasn't thinking about that |
@jd1378 Thank you for your confirmation. BTW, I added a commit f45a1c7 to clarify the current spec. In this case, it should return an error message with an exit code 2. Can you make a PR if you don't mind? Otherwise, it falls under I will get to it someday.
|
I made a pull request, see if it looks good |
Sorry, I misunderstood the current spec opposite 😓 |
Hi,
I'm currently trying to use this on gitlab ci, and currently don't have any files to lint, but I think since the linter exits with non zero the job fails.
isn't it better to exit with 0 when there's nothing to lint ?
here is what I use on gitlab:
The text was updated successfully, but these errors were encountered: