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