You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
gsherwood
changed the title
The specified junit report file path points to a non-existent directory
Can't specify a report file path using the tilde shortcut
Jan 7, 2020
None of the CLI arguments used to set report file paths supported the tilde shortcut properly. They would have worked if you the files you specified already existed, but would always show an invalid directory error if not. I've fixed this now.
I also found and fixed a problem with --report-junit and the toher report-specific file path arguments where specifying a directory would throw a PHP error inside of a friendlier PHPCS error.
Thanks for reporting this. The fix will be in 3.5.4
When I use the following command
mkdir ~/foo && vendor/bin/phpcs --report=junit --report-junit="~/foo/phpcs.xml"
I get the error
ERROR: The specified junit report file path "~/foo/phpcs.xml" points to a non-existent directory
But the directory exists when I check using
ls -l ~/
What am I doing wrong?
The text was updated successfully, but these errors were encountered: