1
- # Use Shopify's Rubocop config as a baseline.
2
1
inherit_gem :
3
- rubocop-shopify : rubocop.yml
2
+ rubocop-rails-omakase : rubocop.yml
4
3
5
4
AllCops :
6
5
Exclude :
7
- - test/db/schema.rb
8
- - test/db/queue_schema.rb
6
+ - test/db/*schema.rb
9
7
- vendor
10
8
SuggestExtensions : false
11
- NewCops : disable
12
- TargetRubyVersion : 3.2
13
-
14
- # Layout
15
-
16
- Layout/ArgumentAlignment :
17
- Enabled : true
18
- EnforcedStyle : with_fixed_indentation
19
-
20
- Layout/ArrayAlignment :
21
- Enabled : true
22
- EnforcedStyle : with_fixed_indentation
23
-
24
- Layout/FirstMethodArgumentLineBreak :
25
- Enabled : true
26
-
27
- Layout/FirstMethodParameterLineBreak :
28
- Enabled : true
29
9
30
10
Layout/LineLength :
31
11
Enabled : true
@@ -34,148 +14,6 @@ Layout/LineLength:
34
14
# Allow long comments.
35
15
- " ^#.*"
36
16
37
- Layout/EndAlignment :
38
- Enabled : true
39
- EnforcedStyleAlignWith : start_of_line
40
-
41
- Layout/ExtraSpacing :
42
- Enabled : true
43
- AllowForAlignment : false
44
- AllowBeforeTrailingComments : true
45
-
46
- Layout/MultilineAssignmentLayout :
47
- Enabled : true
48
- EnforcedStyle : same_line
49
-
50
- Layout/MultilineHashBraceLayout :
51
- Enabled : true
52
- EnforcedStyle : new_line
53
-
54
- Layout/MultilineHashKeyLineBreaks :
55
- Enabled : true
56
-
57
- Layout/MultilineMethodArgumentLineBreaks :
58
- Enabled : true
59
-
60
- Layout/MultilineMethodCallBraceLayout :
61
- Enabled : true
62
- EnforcedStyle : new_line
63
-
64
- Layout/SpaceAroundEqualsInParameterDefault :
65
- Enabled : true
66
- EnforcedStyle : no_space
67
-
68
- Layout/SpaceInLambdaLiteral :
69
- Enabled : true
70
- EnforcedStyle : require_no_space
71
-
72
- Layout/SpaceInsideArrayLiteralBrackets :
73
- Enabled : true
74
- EnforcedStyle : no_space
75
-
76
- Layout/SpaceInsideArrayPercentLiteral :
77
- Enabled : true
78
-
79
- Layout/SpaceInsideBlockBraces :
80
- Enabled : true
81
- EnforcedStyle : space
82
- EnforcedStyleForEmptyBraces : no_space
83
- SpaceBeforeBlockParameters : true
84
-
85
- Layout/SpaceInsideHashLiteralBraces :
86
- Enabled : true
87
- EnforcedStyle : no_space
88
-
89
- Layout/SpaceInsideParens :
90
- Enabled : true
91
- EnforcedStyle : no_space
92
-
93
- Layout/SpaceInsidePercentLiteralDelimiters :
94
- Enabled : true
95
-
96
- Layout/SpaceInsideRangeLiteral :
97
- Enabled : true
98
-
99
- Layout/SpaceInsideReferenceBrackets :
100
- Enabled : true
101
- EnforcedStyle : no_space
102
-
103
- Layout/SpaceInsideStringInterpolation :
104
- Enabled : true
105
- EnforcedStyle : no_space
106
-
107
- # Linting
108
-
109
- Lint/AssignmentInCondition :
110
- Enabled : false
111
-
112
- Lint/SuppressedException :
113
- Enabled : false
114
-
115
- # Metrics
116
-
117
- Metrics/BlockNesting :
118
- Enabled : false
119
-
120
- # Naming
121
-
122
- Naming/AccessorMethodName :
123
- Enabled : false
124
-
125
- Naming/InclusiveLanguage :
126
- Enabled : false
127
-
128
- Naming/PredicateName :
129
- Enabled : false
130
-
131
- # Style
132
-
133
- Style/BlockDelimiters :
134
- Enabled : false
135
-
136
- Style/ClassAndModuleChildren :
137
- Enabled : false
138
-
139
- Style/ClassMethodsDefinitions :
140
- Enabled : false
141
-
142
- Style/CommandLiteral :
143
- Enabled : false
144
-
145
- Style/ConditionalAssignment :
146
- Enabled : false
147
-
148
- Style/DateTime :
149
- Enabled : false
150
-
151
- Style/FrozenStringLiteralComment :
152
- Enabled : false
153
-
154
- Style/IfInsideElse :
155
- Enabled : false
156
-
157
- Style/MultilineTernaryOperator :
158
- Enabled : false
159
-
160
- Style/NestedTernaryOperator :
161
- Enabled : false
162
-
163
- Style/RedundantReturn :
164
- Enabled : false
165
-
166
- Style/RedundantSelf :
167
- Enabled : false
168
-
169
- Style/RegexpLiteral :
170
- Enabled : false
171
-
172
- Style/ReturnNil :
173
- Enabled : false
174
-
175
- Style/TrailingCommaInArguments :
176
- Enabled : true
177
- EnforcedStyleForMultiline : comma
178
-
179
17
Style/TrailingCommaInArrayLiteral :
180
18
Enabled : true
181
19
EnforcedStyleForMultiline : comma
@@ -184,5 +22,6 @@ Style/TrailingCommaInHashLiteral:
184
22
Enabled : true
185
23
EnforcedStyleForMultiline : comma
186
24
187
- Style/WordArray :
188
- Enabled : false
25
+ Style/TrailingCommaInArguments :
26
+ Enabled : true
27
+ EnforcedStyleForMultiline : comma
0 commit comments