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