-
Notifications
You must be signed in to change notification settings - Fork 31
Error: "Filename STIN doesn't match the expected filename 'stdin'" #60
Comments
@rdebeasi, could you please run the following command and print the output here?
|
Pretty printed for readability:
I intentionally introduced a style violation and then ran the command again:
The error also appears with the "full" report. Running the same phpcs command without I have phpcs installed through PEAR, for what it's worth. |
Thanks for the pretty print. Both the linter and PHPCS itself seems to work fine. It's just that your standard (WordPress-VIP) expects your PHP filenames to be lowercase. PHPCS seems to assume that STDIN is a filename... Maybe we should file a bug at PHPCS. What do you think, @steelbrain? |
@skyrpex Instead of taking the long way around, I would suggest that we handle both the cases where it's lowercase and where it's uppercase in this package. Opening a bug won't hurt anyone, so opening it should get it fixed in the future. |
So, shall we ignore |
I kinda misread the text above 😅 but yeah. Ignore that error. |
Awesome, thank you so much! I added this change to my local copy of the plugin, and it resolves the problem. |
Nice! Is it still showing other messages? |
Yep, those appear as expected! |
@rdebeasi what version of After further investigation it appears this issue should have been fixed already at the source, which would explain why I haven't been seeing it in 2.3.4. |
Nevermind, the fix was in there because @gsherwood just implemented it. I still have no idea why I couldn't reproduce this initially. |
With the latest version of linter and linter-phpcs, I get the following error above any "real" errors that the linter detects:
Error: "Filename STIN doesn't match the expected filename 'stdin' at line 1 col 1
This happens when I use the "WordPress-VIP" standard that I've installed locally, but not when I use the default standard. Running
phpcs --report=full --standard=WordPress-VIP "path/myfile.php"
does not produce any errors.Running
pear upgrade-all
does not fix the problem.Any idea what might be happening here? Thank you!
The text was updated successfully, but these errors were encountered: