Skip to content

Guard::PHPCS automatically runs PHP Code Sniffer when watched files are modified

License

Notifications You must be signed in to change notification settings

EricHogue/guard-phpcs

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Guard::PHPCS automatically runs PHP Code Sniffer when watched files are modified

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Ruby 100.0%