0.0
No commit activity in last 3 years
No release in over 3 years
Guard::PHPCS automatically runs PHP Code Sniffer when watched files are modified.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Runtime

~> 2.0
 Project Readme

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

  • :executable # default => "phpcs"

Specify alternative path to the phpcs command.

  • :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