1
0
Fork 0
mirror of https://github.com/thoughtbot/factory_bot.git synced 2022-11-09 11:43:51 -05:00
thoughtbot--factory_bot/.rubocop.yml
Claire c71aded778
Inline disabling Style/MethodMissing Cop
To make it obvious that these are non-standard cases.

Also add respond_to_missing? to the decorator.

We are using Style/MethodMissing rather than
Style/MethodMissingSuper and Style/MissingRespondToMissing because we
are still on RuboCop 0.54.
2018-11-12 15:01:23 -08:00

28 lines
618 B
YAML

inherit_from:
- https://raw.githubusercontent.com/thoughtbot/guides/master/style/ruby/.rubocop.yml
AllCops:
TargetRubyVersion: 2.3
Exclude:
- 'gemfiles/*'
- 'tmp/**/*'
Metrics/BlockLength:
CountComments: true
Max: 25
ExcludedMethods: []
Exclude:
- "spec/**/*"
- '*.gemspec'
Style/SymbolArray:
EnforcedStyle: brackets
Style/FormatStringToken:
Enabled: false
# TODO: gradually bring this down to 80 as we fix files
# Let's not open a big PR to fix all of these at once -
# we can fix gradually if we happen to be editing a file that has a violation
Metrics/LineLength:
Max: 142