Build Status

Phpcs

Phpcs is a rubby wrapper for Php_CodeSniffer.

Installation

Add this line to your application's Gemfile:

gem 'phpcs'

And then execute:

$ bundle

Or install it yourself as:

$ gem install phpcs

Usage

You should look at test/phpcs_test.rb to understand how to use it.

Phpcs gem is using PSR2 rule. It is not possible for the moment to use another or create custom rules.

TODO

Make it possible to use other rules and create custom ruleset.

Contributing

  1. Fork it ( https://github.com/[my-github-username]/foo/fork )
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create a new Pull Request