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