You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I look at the page: https://developers.elementor.com/getting-started/ it understandably recommends using phpcs using the WordPress coding standard but when I run phpcs on the Ocean Extra source I see quite a lot of violations.
Many are fairly trivial e.g.:
Line indented incorrectly; expected at least 3 tabs, found 0
But with so many its hard to see if there are more major ones. I’m using the current WordPress rules as far as I can see. Do you know where I can I find a phpcs rule set which matches what the Ocean extra team are doing in practice? Any pointers would be much appreciated.
The text was updated successfully, but these errors were encountered:
Apologies for the belayed reply, we've somehow missed your comment.
Happy to clarify everything.
At the current moment, we don't have any published coding standards, mostly because no one will ever build a plugin based on our plugins :) However, I have added your idea to our features request list and we will see what can be done about it in the future.
As for the coding standards, OceanWP follows WordPress coding standards. And although PHPCS may be a helpful guide, human factor plays the most significant role here. Not because PHPCS has a lot of issues, but because most of these warnings are false positive and they do come up when "mixing" PHP and HTML for example. If you examine the code "by hand", you will see for yourself :)
Of course, there may be some things we've overlooked and we will do our best to fix everything that needs to be fixed.
If you have any other questions, please let me know
When I look at the page: https://developers.elementor.com/getting-started/ it understandably recommends using phpcs using the WordPress coding standard but when I run phpcs on the Ocean Extra source I see quite a lot of violations.
Many are fairly trivial e.g.:
Line indented incorrectly; expected at least 3 tabs, found 0
But with so many its hard to see if there are more major ones. I’m using the current WordPress rules as far as I can see. Do you know where I can I find a phpcs rule set which matches what the Ocean extra team are doing in practice? Any pointers would be much appreciated.
The text was updated successfully, but these errors were encountered: