-
Notifications
You must be signed in to change notification settings - Fork 0
/
.rubocop.yml
72 lines (53 loc) · 1.27 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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
AllCops:
TargetRubyVersion: 2.6
NewCops: enable
SuggestExtensions: false
Exclude:
- 'bin/*'
- 'gemfiles/*'
# Following this cop's advice makes Appraisal's generated gemfiles too wordy
Gemspec/DevelopmentDependencies:
Enabled: false
# Following this cop's advice breaks my sqlite3 add_development_dependency hack
# to use 1.6 on ruby 3.2
Gemspec/RubyVersionGlobalsUsage:
Enabled: false
Layout/LineLength:
Max: 120
Metrics/AbcSize:
Max: 30
Metrics/BlockLength:
Max: 40
Exclude:
- spec/execute_queries_spec.rb
- spec/model_select_distinct_spec.rb
- spec/model_update_arel_10_spec.rb
- spec/textual_order_raw_spec.rb
Metrics/CyclomaticComplexity:
Max: 9
Metrics/MethodLength:
Max: 30
Style/Documentation:
Enabled: false
# Standardrb handles these
Layout/ArgumentAlignment:
Enabled: false
Layout/MultilineMethodCallIndentation:
Enabled: false
Layout/MultilineOperationIndentation:
Enabled: false
Layout/SpaceInsideHashLiteralBraces:
Enabled: false
Style/Alias:
Enabled: false
Style/MultilineTernaryOperator:
Exclude:
- spec/textual_order_raw_spec.rb
Style/QuotedSymbols:
Enabled: false
Style/StringLiterals:
Enabled: false
Style/StringLiteralsInInterpolation:
Enabled: false
Style/TernaryParentheses:
Enabled: false