Skip to content

Instantly share code, notes, and snippets.

@scottmatthewman
Created October 7, 2019 09:31
Show Gist options
  • Save scottmatthewman/5a336a714665ff625de21e5107e48e9c to your computer and use it in GitHub Desktop.
Save scottmatthewman/5a336a714665ff625de21e5107e48e9c to your computer and use it in GitHub Desktop.
My minimalist .rubocop.yml for new Rails projects
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
@scottmatthewman
Copy link
Author

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment