Skip to content

icariohealth/ruby-novu-code-style

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

60 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

novu-style

Novu shared rubocop configuration.

Updating Cops

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.

Installation

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

Usage

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.

Changelog

All changes should be logged in CHANGELOG.md. Also make sure to bump the version (version.rb).

About

gem to Novu Rubocop config

Resources

Stars

Watchers

Forks

Packages

No packages published

Contributors 7