Guard::PHPCS automatically runs PHP Code Sniffer when watched files are modified
Latest commit 913036f Feb 21, 2012 @pahen pahen First commit.
Permalink
Failed to load latest commit information.
lib/guard First commit. Feb 21, 2012
.gitignore First commit. Feb 21, 2012
Gemfile First commit. Feb 21, 2012
LICENSE First commit. Feb 21, 2012
README.md First commit. Feb 21, 2012
Rakefile First commit. Feb 21, 2012
guard-phpcs.gemspec First commit. Feb 21, 2012

README.md

Guard::PHPCS

This guard will run PHP Code Sniffer for you automatically when files are modified.

Install

Make sure you have guard and phpcs installed.

Install the gem with:

gem install guard-phpcs

Or add it to your Gemfile:

gem 'guard-phpcs'

And then add a basic setup to your Guardfile:

guard init phpcs

Options

  • :standard # default => "Zend"

The name or path of the coding standard to use.

  • :tabs # default => 4

The number of spaces each tab represents.

Example

guard 'phpcs', :standard => 'path/to/MyStandard' do
    watch(%r{.*\.php$})
end