-
Notifications
You must be signed in to change notification settings - Fork 1
/
.rubocop.yml
83 lines (60 loc) · 1.38 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
73
74
75
76
77
78
79
80
81
82
83
AllCops:
NewCops: enable
Exclude:
- '**/*_pb.rb'
- 'Gemfile'
- 'Rakefile'
- 'bin/*'
- 'rake/*'
- 'spec/support/rails_app/**/*'
- 'vendor/bundle/**/*'
TargetRubyVersion: 2.5
Layout/SpaceAroundEqualsInParameterDefault:
EnforcedStyle: no_space
Metrics/BlockLength:
ExcludedMethods:
- describe
- context
- it
Metrics/ClassLength:
Max: 150
Metrics/MethodLength:
Max: 15
Layout/LineLength:
Max: 200
Style/BlockDelimiters:
EnforcedStyle: braces_for_chaining
Style/Documentation:
Exclude: ['**/*']
Style/RaiseArgs:
EnforcedStyle: compact
Style/YodaCondition:
EnforcedStyle: require_for_equality_operators_only
Layout/EmptyLinesAroundAttributeAccessor:
Enabled: True
Layout/SpaceAroundMethodCallOperator:
Enabled: True
Lint/DeprecatedOpenSSLConstant:
Enabled: True
Lint/MixedRegexpCaptureTypes:
Enabled: True
Lint/RaiseException:
Enabled: True
Lint/StructNewOverride:
Enabled: True
Style/ExponentialNotation:
Enabled: True
Style/HashEachMethods:
Enabled: True
Style/HashTransformKeys:
Enabled: True
Style/HashTransformValues:
Enabled: True
Style/RedundantFetchBlock:
Enabled: True
Style/RedundantRegexpCharacterClass:
Enabled: True
Style/RedundantRegexpEscape:
Enabled: True
Style/SlicingWithRange:
Enabled: True