80 lines
2.5 KiB
YAML
80 lines
2.5 KiB
YAML
inherit_from:
|
|
- https://raw.githubusercontent.com/thoughtbot/guides/master/style/ruby/.rubocop.yml
|
|
AllCops:
|
|
TargetRubyVersion: 2.3
|
|
Exclude:
|
|
- 'gemfiles/*'
|
|
- 'tmp/**/*'
|
|
|
|
# TODO:
|
|
# This configuration was generated by
|
|
# `rubocop --auto-gen-config`
|
|
# on 2018-09-18 22:44:09 -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: 3
|
|
# Cop supports --auto-correct.
|
|
# Configuration parameters: EnforcedStyle.
|
|
# SupportedStyles: auto_detection, squiggly, active_support, powerpack, unindent
|
|
Layout/IndentHeredoc:
|
|
Exclude:
|
|
- 'lib/factory_bot/linter.rb'
|
|
- 'spec/acceptance/lint_spec.rb'
|
|
|
|
# Offense count: 1
|
|
# Cop supports --auto-correct.
|
|
# Configuration parameters: EnforcedStyleForEmptyBraces.
|
|
# SupportedStyles: space, no_space, compact
|
|
# SupportedStylesForEmptyBraces: space, no_space
|
|
Layout/SpaceInsideHashLiteralBraces:
|
|
EnforcedStyle: space
|
|
|
|
# Offense count: 1
|
|
# Configuration parameters: CountComments, ExcludedMethods.
|
|
Metrics/BlockLength:
|
|
Max: 26
|
|
|
|
# Offense count: 196
|
|
# Configuration parameters: AllowHeredoc, AllowURI, URISchemes, IgnoreCopDirectives, IgnoredPatterns.
|
|
# URISchemes: http, https
|
|
Metrics/LineLength:
|
|
Max: 189
|
|
|
|
# Cop supports --auto-correct.
|
|
# Configuration parameters: EnforcedStyle, ProceduralMethods, FunctionalMethods, IgnoredMethods.
|
|
# SupportedStyles: line_count_based, semantic, braces_for_chaining
|
|
# ProceduralMethods: benchmark, bm, bmbm, create, each_with_object, measure, new, realtime, tap, with_object
|
|
# FunctionalMethods: let, let!, subject, watch
|
|
# IgnoredMethods: lambda, proc, it
|
|
Style/BlockDelimiters:
|
|
Exclude:
|
|
- 'spec/**/*'
|
|
|
|
# Configuration parameters: .
|
|
# SupportedStyles: annotated, template, unannotated
|
|
Style/FormatStringToken:
|
|
EnforcedStyle: unannotated
|
|
|
|
# Offense count: 4
|
|
Style/MethodMissing:
|
|
Exclude:
|
|
- 'lib/factory_bot/decorator.rb'
|
|
- 'lib/factory_bot/decorator/invocation_tracker.rb'
|
|
- 'lib/factory_bot/definition_proxy.rb'
|
|
- 'lib/factory_bot/evaluator.rb'
|
|
|
|
# Cop supports --auto-correct.
|
|
# Configuration parameters: MinSize.
|
|
# SupportedStyles: percent, brackets
|
|
Style/SymbolArray:
|
|
EnforcedStyle: brackets
|
|
|
|
# Offense count: 196
|
|
# Configuration parameters: AllowHeredoc, AllowURI, URISchemes, IgnoreCopDirectives, IgnoredPatterns.
|
|
# URISchemes: http, https
|
|
Metrics/LineLength:
|
|
Max: 189
|