PhpStorm 8 Code Sniffer -> Symfony support

I am totally new to Symfony and therefore following several (video) tutorials, which also show how to setup up a good environment in PhpStorm. What I realize is that in PhpStorm 8 EAP it is not possible to select Symfony in the Inspections section, when setting up PHP Code Sniffer (in the "Preferences"). According to the tutorials I follow, this should be possible.

It does not make any difference, whether the project is defined to use "Symfony" (there is a pop-up asking if Symfony should be used once PhpStorm detects the scripts in question) or not...
I do have the Symfony 2 plugin installed, though.

Can anybody tell me if this is a bug or a new behaviour?

The included screenshot shows that there is no Symfony selectable (which obvioousely seemed to be the case in PhpStorm Version 7?).

Thank you!
Robert



Attachment(s):
Bildschirmfoto 2014-09-17 um 07.46.25.png
4 comments
Comment actions Permalink

What's the ouput of phpcs -i ?

0
Comment actions Permalink

Output = "The installed coding standards are MySource, PEAR, PHPCS, PSR1, PSR2, Squiz and Zend"

Aha! It seems Symfony support has to be installed via phpcs. Sorry, I didn't know that.

----

Then again, which Symfony module should be implemented? Following this article:

http://www.theodo.fr/blog/2014/06/easily-comply-with-symfony2-coding-style-using-codesniffer-and-phpstorm-code-inspection/comment-page-1/#comment-17146

The recommended github repo is no longer available.

Any recommendations which one to use instead? This is the list I found:

https://github.com/search?utf8=%E2%9C%93&q=symfony+coding+standard&type=Repositories&ref=searchresults

Thank you!

0
Comment actions Permalink

Thank you very much for your quick help!!!

Maybe a Symfony pro could quickly join the discussion and recommend a phpcs repo to use.

Greetings!
Robert

0

Please sign in to leave a comment.