Skip to content

Instantly share code, notes, and snippets.

@saboyutaka
Last active December 21, 2015 15:19
Show Gist options
  • Save saboyutaka/6325803 to your computer and use it in GitHub Desktop.
Save saboyutaka/6325803 to your computer and use it in GitHub Desktop.
Rubocop settings for Rails
# See default settings https://github.com/bbatsov/rubocop/blob/master/config/enabled.yml
AllCops:
Includes:
- '**/Rakefile'
Excludes:
- 'vendor/bundle/**/*'
- 'db/schema.rb'
- 'config/initializers/secret_token.rb'
- 'spec/support/share_db_connection.rb'
# Limit lines to 120 characters.
LineLength:
Enabled: true
Max: 120
# Avoid methods longer than 50 lines of code
MethodLength:
Enabled: true
Max: 50
# Add underscores to large numeric literals to improve their readability.
NumericLiterals:
Enabled: false
# Prefer ' strings when you don't need string interpolation or special symbols.
StringLiterals:
Enabled: false
# Document classes and non-namespace modules.
Documentation:
Enabled: false
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment