WordPress + PHPCS Boilerplate
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
tools
.eslintignore
.eslintrc
.gitignore
.gitmodules
.jshintignore
.jshintrc
Gruntfile.js
README.md
composer.json
composer.lock
package.json
phpcs.ruleset.xml
test.js

README.md

WordPress + PHPCS Boilerplate

This is a boilerplate to create a new WordPress project with PHPCS and a pre commit hook that will inspect your code in every commit like a psycho.

Install

Clone this repo with git clone --recursive https://github.com/igmoweb/wp-phpcs-boilerplate

If you forgot the --recursive param, use the following command git submodule update --init --recursive

After that:

  • npm install
  • composer install

This will install wp-dev-lib from https://github.com/xwp/wp-dev-lib After that, Grunt will generate a pre-commit hook that will inspect your code in every commit.

Don't want to lint a commit? Use git commit --no-verify