-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.rubocop.yml
85 lines (81 loc) · 1.95 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
84
85
AllCops:
DisplayStyleGuide: true
TargetRubyVersion: 2.6
Include:
- '**/Gemfile'
- '**/Rakefile'
Exclude:
- 'bin/*'
- 'db/schema.rb'
- 'vendor/bundle/**/*'
Metrics/LineLength:
Max: 120
Metrics/AbcSize:
Max: 20
Metrics/ClassLength:
Max: 250
Metrics/ModuleLength:
Max: 250
Metrics/MethodLength:
Enabled: true
Max: 50
Metrics/BlockLength:
Enabled: false
Metrics/CyclomaticComplexity:
Enabled: false
Layout/DotPosition:
EnforcedStyle: trailing
Layout/MultilineOperationIndentation:
EnforcedStyle: indented
Layout/AlignArguments:
EnforcedStyle: with_fixed_indentation
Layout/AlignParameters:
EnforcedStyle: with_fixed_indentation
Layout/AlignHash:
EnforcedColonStyle: table
EnforcedLastArgumentHashStyle: ignore_implicit
Layout/MultilineMethodCallIndentation:
EnforcedStyle: indented
Layout/EmptyLinesAroundClassBody:
EnforcedStyle: empty_lines_except_namespace
Layout/EmptyLinesAroundModuleBody:
EnforcedStyle: empty_lines_except_namespace
Layout/EmptyLineAfterGuardClause:
Enabled: false
Layout/IndentFirstArrayElement:
EnforcedStyle: consistent
Layout/IndentFirstHashElement:
EnforcedStyle: consistent
Style/ClassAndModuleChildren:
Enabled: false
Style/DocumentationMethod:
Enabled: false
Style/Documentation:
Enabled: false
Style/CommentAnnotation:
Enabled: false
Style/FrozenStringLiteralComment:
Enabled: false
Style/EmptyMethod:
EnforcedStyle: expanded
Style/LambdaCall:
EnforcedStyle: braces
Style/Lambda:
EnforcedStyle: literal
Style/BlockDelimiters:
Enabled: false
Style/PercentLiteralDelimiters:
# Specify the default preferred delimiter for all types with the 'default' key
# Override individual delimiters (even with default specified) by specifying an individual key
PreferredDelimiters:
default: ()
'%i': '()'
'%I': '()'
'%r': '{}'
'%w': '()'
'%W': '()'
Style/RegexpLiteral:
EnforcedStyle: mixed
AllowInnerSlashes: false
Bundler/OrderedGems:
Enabled: false