-
-
Notifications
You must be signed in to change notification settings - Fork 292
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
Show error if run on a single file that's ignored #238
Comments
Makes sense. Wanna try doing a pull request? |
On a single file, or all files that is directly called (i.e. not globbed) using the CLI? |
I would open a PR but I have no clue where to put this type of check. |
@kevva We could do it for all specified non-glob inputs. The only way to really detect whether something is a glob or a direct file reference is to |
@issuehuntfest has funded $30.00 to this issue. See it on IssueHunt |
@Norris1z has submitted a pull request. See it on IssueHunt |
We only need to test that pattern is a file and check if it's ignored. This should be very easy to fix now, because I've marked ignored file in report Line 81 in 5ff95ad
|
When using xo on a single file no errors are shown if said file is ignored in xo's settings.
The text was updated successfully, but these errors were encountered: