Created
October 7, 2019 09:31
-
-
Save scottmatthewman/5a336a714665ff625de21e5107e48e9c to your computer and use it in GitHub Desktop.
My minimalist .rubocop.yml for new Rails projects
This file contains 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
require: | |
# Ensure these gems are in your Gemfile | |
- rubocop-performance | |
- rubocop-rails | |
- rubocop-rspec | |
AllCops: | |
# Only exclude files that are auto-generated, and which could | |
# be regenerated at any time. | |
Exclude: | |
- bin/bundle | |
- db/schema.rb | |
Metrics/MethodLength: | |
ExcludedMethods: | |
- change # for migrations | |
Style/Documentation: | |
Enabled: false |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I'm in the process of building a greenfield Rails API+GraphQL project, and have set myself the challenge of keeping my RuboCop configuration as small as possible. As I expand the project, this file may grow in size: but I'm challenging myself to work within the tight constraints RuboCop's defaults give me, and not relaxing those constraints too quickly.