Talkable shared style configs.
Add this line to your application's Gemfile:
group :test, :development do
gem "talkable-style"
end
Or, for a Ruby library, add this to your gemspec:
spec.add_development_dependency "talkable-style"
And then run:
$ bundle install
Create a .rubocop.yml
with the following directives:
inherit_gem:
talkable-style:
- default.yml
Now, run:
$ bundle exec rubocop
You do not need to include rubocop directly in your application's dependencies. Talkable-style will include a specific version of rubocop
and rubocop-*
that is shared across all projects.