
For those who have read my Atom and WordPress Coding Standards post, then you should have everything you need when it comes to setting up the editor to evaluate your code with the WordPress Coding Standards. Recently, though, the 0.10.0 release of the coding standards were published on GitHub, and it brings a lot of changes.
If you’re looking to begin upgrading to this new change, there’re a few caveats that you may experience when working with Atom and the WordPress Coding Standards.
They’re easy to address, though.
Atom and the WordPress Coding Standards
There are two packages you need to make sure that you have installed. If you have one, then you likely have the other but, for one reason or another, you may have disabled one.
Linter-PHPCS. This linter plugin for Linter provides an interface to phpcs. It will be used with files that have the “PHP” and “HTML” syntax.
Linter. This provides a top-level API to its consumer that allows them to visualize errors and other kind-of messages, easily.
Note that if you have Linter-PHPCS installed, you’ll need to make sure you have Linter installed, as well (and that it’s enabled, of course).
Source: https://managewp.org/articles/13609/updating-atom-and-the-wordpress-coding-standards
source https://williechiu40.wordpress.com/2016/10/13/updating-atom-and-the-wordpress-coding-standards/
No comments:
Post a Comment