mirror of
https://github.com/thoughtbot/factory_bot.git
synced 2022-11-09 11:43:51 -05:00
102d7f7606
Closes #1336 * removes all the deprecated methods * removes Ruby 2.3, 2.4 and Rails 4.2 from travis * bundle updates the test gemfiles * Removes some pre-5.0 logic from a test helper * Targets Ruby 2.5 with rubocop and fixes violations We could also remove support for Rails 5.0 and 5.1, which are now EOL, but I don't see a strong reason to do that. We don't seem to have to do anything special to support those versions.
33 lines
672 B
YAML
33 lines
672 B
YAML
require: rubocop-performance
|
|
|
|
inherit_from:
|
|
- https://raw.githubusercontent.com/thoughtbot/guides/master/style/ruby/.rubocop.yml
|
|
|
|
AllCops:
|
|
TargetRubyVersion: 2.5
|
|
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
|
|
Layout/LineLength:
|
|
Max: 110
|