inherit_from: .rubocop_todo.yml

AllCops:
  DisplayCopNames: true
  Exclude:
    - 'spec/support/protos/*.pb.rb'
    - 'varint_prof.rb'

Lint/EndAlignment:
  AlignWith: keyword

Lint/Loop:
  Enabled: false

Metrics/ClassLength:
  Enabled: false

Metrics/ModuleLength:
  Enabled: false

Style/CaseIndentation:
  IndentWhenRelativeTo: end

Style/ClassAndModuleChildren:
  Exclude:
    - '**/*.pb.rb'

Style/ClassAndModuleCamelCase:
  Exclude:
    - '**/*.pb.rb'

Style/EmptyLineBetweenDefs:
  AllowAdjacentOneLineDefs: true

Style/EmptyLines:
  Exclude:
    - '**/*.pb.rb'

Style/FileName:
  Exclude:
    - '**/protoc-gen-ruby*'

Style/GuardClause:
  MinBodyLength: 4

Style/HashSyntax:
  EnforcedStyle: hash_rockets

Style/IndentHash:
  EnforcedStyle: consistent

Style/Semicolon:
  AllowAsExpressionSeparator: true

Style/SingleLineBlockParams:
  Enabled: false

Style/TrailingBlankLines:
  Exclude:
    - '**/*.pb.rb'

Style/TrailingCommaInArguments:
  EnforcedStyleForMultiline: comma

Style/TrailingCommaInLiteral:
  EnforcedStyleForMultiline: comma

Style/TrivialAccessors:
  AllowDSLWriters: true
  AllowPredicates: true
