-
Notifications
You must be signed in to change notification settings - Fork 0
/
.rubocop.yml
123 lines (94 loc) · 3.11 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
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
AllCops:
DisplayCopNames: true
DisplayStyleGuide: true
NewCops: disable
SuggestExtensions: false
TargetRubyVersion: 3.0
# Check the indentation of the first argument in a method call.
Layout/FirstArgumentIndentation:
EnforcedStyle: consistent
# Check the indentation of the first element in an array literal.
Layout/FirstArrayElementIndentation:
EnforcedStyle: consistent
# Check the indentation of the first key in a hash literal.
Layout/FirstHashElementIndentation:
EnforcedStyle: consistent
# Align the elements of a hash literal if they span more than one line.
Layout/HashAlignment:
EnforcedHashRocketStyle: table
EnforcedColonStyle: table
# Limit lines to 80 characters.
Layout/LineLength:
Enabled: false
# Enforce the indentation of the method name part in method calls that span more than one line.
Layout/MultilineMethodCallIndentation:
Enabled: false
# Check for ambiguous regexp literals in the first argument of a method invocation without parentheses.
Lint/AmbiguousRegexpLiteral:
Enabled: false
# A calculated magnitude based on number of assignments, branches, and conditions.
Metrics/AbcSize:
Enabled: false
# Avoid long blocks with many lines.
Metrics/BlockLength:
Enabled: false
# Avoid excessive block nesting.
Metrics/BlockNesting:
Enabled: false
# Avoid classes longer than 100 lines of code.
Metrics/ClassLength:
Enabled: false
# A complexity metric that is strongly correlated to the number of test cases needed to validate a method.
Metrics/CyclomaticComplexity:
Enabled: false
# Avoid methods longer than 10 lines of code.
Metrics/MethodLength:
Enabled: false
# Avoid modules longer than 100 lines of code.
Metrics/ModuleLength:
Enabled: false
# Avoid parameter lists longer than three or four parameters.
Metrics/ParameterLists:
Enabled: false
# A complexity metric geared towards measuring complexity for a human reader.
Metrics/PerceivedComplexity:
Enabled: false
# Use only ASCII symbols in comments.
Style/AsciiComments:
Enabled: false
# Do not place comments on the same line as certain keywords.
Style/CommentedKeyword:
Enabled: false
# Document classes and non-namespace modules.
Style/Documentation:
Enabled: false
# Put empty method definitions on a single line.
Style/EmptyMethod:
Enabled: false
# Enforce the use of transform_keys Hash method.
Style/HashTransformKeys:
Enabled: false
# Enforce the use of transform_values Hash method.
Style/HashTransformValues:
Enabled: false
# Favor modifier if/unless usage when you have a single-line body.
Style/IfUnlessModifier:
Enabled: false
# Add underscores to large numeric literals to improve their readability.
Style/NumericLiterals:
Enabled: false
# Check for the use of predicate or comparison methods for numeric comparisons.
Style/NumericPredicate:
Enabled: false
# Enforce using / or %r around regular expressions.
Style/RegexpLiteral:
Enabled: false
# Use %i for arrays of symbols.
Style/SymbolArray:
Enabled: false
# Favor modifier while/until usage when you have a single-line body.
Style/WhileUntilModifier:
Enabled: false
# Use %w or %W for arrays of words.
Style/WordArray:
Enabled: false