54 lines
867 B
YAML
54 lines
867 B
YAML
plugins:
|
|
- rubocop-rake
|
|
- rubocop-rspec
|
|
|
|
AllCops:
|
|
TargetRubyVersion: 2.5
|
|
NewCops: enable
|
|
|
|
Style/StringLiterals:
|
|
EnforcedStyle: double_quotes
|
|
|
|
Style/StringLiteralsInInterpolation:
|
|
EnforcedStyle: double_quotes
|
|
|
|
Style/TrailingCommaInArguments:
|
|
EnforcedStyleForMultiline: consistent_comma
|
|
|
|
Style/TrailingCommaInArrayLiteral:
|
|
EnforcedStyleForMultiline: consistent_comma
|
|
|
|
Style/TrailingCommaInHashLiteral:
|
|
EnforcedStyleForMultiline: consistent_comma
|
|
|
|
Style/NumericPredicate:
|
|
EnforcedStyle: comparison
|
|
|
|
Layout/CaseIndentation:
|
|
EnforcedStyle: end
|
|
|
|
Metrics/AbcSize:
|
|
Max: 27
|
|
|
|
Metrics/CyclomaticComplexity:
|
|
Max: 10
|
|
|
|
Metrics/PerceivedComplexity:
|
|
Max: 10
|
|
|
|
Metrics/MethodLength:
|
|
Max: 20
|
|
|
|
Style/SymbolArray:
|
|
Exclude:
|
|
- 'lib/vosk/ffi.rb'
|
|
|
|
RSpec/MultipleMemoizedHelpers:
|
|
Max: 10
|
|
|
|
RSpec/ExampleLength:
|
|
Max: 10
|
|
|
|
RSpec/MultipleExpectations:
|
|
Max: 3
|