- Notifications
You must be signed in to change notification settings - Fork 1.5k
Labels
Description
Information
VIM version
VIM - Vi IMproved 8.2 (2019 Dec 12, compiled Apr 26 2020 17:02:50) Included patches: 1-647 Operating System: Ubuntu 19.10
Terminal: Alacritty + tmux
What went wrong
We have a custom path set for the phpcs config and since the phpcs command was update in this commit it hasn't worked.
The issue can be worked around by using the default name and having phpcs search up the directory tree for the config file as mentioned in #2533. However, we also have some custom sniffs that are loaded relative to the working directory and there is no way around that as far as I can tell :(
Reproducing the bug
- Set
let g:ale_php_phpcs_standard = './ruleset.xml' - Make Ale do PHP linting
:ALEInfo
(finished - exit code 3) ['/bin/bash', '-c', 'cd ''/home/jacek/Desktop/development/the/real/folder' && ''/home/jacek/Desktop/development/.../'vendor/bin/phpcs'' -s --report=emacs --stdin-path=''/home/jacek/Desktop/development/.../file.php'' --standard=''./ruleset.xml'' < ''/tmp/vA6usb1/104/file.php'''] <<<OUTPUT STARTS>>> ERROR: the "./ruleset.xml" coding standard is not installed. The installed coding standards are PSR1, PEAR, MySource, Squiz, Zend, PSR2 and PSR12 <<<OUTPUT ENDS>>> I changed a few of the paths there, they were valid and pointed to the correct files (except the ruleset) in actual output.
Reactions are currently unavailable