Closed tete2soja closed 5 years ago
Hi @Darkitty, thanks for reporting. I missed to specify the PHP Code Sniffer version, it's done now and fixed in v1.0.8. For your information the current supported PHP Code Sniffer version is 2.x. The correct PHP Code Sniffer version is locally installed when using the composer installation way, which I hardly recommend. Please refer to README. Don't hesitate to come back if something remains broken. Best regards
Hi,
Perfect. I use the 2.9.0 of phpcs and works perfectly :heart: (pear install PHP_CodeSniffer-2.9.0
)
I think you should put the 2.9.x requirement in the readme - I couldn't install using composer or any other method due to other issues - installing 2.9.2 of phpcs manually worked. https://github.com/squizlabs/PHP_CodeSniffer/releases/tag/2.9.2
hi @jonnyijapan, thanks for reporting and the suggestion. PHPCS requirement is now added to the readme. May you please explain what was going wrong with the composer install ? thanks
Composer.json has php 5.x something as a requirement. I have 7.x on my Mac and don't think I will change that really.
composer.json has PHP version 5.3.3 as minimal version. I also run PHP 7.x and don't encounter any issue. I'm surprised. So if you get some time to give me more details about error messages, I would appreciate. Thanks
Since I tried adding using my Mac having php 7 it failed out because php version is set to 5 in composer.json. I think that was the error, from what I remember. I guess if I ran the install on the actual service environment it might have worked. However phpcs should not be in production environments for that matter.(?)
Got it working by manually installing phpcs however.
A side note is that it seems like it would be nice if this standard could support the latest phpcs (3.x). The beautifier and/or related extension for vscode seems to have some problems and I suspect it might be because of not using the latest phpcs/beautifier version.
Hi @jonnyijapan thanks for the precision and the suggestion. Unfortunately, I currently have no time to work on this enhancement. I opened an issue #10 as a reminder, but feel free to contribute ;)
Hello,
I'm really happy to find it to check my fuelPHP project. But, we can't run your rules set with PHP_CodeSniffer because something seems change in the base code. Can you update or tell me which version I can use to run the ruleset without errors ?
Thanks in advance :heart: