mirror of
https://github.com/thoughtbot/factory_bot.git
synced 2022-11-09 11:43:51 -05:00
6d8bea1670
One annoyance is that the thoughtbot defaults include the Rails cops, which don't quite make sense here. I am forced into loading the rubocop-rails gem but then disabling all of the cops in it.
33 lines
673 B
YAML
33 lines
673 B
YAML
require: rubocop-performance
|
|
|
|
inherit_from:
|
|
- https://raw.githubusercontent.com/thoughtbot/guides/master/style/ruby/.rubocop.yml
|
|
|
|
AllCops:
|
|
TargetRubyVersion: 2.3
|
|
Exclude:
|
|
- 'gemfiles/*'
|
|
- 'tmp/**/*'
|
|
|
|
Rails:
|
|
Enabled: false
|
|
|
|
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: 110
|