.rubocop.yml
require:
- rubocop-rspec
- rubocop-performance
- rubocop-rake
AllCops:
DisplayCopNames: true
DisplayStyleGuide: true
ExtraDetails: false
TargetRubyVersion: 2.5
NewCops: enable
Gemspec/RequiredRubyVersion:
Enabled: false
Layout/EndOfLine:
EnforcedStyle: lf
Layout/MultilineMethodCallIndentation:
EnforcedStyle: indented_relative_to_receiver
Layout/ArrayAlignment:
Enabled: true
Layout/HashAlignment:
Enabled: true
EnforcedHashRocketStyle: key
EnforcedColonStyle: table
Layout/ParameterAlignment:
Enabled: true
EnforcedStyle: with_first_parameter
Layout/FirstHashElementIndentation:
Enabled: true
Layout/TrailingEmptyLines:
Enabled: false
Layout/LineLength:
Max: 120
Layout/EmptyLinesAroundAttributeAccessor:
Enabled: true
Layout/SpaceAroundOperators:
Enabled: true
Layout/SpaceAroundMethodCallOperator:
Enabled: true
Lint/DeprecatedOpenSSLConstant:
Enabled: true
Lint/RaiseException:
Enabled: true
Lint/StructNewOverride:
Enabled: true
Metrics/MethodLength:
Max: 20
Metrics/ClassLength:
Max: 120
Metrics/AbcSize:
Max: 18
Metrics/BlockLength:
Exclude:
- 'screen-recorder.gemspec'
- 'spec/**/*'
Naming/FileName:
Exclude:
- 'lib/screen-recorder.rb'
RSpec/FilePath:
Enabled: false
RSpec/ExampleLength:
Enabled: false
RSpec/MultipleExpectations:
Enabled: false
RSpec/SpecFilePathFormat:
Enabled: False
Style/BlockDelimiters:
EnforcedStyle: braces_for_chaining
Style/CommentedKeyword:
Enabled: false
Style/FrozenStringLiteralComment:
Enabled: false
Style/ExponentialNotation:
Enabled: false
Style/HashEachMethods:
Enabled: true
Style/HashTransformKeys:
Enabled: false
Style/HashTransformValues:
Enabled: false
Style/SlicingWithRange:
Enabled: false