Freistil::Rubocop
This gem contains the shared Rubocop style definitions for the freistil IT team.
Installation
Add this line to your application's Gemfile:
group :test, :development do
gem 'freistil-rubocop'
endOr, for a Ruby library, add this to your gemspec:
spec.add_development_dependency 'freistil-rubocop'And then run:
bundle installUsage
Create a .rubocop.yml with the following directives:
inherit_gem:
freistil-rubocop:
- default.ymlNow, run:
bundle exec rubocopYou do not need to include rubocop directly in your application's dependencies. freistil-rubocop will include a specific version of rubocop and rubocop-rspec that is shared across all our projects.