Last active
December 21, 2015 15:19
-
-
Save saboyutaka/6325803 to your computer and use it in GitHub Desktop.
Rubocop settings for Rails
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
# 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