{"repo":"humanmade/coding-standards","free":true,"listed":false,"github":"https://github.com/humanmade/coding-standards","clone":"git clone https://github.com/humanmade/coding-standards.git","description":"Human Made coding standards for modern code","language":"PHP","stars":160,"topics":["phpcs","eslint-rules","wordpress","stylelint-config","eslint-config"],"license":null,"category":"self-hosted-apps","readme_excerpt":"Human Made Coding Standards WordPress coding standards, enhanced for modern development. A Human Made project. This is a codified version of the Human Made style guide. We include phpcs, ESLint, and stylelint rules. Contributing We welcome contributions to these standards and want to make the experience as seamless as possible. To learn more about contributing, please reference the CONTRIBUTING.md file. Setup Each ruleset is available individually via Composer or NPM. To install the needed ruleset, use one of the following commands: - PHPCS: composer require --dev humanmade/coding-standards - ESLint: npx install-peerdeps --dev @humanmade/eslint-config@latest - stylelint: npm install --save-dev stylelint @humanmade/stylelint-config Using PHPCS Run the following command to run the standards checks: We use the DealerDirect phpcodesniffer-composer-installer package to handle installed paths for PHPCS when first installing the HM ruleset. If you an error such as ERROR: Referenced sniff \"WordPress-Core\" does not exist , delete the composer.lock file and vendor directories and re-install Composer dependencies. The final . here specifies the files you want to test; this is typically the current directory ( . ), but you can also selectively check files or directories by specifying them instead. You can add this to your Travis YAML file as a test: Excluding Files This standard includes special support for a .phpcsignore file (in the future, this should be built into phpcs itself). Simp","default_branch":null,"files":null,"tree":[],"storefront":"/r/humanmade","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/humanmade/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."}