mangrove 0.31.0 → 0.34.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +107 -43
- data/lib/mangrove/result.rb +50 -0
- data/lib/mangrove/version.rb +1 -1
- data/sorbet/config +1 -0
- data/sorbet/rbi/gems/benchmark@0.4.0.rbi +618 -0
- data/sorbet/rbi/gems/date@3.4.1.rbi +75 -0
- data/sorbet/rbi/gems/{docile@1.4.0.rbi → docile@1.4.1.rbi} +2 -1
- data/sorbet/rbi/gems/{erubi@1.12.0.rbi → erubi@1.13.1.rbi} +26 -17
- data/sorbet/rbi/gems/{json@2.7.2.rbi → json@2.9.1.rbi} +516 -134
- data/sorbet/rbi/gems/logger@1.6.5.rbi +940 -0
- data/sorbet/rbi/gems/{parallel@1.24.0.rbi → parallel@1.26.3.rbi} +31 -21
- data/sorbet/rbi/gems/{parser@3.3.2.0.rbi → parser@3.3.7.0.rbi} +23 -1736
- data/sorbet/rbi/gems/{prism@0.29.0.rbi → prism@1.3.0.rbi} +13817 -10401
- data/sorbet/rbi/gems/{psych@5.1.2.rbi → psych@5.2.3.rbi} +289 -236
- data/sorbet/rbi/gems/{racc@1.8.0.rbi → racc@1.8.1.rbi} +0 -4
- data/sorbet/rbi/gems/rbi@0.2.3.rbi +4542 -0
- data/sorbet/rbi/gems/rbs@3.8.1.rbi +6882 -0
- data/sorbet/rbi/gems/{rdoc@6.7.0.rbi → rdoc@6.11.0.rbi} +1115 -1058
- data/sorbet/rbi/gems/{regexp_parser@2.9.2.rbi → regexp_parser@2.10.0.rbi} +193 -170
- data/sorbet/rbi/gems/{rspec-core@3.13.0.rbi → rspec-core@3.13.2.rbi} +146 -280
- data/sorbet/rbi/gems/{rspec-expectations@3.13.0.rbi → rspec-expectations@3.13.3.rbi} +323 -294
- data/sorbet/rbi/gems/{rspec-mocks@3.13.1.rbi → rspec-mocks@3.13.2.rbi} +46 -46
- data/sorbet/rbi/gems/{rspec-support@3.13.1.rbi → rspec-support@3.13.2.rbi} +22 -22
- data/sorbet/rbi/gems/ruboclean@0.7.1.rbi +473 -0
- data/sorbet/rbi/gems/{rubocop-ast@1.31.3.rbi → rubocop-ast@1.37.0.rbi} +1293 -745
- data/sorbet/rbi/gems/{rubocop-rspec@2.30.0.rbi → rubocop-rspec@3.4.0.rbi} +341 -1073
- data/sorbet/rbi/gems/{rubocop@1.64.1.rbi → rubocop@1.70.0.rbi} +5693 -3796
- data/sorbet/rbi/gems/{simplecov-html@0.12.3.rbi → simplecov-html@0.13.1.rbi} +77 -68
- data/sorbet/rbi/gems/{spoom@1.3.2.rbi → spoom@1.5.1.rbi} +2306 -1701
- data/sorbet/rbi/gems/{stringio@3.1.0.rbi → stringio@3.1.2.rbi} +1 -0
- data/sorbet/rbi/gems/{tapioca@0.14.3.rbi → tapioca@0.16.8.rbi} +411 -332
- data/sorbet/rbi/gems/{thor@1.3.1.rbi → thor@1.3.2.rbi} +57 -31
- data/sorbet/rbi/gems/unicode-display_width@3.1.4.rbi +132 -0
- data/sorbet/rbi/gems/unicode-emoji@4.0.4.rbi +251 -0
- data/sorbet/rbi/gems/{webrick@1.8.1.rbi → webrick@1.9.1.rbi} +92 -72
- data/sorbet/rbi/gems/{yard-sorbet@0.8.1.rbi → yard-sorbet@0.9.0.rbi} +36 -29
- data/sorbet/rbi/gems/{yard@0.9.36.rbi → yard@0.9.37.rbi} +393 -235
- metadata +39 -42
- data/sorbet/rbi/gems/rbi@0.1.13.rbi +0 -3078
- data/sorbet/rbi/gems/rexml@3.2.8.rbi +0 -4794
- data/sorbet/rbi/gems/ruboclean@0.6.0.rbi +0 -315
- data/sorbet/rbi/gems/rubocop-capybara@2.20.0.rbi +0 -1208
- data/sorbet/rbi/gems/rubocop-factory_bot@2.25.1.rbi +0 -928
- data/sorbet/rbi/gems/rubocop-rspec_rails@2.28.3.rbi +0 -911
- data/sorbet/rbi/gems/strscan@3.1.0.rbi +0 -9
- data/sorbet/rbi/gems/unicode-display_width@2.5.0.rbi +0 -65
- /data/sorbet/rbi/gems/{io-console@0.7.2.rbi → io-console@0.8.0.rbi} +0 -0
- /data/sorbet/rbi/gems/{reline@0.5.8.rbi → reline@0.6.0.rbi} +0 -0
- /data/sorbet/rbi/gems/{ruby-lsp@0.17.2.rbi → ruby-lsp@0.23.6.rbi} +0 -0
@@ -1,911 +0,0 @@
|
|
1
|
-
# typed: true
|
2
|
-
|
3
|
-
# DO NOT EDIT MANUALLY
|
4
|
-
# This is an autogenerated file for types exported from the `rubocop-rspec_rails` gem.
|
5
|
-
# Please instead update this file by running `bin/tapioca gem rubocop-rspec_rails`.
|
6
|
-
|
7
|
-
|
8
|
-
# FIXME: This is a workaround for the following issue:
|
9
|
-
# https://github.com/rubocop/rubocop-rspec_rails/issues/8
|
10
|
-
#
|
11
|
-
# source://rubocop-rspec_rails//lib/rubocop/rspec_rails/version.rb#3
|
12
|
-
module RuboCop; end
|
13
|
-
|
14
|
-
# source://rubocop-rspec_rails//lib/rubocop/cop/rspec_rails/avoid_setup_hook.rb#4
|
15
|
-
module RuboCop::Cop; end
|
16
|
-
|
17
|
-
# source://rubocop-rspec_rails//lib/rubocop/cop/rspec_rails/avoid_setup_hook.rb#5
|
18
|
-
module RuboCop::Cop::RSpecRails; end
|
19
|
-
|
20
|
-
# Checks that tests use RSpec `before` hook over Rails `setup` method.
|
21
|
-
#
|
22
|
-
# @example
|
23
|
-
# # bad
|
24
|
-
# setup do
|
25
|
-
# allow(foo).to receive(:bar)
|
26
|
-
# end
|
27
|
-
#
|
28
|
-
# # good
|
29
|
-
# before do
|
30
|
-
# allow(foo).to receive(:bar)
|
31
|
-
# end
|
32
|
-
#
|
33
|
-
# source://rubocop-rspec_rails//lib/rubocop/cop/rspec_rails/avoid_setup_hook.rb#19
|
34
|
-
class RuboCop::Cop::RSpecRails::AvoidSetupHook < ::RuboCop::Cop::Base
|
35
|
-
extend ::RuboCop::Cop::AutoCorrector
|
36
|
-
|
37
|
-
# source://rubocop-rspec_rails//lib/rubocop/cop/rspec_rails/avoid_setup_hook.rb#31
|
38
|
-
def on_block(node); end
|
39
|
-
|
40
|
-
# source://rubocop-rspec_rails//lib/rubocop/cop/rspec_rails/avoid_setup_hook.rb#25
|
41
|
-
def setup_call(param0 = T.unsafe(nil)); end
|
42
|
-
end
|
43
|
-
|
44
|
-
# source://rubocop-rspec_rails//lib/rubocop/cop/rspec_rails/avoid_setup_hook.rb#22
|
45
|
-
RuboCop::Cop::RSpecRails::AvoidSetupHook::MSG = T.let(T.unsafe(nil), String)
|
46
|
-
|
47
|
-
# Checks that tests use `have_http_status` instead of equality matchers.
|
48
|
-
#
|
49
|
-
# @example ResponseMethods: ['response', 'last_response'] (default)
|
50
|
-
# # bad
|
51
|
-
# expect(response.status).to be(200)
|
52
|
-
# expect(last_response.code).to eq("200")
|
53
|
-
#
|
54
|
-
# # good
|
55
|
-
# expect(response).to have_http_status(200)
|
56
|
-
# expect(last_response).to have_http_status(200)
|
57
|
-
# @example ResponseMethods: ['foo_response']
|
58
|
-
# # bad
|
59
|
-
# expect(foo_response.status).to be(200)
|
60
|
-
#
|
61
|
-
# # good
|
62
|
-
# expect(foo_response).to have_http_status(200)
|
63
|
-
#
|
64
|
-
# # also good
|
65
|
-
# expect(response).to have_http_status(200)
|
66
|
-
# expect(last_response).to have_http_status(200)
|
67
|
-
#
|
68
|
-
# source://rubocop-rspec_rails//lib/rubocop/cop/rspec_rails/have_http_status.rb#28
|
69
|
-
class RuboCop::Cop::RSpecRails::HaveHttpStatus < ::RuboCop::Cop::Base
|
70
|
-
extend ::RuboCop::Cop::AutoCorrector
|
71
|
-
|
72
|
-
# source://rubocop-rspec_rails//lib/rubocop/cop/rspec_rails/have_http_status.rb#39
|
73
|
-
def match_status(param0 = T.unsafe(nil)); end
|
74
|
-
|
75
|
-
# source://rubocop-rspec_rails//lib/rubocop/cop/rspec_rails/have_http_status.rb#49
|
76
|
-
def on_send(node); end
|
77
|
-
|
78
|
-
private
|
79
|
-
|
80
|
-
# source://rubocop-rspec_rails//lib/rubocop/cop/rspec_rails/have_http_status.rb#71
|
81
|
-
def response_methods; end
|
82
|
-
|
83
|
-
# @return [Boolean]
|
84
|
-
#
|
85
|
-
# source://rubocop-rspec_rails//lib/rubocop/cop/rspec_rails/have_http_status.rb#67
|
86
|
-
def response_methods?(name); end
|
87
|
-
end
|
88
|
-
|
89
|
-
# source://rubocop-rspec_rails//lib/rubocop/cop/rspec_rails/have_http_status.rb#31
|
90
|
-
RuboCop::Cop::RSpecRails::HaveHttpStatus::MSG = T.let(T.unsafe(nil), String)
|
91
|
-
|
92
|
-
# source://rubocop-rspec_rails//lib/rubocop/cop/rspec_rails/have_http_status.rb#36
|
93
|
-
RuboCop::Cop::RSpecRails::HaveHttpStatus::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Set)
|
94
|
-
|
95
|
-
# source://rubocop-rspec_rails//lib/rubocop/cop/rspec_rails/have_http_status.rb#35
|
96
|
-
RuboCop::Cop::RSpecRails::HaveHttpStatus::RUNNERS = T.let(T.unsafe(nil), Set)
|
97
|
-
|
98
|
-
# Enforces use of symbolic or numeric value to describe HTTP status.
|
99
|
-
#
|
100
|
-
# This cop inspects only `have_http_status` calls.
|
101
|
-
# So, this cop does not check if a method starting with `be_*` is used
|
102
|
-
# when setting for `EnforcedStyle: symbolic` or
|
103
|
-
# `EnforcedStyle: numeric`.
|
104
|
-
#
|
105
|
-
# @example `EnforcedStyle: symbolic` (default)
|
106
|
-
# # bad
|
107
|
-
# it { is_expected.to have_http_status 200 }
|
108
|
-
# it { is_expected.to have_http_status 404 }
|
109
|
-
# it { is_expected.to have_http_status "403" }
|
110
|
-
#
|
111
|
-
# # good
|
112
|
-
# it { is_expected.to have_http_status :ok }
|
113
|
-
# it { is_expected.to have_http_status :not_found }
|
114
|
-
# it { is_expected.to have_http_status :forbidden }
|
115
|
-
# it { is_expected.to have_http_status :success }
|
116
|
-
# it { is_expected.to have_http_status :error }
|
117
|
-
# @example `EnforcedStyle: numeric`
|
118
|
-
# # bad
|
119
|
-
# it { is_expected.to have_http_status :ok }
|
120
|
-
# it { is_expected.to have_http_status :not_found }
|
121
|
-
# it { is_expected.to have_http_status "forbidden" }
|
122
|
-
#
|
123
|
-
# # good
|
124
|
-
# it { is_expected.to have_http_status 200 }
|
125
|
-
# it { is_expected.to have_http_status 404 }
|
126
|
-
# it { is_expected.to have_http_status 403 }
|
127
|
-
# it { is_expected.to have_http_status :success }
|
128
|
-
# it { is_expected.to have_http_status :error }
|
129
|
-
# @example `EnforcedStyle: be_status`
|
130
|
-
# # bad
|
131
|
-
# it { is_expected.to have_http_status :ok }
|
132
|
-
# it { is_expected.to have_http_status :not_found }
|
133
|
-
# it { is_expected.to have_http_status "forbidden" }
|
134
|
-
# it { is_expected.to have_http_status 200 }
|
135
|
-
# it { is_expected.to have_http_status 404 }
|
136
|
-
# it { is_expected.to have_http_status "403" }
|
137
|
-
#
|
138
|
-
# # good
|
139
|
-
# it { is_expected.to be_ok }
|
140
|
-
# it { is_expected.to be_not_found }
|
141
|
-
# it { is_expected.to have_http_status :success }
|
142
|
-
# it { is_expected.to have_http_status :error }
|
143
|
-
#
|
144
|
-
# source://rubocop-rspec_rails//lib/rubocop/cop/rspec_rails/http_status.rb#60
|
145
|
-
class RuboCop::Cop::RSpecRails::HttpStatus < ::RuboCop::Cop::Base
|
146
|
-
include ::RuboCop::Cop::ConfigurableEnforcedStyle
|
147
|
-
extend ::RuboCop::Cop::AutoCorrector
|
148
|
-
|
149
|
-
# source://rubocop-rspec_rails//lib/rubocop/cop/rspec_rails/http_status.rb#66
|
150
|
-
def http_status(param0 = T.unsafe(nil)); end
|
151
|
-
|
152
|
-
# source://rubocop-rspec_rails//lib/rubocop/cop/rspec_rails/http_status.rb#70
|
153
|
-
def on_send(node); end
|
154
|
-
|
155
|
-
private
|
156
|
-
|
157
|
-
# source://rubocop-rspec_rails//lib/rubocop/cop/rspec_rails/http_status.rb#88
|
158
|
-
def checker_class; end
|
159
|
-
end
|
160
|
-
|
161
|
-
# source://rubocop-rspec_rails//lib/rubocop/cop/rspec_rails/http_status.rb#176
|
162
|
-
class RuboCop::Cop::RSpecRails::HttpStatus::BeStatusStyleChecker < ::RuboCop::Cop::RSpecRails::HttpStatus::StyleCheckerBase
|
163
|
-
# source://rubocop-rspec_rails//lib/rubocop/cop/rspec_rails/http_status.rb#182
|
164
|
-
def offense_range; end
|
165
|
-
|
166
|
-
# @return [Boolean]
|
167
|
-
#
|
168
|
-
# source://rubocop-rspec_rails//lib/rubocop/cop/rspec_rails/http_status.rb#177
|
169
|
-
def offensive?; end
|
170
|
-
|
171
|
-
# source://rubocop-rspec_rails//lib/rubocop/cop/rspec_rails/http_status.rb#186
|
172
|
-
def prefer; end
|
173
|
-
|
174
|
-
private
|
175
|
-
|
176
|
-
# source://rubocop-rspec_rails//lib/rubocop/cop/rspec_rails/http_status.rb#206
|
177
|
-
def normalize_str; end
|
178
|
-
|
179
|
-
# source://rubocop-rspec_rails//lib/rubocop/cop/rspec_rails/http_status.rb#202
|
180
|
-
def number; end
|
181
|
-
|
182
|
-
# source://rubocop-rspec_rails//lib/rubocop/cop/rspec_rails/http_status.rb#198
|
183
|
-
def symbol; end
|
184
|
-
end
|
185
|
-
|
186
|
-
# source://rubocop-rspec_rails//lib/rubocop/cop/rspec_rails/http_status.rb#155
|
187
|
-
class RuboCop::Cop::RSpecRails::HttpStatus::NumericStyleChecker < ::RuboCop::Cop::RSpecRails::HttpStatus::StyleCheckerBase
|
188
|
-
# @return [Boolean]
|
189
|
-
#
|
190
|
-
# source://rubocop-rspec_rails//lib/rubocop/cop/rspec_rails/http_status.rb#156
|
191
|
-
def offensive?; end
|
192
|
-
|
193
|
-
# source://rubocop-rspec_rails//lib/rubocop/cop/rspec_rails/http_status.rb#160
|
194
|
-
def prefer; end
|
195
|
-
|
196
|
-
private
|
197
|
-
|
198
|
-
# source://rubocop-rspec_rails//lib/rubocop/cop/rspec_rails/http_status.rb#170
|
199
|
-
def number; end
|
200
|
-
|
201
|
-
# source://rubocop-rspec_rails//lib/rubocop/cop/rspec_rails/http_status.rb#166
|
202
|
-
def symbol; end
|
203
|
-
end
|
204
|
-
|
205
|
-
# source://rubocop-rspec_rails//lib/rubocop/cop/rspec_rails/http_status.rb#63
|
206
|
-
RuboCop::Cop::RSpecRails::HttpStatus::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array)
|
207
|
-
|
208
|
-
# source://rubocop-rspec_rails//lib/rubocop/cop/rspec_rails/http_status.rb#100
|
209
|
-
class RuboCop::Cop::RSpecRails::HttpStatus::StyleCheckerBase
|
210
|
-
# @return [StyleCheckerBase] a new instance of StyleCheckerBase
|
211
|
-
#
|
212
|
-
# source://rubocop-rspec_rails//lib/rubocop/cop/rspec_rails/http_status.rb#107
|
213
|
-
def initialize(node); end
|
214
|
-
|
215
|
-
# @return [Boolean]
|
216
|
-
#
|
217
|
-
# source://rubocop-rspec_rails//lib/rubocop/cop/rspec_rails/http_status.rb#123
|
218
|
-
def allowed_symbol?; end
|
219
|
-
|
220
|
-
# source://rubocop-rspec_rails//lib/rubocop/cop/rspec_rails/http_status.rb#115
|
221
|
-
def current; end
|
222
|
-
|
223
|
-
# @return [Boolean]
|
224
|
-
#
|
225
|
-
# source://rubocop-rspec_rails//lib/rubocop/cop/rspec_rails/http_status.rb#127
|
226
|
-
def custom_http_status_code?; end
|
227
|
-
|
228
|
-
# source://rubocop-rspec_rails//lib/rubocop/cop/rspec_rails/http_status.rb#111
|
229
|
-
def message; end
|
230
|
-
|
231
|
-
# Returns the value of attribute node.
|
232
|
-
#
|
233
|
-
# source://rubocop-rspec_rails//lib/rubocop/cop/rspec_rails/http_status.rb#105
|
234
|
-
def node; end
|
235
|
-
|
236
|
-
# source://rubocop-rspec_rails//lib/rubocop/cop/rspec_rails/http_status.rb#119
|
237
|
-
def offense_range; end
|
238
|
-
end
|
239
|
-
|
240
|
-
# source://rubocop-rspec_rails//lib/rubocop/cop/rspec_rails/http_status.rb#103
|
241
|
-
RuboCop::Cop::RSpecRails::HttpStatus::StyleCheckerBase::ALLOWED_STATUSES = T.let(T.unsafe(nil), Array)
|
242
|
-
|
243
|
-
# source://rubocop-rspec_rails//lib/rubocop/cop/rspec_rails/http_status.rb#101
|
244
|
-
RuboCop::Cop::RSpecRails::HttpStatus::StyleCheckerBase::MSG = T.let(T.unsafe(nil), String)
|
245
|
-
|
246
|
-
# source://rubocop-rspec_rails//lib/rubocop/cop/rspec_rails/http_status.rb#134
|
247
|
-
class RuboCop::Cop::RSpecRails::HttpStatus::SymbolicStyleChecker < ::RuboCop::Cop::RSpecRails::HttpStatus::StyleCheckerBase
|
248
|
-
# @return [Boolean]
|
249
|
-
#
|
250
|
-
# source://rubocop-rspec_rails//lib/rubocop/cop/rspec_rails/http_status.rb#135
|
251
|
-
def offensive?; end
|
252
|
-
|
253
|
-
# source://rubocop-rspec_rails//lib/rubocop/cop/rspec_rails/http_status.rb#139
|
254
|
-
def prefer; end
|
255
|
-
|
256
|
-
private
|
257
|
-
|
258
|
-
# source://rubocop-rspec_rails//lib/rubocop/cop/rspec_rails/http_status.rb#149
|
259
|
-
def number; end
|
260
|
-
|
261
|
-
# source://rubocop-rspec_rails//lib/rubocop/cop/rspec_rails/http_status.rb#145
|
262
|
-
def symbol; end
|
263
|
-
end
|
264
|
-
|
265
|
-
# Identifies redundant spec type.
|
266
|
-
#
|
267
|
-
# After setting up rspec-rails, you will have enabled
|
268
|
-
# `config.infer_spec_type_from_file_location!` by default in
|
269
|
-
# spec/rails_helper.rb. This cop works in conjunction with this config.
|
270
|
-
# If you disable this config, disable this cop as well.
|
271
|
-
#
|
272
|
-
# @example
|
273
|
-
# # bad
|
274
|
-
# # spec/models/user_spec.rb
|
275
|
-
# RSpec.describe User, type: :model do
|
276
|
-
# end
|
277
|
-
#
|
278
|
-
# # good
|
279
|
-
# # spec/models/user_spec.rb
|
280
|
-
# RSpec.describe User do
|
281
|
-
# end
|
282
|
-
#
|
283
|
-
# # good
|
284
|
-
# # spec/models/user_spec.rb
|
285
|
-
# RSpec.describe User, type: :common do
|
286
|
-
# end
|
287
|
-
# @example `Inferences` configuration
|
288
|
-
# # .rubocop.yml
|
289
|
-
# # RSpecRails/InferredSpecType:
|
290
|
-
# # Inferences:
|
291
|
-
# # services: service
|
292
|
-
#
|
293
|
-
# # bad
|
294
|
-
# # spec/services/user_spec.rb
|
295
|
-
# RSpec.describe User, type: :service do
|
296
|
-
# end
|
297
|
-
#
|
298
|
-
# # good
|
299
|
-
# # spec/services/user_spec.rb
|
300
|
-
# RSpec.describe User do
|
301
|
-
# end
|
302
|
-
#
|
303
|
-
# # good
|
304
|
-
# # spec/services/user_spec.rb
|
305
|
-
# RSpec.describe User, type: :common do
|
306
|
-
# end
|
307
|
-
#
|
308
|
-
# source://rubocop-rspec_rails//lib/rubocop/cop/rspec_rails/inferred_spec_type.rb#53
|
309
|
-
class RuboCop::Cop::RSpecRails::InferredSpecType < ::RuboCop::Cop::RSpec::Base
|
310
|
-
extend ::RuboCop::Cop::AutoCorrector
|
311
|
-
|
312
|
-
# @param node [RuboCop::AST::BlockNode]
|
313
|
-
# @return [RuboCop::AST::PairNode, nil]
|
314
|
-
#
|
315
|
-
# source://rubocop-rspec_rails//lib/rubocop/cop/rspec_rails/inferred_spec_type.rb#78
|
316
|
-
def describe_with_type(param0 = T.unsafe(nil)); end
|
317
|
-
|
318
|
-
# @param node [RuboCop::AST::BlockNode]
|
319
|
-
#
|
320
|
-
# source://rubocop-rspec_rails//lib/rubocop/cop/rspec_rails/inferred_spec_type.rb#59
|
321
|
-
def on_block(node); end
|
322
|
-
|
323
|
-
# @param node [RuboCop::AST::BlockNode]
|
324
|
-
#
|
325
|
-
# source://rubocop-rspec_rails//lib/rubocop/cop/rspec_rails/inferred_spec_type.rb#59
|
326
|
-
def on_numblock(node); end
|
327
|
-
|
328
|
-
private
|
329
|
-
|
330
|
-
# @param corrector [RuboCop::AST::Corrector]
|
331
|
-
# @param node [RuboCop::AST::Node]
|
332
|
-
#
|
333
|
-
# source://rubocop-rspec_rails//lib/rubocop/cop/rspec_rails/inferred_spec_type.rb#90
|
334
|
-
def autocorrect(corrector, node); end
|
335
|
-
|
336
|
-
# @param node [RuboCop::AST::PairNode]
|
337
|
-
# @return [RuboCop::AST::Node]
|
338
|
-
#
|
339
|
-
# source://rubocop-rspec_rails//lib/rubocop/cop/rspec_rails/inferred_spec_type.rb#110
|
340
|
-
def detect_removable_node(node); end
|
341
|
-
|
342
|
-
# @return [String]
|
343
|
-
#
|
344
|
-
# source://rubocop-rspec_rails//lib/rubocop/cop/rspec_rails/inferred_spec_type.rb#119
|
345
|
-
def file_path; end
|
346
|
-
|
347
|
-
# @return [Hash]
|
348
|
-
#
|
349
|
-
# source://rubocop-rspec_rails//lib/rubocop/cop/rspec_rails/inferred_spec_type.rb#137
|
350
|
-
def inferences; end
|
351
|
-
|
352
|
-
# @param node [RuboCop::AST::PairNode]
|
353
|
-
# @return [Boolean]
|
354
|
-
#
|
355
|
-
# source://rubocop-rspec_rails//lib/rubocop/cop/rspec_rails/inferred_spec_type.rb#125
|
356
|
-
def inferred_type?(node); end
|
357
|
-
|
358
|
-
# @return [Symbol, nil]
|
359
|
-
#
|
360
|
-
# source://rubocop-rspec_rails//lib/rubocop/cop/rspec_rails/inferred_spec_type.rb#130
|
361
|
-
def inferred_type_from_file_path; end
|
362
|
-
|
363
|
-
# @param node [RuboCop::AST::Node]
|
364
|
-
# @return [Parser::Source::Range]
|
365
|
-
#
|
366
|
-
# source://rubocop-rspec_rails//lib/rubocop/cop/rspec_rails/inferred_spec_type.rb#96
|
367
|
-
def remove_range(node); end
|
368
|
-
end
|
369
|
-
|
370
|
-
# source://rubocop-rspec_rails//lib/rubocop/cop/rspec_rails/inferred_spec_type.rb#56
|
371
|
-
RuboCop::Cop::RSpecRails::InferredSpecType::MSG = T.let(T.unsafe(nil), String)
|
372
|
-
|
373
|
-
# Check if using Minitest-like matchers.
|
374
|
-
#
|
375
|
-
# Check the use of minitest-like matchers
|
376
|
-
# starting with `assert_` or `refute_`.
|
377
|
-
#
|
378
|
-
# @example
|
379
|
-
# # bad
|
380
|
-
# assert_equal(a, b)
|
381
|
-
# assert_equal a, b, "must be equal"
|
382
|
-
# assert_not_includes a, b
|
383
|
-
# refute_equal(a, b)
|
384
|
-
# assert_nil a
|
385
|
-
# refute_empty(b)
|
386
|
-
# assert_true(a)
|
387
|
-
# assert_false(a)
|
388
|
-
#
|
389
|
-
# # good
|
390
|
-
# expect(b).to eq(a)
|
391
|
-
# expect(b).to(eq(a), "must be equal")
|
392
|
-
# expect(a).not_to include(b)
|
393
|
-
# expect(b).not_to eq(a)
|
394
|
-
# expect(a).to eq(nil)
|
395
|
-
# expect(a).not_to be_empty
|
396
|
-
# expect(a).to be(true)
|
397
|
-
# expect(a).to be(false)
|
398
|
-
#
|
399
|
-
# source://rubocop-rspec_rails//lib/rubocop/cop/rspec_rails/minitest_assertions.rb#32
|
400
|
-
class RuboCop::Cop::RSpecRails::MinitestAssertions < ::RuboCop::Cop::Base
|
401
|
-
extend ::RuboCop::Cop::AutoCorrector
|
402
|
-
|
403
|
-
# source://rubocop-rspec_rails//lib/rubocop/cop/rspec_rails/minitest_assertions.rb#344
|
404
|
-
def message(preferred); end
|
405
|
-
|
406
|
-
# source://rubocop-rspec_rails//lib/rubocop/cop/rspec_rails/minitest_assertions.rb#337
|
407
|
-
def on_assertion(node, assertion); end
|
408
|
-
|
409
|
-
# source://rubocop-rspec_rails//lib/rubocop/cop/rspec_rails/minitest_assertions.rb#325
|
410
|
-
def on_send(node); end
|
411
|
-
end
|
412
|
-
|
413
|
-
# TODO: replace with `BasicAssertion.subclasses` in Ruby 3.1+
|
414
|
-
#
|
415
|
-
# source://rubocop-rspec_rails//lib/rubocop/cop/rspec_rails/minitest_assertions.rb#317
|
416
|
-
RuboCop::Cop::RSpecRails::MinitestAssertions::ASSERTION_MATCHERS = T.let(T.unsafe(nil), Array)
|
417
|
-
|
418
|
-
# source://rubocop-rspec_rails//lib/rubocop/cop/rspec_rails/minitest_assertions.rb#36
|
419
|
-
class RuboCop::Cop::RSpecRails::MinitestAssertions::BasicAssertion
|
420
|
-
extend ::RuboCop::AST::NodePattern::Macros
|
421
|
-
|
422
|
-
# @return [BasicAssertion] a new instance of BasicAssertion
|
423
|
-
#
|
424
|
-
# source://rubocop-rspec_rails//lib/rubocop/cop/rspec_rails/minitest_assertions.rb#45
|
425
|
-
def initialize(expected, actual, failure_message); end
|
426
|
-
|
427
|
-
# Returns the value of attribute actual.
|
428
|
-
#
|
429
|
-
# source://rubocop-rspec_rails//lib/rubocop/cop/rspec_rails/minitest_assertions.rb#39
|
430
|
-
def actual; end
|
431
|
-
|
432
|
-
# @raise [NotImplementedError]
|
433
|
-
#
|
434
|
-
# source://rubocop-rspec_rails//lib/rubocop/cop/rspec_rails/minitest_assertions.rb#64
|
435
|
-
def assertion; end
|
436
|
-
|
437
|
-
# Returns the value of attribute expected.
|
438
|
-
#
|
439
|
-
# source://rubocop-rspec_rails//lib/rubocop/cop/rspec_rails/minitest_assertions.rb#39
|
440
|
-
def expected; end
|
441
|
-
|
442
|
-
# Returns the value of attribute failure_message.
|
443
|
-
#
|
444
|
-
# source://rubocop-rspec_rails//lib/rubocop/cop/rspec_rails/minitest_assertions.rb#39
|
445
|
-
def failure_message; end
|
446
|
-
|
447
|
-
# @return [Boolean]
|
448
|
-
#
|
449
|
-
# source://rubocop-rspec_rails//lib/rubocop/cop/rspec_rails/minitest_assertions.rb#60
|
450
|
-
def negated?(node); end
|
451
|
-
|
452
|
-
# source://rubocop-rspec_rails//lib/rubocop/cop/rspec_rails/minitest_assertions.rb#51
|
453
|
-
def replaced(node); end
|
454
|
-
|
455
|
-
class << self
|
456
|
-
# @raise [NotImplementedError]
|
457
|
-
#
|
458
|
-
# source://rubocop-rspec_rails//lib/rubocop/cop/rspec_rails/minitest_assertions.rb#41
|
459
|
-
def minitest_assertion; end
|
460
|
-
end
|
461
|
-
end
|
462
|
-
|
463
|
-
# source://rubocop-rspec_rails//lib/rubocop/cop/rspec_rails/minitest_assertions.rb#253
|
464
|
-
class RuboCop::Cop::RSpecRails::MinitestAssertions::EmptyAssertion < ::RuboCop::Cop::RSpecRails::MinitestAssertions::BasicAssertion
|
465
|
-
# source://rubocop-rspec_rails//lib/rubocop/cop/rspec_rails/minitest_assertions.rb#269
|
466
|
-
def assertion; end
|
467
|
-
|
468
|
-
class << self
|
469
|
-
# source://rubocop-rspec_rails//lib/rubocop/cop/rspec_rails/minitest_assertions.rb#265
|
470
|
-
def match(actual, failure_message); end
|
471
|
-
|
472
|
-
# source://rubocop-rspec_rails//lib/rubocop/cop/rspec_rails/minitest_assertions.rb#261
|
473
|
-
def minitest_assertion(param0 = T.unsafe(nil)); end
|
474
|
-
end
|
475
|
-
end
|
476
|
-
|
477
|
-
# source://rubocop-rspec_rails//lib/rubocop/cop/rspec_rails/minitest_assertions.rb#254
|
478
|
-
RuboCop::Cop::RSpecRails::MinitestAssertions::EmptyAssertion::MATCHERS = T.let(T.unsafe(nil), Array)
|
479
|
-
|
480
|
-
# source://rubocop-rspec_rails//lib/rubocop/cop/rspec_rails/minitest_assertions.rb#70
|
481
|
-
class RuboCop::Cop::RSpecRails::MinitestAssertions::EqualAssertion < ::RuboCop::Cop::RSpecRails::MinitestAssertions::BasicAssertion
|
482
|
-
# source://rubocop-rspec_rails//lib/rubocop/cop/rspec_rails/minitest_assertions.rb#86
|
483
|
-
def assertion; end
|
484
|
-
|
485
|
-
class << self
|
486
|
-
# source://rubocop-rspec_rails//lib/rubocop/cop/rspec_rails/minitest_assertions.rb#82
|
487
|
-
def match(expected, actual, failure_message); end
|
488
|
-
|
489
|
-
# source://rubocop-rspec_rails//lib/rubocop/cop/rspec_rails/minitest_assertions.rb#78
|
490
|
-
def minitest_assertion(param0 = T.unsafe(nil)); end
|
491
|
-
end
|
492
|
-
end
|
493
|
-
|
494
|
-
# source://rubocop-rspec_rails//lib/rubocop/cop/rspec_rails/minitest_assertions.rb#71
|
495
|
-
RuboCop::Cop::RSpecRails::MinitestAssertions::EqualAssertion::MATCHERS = T.let(T.unsafe(nil), Array)
|
496
|
-
|
497
|
-
# source://rubocop-rspec_rails//lib/rubocop/cop/rspec_rails/minitest_assertions.rb#295
|
498
|
-
class RuboCop::Cop::RSpecRails::MinitestAssertions::FalseAssertion < ::RuboCop::Cop::RSpecRails::MinitestAssertions::BasicAssertion
|
499
|
-
# source://rubocop-rspec_rails//lib/rubocop/cop/rspec_rails/minitest_assertions.rb#309
|
500
|
-
def assertion; end
|
501
|
-
|
502
|
-
class << self
|
503
|
-
# source://rubocop-rspec_rails//lib/rubocop/cop/rspec_rails/minitest_assertions.rb#305
|
504
|
-
def match(actual, failure_message); end
|
505
|
-
|
506
|
-
# source://rubocop-rspec_rails//lib/rubocop/cop/rspec_rails/minitest_assertions.rb#301
|
507
|
-
def minitest_assertion(param0 = T.unsafe(nil)); end
|
508
|
-
end
|
509
|
-
end
|
510
|
-
|
511
|
-
# source://rubocop-rspec_rails//lib/rubocop/cop/rspec_rails/minitest_assertions.rb#296
|
512
|
-
RuboCop::Cop::RSpecRails::MinitestAssertions::FalseAssertion::MATCHERS = T.let(T.unsafe(nil), Array)
|
513
|
-
|
514
|
-
# source://rubocop-rspec_rails//lib/rubocop/cop/rspec_rails/minitest_assertions.rb#158
|
515
|
-
class RuboCop::Cop::RSpecRails::MinitestAssertions::InDeltaAssertion < ::RuboCop::Cop::RSpecRails::MinitestAssertions::BasicAssertion
|
516
|
-
# @return [InDeltaAssertion] a new instance of InDeltaAssertion
|
517
|
-
#
|
518
|
-
# source://rubocop-rspec_rails//lib/rubocop/cop/rspec_rails/minitest_assertions.rb#174
|
519
|
-
def initialize(expected, actual, delta, fail_message); end
|
520
|
-
|
521
|
-
# source://rubocop-rspec_rails//lib/rubocop/cop/rspec_rails/minitest_assertions.rb#180
|
522
|
-
def assertion; end
|
523
|
-
|
524
|
-
class << self
|
525
|
-
# source://rubocop-rspec_rails//lib/rubocop/cop/rspec_rails/minitest_assertions.rb#170
|
526
|
-
def match(expected, actual, delta, failure_message); end
|
527
|
-
|
528
|
-
# source://rubocop-rspec_rails//lib/rubocop/cop/rspec_rails/minitest_assertions.rb#166
|
529
|
-
def minitest_assertion(param0 = T.unsafe(nil)); end
|
530
|
-
end
|
531
|
-
end
|
532
|
-
|
533
|
-
# source://rubocop-rspec_rails//lib/rubocop/cop/rspec_rails/minitest_assertions.rb#159
|
534
|
-
RuboCop::Cop::RSpecRails::MinitestAssertions::InDeltaAssertion::MATCHERS = T.let(T.unsafe(nil), Array)
|
535
|
-
|
536
|
-
# source://rubocop-rspec_rails//lib/rubocop/cop/rspec_rails/minitest_assertions.rb#136
|
537
|
-
class RuboCop::Cop::RSpecRails::MinitestAssertions::IncludesAssertion < ::RuboCop::Cop::RSpecRails::MinitestAssertions::BasicAssertion
|
538
|
-
# source://rubocop-rspec_rails//lib/rubocop/cop/rspec_rails/minitest_assertions.rb#152
|
539
|
-
def assertion; end
|
540
|
-
|
541
|
-
class << self
|
542
|
-
# source://rubocop-rspec_rails//lib/rubocop/cop/rspec_rails/minitest_assertions.rb#148
|
543
|
-
def match(collection, expected, failure_message); end
|
544
|
-
|
545
|
-
# source://rubocop-rspec_rails//lib/rubocop/cop/rspec_rails/minitest_assertions.rb#144
|
546
|
-
def minitest_assertion(param0 = T.unsafe(nil)); end
|
547
|
-
end
|
548
|
-
end
|
549
|
-
|
550
|
-
# source://rubocop-rspec_rails//lib/rubocop/cop/rspec_rails/minitest_assertions.rb#137
|
551
|
-
RuboCop::Cop::RSpecRails::MinitestAssertions::IncludesAssertion::MATCHERS = T.let(T.unsafe(nil), Array)
|
552
|
-
|
553
|
-
# source://rubocop-rspec_rails//lib/rubocop/cop/rspec_rails/minitest_assertions.rb#114
|
554
|
-
class RuboCop::Cop::RSpecRails::MinitestAssertions::InstanceOfAssertion < ::RuboCop::Cop::RSpecRails::MinitestAssertions::BasicAssertion
|
555
|
-
# source://rubocop-rspec_rails//lib/rubocop/cop/rspec_rails/minitest_assertions.rb#130
|
556
|
-
def assertion; end
|
557
|
-
|
558
|
-
class << self
|
559
|
-
# source://rubocop-rspec_rails//lib/rubocop/cop/rspec_rails/minitest_assertions.rb#126
|
560
|
-
def match(expected, actual, failure_message); end
|
561
|
-
|
562
|
-
# source://rubocop-rspec_rails//lib/rubocop/cop/rspec_rails/minitest_assertions.rb#122
|
563
|
-
def minitest_assertion(param0 = T.unsafe(nil)); end
|
564
|
-
end
|
565
|
-
end
|
566
|
-
|
567
|
-
# source://rubocop-rspec_rails//lib/rubocop/cop/rspec_rails/minitest_assertions.rb#115
|
568
|
-
RuboCop::Cop::RSpecRails::MinitestAssertions::InstanceOfAssertion::MATCHERS = T.let(T.unsafe(nil), Array)
|
569
|
-
|
570
|
-
# source://rubocop-rspec_rails//lib/rubocop/cop/rspec_rails/minitest_assertions.rb#92
|
571
|
-
class RuboCop::Cop::RSpecRails::MinitestAssertions::KindOfAssertion < ::RuboCop::Cop::RSpecRails::MinitestAssertions::BasicAssertion
|
572
|
-
# source://rubocop-rspec_rails//lib/rubocop/cop/rspec_rails/minitest_assertions.rb#108
|
573
|
-
def assertion; end
|
574
|
-
|
575
|
-
class << self
|
576
|
-
# source://rubocop-rspec_rails//lib/rubocop/cop/rspec_rails/minitest_assertions.rb#104
|
577
|
-
def match(expected, actual, failure_message); end
|
578
|
-
|
579
|
-
# source://rubocop-rspec_rails//lib/rubocop/cop/rspec_rails/minitest_assertions.rb#100
|
580
|
-
def minitest_assertion(param0 = T.unsafe(nil)); end
|
581
|
-
end
|
582
|
-
end
|
583
|
-
|
584
|
-
# source://rubocop-rspec_rails//lib/rubocop/cop/rspec_rails/minitest_assertions.rb#93
|
585
|
-
RuboCop::Cop::RSpecRails::MinitestAssertions::KindOfAssertion::MATCHERS = T.let(T.unsafe(nil), Array)
|
586
|
-
|
587
|
-
# source://rubocop-rspec_rails//lib/rubocop/cop/rspec_rails/minitest_assertions.rb#314
|
588
|
-
RuboCop::Cop::RSpecRails::MinitestAssertions::MSG = T.let(T.unsafe(nil), String)
|
589
|
-
|
590
|
-
# source://rubocop-rspec_rails//lib/rubocop/cop/rspec_rails/minitest_assertions.rb#210
|
591
|
-
class RuboCop::Cop::RSpecRails::MinitestAssertions::MatchAssertion < ::RuboCop::Cop::RSpecRails::MinitestAssertions::BasicAssertion
|
592
|
-
# source://rubocop-rspec_rails//lib/rubocop/cop/rspec_rails/minitest_assertions.rb#225
|
593
|
-
def assertion; end
|
594
|
-
|
595
|
-
class << self
|
596
|
-
# source://rubocop-rspec_rails//lib/rubocop/cop/rspec_rails/minitest_assertions.rb#221
|
597
|
-
def match(matcher, actual, failure_message); end
|
598
|
-
|
599
|
-
# source://rubocop-rspec_rails//lib/rubocop/cop/rspec_rails/minitest_assertions.rb#217
|
600
|
-
def minitest_assertion(param0 = T.unsafe(nil)); end
|
601
|
-
end
|
602
|
-
end
|
603
|
-
|
604
|
-
# source://rubocop-rspec_rails//lib/rubocop/cop/rspec_rails/minitest_assertions.rb#211
|
605
|
-
RuboCop::Cop::RSpecRails::MinitestAssertions::MatchAssertion::MATCHERS = T.let(T.unsafe(nil), Array)
|
606
|
-
|
607
|
-
# source://rubocop-rspec_rails//lib/rubocop/cop/rspec_rails/minitest_assertions.rb#231
|
608
|
-
class RuboCop::Cop::RSpecRails::MinitestAssertions::NilAssertion < ::RuboCop::Cop::RSpecRails::MinitestAssertions::BasicAssertion
|
609
|
-
# source://rubocop-rspec_rails//lib/rubocop/cop/rspec_rails/minitest_assertions.rb#247
|
610
|
-
def assertion; end
|
611
|
-
|
612
|
-
class << self
|
613
|
-
# source://rubocop-rspec_rails//lib/rubocop/cop/rspec_rails/minitest_assertions.rb#243
|
614
|
-
def match(actual, failure_message); end
|
615
|
-
|
616
|
-
# source://rubocop-rspec_rails//lib/rubocop/cop/rspec_rails/minitest_assertions.rb#239
|
617
|
-
def minitest_assertion(param0 = T.unsafe(nil)); end
|
618
|
-
end
|
619
|
-
end
|
620
|
-
|
621
|
-
# source://rubocop-rspec_rails//lib/rubocop/cop/rspec_rails/minitest_assertions.rb#232
|
622
|
-
RuboCop::Cop::RSpecRails::MinitestAssertions::NilAssertion::MATCHERS = T.let(T.unsafe(nil), Array)
|
623
|
-
|
624
|
-
# source://rubocop-rspec_rails//lib/rubocop/cop/rspec_rails/minitest_assertions.rb#186
|
625
|
-
class RuboCop::Cop::RSpecRails::MinitestAssertions::PredicateAssertion < ::RuboCop::Cop::RSpecRails::MinitestAssertions::BasicAssertion
|
626
|
-
# source://rubocop-rspec_rails//lib/rubocop/cop/rspec_rails/minitest_assertions.rb#204
|
627
|
-
def assertion; end
|
628
|
-
|
629
|
-
class << self
|
630
|
-
# source://rubocop-rspec_rails//lib/rubocop/cop/rspec_rails/minitest_assertions.rb#198
|
631
|
-
def match(subject, predicate, failure_message); end
|
632
|
-
|
633
|
-
# source://rubocop-rspec_rails//lib/rubocop/cop/rspec_rails/minitest_assertions.rb#194
|
634
|
-
def minitest_assertion(param0 = T.unsafe(nil)); end
|
635
|
-
end
|
636
|
-
end
|
637
|
-
|
638
|
-
# source://rubocop-rspec_rails//lib/rubocop/cop/rspec_rails/minitest_assertions.rb#187
|
639
|
-
RuboCop::Cop::RSpecRails::MinitestAssertions::PredicateAssertion::MATCHERS = T.let(T.unsafe(nil), Array)
|
640
|
-
|
641
|
-
# source://rubocop-rspec_rails//lib/rubocop/cop/rspec_rails/minitest_assertions.rb#323
|
642
|
-
RuboCop::Cop::RSpecRails::MinitestAssertions::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array)
|
643
|
-
|
644
|
-
# source://rubocop-rspec_rails//lib/rubocop/cop/rspec_rails/minitest_assertions.rb#275
|
645
|
-
class RuboCop::Cop::RSpecRails::MinitestAssertions::TrueAssertion < ::RuboCop::Cop::RSpecRails::MinitestAssertions::BasicAssertion
|
646
|
-
# source://rubocop-rspec_rails//lib/rubocop/cop/rspec_rails/minitest_assertions.rb#289
|
647
|
-
def assertion; end
|
648
|
-
|
649
|
-
class << self
|
650
|
-
# source://rubocop-rspec_rails//lib/rubocop/cop/rspec_rails/minitest_assertions.rb#285
|
651
|
-
def match(actual, failure_message); end
|
652
|
-
|
653
|
-
# source://rubocop-rspec_rails//lib/rubocop/cop/rspec_rails/minitest_assertions.rb#281
|
654
|
-
def minitest_assertion(param0 = T.unsafe(nil)); end
|
655
|
-
end
|
656
|
-
end
|
657
|
-
|
658
|
-
# source://rubocop-rspec_rails//lib/rubocop/cop/rspec_rails/minitest_assertions.rb#276
|
659
|
-
RuboCop::Cop::RSpecRails::MinitestAssertions::TrueAssertion::MATCHERS = T.let(T.unsafe(nil), Array)
|
660
|
-
|
661
|
-
# Enforces use of `be_invalid` or `not_to` for negated be_valid.
|
662
|
-
#
|
663
|
-
# @example EnforcedStyle: not_to (default)
|
664
|
-
# # bad
|
665
|
-
# expect(foo).to be_invalid
|
666
|
-
#
|
667
|
-
# # good
|
668
|
-
# expect(foo).not_to be_valid
|
669
|
-
#
|
670
|
-
# # good (with method chain)
|
671
|
-
# expect(foo).to be_invalid.and be_odd
|
672
|
-
# @example EnforcedStyle: be_invalid
|
673
|
-
# # bad
|
674
|
-
# expect(foo).not_to be_valid
|
675
|
-
#
|
676
|
-
# # good
|
677
|
-
# expect(foo).to be_invalid
|
678
|
-
#
|
679
|
-
# # good (with method chain)
|
680
|
-
# expect(foo).to be_invalid.or be_even
|
681
|
-
#
|
682
|
-
# source://rubocop-rspec_rails//lib/rubocop/cop/rspec_rails/negation_be_valid.rb#32
|
683
|
-
class RuboCop::Cop::RSpecRails::NegationBeValid < ::RuboCop::Cop::Base
|
684
|
-
include ::RuboCop::Cop::ConfigurableEnforcedStyle
|
685
|
-
extend ::RuboCop::Cop::AutoCorrector
|
686
|
-
|
687
|
-
# source://rubocop-rspec_rails//lib/rubocop/cop/rspec_rails/negation_be_valid.rb#45
|
688
|
-
def be_invalid?(param0 = T.unsafe(nil)); end
|
689
|
-
|
690
|
-
# source://rubocop-rspec_rails//lib/rubocop/cop/rspec_rails/negation_be_valid.rb#40
|
691
|
-
def not_to?(param0 = T.unsafe(nil)); end
|
692
|
-
|
693
|
-
# source://rubocop-rspec_rails//lib/rubocop/cop/rspec_rails/negation_be_valid.rb#49
|
694
|
-
def on_send(node); end
|
695
|
-
|
696
|
-
private
|
697
|
-
|
698
|
-
# source://rubocop-rspec_rails//lib/rubocop/cop/rspec_rails/negation_be_valid.rb#74
|
699
|
-
def message(_matcher); end
|
700
|
-
|
701
|
-
# @return [Boolean]
|
702
|
-
#
|
703
|
-
# source://rubocop-rspec_rails//lib/rubocop/cop/rspec_rails/negation_be_valid.rb#61
|
704
|
-
def offense?(node); end
|
705
|
-
|
706
|
-
# source://rubocop-rspec_rails//lib/rubocop/cop/rspec_rails/negation_be_valid.rb#70
|
707
|
-
def offense_range(node); end
|
708
|
-
|
709
|
-
# source://rubocop-rspec_rails//lib/rubocop/cop/rspec_rails/negation_be_valid.rb#87
|
710
|
-
def replaced_matcher; end
|
711
|
-
|
712
|
-
# source://rubocop-rspec_rails//lib/rubocop/cop/rspec_rails/negation_be_valid.rb#78
|
713
|
-
def replaced_runner; end
|
714
|
-
end
|
715
|
-
|
716
|
-
# source://rubocop-rspec_rails//lib/rubocop/cop/rspec_rails/negation_be_valid.rb#36
|
717
|
-
RuboCop::Cop::RSpecRails::NegationBeValid::MSG = T.let(T.unsafe(nil), String)
|
718
|
-
|
719
|
-
# source://rubocop-rspec_rails//lib/rubocop/cop/rspec_rails/negation_be_valid.rb#37
|
720
|
-
RuboCop::Cop::RSpecRails::NegationBeValid::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array)
|
721
|
-
|
722
|
-
# Prefer to travel in `before` rather than `around`.
|
723
|
-
#
|
724
|
-
# @example
|
725
|
-
# # bad
|
726
|
-
# around do |example|
|
727
|
-
# freeze_time do
|
728
|
-
# example.run
|
729
|
-
# end
|
730
|
-
# end
|
731
|
-
#
|
732
|
-
# # good
|
733
|
-
# before { freeze_time }
|
734
|
-
#
|
735
|
-
# source://rubocop-rspec_rails//lib/rubocop/cop/rspec_rails/travel_around.rb#26
|
736
|
-
class RuboCop::Cop::RSpecRails::TravelAround < ::RuboCop::Cop::Base
|
737
|
-
extend ::RuboCop::Cop::AutoCorrector
|
738
|
-
|
739
|
-
# source://rubocop-rspec_rails//lib/rubocop/cop/rspec_rails/travel_around.rb#38
|
740
|
-
def extract_run_in_travel(param0 = T.unsafe(nil)); end
|
741
|
-
|
742
|
-
# source://rubocop-rspec_rails//lib/rubocop/cop/rspec_rails/travel_around.rb#47
|
743
|
-
def match_around_each?(param0 = T.unsafe(nil)); end
|
744
|
-
|
745
|
-
# source://rubocop-rspec_rails//lib/rubocop/cop/rspec_rails/travel_around.rb#54
|
746
|
-
def on_block(node); end
|
747
|
-
|
748
|
-
# source://rubocop-rspec_rails//lib/rubocop/cop/rspec_rails/travel_around.rb#54
|
749
|
-
def on_numblock(node); end
|
750
|
-
|
751
|
-
private
|
752
|
-
|
753
|
-
# source://rubocop-rspec_rails//lib/rubocop/cop/rspec_rails/travel_around.rb#69
|
754
|
-
def autocorrect(corrector, node, run_node, around_node); end
|
755
|
-
|
756
|
-
# @param node [RuboCop::AST::BlockNode]
|
757
|
-
# @return [RuboCop::AST::BlockNode, nil]
|
758
|
-
#
|
759
|
-
# source://rubocop-rspec_rails//lib/rubocop/cop/rspec_rails/travel_around.rb#82
|
760
|
-
def extract_surrounding_around_block(node); end
|
761
|
-
end
|
762
|
-
|
763
|
-
# source://rubocop-rspec_rails//lib/rubocop/cop/rspec_rails/travel_around.rb#29
|
764
|
-
RuboCop::Cop::RSpecRails::TravelAround::MSG = T.let(T.unsafe(nil), String)
|
765
|
-
|
766
|
-
# source://rubocop-rspec_rails//lib/rubocop/cop/rspec_rails/travel_around.rb#31
|
767
|
-
RuboCop::Cop::RSpecRails::TravelAround::TRAVEL_METHOD_NAMES = T.let(T.unsafe(nil), Set)
|
768
|
-
|
769
|
-
# source://rubocop-rspec_rails//lib/rubocop-rspec_rails.rb#24
|
770
|
-
class RuboCop::Cop::Registry
|
771
|
-
# source://rubocop/1.64.1/lib/rubocop/cop/registry.rb#51
|
772
|
-
def initialize(cops = T.unsafe(nil), options = T.unsafe(nil)); end
|
773
|
-
|
774
|
-
# source://rubocop/1.64.1/lib/rubocop/cop/registry.rb#232
|
775
|
-
def ==(other); end
|
776
|
-
|
777
|
-
# source://rubocop/1.64.1/lib/rubocop/cop/registry.rb#97
|
778
|
-
def contains_cop_matching?(names); end
|
779
|
-
|
780
|
-
# source://rubocop/1.64.1/lib/rubocop/cop/registry.rb#179
|
781
|
-
def cops; end
|
782
|
-
|
783
|
-
# source://rubocop/1.64.1/lib/rubocop/cop/registry.rb#224
|
784
|
-
def cops_for_department(department); end
|
785
|
-
|
786
|
-
# source://rubocop/1.64.1/lib/rubocop/cop/registry.rb#93
|
787
|
-
def department?(name); end
|
788
|
-
|
789
|
-
# source://rubocop/1.64.1/lib/rubocop/cop/registry.rb#147
|
790
|
-
def department_missing?(badge, name); end
|
791
|
-
|
792
|
-
# source://rubocop/1.64.1/lib/rubocop/cop/registry.rb#72
|
793
|
-
def departments; end
|
794
|
-
|
795
|
-
# source://rubocop/1.64.1/lib/rubocop/cop/registry.rb#193
|
796
|
-
def disabled(config); end
|
797
|
-
|
798
|
-
# source://rubocop/1.64.1/lib/rubocop/cop/registry.rb#67
|
799
|
-
def dismiss(cop); end
|
800
|
-
|
801
|
-
# source://rubocop/1.64.1/lib/rubocop/cop/registry.rb#247
|
802
|
-
def each(&block); end
|
803
|
-
|
804
|
-
# source://rubocop/1.64.1/lib/rubocop/cop/registry.rb#189
|
805
|
-
def enabled(config); end
|
806
|
-
|
807
|
-
# source://rubocop/1.64.1/lib/rubocop/cop/registry.rb#197
|
808
|
-
def enabled?(cop, config); end
|
809
|
-
|
810
|
-
# source://rubocop/1.64.1/lib/rubocop/cop/registry.rb#213
|
811
|
-
def enabled_pending_cop?(cop_cfg, config); end
|
812
|
-
|
813
|
-
# source://rubocop/1.64.1/lib/rubocop/cop/registry.rb#63
|
814
|
-
def enlist(cop); end
|
815
|
-
|
816
|
-
# source://rubocop/1.64.1/lib/rubocop/cop/registry.rb#253
|
817
|
-
def find_by_cop_name(cop_name); end
|
818
|
-
|
819
|
-
# source://rubocop/1.64.1/lib/rubocop/cop/registry.rb#260
|
820
|
-
def find_cops_by_directive(directive); end
|
821
|
-
|
822
|
-
# source://rubocop/1.64.1/lib/rubocop/cop/registry.rb#265
|
823
|
-
def freeze; end
|
824
|
-
|
825
|
-
# source://rubocop/1.64.1/lib/rubocop/cop/registry.rb#184
|
826
|
-
def length; end
|
827
|
-
|
828
|
-
# source://rubocop/1.64.1/lib/rubocop/cop/registry.rb#220
|
829
|
-
def names; end
|
830
|
-
|
831
|
-
# source://rubocop/1.64.1/lib/rubocop/cop/registry.rb#228
|
832
|
-
def names_for_department(department); end
|
833
|
-
|
834
|
-
# source://rubocop/1.64.1/lib/rubocop/cop/registry.rb#49
|
835
|
-
def options; end
|
836
|
-
|
837
|
-
# source://rubocop/1.64.1/lib/rubocop/cop/registry.rb#151
|
838
|
-
def print_warning(name, path); end
|
839
|
-
|
840
|
-
# source://rubocop-rspec_rails//lib/rubocop-rspec_rails.rb#26
|
841
|
-
def qualified_cop_name(name, path, warn: T.unsafe(nil)); end
|
842
|
-
|
843
|
-
# source://rubocop/1.64.1/lib/rubocop/cop/registry.rb#166
|
844
|
-
def qualify_badge(badge); end
|
845
|
-
|
846
|
-
# source://rubocop/1.64.1/lib/rubocop/cop/registry.rb#243
|
847
|
-
def select(&block); end
|
848
|
-
|
849
|
-
# source://rubocop/1.64.1/lib/rubocop/cop/registry.rb#236
|
850
|
-
def sort!; end
|
851
|
-
|
852
|
-
# source://rubocop/1.64.1/lib/rubocop/cop/registry.rb#174
|
853
|
-
def to_h; end
|
854
|
-
|
855
|
-
# source://rubocop/1.64.1/lib/rubocop/cop/registry.rb#159
|
856
|
-
def unqualified_cop_names; end
|
857
|
-
|
858
|
-
# source://rubocop/1.64.1/lib/rubocop/cop/registry.rb#78
|
859
|
-
def with_department(department); end
|
860
|
-
|
861
|
-
# source://rubocop/1.64.1/lib/rubocop/cop/registry.rb#84
|
862
|
-
def without_department(department); end
|
863
|
-
|
864
|
-
private
|
865
|
-
|
866
|
-
# source://rubocop/1.64.1/lib/rubocop/cop/registry.rb#283
|
867
|
-
def clear_enrollment_queue; end
|
868
|
-
|
869
|
-
# source://rubocop/1.64.1/lib/rubocop/cop/registry.rb#279
|
870
|
-
def initialize_copy(reg); end
|
871
|
-
|
872
|
-
# source://rubocop/1.64.1/lib/rubocop/cop/registry.rb#309
|
873
|
-
def registered?(badge); end
|
874
|
-
|
875
|
-
# source://rubocop/1.64.1/lib/rubocop/cop/registry.rb#299
|
876
|
-
def resolve_badge(given_badge, real_badge, source_path); end
|
877
|
-
|
878
|
-
# source://rubocop/1.64.1/lib/rubocop/cop/registry.rb#295
|
879
|
-
def with(cops); end
|
880
|
-
|
881
|
-
class << self
|
882
|
-
# source://rubocop/1.64.1/lib/rubocop/cop/registry.rb#22
|
883
|
-
def all; end
|
884
|
-
|
885
|
-
# source://rubocop/1.64.1/lib/rubocop/cop/registry.rb#274
|
886
|
-
def global; end
|
887
|
-
|
888
|
-
# source://rubocop/1.64.1/lib/rubocop/cop/registry.rb#44
|
889
|
-
def qualified_cop?(name); end
|
890
|
-
|
891
|
-
# source://rubocop/1.64.1/lib/rubocop/cop/registry.rb#26
|
892
|
-
def qualified_cop_name(name, origin); end
|
893
|
-
|
894
|
-
# source://rubocop/1.64.1/lib/rubocop/cop/registry.rb#40
|
895
|
-
def reset!; end
|
896
|
-
|
897
|
-
# source://rubocop/1.64.1/lib/rubocop/cop/registry.rb#32
|
898
|
-
def with_temporary_global(temp_global = T.unsafe(nil)); end
|
899
|
-
end
|
900
|
-
end
|
901
|
-
|
902
|
-
# source://rubocop-rspec_rails//lib/rubocop/rspec_rails/version.rb#4
|
903
|
-
module RuboCop::RSpecRails; end
|
904
|
-
|
905
|
-
# Version information for the RSpec Rails RuboCop plugin.
|
906
|
-
#
|
907
|
-
# source://rubocop-rspec_rails//lib/rubocop/rspec_rails/version.rb#6
|
908
|
-
module RuboCop::RSpecRails::Version; end
|
909
|
-
|
910
|
-
# source://rubocop-rspec_rails//lib/rubocop/rspec_rails/version.rb#7
|
911
|
-
RuboCop::RSpecRails::Version::STRING = T.let(T.unsafe(nil), String)
|