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