inherit_from: .rubocop_todo.yml require: - rubocop-rspec - rubocop-performance AllCops: Exclude: - 'tmp/**/*' TargetRubyVersion: 2.4 # Require lines to fit in pull requests. Layout/LineLength: Max: 92 # Don't force lonely closing parentheses Layout/MultilineMethodCallBraceLayout: EnforcedStyle: same_line # Multi-line method calls should be simply indented. Aligning them makes it # even harder to keep a sane line length. Layout/MultilineMethodCallIndentation: EnforcedStyle: indented # Multi-line assignment should be simply indented. Aligning them makes it even # harder to keep a sane line length. Layout/MultilineOperationIndentation: EnforcedStyle: indented # Force consistent spacing independent of block contents Layout/SpaceBeforeBlockBraces: EnforcedStyleForEmptyBraces: space # This cop gives bad advice Lint/AmbiguousBlockAssociation: Enabled: false # Allow if (foo = get_foo) style Lint/AssignmentInCondition: AllowSafeAssignment: true # Spec describe blocks can be any size Metrics/BlockLength: Exclude: - 'spec/**/*' # Allow and/or for control flow only Style/AndOr: EnforcedStyle: conditionals # Require at least two dependent lines before suggesting a guard clause Style/GuardClause: MinBodyLength: 2 # Explicite numbers are often clearer, and more robust. Style/NumericPredicate: Enabled: false # Allow explicit return with multiple return values Style/RedundantReturn: AllowMultipleReturnValues: true # Do not commit to use of interpolation Style/StringLiterals: EnforcedStyle: double_quotes # Prefer symbols to look like symbols Style/SymbolArray: EnforcedStyle: brackets # Project-specific configuration goes here. # Allow deeper nesting for spec organization RSpec/NestedGroups: Max: 4