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
- Fork it ( https://github.com/[my-github-username]/foo/fork )
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create a new Pull Request