mirror of
https://github.com/thoughtbot/factory_bot_rails.git
synced 2022-11-09 11:49:18 -05:00
7907b085fd
* Address todos generated by rubocop for files in the lib/generators directory. This partially addresses #293. Since rubocop generated quite a few todos, the commits addressing them are split up into a few different PRs that cover different files. * Fix underscore seperator in model_generator.rb, and change memoized instance variable name to @_source_root in lib/generators/factory_bot.rb * get rid of memoized _source_root variable * get rid of extraneous rubocop rules
34 lines
1.1 KiB
YAML
34 lines
1.1 KiB
YAML
inherit_from:
|
|
- https://raw.githubusercontent.com/thoughtbot/guides/master/style/ruby/.rubocop.yml
|
|
|
|
AllCops:
|
|
Exclude:
|
|
- "tmp/**/*"
|
|
- "gemfiles/*"
|
|
|
|
Style/EmptyMethod:
|
|
EnforcedStyle: expanded
|
|
|
|
# TODO:
|
|
# This configuration was generated by
|
|
# `rubocop --auto-gen-config`
|
|
# on 2018-09-17 20:19:38 -0400 using RuboCop version 0.54.0.
|
|
# The point is for the user to remove these configuration records
|
|
# one by one as the offenses are removed from the code base.
|
|
# Note that changes in the inspected code, or installation of new
|
|
# versions of RuboCop, may require this file to be generated again.
|
|
|
|
# Offense count: 4
|
|
# Cop supports --auto-correct.
|
|
# Configuration parameters: EnforcedStyle.
|
|
# SupportedStyles: auto_detection, squiggly, active_support, powerpack, unindent
|
|
Layout/IndentHeredoc:
|
|
Exclude:
|
|
- 'features/step_definitions/rails_steps.rb'
|
|
- 'lib/generators/factory_bot/model/model_generator.rb'
|
|
|
|
# Offense count: 11
|
|
# Configuration parameters: AllowHeredoc, AllowURI, URISchemes, IgnoreCopDirectives, IgnoredPatterns.
|
|
# URISchemes: http, https
|
|
Metrics/LineLength:
|
|
Max: 133
|