Skip to content

nosolosoftware/rubocop-nosolosoftware

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

rubocop-nosolosoftware Gem

Common Rubocop config for all our projects.

Please if you are using rubocop < 1.0 use the branch 0.x and rubocop-nosolosoftware < 1.0.

Installation

Add this line to your application's Gemfile:

gem 'rubocop-nosolosoftware', require: false

And then execute:

$ bundle

Or install it yourself as:

$ gem install rubocop-nosolosoftware

Usage

Include the following in your .rubocop.yml

For Ruby:

inherit_gem:
  rubocop-nosolosoftware: rubocop-default.yml

For Rails:

inherit_gem:
  rubocop-nosolosoftware:
    - rubocop-default.yml
    - rubocop-rails.yml

Optional Rake, Faker and Rspec rules:

inherit_gem:
  rubocop-nosolosoftware:
    - rubocop-default.yml
    - rubocop-rails.yml
    - rubocop-rake.yml
    - rubocop-rspec.yml
    - rubocop-faker.yml

For Mongoid projects:

inherit_gem:
  rubocop-nosolosoftware:
    - rubocop-default.yml
    - rubocop-rails.yml
    - rubocop-rake.yml
    - rubocop-rspec.yml
    - rubocop-faker.yml
    - rubocop-mongoid.yml

Inheritance of array attributes

Don't forget to include the following in your configuration file:

inherit_mode:
  merge:
    - Exclude
    - Prefixes

Contributing

Bug reports and merge requests are welcome on Github at https://github.com/nosolosoftware/rubocop-nosolosoftware using GitHub Flow. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the Contributor Covenant code of conduct.

Versioning

rubocop-nosolosoftware uses Semantic Versioning 2.0.0

License

Copyright (c) 2019-2020 NoSoloSoftware Network S.L. - Released under MIT license.