.rubocop.yml
inherit_from: .rubocop_todo.yml
require:
- rubocop-performance
- rubocop-minitest
- rubocop-rake
AllCops:
NewCops: enable
TargetRubyVersion: 2.7
Exclude:
- 'examples/**/*'
- 'vendor/**/*'
- 'spec/fixtures/**/*'
- 'tmp/**/*'
- '.git/**/*'
- 'bin/*'
Lint/RescueException:
Exclude:
- lib/solid/result/event_logs/tracking/enabled.rb
Layout/LineLength:
Max: 120
Layout/ExtraSpacing:
AllowBeforeTrailingComments: true
Layout/MultilineMethodCallIndentation:
Enabled: false
Lint/UnderscorePrefixedVariableName:
Enabled: false
Lint/UnusedMethodArgument:
Exclude:
- lib/solid/result/event_logs/listener.rb
Style/AccessModifierDeclarations:
Enabled: false
Style/CaseEquality:
Enabled: false
Style/ClassAndModuleChildren:
Enabled: false
Style/Lambda:
EnforcedStyle: literal
Style/ParallelAssignment:
Enabled: false
Style/SingleLineMethods:
Enabled: false
Style/MapToSet:
Enabled: false
Style/MixinGrouping:
Enabled: false
Naming/MethodName:
Enabled: false
Naming/VariableName:
Enabled: false
Metrics/BlockLength:
Exclude:
- solid-result.gemspec
- test/**/*.rb
Metrics/ClassLength:
Exclude:
- lib/solid/result/_self.rb
- test/**/*.rb
Metrics/AbcSize:
Exclude:
- lib/solid/result/event_logs/tracking/enabled.rb
Minitest/MultipleAssertions:
Enabled: false
Minitest/AssertEmptyLiteral:
Enabled: false
Minitest/AssertOperator:
Enabled: false
Minitest/AssertWithExpectedArgument:
Exclude:
- test/test_helper.rb
Naming/FileName:
Exclude:
- lib/solid-result.rb