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