- Notifications
You must be signed in to change notification settings - Fork 1.5k
Closed
Labels
Description
Atom's PHPCS linter plugin uses now STDIN to lint on the fly. Someone that uses the Wordpress-VIP ruleset is getting this error Generic.Files.LowercasedFilename.NotFound.
The output of this command cat "path/myfile.php" | phpcs --report=json --standard=WordPress-VIP
is:
{ "totals": { "errors": 1, "warnings": 0, "fixable": 0 }, "files": { "STDIN": { "errors": 1, "warnings": 0, "messages": [ { "message": "Filename \"STDIN\" doesn't match the expected filename \"stdin\"", "source": "Generic.Files.LowercasedFilename.NotFound", "severity": 5, "type": "ERROR", "line": 1, "column": 1, "fixable": false } ] } } }
You'll notice that STDIN is treated the filename... See AtomLinter/linter-phpcs#60