ah-feng_shui

This repository is one place for common resources needed with static code analyze of Ruby in AirHelp.

Installation

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

Usage

Just run pronto using bundler and it will use the correct config:

$ bundle exec pronto run

Set up and run specific runners only

Rubocop

Create a .rubocop.yml file in your project and put this on top of:

inherit_gem:
  ah-feng_shui:
    - config/rubocop_default.yml

Usage

Just run pronto using bundler and it will use the correct config:

$ bundle exec rubocop

or

$ bundle exec pronto run -r rubocop

Reek

Copy config/config-rails.reek into your project root directory and tweek as needed.

Usage

$ bundle exec reek

or

$ bundle exec pronto run -r reek