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