Created
August 29, 2022 17:31
-
-
Save abumalick/4ebfbf5ea88b9056cea064911740769c to your computer and use it in GitHub Desktop.
Rubocop rails configuration
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# .rubocop.yml | |
# source: https://www.fastruby.io/blog/ruby/code-quality/how-we-use-rubocop-and-standardrb.html | |
require: | |
- standard | |
- rubocop-rails | |
- rubocop-rspec | |
inherit_gem: | |
standard: config/base.yml | |
AllCops: | |
NewCops: enable | |
Exclude: | |
- node_modules/**/* | |
- public/**/* | |
- vendor/**/* | |
Rails: | |
Enabled: true # enable rubocop-rails cops | |
RSpec: | |
Enabled: true # enable rubocop-rspec cops | |
RSpec/DescribeClass: | |
Enabled: false # ignore missing comments on classes | |
Bundler/DuplicatedGem: | |
Enabled: false # ignore duplicated gem errors because we will have duplicated gems when dual booting |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Gemfile | |
group :development, :test do | |
gem "standard", require: false | |
gem "rubocop-rails", require: false | |
gem "rubocop-rspec", require: false | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment