benmatselby / sublime-phpcs

🔍 PHP CodeSniffer, PHP Coding Standard Fixer, Linter, and Mess Detector Support for Sublime Text
Other
812 stars 126 forks source link

Hi I got a this error message #145

Closed pipecivil closed 8 years ago

pipecivil commented 8 years ago

[Phpcs] ERROR: option "- " not known.

problem thing is Writing file /Volumes/Myimportant/web/www/index.php with encoding UTF-8 [Phpcs] /usr/local/bin/phpcs -l -d display_errors=On /Volumes/Myimportant/web/www/index.php [Phpcs] /usr/local/bin/phpcs -l -d display_errors=On /Volumes/Myimportant/web/www/index.php [Phpcs] cwd: /Users/mac [Phpcs] ERROR: option "- " not known.

in console not problem only problem on the sublime text2

other line is good [Phpcs] /usr/local/bin/phpcs --report=checkstyle -n --standard=/Users/mac/pear/share/pear/PHP/CodeSniffer/Standards/MySource/ruleset.xml /Volumes/Myimportant/web/www/index.php [Phpcs] /usr/local/bin/phpcs --report=checkstyle -n --standard=/Users/mac/pear/share/pear/PHP/CodeSniffer/Standards/MySource/ruleset.xml /Volumes/Myimportant/web/www/index.php [Phpcs] cwd: /Users/mac [Phpcs] <?xml version="1.0" encoding="UTF-8"?>

what's wrong with me
benmatselby commented 8 years ago

@pipecivil Your config is incorrect. Look at this line:

[Phpcs] /usr/local/bin/phpcs -l -d display_errors=On /Volumes/Myimportant/web/www/index.php

You are using phpcs with the php linting options. Update your php path and it should work fine. There are example configs in the repo

pipecivil commented 8 years ago

thank you very much !!