AllCops:
|
|
Include:
|
|
- '**/*.rake'
|
|
- Rakefile
|
|
- Gemfile
|
|
Exclude:
|
|
- 'bin/**/*'
|
|
- 'node_modules/**/*'
|
|
# Automatically generated by Rails
|
|
- db/schema.rb
|
|
# Automatically generated by the squasher gem
|
|
- 'db/migrate/*_init_schema.rb'
|
|
|
|
# Enable the Rails cops
|
|
Rails:
|
|
Enabled: true
|
|
|
|
# We have to have UTF-8 in several of our comments, because we're returning
|
|
# UTF-8 data. It's fine.
|
|
AsciiComments:
|
|
Enabled: false
|
|
|
|
# Lots of these metrics are being taken care of by CodeClimate, I don't need
|
|
# Rubocop warning me about them, too.
|
|
Metrics/AbcSize:
|
|
Enabled: false
|
|
Metrics/CyclomaticComplexity:
|
|
Enabled: false
|
|
Metrics/PerceivedComplexity:
|
|
Enabled: false
|
|
|
|
# Related: Inch and Yardstick take care of our documentation completeness.
|
|
Style/Documentation:
|
|
Enabled: false
|
|
|
|
# FIXME: These are bad. Reduce them to the defaults soon.
|
|
MethodLength:
|
|
Max: 150
|
|
Metrics/ClassLength:
|
|
Max: 250
|
|
Metrics/BlockLength:
|
|
Max: 100
|
|
|
|
# FIXME: This is bad.
|
|
LineLength:
|
|
Enabled: false
|