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
.
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
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
Don't forget to include the following in your configuration file:
inherit_mode:
merge:
- Exclude
- Prefixes
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.
rubocop-nosolosoftware uses Semantic Versioning 2.0.0
Copyright (c) 2019-2020 NoSoloSoftware Network S.L. - Released under MIT license.