This repository is one place for common resources needed with static code analyze of Ruby in AirHelp.
In your Gemfile
add:
group :test do
# Configuration for pronto
gem 'ah-feng_shui', git: 'github.com/AirHelp/ah-feng_shui', branch: 'master'
end
Then install the gem locally:
$ bundle
Note: you propably need to install cmake for this to work
$ brew install cmake
Just run pronto using bundler and it will use the correct config:
$ bundle exec pronto run
Create a .rubocop.yml
file in your project and put this on top of:
inherit_gem:
ah-feng_shui:
- config/rubocop_default.yml
Just run pronto using bundler and it will use the correct config:
$ bundle exec rubocop
or
$ bundle exec pronto run -r rubocop
Copy config/config-rails.reek
into your project root directory and tweek as needed.
$ bundle exec reek
or
$ bundle exec pronto run -r reek