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