carwow_rubocop 6.2.1 → 6.3.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 05e3dbc43d0bbf882c693c20fb991032a2d21ee9de27bf88ea6259fd18c6331d
4
- data.tar.gz: a4344cf22719f34d7f1828bb16c8b4e6b80e00a7c0dbbdd33d4fd21ce8ff4229
3
+ metadata.gz: 155060a8f6d990d618687a7c78f42c43c9cf039f53ab41fff623a1803b2995ec
4
+ data.tar.gz: e4d0cf349f5d5b913ab121ec888ab42f60dc985a08f4502fcd3b0e6184b9753c
5
5
  SHA512:
6
- metadata.gz: 7a53c943781b17b617e183e651fe9a13668391a347222fddc8564c6eb1de22ea1fdef2ac0701ebc2fda3bb55ec20866d09eb0a2e3902366b55a80b012df8e855
7
- data.tar.gz: c8e79c87f79b0d2a7a87656513af164806f290cae536c4739479108285eff74c1144fd55fed21d8c245965420f2f055e895856515f8e9e34a35fc6ba81bc7969
6
+ metadata.gz: 2858d9cf05878f208ecf351e5def3ff65f06f9d4181eae139ff770848210a505b5b3b720b0412c32ffd678954fb283d4c2be2e9f67ccc53869e4a78ea339580c
7
+ data.tar.gz: 5ac22f55117d6b77749338a70b941e0df2f5a4da889d1a342e94086724e2d47f9aaffe40c6bb8a9427fc36fafcdaaa8023aeb99bf4dc7293fbdae305883e20dc
data/.rubocop.yml CHANGED
@@ -1,5 +1,2 @@
1
1
  inherit_from:
2
2
  - config/default.yml
3
-
4
- require:
5
- - rubocop-rspec
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- carwow_rubocop (6.2.1)
4
+ carwow_rubocop (6.3.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.26.1)
60
- rubocop (~> 1.61)
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
@@ -1,8 +1,10 @@
1
1
  require:
2
- - rubocop-rspec
3
- - rubocop-performance
4
2
  - ../lib/rubocop/carwow
5
3
 
4
+ plugins:
5
+ - rubocop-performance
6
+ - rubocop-rspec
7
+
6
8
  ##############
7
9
  # Global rules
8
10
 
@@ -1,4 +1,4 @@
1
- require:
1
+ plugins:
2
2
  - rubocop-factory_bot
3
3
 
4
4
  FactoryBot:
@@ -4,3 +4,6 @@ Lint/DuplicateBranch:
4
4
  Lint/Debugger:
5
5
  Description: Check for debugger calls.
6
6
  Enabled: true
7
+
8
+ Lint/UselessConstantScoping:
9
+ Enabled: false
@@ -1,16 +1,21 @@
1
- require:
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
@@ -1,5 +1,5 @@
1
1
  module RuboCop
2
2
  module Carwow
3
- VERSION = '6.2.1'.freeze
3
+ VERSION = '6.3.0'.freeze
4
4
  end
5
5
  end
@@ -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 < Cop
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, location: :expression, message: MSG)
54
+ add_offense(node, message: MSG)
55
55
  end
56
56
 
57
57
  private
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: carwow_rubocop
3
3
  version: !ruby/object:Gem::Version
4
- version: 6.2.1
4
+ version: 6.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - carwow Developers
8
- autorequire:
8
+ autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2025-04-11 00:00:00.000000000 Z
11
+ date: 2025-05-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -175,7 +175,7 @@ licenses:
175
175
  - MIT
176
176
  metadata:
177
177
  rubygems_mfa_required: 'true'
178
- post_install_message:
178
+ post_install_message:
179
179
  rdoc_options: []
180
180
  require_paths:
181
181
  - lib
@@ -190,8 +190,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
190
190
  - !ruby/object:Gem::Version
191
191
  version: '0'
192
192
  requirements: []
193
- rubygems_version: 3.5.23
194
- signing_key:
193
+ rubygems_version: 3.4.19
194
+ signing_key:
195
195
  specification_version: 4
196
196
  summary: carwow's rubocop configuration
197
197
  test_files: []