faraday/.rubocop.yml
Olle Jonsson bf7d855598
Add rubocop-inclusivity (#1267)
Co-authored-by: Mattia Giuffrida <giuffrida.mattia@gmail.com>
2021-04-14 17:57:11 +02:00

63 lines
1012 B
YAML

inherit_from: .rubocop_todo.yml
require:
- rubocop-inclusivity
- rubocop-packaging
- rubocop-performance
AllCops:
DisplayCopNames: true
DisplayStyleGuide: true
TargetRubyVersion: 2.4
Inclusivity/Race:
Enabled: true
Metrics/BlockLength:
Exclude:
- spec/**/*.rb
- examples/**/*.rb
Layout/EmptyLinesAroundAttributeAccessor: # (0.83)
Enabled: true
Layout/LineLength:
Exclude:
- spec/**/*.rb
- examples/**/*.rb
Layout/SpaceAroundMethodCallOperator:
Enabled: true
Lint/DeprecatedOpenSSLConstant: # (0.84)
Enabled: true
Lint/RaiseException:
Enabled: true
Lint/StructNewOverride:
Enabled: true
Style/DoubleNegation:
Enabled: false
Style/Documentation:
Exclude:
- 'spec/**/*'
- 'examples/**/*'
Style/ExponentialNotation:
Enabled: true
Style/HashEachMethods:
Enabled: true
Style/HashTransformKeys:
Enabled: true
Style/HashTransformValues:
Enabled: true
Style/IfUnlessModifier:
Enabled: false
Style/SlicingWithRange: # (0.83)
Enabled: true