AllCops: TargetRubyVersion: 2.7 Exclude: - bin/**/* - vendor/**/* NewCops: enable Style/TrailingCommaInArguments: EnforcedStyleForMultiline: comma Style/TrailingCommaInHashLiteral: EnforcedStyleForMultiline: comma Style/TrailingCommaInArrayLiteral: EnforcedStyleForMultiline: comma Style/RedundantSelf: Enabled: false Style/Documentation: Enabled: false Layout/IndentationWidth: Enabled: false # Alignment so that changing var / method does not change all lines in diff Layout/ParameterAlignment: EnforcedStyle: with_fixed_indentation Layout/ArgumentAlignment: EnforcedStyle: with_fixed_indentation Layout/MultilineMethodCallIndentation: EnforcedStyle: indented Layout/MultilineOperationIndentation: EnforcedStyle: indented Layout/EndAlignment: EnforcedStyleAlignWith: variable AutoCorrect: true Layout/CaseIndentation: EnforcedStyle: end IndentOneStep: true Metrics/AbcSize: Max: 25 Metrics/CyclomaticComplexity: Max: 25 Metrics/MethodLength: Max: 20 # Ignore for rspec Metrics/BlockLength: IgnoredMethods: ['describe', 'context']