.rubocop.yml
# The behavior of RuboCop can be controlled via the .rubocop.yml
# configuration file. It makes it possible to enable/disable
# certain cops (checks) and to alter their behavior if they accept
# any parameters. The file can be placed either in your home
# directory or in some project directory.
#
# RuboCop will start looking for the configuration file in the directory
# where the inspected file is and continue its way up to the root directory.
#
# See https://docs.rubocop.org/rubocop/configuration
AllCops:
NewCops: disable
Exclude:
- "spec/speculations/**/*.rb" # Generated by speculate_about
SuggestExtensions: false
Layout/EmptyLinesAroundAccessModifier:
Enabled: false
Layout/EmptyLinesAroundAttributeAccessor:
Enabled: false
Layout/SpaceBeforeBlockBraces:
Enabled: false
# Metrics/AbcSize:
# Exclude:
Metrics/BlockLength:
Exclude:
- "spec/**/*.rb"
Metrics/ClassLength:
Max: 200
Metrics/MethodLength:
Max: 16
Naming/AccessorMethodName:
Enabled: false
Naming/MemoizedInstanceVariableName:
Enabled: false
Naming/MethodName:
Enabled: false
Naming/MethodParameterName:
Enabled: false
Style/BlockComments:
Exclude:
- "spec/spec_helper.rb"
Style/CaseEquality:
Enabled: false
Style/Documentation:
Enabled: false
Style/DoubleNegation:
Enabled: false
Style/EmptyMethod:
Enabled: false
Style/FrozenStringLiteralComment:
Include:
- "lib/**/*.rb"
Style/GuardClause:
Enabled: false
Style/IfUnlessModifier:
Enabled: false
Style/Lambda:
Enabled: false
Style/LambdaCall:
Enabled: false
Style/MixinGrouping:
Enabled: false
Style/ModuleFunction:
Enabled: false
Style/RescueModifier:
Enabled: false
Style/StringLiterals:
Enabled: false
Style/TrailingBodyOnModule:
Enabled: false