Novu shared rubocop configuration.
Open a pull request with the proposed changes and ask for reviews in other teams.
Remember that cops are ordered alphabetically in default.yml
and avoid adding paths that only make sense for a particular repository.
Add this line to your application's Gemfile:
group :test, :development do
gem 'novu-style'
end
Or, for a Ruby library, add this to your gemspec:
spec.add_development_dependency 'novu-style'
And then run:
$ bundle install
Create a .rubocop.yml
in the repository with the following configuration:
inherit_gem:
novu-style:
- default.yml
Additionally you can add new extensions rubocop-rspec
and rubocop-rake
to your project in the local rubocop.yml
file
Now, run:
$ bundle exec rubocop
You do not need to include rubocop directly in your application's dependences. Novu-style will include a specific version of rubocop
that is shared across all projects.
All changes should be logged in CHANGELOG.md. Also make sure to bump the version (version.rb).