-
Notifications
You must be signed in to change notification settings - Fork 7
/
.rubocop.yml
51 lines (51 loc) · 1.13 KB
/
.rubocop.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
AllCops:
TargetRubyVersion: 2.1
Lint/HandleExceptions:
Exclude:
- 'spec/spec_helper.rb'
Lint/UnusedMethodArgument:
AllowUnusedKeywordArguments: true
Exclude:
- 'lib/db_text_search/case_insensitive/abstract_adapter.rb'
- 'lib/db_text_search/full_text/abstract_adapter.rb'
Metrics/CyclomaticComplexity:
Max: 7
Metrics/MethodLength:
Max: 16
Metrics/ModuleLength:
Max: 130
Exclude:
- 'spec/**/*.rb'
Metrics/BlockLength:
Exclude:
- 'spec/**/*.rb'
Layout/AlignParameters:
Enabled: false
Layout/CaseIndentation:
IndentOneStep: true
Layout/IndentHash:
IndentationWidth: 4
Layout/SpaceInsideHashLiteralBraces:
Enabled: false
Layout/FirstParameterIndentation:
IndentationWidth: 4
Layout/MultilineOperationIndentation:
EnforcedStyle: indented
IndentationWidth: 4
Layout/MultilineMethodCallIndentation:
EnforcedStyle: indented
IndentationWidth: 4
Layout/SpaceAroundOperators:
Enabled: false
Style/BlockDelimiters:
Enabled: false
Style/Lambda:
Enabled: false
Style/MutableConstant:
Enabled: false
Style/SignalException:
EnforcedStyle: semantic
Style/UnneededPercentQ:
Enabled: false
Metrics/LineLength:
Max: 120