carwow_rubocop 6.2.1 → 6.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/.rubocop.yml +0 -3
- data/Gemfile.lock +4 -3
- data/config/default.yml +4 -2
- data/config/rubocop-factory_bot.yml +1 -1
- data/config/rubocop-lint.yml +3 -0
- data/config/rubocop-rspec.yml +225 -6
- data/config/rubocop-style.yml +3 -0
- data/lib/rubocop/carwow/version.rb +1 -1
- data/lib/rubocop/cop/carwow/add_column_with_comment.rb +2 -2
- metadata +3 -6
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: bab9089484b0743c7fd6f25a35d667677321e6041b4dd0e621dfbf880110b2b1
|
|
4
|
+
data.tar.gz: 7296b387885978bc627d7284a10872f8a777bd6420ef533e569990c8daa891e6
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: afaaa806525c1b1d124ecaa2df2ad2c6a874ef10f44bc809b172f64f1a67a0b2980b39a6f46ded6276d3a7e8cbcc85ee2d5d939f0827794cf14a67e7a4403dd3
|
|
7
|
+
data.tar.gz: 0b315d1c176472f63c27c0c0c1f923f3a8fc03b694b869c351533bbcbd7b7f4489007b034182173a1821fda281782951444d4f037a06dc98dcafd54d6d57bd6d
|
data/.rubocop.yml
CHANGED
data/Gemfile.lock
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
PATH
|
|
2
2
|
remote: .
|
|
3
3
|
specs:
|
|
4
|
-
carwow_rubocop (6.
|
|
4
|
+
carwow_rubocop (6.4.0)
|
|
5
5
|
rubocop (>= 1.75)
|
|
6
6
|
rubocop-factory_bot
|
|
7
7
|
rubocop-performance
|
|
@@ -56,8 +56,9 @@ GEM
|
|
|
56
56
|
rubocop-ast (1.44.0)
|
|
57
57
|
parser (>= 3.3.7.2)
|
|
58
58
|
prism (~> 1.4)
|
|
59
|
-
rubocop-factory_bot (2.
|
|
60
|
-
|
|
59
|
+
rubocop-factory_bot (2.27.1)
|
|
60
|
+
lint_roller (~> 1.1)
|
|
61
|
+
rubocop (~> 1.72, >= 1.72.1)
|
|
61
62
|
rubocop-performance (1.24.0)
|
|
62
63
|
lint_roller (~> 1.1)
|
|
63
64
|
rubocop (>= 1.72.1, < 2.0)
|
data/config/default.yml
CHANGED
data/config/rubocop-lint.yml
CHANGED
data/config/rubocop-rspec.yml
CHANGED
|
@@ -1,16 +1,21 @@
|
|
|
1
|
-
|
|
1
|
+
plugins:
|
|
2
2
|
- rubocop-rspec
|
|
3
3
|
|
|
4
|
-
RSpec:
|
|
5
|
-
Include:
|
|
6
|
-
- _spec.rb
|
|
7
|
-
- "(?:^|/)spec/"
|
|
8
|
-
|
|
9
4
|
RSpec/ContextWording:
|
|
10
5
|
Enabled: False
|
|
11
6
|
|
|
7
|
+
RSpec/NestedGroups:
|
|
8
|
+
Max: 5
|
|
9
|
+
|
|
10
|
+
RSpec/MultipleExpectations:
|
|
11
|
+
Max: 2
|
|
12
|
+
|
|
12
13
|
RSpec/ExampleLength:
|
|
13
14
|
Max: 10
|
|
15
|
+
CountAsOne:
|
|
16
|
+
- heredoc
|
|
17
|
+
- hash
|
|
18
|
+
- array
|
|
14
19
|
|
|
15
20
|
RSpec/NotToNot:
|
|
16
21
|
Description: 'Enforces the usage of the same method on all negative message expectations.'
|
|
@@ -19,3 +24,217 @@ RSpec/NotToNot:
|
|
|
19
24
|
SupportedStyles:
|
|
20
25
|
- not_to
|
|
21
26
|
- to_not
|
|
27
|
+
|
|
28
|
+
RSpec/Focus:
|
|
29
|
+
Enabled: true
|
|
30
|
+
|
|
31
|
+
# Seems buggy, disable for now; "Parser::Source::TreeRewriter detected clobbering"
|
|
32
|
+
RSpec/ReceiveMessages:
|
|
33
|
+
Enabled: false
|
|
34
|
+
|
|
35
|
+
# The below are being disabled because of how noisey they are; presumably because they don't fit with the 'carwow style'.
|
|
36
|
+
# We should reconsider these in the future if we feel they give us value.
|
|
37
|
+
|
|
38
|
+
RSpec/MultipleMemoizedHelpers:
|
|
39
|
+
Enabled: false
|
|
40
|
+
|
|
41
|
+
RSpec/NamedSubject:
|
|
42
|
+
Enabled: false
|
|
43
|
+
|
|
44
|
+
RSpec/BeEq:
|
|
45
|
+
Enabled: false
|
|
46
|
+
|
|
47
|
+
RSpec/MessageSpies:
|
|
48
|
+
Enabled: false
|
|
49
|
+
|
|
50
|
+
RSpec/LetSetup:
|
|
51
|
+
Enabled: false
|
|
52
|
+
|
|
53
|
+
RSpec/AnyInstance:
|
|
54
|
+
Enabled: false
|
|
55
|
+
|
|
56
|
+
RSpec/IndexedLet:
|
|
57
|
+
Enabled: false
|
|
58
|
+
|
|
59
|
+
RSpec/LeadingSubject:
|
|
60
|
+
Enabled: false
|
|
61
|
+
|
|
62
|
+
RSpec/VerifiedDoubles:
|
|
63
|
+
Enabled: false
|
|
64
|
+
|
|
65
|
+
RSpec/ScatteredLet:
|
|
66
|
+
Enabled: false
|
|
67
|
+
|
|
68
|
+
RSpec/VariableName:
|
|
69
|
+
Enabled: false
|
|
70
|
+
|
|
71
|
+
RSpec/StubbedMock:
|
|
72
|
+
Enabled: false
|
|
73
|
+
|
|
74
|
+
RSpec/ExampleWording:
|
|
75
|
+
Enabled: false
|
|
76
|
+
|
|
77
|
+
RSpec/EmptyLineAfterSubject:
|
|
78
|
+
Enabled: false
|
|
79
|
+
|
|
80
|
+
RSpec/InstanceVariable:
|
|
81
|
+
Enabled: false
|
|
82
|
+
|
|
83
|
+
RSpec/EmptyLineAfterFinalLet:
|
|
84
|
+
Enabled: false
|
|
85
|
+
|
|
86
|
+
RSpec/SortMetadata:
|
|
87
|
+
Enabled: false
|
|
88
|
+
|
|
89
|
+
RSpec/MetadataStyle:
|
|
90
|
+
Enabled: false
|
|
91
|
+
|
|
92
|
+
RSpec/ExpectChange:
|
|
93
|
+
Enabled: false
|
|
94
|
+
|
|
95
|
+
RSpec/ImplicitExpect:
|
|
96
|
+
Enabled: false
|
|
97
|
+
|
|
98
|
+
RSpec/ScatteredSetup:
|
|
99
|
+
Enabled: false
|
|
100
|
+
|
|
101
|
+
RSpec/SubjectStub:
|
|
102
|
+
Enabled: false
|
|
103
|
+
|
|
104
|
+
RSpec/MatchArray:
|
|
105
|
+
Enabled: false
|
|
106
|
+
|
|
107
|
+
RSpec/DescribedClass:
|
|
108
|
+
Enabled: false
|
|
109
|
+
|
|
110
|
+
RSpec/EmptyExampleGroup:
|
|
111
|
+
Enabled: false
|
|
112
|
+
|
|
113
|
+
RSpec/ExpectInHook:
|
|
114
|
+
Enabled: false
|
|
115
|
+
|
|
116
|
+
RSpec/VerifiedDoubleReference:
|
|
117
|
+
Enabled: false
|
|
118
|
+
|
|
119
|
+
RSpec/MessageChain:
|
|
120
|
+
Enabled: false
|
|
121
|
+
|
|
122
|
+
RSpec/NoExpectationExample:
|
|
123
|
+
Enabled: false
|
|
124
|
+
|
|
125
|
+
RSpec/RepeatedExampleGroupBody:
|
|
126
|
+
Enabled: false
|
|
127
|
+
|
|
128
|
+
RSpec/ImplicitSubject:
|
|
129
|
+
Enabled: false
|
|
130
|
+
|
|
131
|
+
RSpec/RepeatedExampleGroupDescription:
|
|
132
|
+
Enabled: false
|
|
133
|
+
|
|
134
|
+
RSpec/ChangeByZero:
|
|
135
|
+
Enabled: false
|
|
136
|
+
|
|
137
|
+
RSpec/ClassCheck:
|
|
138
|
+
Enabled: false
|
|
139
|
+
|
|
140
|
+
RSpec/BeNil:
|
|
141
|
+
Enabled: false
|
|
142
|
+
|
|
143
|
+
RSpec/PredicateMatcher:
|
|
144
|
+
Enabled: false
|
|
145
|
+
|
|
146
|
+
RSpec/EmptyLineAfterHook:
|
|
147
|
+
Enabled: false
|
|
148
|
+
|
|
149
|
+
RSpec/ContainExactly:
|
|
150
|
+
Enabled: false
|
|
151
|
+
|
|
152
|
+
RSpec/ReturnFromStub:
|
|
153
|
+
Enabled: false
|
|
154
|
+
|
|
155
|
+
RSpec/EmptyLineAfterExample:
|
|
156
|
+
Enabled: false
|
|
157
|
+
|
|
158
|
+
RSpec/EmptyLineAfterExampleGroup:
|
|
159
|
+
Enabled: false
|
|
160
|
+
|
|
161
|
+
RSpec/ExcessiveDocstringSpacing:
|
|
162
|
+
Enabled: false
|
|
163
|
+
|
|
164
|
+
RSpec/HookArgument:
|
|
165
|
+
Enabled: false
|
|
166
|
+
|
|
167
|
+
RSpec/RepeatedDescription:
|
|
168
|
+
Enabled: false
|
|
169
|
+
|
|
170
|
+
RSpec/LetBeforeExamples:
|
|
171
|
+
Enabled: false
|
|
172
|
+
|
|
173
|
+
RSpec/HooksBeforeExamples:
|
|
174
|
+
Enabled: false
|
|
175
|
+
|
|
176
|
+
RSpec/ExpectInLet:
|
|
177
|
+
Enabled: false
|
|
178
|
+
|
|
179
|
+
RSpec/RepeatedExample:
|
|
180
|
+
Enabled: false
|
|
181
|
+
|
|
182
|
+
RSpec/RepeatedIncludeExample:
|
|
183
|
+
Enabled: false
|
|
184
|
+
|
|
185
|
+
RSpec/RepeatedSubjectCall:
|
|
186
|
+
Enabled: false
|
|
187
|
+
|
|
188
|
+
RSpec/SubjectDeclaration:
|
|
189
|
+
Enabled: false
|
|
190
|
+
|
|
191
|
+
RSpec/OverwritingSetup:
|
|
192
|
+
Enabled: false
|
|
193
|
+
|
|
194
|
+
RSpec/PendingWithoutReason:
|
|
195
|
+
Enabled: false
|
|
196
|
+
|
|
197
|
+
RSpec/ReceiveCounts:
|
|
198
|
+
Enabled: false
|
|
199
|
+
|
|
200
|
+
RSpec/UnspecifiedException:
|
|
201
|
+
Enabled: false
|
|
202
|
+
|
|
203
|
+
RSpec/ImplicitBlockExpectation:
|
|
204
|
+
Enabled: false
|
|
205
|
+
|
|
206
|
+
RSpec/ContextMethod:
|
|
207
|
+
Enabled: false
|
|
208
|
+
|
|
209
|
+
RSpec/IdenticalEqualityAssertion:
|
|
210
|
+
Enabled: false
|
|
211
|
+
|
|
212
|
+
RSpec/LeakyConstantDeclaration:
|
|
213
|
+
Enabled: false
|
|
214
|
+
|
|
215
|
+
RSpec/MultipleSubjects:
|
|
216
|
+
Enabled: false
|
|
217
|
+
|
|
218
|
+
RSpec/SharedExamples:
|
|
219
|
+
Enabled: false
|
|
220
|
+
|
|
221
|
+
RSpec/IteratedExpectation:
|
|
222
|
+
Enabled: false
|
|
223
|
+
|
|
224
|
+
RSpec/VoidExpect:
|
|
225
|
+
Enabled: false
|
|
226
|
+
|
|
227
|
+
RSpec/BeEql:
|
|
228
|
+
Enabled: false
|
|
229
|
+
|
|
230
|
+
RSpec/BeforeAfterAll:
|
|
231
|
+
Enabled: false
|
|
232
|
+
|
|
233
|
+
RSpec/MultipleDescribes:
|
|
234
|
+
Enabled: false
|
|
235
|
+
|
|
236
|
+
RSpec/BeEmpty:
|
|
237
|
+
Enabled: false
|
|
238
|
+
|
|
239
|
+
RSpec/DescribeClass:
|
|
240
|
+
Enabled: false
|
data/config/rubocop-style.yml
CHANGED
|
@@ -26,7 +26,7 @@ module RuboCop
|
|
|
26
26
|
# t.string :email, comment: 'The email of the user'
|
|
27
27
|
# end
|
|
28
28
|
#
|
|
29
|
-
class AddColumnWithComment <
|
|
29
|
+
class AddColumnWithComment < Base
|
|
30
30
|
MSG = "Missing 'comment' parameter for new column."
|
|
31
31
|
|
|
32
32
|
def_node_matcher :inside_create_table_block?, <<~PATTERN
|
|
@@ -51,7 +51,7 @@ module RuboCop
|
|
|
51
51
|
|
|
52
52
|
return if comment_arg
|
|
53
53
|
|
|
54
|
-
add_offense(node,
|
|
54
|
+
add_offense(node, message: MSG)
|
|
55
55
|
end
|
|
56
56
|
|
|
57
57
|
private
|
metadata
CHANGED
|
@@ -1,14 +1,13 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: carwow_rubocop
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 6.
|
|
4
|
+
version: 6.4.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- carwow Developers
|
|
8
|
-
autorequire:
|
|
9
8
|
bindir: exe
|
|
10
9
|
cert_chain: []
|
|
11
|
-
date:
|
|
10
|
+
date: 2026-03-16 00:00:00.000000000 Z
|
|
12
11
|
dependencies:
|
|
13
12
|
- !ruby/object:Gem::Dependency
|
|
14
13
|
name: bundler
|
|
@@ -175,7 +174,6 @@ licenses:
|
|
|
175
174
|
- MIT
|
|
176
175
|
metadata:
|
|
177
176
|
rubygems_mfa_required: 'true'
|
|
178
|
-
post_install_message:
|
|
179
177
|
rdoc_options: []
|
|
180
178
|
require_paths:
|
|
181
179
|
- lib
|
|
@@ -190,8 +188,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
190
188
|
- !ruby/object:Gem::Version
|
|
191
189
|
version: '0'
|
|
192
190
|
requirements: []
|
|
193
|
-
rubygems_version: 3.
|
|
194
|
-
signing_key:
|
|
191
|
+
rubygems_version: 3.6.2
|
|
195
192
|
specification_version: 4
|
|
196
193
|
summary: carwow's rubocop configuration
|
|
197
194
|
test_files: []
|