Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

eclipse pdt (neon) symfony formatter #249

Open
devbysb opened this issue Oct 14, 2016 · 4 comments
Open

eclipse pdt (neon) symfony formatter #249

devbysb opened this issue Oct 14, 2016 · 4 comments

Comments

@devbysb
Copy link

devbysb commented Oct 14, 2016

Hi,

It is possible to add a file to import for have a good formatter for Symfony standard ? (like PSR-2 for exemple)

Thanks

@zulus
Copy link
Collaborator

zulus commented Oct 14, 2016

Yes, it's possible. What should be changed in compare to built-in PSR ?

@devbysb
Copy link
Author

devbysb commented Oct 14, 2016

I have found this guide for the standard
http://symfony.com/doc/current/contributing/code/standards.html
And there is this tools for test
https://github.com/FriendsOfPHP/PHP-CS-Fixer
php php-cs-fixer.phar fix /path/to/project --level=symfony

I m not an expert that's why if eclipse explain me my error it will be good :)

@devbysb
Copy link
Author

devbysb commented Oct 14, 2016

I have found this but i doesnt work when i import it to eclipse
https://github.com/djoos/Symfony2-coding-standard

@devbysb
Copy link
Author

devbysb commented Oct 14, 2016

Fatal error: Uncaught PHP_CodeSniffer_Exception: Referenced sniff PSR1 does not exist in
when i run phpcs c:\users\toto.p2\pool\plugins\org.phpsrc.eclipse.pti.library.pear_1.2.2.R20120127000000\php\library\PEAR\PHP\CodeSniffer.php:794

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants