1AllCops:
2 TargetRubyVersion: 2.5
3 NewCops: enable
4
5Metrics/ClassLength:
6 CountAsOne:
7 - heredoc
8 Exclude:
9 - test/*
10
11Metrics/MethodLength:
12 Exclude:
13 - test/*
14
15Metrics/BlockLength:
16 Exclude:
17 - test/*
18
19Metrics/AbcSize:
20 Exclude:
21 - test/*
22
23Metrics/ParameterLists:
24 Max: 8
25
26Naming/MethodParameterName:
27 AllowNamesEndingInNumbers: false
28 AllowedNames:
29 - io
30 - m
31 - e
32 - q
33 - s
34 - k
35 - v
36 - ex
37 - tx
38 - id
39 - iq
40 - db
41 - to
42 - tn
43
44Layout/IndentationStyle:
45 Enabled: false
46 EnforcedStyle: tabs
47 IndentationWidth: 2
48
49Layout/IndentationWidth:
50 Width: 1 # one tab
51
52Layout/LineLength:
53 Max: 80
54 Exclude:
55 - Gemfile
56
57Layout/EndAlignment:
58 EnforcedStyleAlignWith: start_of_line
59
60Layout/SpaceAroundEqualsInParameterDefault:
61 EnforcedStyle: no_space
62
63Layout/AccessModifierIndentation:
64 EnforcedStyle: outdent
65
66Layout/FirstParameterIndentation:
67 EnforcedStyle: consistent
68
69Layout/MultilineMethodCallIndentation:
70 EnforcedStyle: indented
71
72Style/AccessModifierDeclarations:
73 Enabled: false
74
75Style/ArrayCoercion:
76 Enabled: false
77
78Style/StringLiterals:
79 EnforcedStyle: double_quotes
80
81Style/NumericLiterals:
82 Enabled: false
83
84Style/SymbolArray:
85 EnforcedStyle: brackets
86
87Style/WordArray:
88 EnforcedStyle: brackets
89
90Style/Documentation:
91 Enabled: false
92
93Style/DoubleNegation:
94 EnforcedStyle: allowed_in_returns
95 Enabled: false
96
97Style/ParallelAssignment:
98 Enabled: false
99
100Style/PerlBackrefs:
101 Enabled: false
102
103Style/SpecialGlobalVars:
104 EnforcedStyle: use_perl_names
105
106Style/RegexpLiteral:
107 EnforcedStyle: slashes
108 AllowInnerSlashes: true
109
110Lint/OutOfRangeRegexpRef:
111 Enabled: false
112
113Lint/MissingSuper:
114 Enabled: false
115
116Lint/ConstantDefinitionInBlock:
117 AllowedMethods:
118 - when_ready
119
120Style/BlockDelimiters:
121 EnforcedStyle: semantic
122 AllowBracesOnProceduralOneLiners: true
123 ProceduralMethods:
124 - execute_command
125 - new
126
127Style/MultilineBlockChain:
128 Enabled: false
129
130Layout/FirstArgumentIndentation:
131 EnforcedStyle: consistent
132
133Layout/FirstArrayElementIndentation:
134 EnforcedStyle: consistent
135
136Style/FormatString:
137 EnforcedStyle: percent
138
139Style/FormatStringToken:
140 EnforcedStyle: unannotated
141
142Style/FrozenStringLiteralComment:
143 Exclude:
144 - forms/**/*.rb
145
146Style/RescueModifier:
147 Enabled: false
148
149Naming/AccessorMethodName:
150 Enabled: false