-
Notifications
You must be signed in to change notification settings - Fork 87
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
Misleading error message when no input files are detected #104
Comments
+1 |
This same symptom occurs if the user provides a path to a specific existing file but that file is ignored via any of the ignore mechanisms. My two cents is that either of these two situations should be a 0 exit code -- the tool has considered all 0 files and none of them had any lint issues |
This is related to #370 but it seems like if the user explicity provides a path to a file to lint, and the file doesn't exist, then we should exit with |
This totally got me and I've spent quite a bit of time trying to understand why the glob was not working. |
Continued from markdownlint#304
markdownlint --fix '**/*.md'
When running this command in a project without any md files, it gives me confusing error:
It was my mistake to forget to add a readme file, but I think in this case the output should be something more specific, like
No valid files found
. Now it suggests I entered invalid command.The text was updated successfully, but these errors were encountered: