Answer the question
In order to leave comments, you need to log in
Why is formatting according to code style standards different in PhpStorm and eclipse?
Good afternoon.
I want to implement a code style in the team, by and large it is ready for anyone, but PSR, Zend and Pear in the PhpStorm and Eclipse editors format the same file in different ways.
How so, they must do according to the standards or am I not understanding something?
If you have implemented code style on your project, can you share your experience, what standard do you use and how do you solve the problem of supporting it with software?
It is not advisable for me to sit and manually configure each editor, they should support standards through plugins at most or not implement them at all.
Answer the question
In order to leave comments, you need to log in
PSR + additional agreements that do not conflict with PSR.
Pear - the standard, as well as the lib approach itself, is already outdated, you should not stir it up.
With the introduction of CS - there can be no democracy. If the code does not pass the test, it is not included.
Code review post factum is a practice that will lead nowhere, do not repeat other people's mistakes.
As for the IDE: it doesn't matter what the programmer writes in, even in vim. If the check through PHP_CodeSniffer fails, the branch will not be merged until the fix, alas, the only way. Otherwise, a loaded taiga device will be placed on your style code.
The same phpStorm has a very flexible CS configuration system, which can be easily distributed throughout the company.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question