{"repo":"infinum/eightshift-coding-standards","free":true,"listed":false,"github":"https://github.com/infinum/eightshift-coding-standards","clone":"git clone https://github.com/infinum/eightshift-coding-standards.git","description":"Eightshift coding standards for WordPress","language":"PHP","stars":17,"topics":["eightshift","wordpress","phpcs-linter","open-source"],"license":"MIT","category":"self-hosted-apps","readme_excerpt":"Eightshift Coding Standards for WordPress This package contains Eightshift Coding Standards for WordPress for PHP CodeSniffer. The intention of this package is to have a unified code across the WordPress projects we do at Eightshift, and to help with the code review. Installation Composer Composer install is simple. Just run composer require infinum/eightshift-coding-standards or add to your composer.json Copy and modify the configuration file into your project (from the project root) Then, run the following command to run the standards checks in your project: You can also selectively check files or directories by specifying them. Recommendation It's recommended that you install a Composer plugin that will handle the registration of standards with PHP CodeSniffer. - phpcodesniffer-composer-installer Working in IDE Sublime Text 3 To make the sniff work in Sublime Text 3, you need to have sublime linter set up, and add phpcs linter. Then in your settings you need to reference the path to the coding standards. It should look something like this The path depends on where you've installed your standards. Then in the linters user settings you'll need to add in the linters key Or set the standard to point to the phpcs.xml.dist in your root folder ( preferred method ) Note about global installation In your wpcs folder, when adding Eightshift folder. You can clone this repository there, be sure to comment out the part, so that your sniffer won't go looking for that folder. Visual Stud","default_branch":null,"files":null,"tree":[],"storefront":"/r/infinum","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/infinum/eightshift-coding-standards/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}