-
Notifications
You must be signed in to change notification settings - Fork 3
/
.rubocop.yml
97 lines (78 loc) · 2.17 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
86
87
88
89
90
91
92
93
94
95
96
97
AllCops:
NewCops: enable
SuggestExtensions: false
TargetRubyVersion: 2.5
Metrics/AbcSize:
Max: 20 # Default: 15
Metrics/ClassLength:
Max: 225 # Default: 100
Metrics/MethodLength:
Max: 20 # Default: 10
Metrics/ModuleLength:
Max: 200 # Default: 100
Metrics/BlockLength:
Max: 30
Exclude:
- spec/**/*.rb
Layout/ArgumentAlignment:
# Alignment of arguments in multi-line method calls.
#
# The `with_fixed_indentation` style aligns the following lines with one
# level of indentation relative to the start of the line with the method call.
#
# method_call(a,
# b)
EnforcedStyle: with_fixed_indentation
Layout/ParameterAlignment:
# Alignment of parameters in multi-line method calls.
#
# The `with_fixed_indentation` style aligns the following lines with one
# level of indentation relative to the start of the line with the method call.
#
# method_call(a,
# b)
EnforcedStyle: with_fixed_indentation
Layout/CaseIndentation:
EnforcedStyle: end
Layout/EndAlignment:
EnforcedStyleAlignWith: variable
Layout/LineLength:
Max: 120 # Default: 80
Lint/ConstantDefinitionInBlock:
Enabled: false
Lint/EmptyBlock:
Enabled: false
Lint/NoReturnInBeginEndBlocks:
Enabled: false
Naming/MemoizedInstanceVariableName:
Enabled: false
Naming/MethodParameterName:
Enabled: false
Naming/VariableNumber:
Enabled: false
Style/ClassAndModuleChildren:
# Checks the style of children definitions at classes and modules.
#
# Basically there are two different styles:
#
# `nested` - have each child on a separate line
# class Foo
# class Bar
# end
# end
#
# `compact` - combine definitions as much as possible
# class Foo::Bar
# end
#
# The compact style is only forced, for classes / modules with one child.
EnforcedStyle: nested
Enabled: false
Style/Documentation:
# This cop checks for missing top-level documentation of classes and modules.
# Classes with no body and namespace modules are exempt from the check.
# Namespace modules are modules that have nothing in their bodies except
# classes or other modules.
Enabled: false
Style/FrozenStringLiteralComment:
Enabled: false