Sub::Inspector

Inspired by

reinteractive-style percy-style meowcop

Personal rubocop style config for ruby gems.

[rubocop] https://github.com/bbatsov/rubocop

Installation

Or, for a Ruby library, add this to your gemspec:

spec.add_development_dependency 'sub-inspector'

And then run:

$ bundle install

Usage

Create a .rubocop.yml with the following directives:

inherit_gem:
  sub-inspector:
    - default.yml

Now, run:

$ bundle exec rubocop

You do not need to include rubocop directly in your gemspec. sub-inspector will include a specific version of rubocop and rubocop-rspec that is shared across all projects.