faraday/.rubocop.yml
2020-09-23 11:20:37 +02:00

59 lines
953 B
YAML

inherit_from: .rubocop_todo.yml
require:
- rubocop-packaging
- rubocop-performance
AllCops:
DisplayCopNames: true
DisplayStyleGuide: true
TargetRubyVersion: 2.4
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