faraday/.rubocop.yml
Alexander Popov c26df87b86 Update RuboCop
Require its specific version in `Gemfile`.

Fix it's installation in CI.

Enable new cops.

Resolve new offenses.

Drop support of Ruby 2.3
(it's not supported by RuboCop and by MRI:https://www.ruby-lang.org/en/news/2019/03/31/support-of-ruby-2-3-has-ended/)

Deprecate `Faraday::Request#method`, replace it with `#http_method`.
2020-04-19 17:44:07 +02:00

44 lines
711 B
YAML

inherit_from: .rubocop_todo.yml
require:
- rubocop-performance
AllCops:
DisplayCopNames: true
DisplayStyleGuide: true
TargetRubyVersion: 2.4
Metrics/BlockLength:
Exclude:
- spec/**/*.rb
- examples/**/*.rb
Layout/LineLength:
Exclude:
- spec/**/*.rb
- examples/**/*.rb
Layout/SpaceAroundMethodCallOperator:
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
Lint/RaiseException:
Enabled: true
Lint/StructNewOverride:
Enabled: true