muina 0.2.8 → 0.4.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (161) hide show
  1. checksums.yaml +4 -4
  2. data/LICENSE +25 -0
  3. data/README.md +0 -35
  4. data/lib/muina/maybe/none.rb +61 -0
  5. data/lib/muina/maybe/some.rb +62 -0
  6. data/lib/muina/maybe.rb +13 -0
  7. data/lib/muina/result/failure.rb +7 -18
  8. data/lib/muina/result/success.rb +7 -18
  9. data/lib/muina/result.rb +6 -8
  10. data/lib/muina/version.rb +1 -2
  11. data/lib/muina.rb +0 -32
  12. metadata +24 -225
  13. data/.github/workflows/main.yml +0 -16
  14. data/.gitignore +0 -5
  15. data/.mutant.yml +0 -38
  16. data/.rspec +0 -4
  17. data/.rubocop.yml +0 -181
  18. data/.ruby-version +0 -1
  19. data/.simplecov +0 -14
  20. data/CHANGELOG.md +0 -38
  21. data/Gemfile +0 -34
  22. data/Gemfile.lock +0 -265
  23. data/Guardfile +0 -24
  24. data/Rakefile +0 -13
  25. data/SECURITY.md +0 -14
  26. data/bin/bundle +0 -114
  27. data/bin/console +0 -15
  28. data/bin/flay +0 -29
  29. data/bin/flog +0 -29
  30. data/bin/guard +0 -29
  31. data/bin/irb +0 -29
  32. data/bin/lefthook +0 -29
  33. data/bin/mutant +0 -29
  34. data/bin/parlour +0 -29
  35. data/bin/rake +0 -29
  36. data/bin/rspec +0 -29
  37. data/bin/rubocop +0 -29
  38. data/bin/setup +0 -8
  39. data/bin/srb +0 -29
  40. data/bin/srb-rbi +0 -29
  41. data/bin/tapioca +0 -29
  42. data/exe/muina +0 -11
  43. data/lefthook.yml +0 -39
  44. data/lib/muina/action/params_factory.rb +0 -17
  45. data/lib/muina/action/step/command.rb +0 -33
  46. data/lib/muina/action/step/failure.rb +0 -18
  47. data/lib/muina/action/step/query.rb +0 -35
  48. data/lib/muina/action/step/result.rb +0 -56
  49. data/lib/muina/action/step.rb +0 -13
  50. data/lib/muina/action.rb +0 -73
  51. data/lib/muina/any.rb +0 -7
  52. data/lib/muina/classes.rb +0 -7
  53. data/lib/muina/deprecator.rb +0 -93
  54. data/lib/muina/entity.rb +0 -20
  55. data/lib/muina/module.rb +0 -6
  56. data/lib/muina/parameters.rb +0 -7
  57. data/lib/muina/params.rb +0 -19
  58. data/lib/muina/private_creation.rb +0 -12
  59. data/lib/muina/result/factory.rb +0 -37
  60. data/lib/muina/result/null.rb +0 -25
  61. data/lib/muina/service.rb +0 -25
  62. data/lib/muina/symbol_hash.rb +0 -7
  63. data/lib/muina/unit.rb +0 -10
  64. data/lib/muina/untyped_array.rb +0 -7
  65. data/lib/muina/untyped_hash.rb +0 -7
  66. data/lib/muina/value.rb +0 -24
  67. data/muina.gemspec +0 -35
  68. data/rbi/muina.rbi +0 -311
  69. data/sorbet/config +0 -2
  70. data/sorbet/rbi/gems/actionpack@6.1.4.rbi +0 -5045
  71. data/sorbet/rbi/gems/actionview@6.1.4.rbi +0 -2416
  72. data/sorbet/rbi/gems/activesupport@6.1.4.rbi +0 -3778
  73. data/sorbet/rbi/gems/ast@2.4.2.rbi +0 -54
  74. data/sorbet/rbi/gems/awesome_print@1.9.2.rbi +0 -322
  75. data/sorbet/rbi/gems/builder@3.2.4.rbi +0 -8
  76. data/sorbet/rbi/gems/byebug@11.1.3.rbi +0 -18
  77. data/sorbet/rbi/gems/coderay@1.1.3.rbi +0 -8
  78. data/sorbet/rbi/gems/colorize@0.8.1.rbi +0 -39
  79. data/sorbet/rbi/gems/commander@4.6.0.rbi +0 -8
  80. data/sorbet/rbi/gems/concurrent-ruby@1.1.9.rbi +0 -2403
  81. data/sorbet/rbi/gems/crass@1.0.6.rbi +0 -123
  82. data/sorbet/rbi/gems/diff-lcs@1.4.4.rbi +0 -185
  83. data/sorbet/rbi/gems/docile@1.4.0.rbi +0 -54
  84. data/sorbet/rbi/gems/erubi@1.10.0.rbi +0 -36
  85. data/sorbet/rbi/gems/erubis@2.7.0.rbi +0 -8
  86. data/sorbet/rbi/gems/faker@2.18.0.rbi +0 -2469
  87. data/sorbet/rbi/gems/ffi@1.15.3.rbi +0 -8
  88. data/sorbet/rbi/gems/flay@2.12.1.rbi +0 -178
  89. data/sorbet/rbi/gems/flog@4.6.4.rbi +0 -70
  90. data/sorbet/rbi/gems/formatador@0.3.0.rbi +0 -8
  91. data/sorbet/rbi/gems/guard-compat@1.2.1.rbi +0 -49
  92. data/sorbet/rbi/gems/guard-rspec@4.7.3.rbi +0 -233
  93. data/sorbet/rbi/gems/guard-rubocop@1.4.0.rbi +0 -66
  94. data/sorbet/rbi/gems/guard-shell@0.7.2.rbi +0 -69
  95. data/sorbet/rbi/gems/guard@2.18.0.rbi +0 -617
  96. data/sorbet/rbi/gems/highline@2.0.3.rbi +0 -8
  97. data/sorbet/rbi/gems/i18n@1.8.10.rbi +0 -616
  98. data/sorbet/rbi/gems/io-console@0.5.9.rbi +0 -8
  99. data/sorbet/rbi/gems/irb@1.3.6.rbi +0 -452
  100. data/sorbet/rbi/gems/lefthook@0.7.6.rbi +0 -8
  101. data/sorbet/rbi/gems/listen@3.6.0.rbi +0 -476
  102. data/sorbet/rbi/gems/loofah@2.10.0.rbi +0 -223
  103. data/sorbet/rbi/gems/lumberjack@1.2.8.rbi +0 -431
  104. data/sorbet/rbi/gems/method_source@1.0.0.rbi +0 -8
  105. data/sorbet/rbi/gems/minitest@5.14.4.rbi +0 -344
  106. data/sorbet/rbi/gems/mutant-license@0.1.1.1.4043027289354708743625974235631451632228.0.rbi +0 -8
  107. data/sorbet/rbi/gems/mutant-rspec@0.10.32.rbi +0 -8
  108. data/sorbet/rbi/gems/mutant@0.10.32.rbi +0 -4154
  109. data/sorbet/rbi/gems/nenv@0.3.0.rbi +0 -88
  110. data/sorbet/rbi/gems/nokogiri@1.11.7.rbi +0 -1422
  111. data/sorbet/rbi/gems/notiffany@0.1.3.rbi +0 -331
  112. data/sorbet/rbi/gems/parallel@1.20.1.rbi +0 -113
  113. data/sorbet/rbi/gems/parlour@6.0.1.rbi +0 -1726
  114. data/sorbet/rbi/gems/parser@3.0.2.0.rbi +0 -1683
  115. data/sorbet/rbi/gems/path_expander@1.1.0.rbi +0 -24
  116. data/sorbet/rbi/gems/polyfill@1.9.0.rbi +0 -393
  117. data/sorbet/rbi/gems/pry@0.14.1.rbi +0 -8
  118. data/sorbet/rbi/gems/racc@1.5.2.rbi +0 -47
  119. data/sorbet/rbi/gems/rack-test@1.1.0.rbi +0 -272
  120. data/sorbet/rbi/gems/rack@2.2.3.rbi +0 -1618
  121. data/sorbet/rbi/gems/rails-dom-testing@2.0.3.rbi +0 -92
  122. data/sorbet/rbi/gems/rails-html-sanitizer@1.3.0.rbi +0 -183
  123. data/sorbet/rbi/gems/rainbow@3.0.0.rbi +0 -153
  124. data/sorbet/rbi/gems/rake@13.0.6.rbi +0 -808
  125. data/sorbet/rbi/gems/rb-fsevent@0.11.0.rbi +0 -8
  126. data/sorbet/rbi/gems/rb-inotify@0.10.1.rbi +0 -8
  127. data/sorbet/rbi/gems/regexp_parser@2.1.1.rbi +0 -1120
  128. data/sorbet/rbi/gems/reline@0.2.6.rbi +0 -662
  129. data/sorbet/rbi/gems/rexml@3.2.5.rbi +0 -672
  130. data/sorbet/rbi/gems/rspec-core@3.10.1.rbi +0 -2509
  131. data/sorbet/rbi/gems/rspec-expectations@3.10.1.rbi +0 -1574
  132. data/sorbet/rbi/gems/rspec-mocks@3.10.2.rbi +0 -1462
  133. data/sorbet/rbi/gems/rspec-support@3.10.2.rbi +0 -509
  134. data/sorbet/rbi/gems/rspec@3.10.0.rbi +0 -38
  135. data/sorbet/rbi/gems/rubocop-ast@1.8.0.rbi +0 -2194
  136. data/sorbet/rbi/gems/rubocop-performance@1.11.4.rbi +0 -899
  137. data/sorbet/rbi/gems/rubocop-rake@0.6.0.rbi +0 -118
  138. data/sorbet/rbi/gems/rubocop-rspec@2.4.0.rbi +0 -1805
  139. data/sorbet/rbi/gems/rubocop-sorbet@0.6.2.rbi +0 -288
  140. data/sorbet/rbi/gems/rubocop@1.18.4.rbi +0 -13197
  141. data/sorbet/rbi/gems/ruby-progressbar@1.11.0.rbi +0 -405
  142. data/sorbet/rbi/gems/ruby_parser@3.16.0.rbi +0 -4528
  143. data/sorbet/rbi/gems/safe_type@1.1.1.rbi +0 -157
  144. data/sorbet/rbi/gems/sexp_processor@4.15.3.rbi +0 -359
  145. data/sorbet/rbi/gems/shellany@0.0.1.rbi +0 -28
  146. data/sorbet/rbi/gems/simplecov-html@0.12.3.rbi +0 -89
  147. data/sorbet/rbi/gems/simplecov@0.21.2.rbi +0 -577
  148. data/sorbet/rbi/gems/simplecov_json_formatter@0.1.3.rbi +0 -8
  149. data/sorbet/rbi/gems/sorbet-coerce@0.5.0.rbi +0 -42
  150. data/sorbet/rbi/gems/sorbet-rails@0.7.4.rbi +0 -8
  151. data/sorbet/rbi/gems/sorbet-struct-comparable@1.1.0.rbi +0 -17
  152. data/sorbet/rbi/gems/spoom@1.1.1.rbi +0 -1193
  153. data/sorbet/rbi/gems/tapioca@0.4.23.rbi +0 -1826
  154. data/sorbet/rbi/gems/thor@1.1.0.rbi +0 -838
  155. data/sorbet/rbi/gems/tzinfo@2.0.4.rbi +0 -856
  156. data/sorbet/rbi/gems/unicode-display_width@2.0.0.rbi +0 -26
  157. data/sorbet/rbi/gems/unparser@0.6.0.rbi +0 -2037
  158. data/sorbet/rbi/gems/zeitwerk@2.4.2.rbi +0 -173
  159. data/sorbet/rbi/todo.rbi +0 -8
  160. data/sorbet/rbi/typed_params.rbi +0 -7
  161. data/sorbet/tapioca/require.rb +0 -16
@@ -1,1805 +0,0 @@
1
- # DO NOT EDIT MANUALLY
2
- # This is an autogenerated file for types exported from the `rubocop-rspec` gem.
3
- # Please instead update this file by running `bin/tapioca sync`.
4
-
5
- # typed: true
6
-
7
- module RuboCop; end
8
- module RuboCop::Cop; end
9
- module RuboCop::Cop::Layout; end
10
-
11
- class RuboCop::Cop::Layout::ExtraSpacing < ::RuboCop::Cop::Base
12
- include ::RuboCop::Cop::PrecedingFollowingAlignment
13
- include ::RuboCop::Cop::RangeHelp
14
- extend ::RuboCop::Cop::AutoCorrector
15
-
16
- def on_new_investigation; end
17
-
18
- private
19
-
20
- def align_column(asgn_token); end
21
- def align_equal_sign(corrector, token, align_to); end
22
- def align_equal_signs(range, corrector); end
23
- def aligned_locations(locs); end
24
- def aligned_tok?(token); end
25
- def all_relevant_assignment_lines(line_number); end
26
- def allow_for_trailing_comments?; end
27
- def check_assignment(token); end
28
- def check_other(token1, token2, ast); end
29
- def check_tokens(ast, token1, token2); end
30
- def extra_space_range(token1, token2); end
31
- def force_equal_sign_alignment?; end
32
- def ignored_range?(ast, start_pos); end
33
- def ignored_ranges(ast); end
34
-
35
- class << self
36
- def autocorrect_incompatible_with; end
37
- end
38
- end
39
-
40
- RuboCop::Cop::Layout::ExtraSpacing::MSG_UNALIGNED_ASGN = T.let(T.unsafe(nil), String)
41
- RuboCop::Cop::Layout::ExtraSpacing::MSG_UNNECESSARY = T.let(T.unsafe(nil), String)
42
- module RuboCop::Cop::RSpec; end
43
-
44
- class RuboCop::Cop::RSpec::AlignLeftLetBrace < ::RuboCop::Cop::RSpec::Base
45
- extend ::RuboCop::Cop::AutoCorrector
46
-
47
- def on_new_investigation; end
48
-
49
- private
50
-
51
- def token_aligner; end
52
-
53
- class << self
54
- def autocorrect_incompatible_with; end
55
- end
56
- end
57
-
58
- RuboCop::Cop::RSpec::AlignLeftLetBrace::MSG = T.let(T.unsafe(nil), String)
59
-
60
- class RuboCop::Cop::RSpec::AlignRightLetBrace < ::RuboCop::Cop::RSpec::Base
61
- extend ::RuboCop::Cop::AutoCorrector
62
-
63
- def on_new_investigation; end
64
-
65
- private
66
-
67
- def token_aligner; end
68
-
69
- class << self
70
- def autocorrect_incompatible_with; end
71
- end
72
- end
73
-
74
- RuboCop::Cop::RSpec::AlignRightLetBrace::MSG = T.let(T.unsafe(nil), String)
75
-
76
- class RuboCop::Cop::RSpec::AnyInstance < ::RuboCop::Cop::RSpec::Base
77
- def on_send(node); end
78
- end
79
-
80
- RuboCop::Cop::RSpec::AnyInstance::MSG = T.let(T.unsafe(nil), String)
81
- RuboCop::Cop::RSpec::AnyInstance::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array)
82
-
83
- class RuboCop::Cop::RSpec::AroundBlock < ::RuboCop::Cop::RSpec::Base
84
- def find_arg_usage(param0); end
85
- def hook(param0 = T.unsafe(nil)); end
86
- def on_block(node); end
87
-
88
- private
89
-
90
- def add_no_arg_offense(node); end
91
- def check_for_unused_proxy(block, proxy); end
92
- end
93
-
94
- RuboCop::Cop::RSpec::AroundBlock::MSG_NO_ARG = T.let(T.unsafe(nil), String)
95
- RuboCop::Cop::RSpec::AroundBlock::MSG_UNUSED_ARG = T.let(T.unsafe(nil), String)
96
-
97
- class RuboCop::Cop::RSpec::Base < ::RuboCop::Cop::Base
98
- include ::RuboCop::RSpec::Language
99
- extend ::RuboCop::RSpec::Language::NodePattern
100
-
101
- def on_new_investigation; end
102
-
103
- class << self
104
- def inherited(subclass); end
105
- end
106
- end
107
-
108
- class RuboCop::Cop::RSpec::Be < ::RuboCop::Cop::RSpec::Base
109
- def be_without_args(param0 = T.unsafe(nil)); end
110
- def on_send(node); end
111
- end
112
-
113
- RuboCop::Cop::RSpec::Be::MSG = T.let(T.unsafe(nil), String)
114
-
115
- class RuboCop::Cop::RSpec::BeEql < ::RuboCop::Cop::RSpec::Base
116
- extend ::RuboCop::Cop::AutoCorrector
117
-
118
- def eql_type_with_identity(param0 = T.unsafe(nil)); end
119
- def on_send(node); end
120
- end
121
-
122
- RuboCop::Cop::RSpec::BeEql::MSG = T.let(T.unsafe(nil), String)
123
- RuboCop::Cop::RSpec::BeEql::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array)
124
-
125
- class RuboCop::Cop::RSpec::BeforeAfterAll < ::RuboCop::Cop::RSpec::Base
126
- def before_or_after_all(param0 = T.unsafe(nil)); end
127
- def on_send(node); end
128
- end
129
-
130
- RuboCop::Cop::RSpec::BeforeAfterAll::MSG = T.let(T.unsafe(nil), String)
131
- RuboCop::Cop::RSpec::BeforeAfterAll::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array)
132
- module RuboCop::Cop::RSpec::Capybara; end
133
-
134
- class RuboCop::Cop::RSpec::Capybara::CurrentPathExpectation < ::RuboCop::Cop::RSpec::Base
135
- extend ::RuboCop::Cop::AutoCorrector
136
-
137
- def as_is_matcher(param0 = T.unsafe(nil)); end
138
- def expectation_set_on_current_path(param0 = T.unsafe(nil)); end
139
- def on_send(node); end
140
- def regexp_str_matcher(param0 = T.unsafe(nil)); end
141
-
142
- private
143
-
144
- def add_ignore_query_options(corrector, node); end
145
- def autocorrect(corrector, node); end
146
- def convert_regexp_str_to_literal(corrector, matcher_node, regexp_str); end
147
- def rewrite_expectation(corrector, node, to_symbol, matcher_node); end
148
- end
149
-
150
- RuboCop::Cop::RSpec::Capybara::CurrentPathExpectation::MSG = T.let(T.unsafe(nil), String)
151
- RuboCop::Cop::RSpec::Capybara::CurrentPathExpectation::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array)
152
-
153
- class RuboCop::Cop::RSpec::Capybara::FeatureMethods < ::RuboCop::Cop::RSpec::Base
154
- extend ::RuboCop::Cop::AutoCorrector
155
-
156
- def capybara_speak(param0 = T.unsafe(nil)); end
157
- def feature_method(param0 = T.unsafe(nil)); end
158
- def message(range); end
159
- def on_block(node); end
160
- def spec?(param0 = T.unsafe(nil)); end
161
-
162
- private
163
-
164
- def enabled?(method_name); end
165
- def enabled_methods; end
166
- def inside_spec?(node); end
167
- def root_node?(node); end
168
- def root_with_siblings?(node); end
169
- end
170
-
171
- RuboCop::Cop::RSpec::Capybara::FeatureMethods::MAP = T.let(T.unsafe(nil), Hash)
172
- RuboCop::Cop::RSpec::Capybara::FeatureMethods::MSG = T.let(T.unsafe(nil), String)
173
-
174
- class RuboCop::Cop::RSpec::Capybara::VisibilityMatcher < ::RuboCop::Cop::RSpec::Base
175
- def on_send(node); end
176
- def visible_false?(param0 = T.unsafe(nil)); end
177
- def visible_true?(param0 = T.unsafe(nil)); end
178
-
179
- private
180
-
181
- def capybara_matcher?(method_name); end
182
- end
183
-
184
- RuboCop::Cop::RSpec::Capybara::VisibilityMatcher::CAPYBARA_MATCHER_METHODS = T.let(T.unsafe(nil), Array)
185
- RuboCop::Cop::RSpec::Capybara::VisibilityMatcher::MSG_FALSE = T.let(T.unsafe(nil), String)
186
- RuboCop::Cop::RSpec::Capybara::VisibilityMatcher::MSG_TRUE = T.let(T.unsafe(nil), String)
187
- RuboCop::Cop::RSpec::Capybara::VisibilityMatcher::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array)
188
-
189
- module RuboCop::Cop::RSpec::CommentsHelp
190
- include ::RuboCop::Cop::RSpec::FinalEndLocation
191
-
192
- def begin_pos_with_comment(node); end
193
- def buffer; end
194
- def end_line_position(node); end
195
- def source_range_with_comment(node); end
196
- def start_line_position(node); end
197
- end
198
-
199
- class RuboCop::Cop::RSpec::ContextMethod < ::RuboCop::Cop::RSpec::Base
200
- extend ::RuboCop::Cop::AutoCorrector
201
-
202
- def context_method(param0 = T.unsafe(nil)); end
203
- def on_block(node); end
204
-
205
- private
206
-
207
- def method_name?(description); end
208
- end
209
-
210
- RuboCop::Cop::RSpec::ContextMethod::MSG = T.let(T.unsafe(nil), String)
211
-
212
- class RuboCop::Cop::RSpec::ContextWording < ::RuboCop::Cop::RSpec::Base
213
- def context_wording(param0 = T.unsafe(nil)); end
214
- def on_block(node); end
215
-
216
- private
217
-
218
- def bad_prefix?(description); end
219
- def joined_prefixes; end
220
- def prefix_regex; end
221
- def prefixes; end
222
- end
223
-
224
- RuboCop::Cop::RSpec::ContextWording::MSG = T.let(T.unsafe(nil), String)
225
-
226
- class RuboCop::Cop::RSpec::DescribeClass < ::RuboCop::Cop::RSpec::Base
227
- include ::RuboCop::Cop::RSpec::TopLevelGroup
228
-
229
- def example_group_with_ignored_metadata?(param0 = T.unsafe(nil)); end
230
- def not_a_const_described(param0 = T.unsafe(nil)); end
231
- def on_top_level_group(node); end
232
- def sym_pair(param0 = T.unsafe(nil)); end
233
-
234
- private
235
-
236
- def ignored_metadata; end
237
- def ignored_metadata?(node); end
238
- def string_constant?(described); end
239
- end
240
-
241
- RuboCop::Cop::RSpec::DescribeClass::MSG = T.let(T.unsafe(nil), String)
242
-
243
- class RuboCop::Cop::RSpec::DescribeMethod < ::RuboCop::Cop::RSpec::Base
244
- include ::RuboCop::Cop::RSpec::TopLevelGroup
245
-
246
- def on_top_level_group(node); end
247
- def second_argument(param0 = T.unsafe(nil)); end
248
- end
249
-
250
- RuboCop::Cop::RSpec::DescribeMethod::MSG = T.let(T.unsafe(nil), String)
251
-
252
- class RuboCop::Cop::RSpec::DescribeSymbol < ::RuboCop::Cop::RSpec::Base
253
- def describe_symbol?(param0 = T.unsafe(nil)); end
254
- def on_send(node); end
255
- end
256
-
257
- RuboCop::Cop::RSpec::DescribeSymbol::MSG = T.let(T.unsafe(nil), String)
258
- RuboCop::Cop::RSpec::DescribeSymbol::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array)
259
-
260
- class RuboCop::Cop::RSpec::DescribedClass < ::RuboCop::Cop::RSpec::Base
261
- include ::RuboCop::Cop::ConfigurableEnforcedStyle
262
- extend ::RuboCop::Cop::AutoCorrector
263
-
264
- def common_instance_exec_closure?(param0 = T.unsafe(nil)); end
265
- def contains_described_class?(param0); end
266
- def described_constant(param0 = T.unsafe(nil)); end
267
- def on_block(node); end
268
- def rspec_block?(param0 = T.unsafe(nil)); end
269
- def scope_changing_syntax?(param0 = T.unsafe(nil)); end
270
-
271
- private
272
-
273
- def autocorrect(corrector, match); end
274
- def collapse_namespace(namespace, const); end
275
- def const_name(node); end
276
- def find_usage(node, &block); end
277
- def full_const_name(node); end
278
- def message(offense); end
279
- def namespace(node); end
280
- def offensive?(node); end
281
- def offensive_described_class?(node); end
282
- def scope_change?(node); end
283
- def skip_blocks?; end
284
- def skippable_block?(node); end
285
- end
286
-
287
- RuboCop::Cop::RSpec::DescribedClass::DESCRIBED_CLASS = T.let(T.unsafe(nil), String)
288
- RuboCop::Cop::RSpec::DescribedClass::MSG = T.let(T.unsafe(nil), String)
289
-
290
- class RuboCop::Cop::RSpec::DescribedClassModuleWrapping < ::RuboCop::Cop::RSpec::Base
291
- def find_rspec_blocks(param0); end
292
- def on_module(node); end
293
- end
294
-
295
- RuboCop::Cop::RSpec::DescribedClassModuleWrapping::MSG = T.let(T.unsafe(nil), String)
296
-
297
- class RuboCop::Cop::RSpec::Dialect < ::RuboCop::Cop::RSpec::Base
298
- include ::RuboCop::Cop::MethodPreference
299
- extend ::RuboCop::Cop::AutoCorrector
300
-
301
- def on_send(node); end
302
- def rspec_method?(param0 = T.unsafe(nil)); end
303
- end
304
-
305
- RuboCop::Cop::RSpec::Dialect::MSG = T.let(T.unsafe(nil), String)
306
-
307
- class RuboCop::Cop::RSpec::EmptyExampleGroup < ::RuboCop::Cop::RSpec::Base
308
- def example_group_body(param0 = T.unsafe(nil)); end
309
- def example_or_group_or_include?(param0 = T.unsafe(nil)); end
310
- def examples?(param0 = T.unsafe(nil)); end
311
- def examples_directly_or_in_block?(param0 = T.unsafe(nil)); end
312
- def examples_inside_block?(param0 = T.unsafe(nil)); end
313
- def on_block(node); end
314
-
315
- private
316
-
317
- def conditionals_with_examples?(body); end
318
- def examples_in_branches?(if_node); end
319
- def offensive?(body); end
320
- end
321
-
322
- RuboCop::Cop::RSpec::EmptyExampleGroup::MSG = T.let(T.unsafe(nil), String)
323
-
324
- class RuboCop::Cop::RSpec::EmptyHook < ::RuboCop::Cop::RSpec::Base
325
- include ::RuboCop::Cop::RangeHelp
326
- extend ::RuboCop::Cop::AutoCorrector
327
-
328
- def empty_hook?(param0 = T.unsafe(nil)); end
329
- def on_block(node); end
330
- end
331
-
332
- RuboCop::Cop::RSpec::EmptyHook::MSG = T.let(T.unsafe(nil), String)
333
-
334
- class RuboCop::Cop::RSpec::EmptyLineAfterExample < ::RuboCop::Cop::RSpec::Base
335
- include ::RuboCop::Cop::RSpec::FinalEndLocation
336
- include ::RuboCop::Cop::RangeHelp
337
- include ::RuboCop::Cop::RSpec::EmptyLineSeparation
338
- extend ::RuboCop::Cop::AutoCorrector
339
-
340
- def allow_consecutive_one_liners?; end
341
- def allowed_one_liner?(node); end
342
- def consecutive_one_liner?(node); end
343
- def next_one_line_example?(node); end
344
- def next_sibling(node); end
345
- def on_block(node); end
346
- end
347
-
348
- RuboCop::Cop::RSpec::EmptyLineAfterExample::MSG = T.let(T.unsafe(nil), String)
349
-
350
- class RuboCop::Cop::RSpec::EmptyLineAfterExampleGroup < ::RuboCop::Cop::RSpec::Base
351
- include ::RuboCop::Cop::RSpec::FinalEndLocation
352
- include ::RuboCop::Cop::RangeHelp
353
- include ::RuboCop::Cop::RSpec::EmptyLineSeparation
354
- extend ::RuboCop::Cop::AutoCorrector
355
-
356
- def on_block(node); end
357
- end
358
-
359
- RuboCop::Cop::RSpec::EmptyLineAfterExampleGroup::MSG = T.let(T.unsafe(nil), String)
360
-
361
- class RuboCop::Cop::RSpec::EmptyLineAfterFinalLet < ::RuboCop::Cop::RSpec::Base
362
- include ::RuboCop::Cop::RSpec::FinalEndLocation
363
- include ::RuboCop::Cop::RangeHelp
364
- include ::RuboCop::Cop::RSpec::EmptyLineSeparation
365
- extend ::RuboCop::Cop::AutoCorrector
366
-
367
- def on_block(node); end
368
- end
369
-
370
- RuboCop::Cop::RSpec::EmptyLineAfterFinalLet::MSG = T.let(T.unsafe(nil), String)
371
-
372
- class RuboCop::Cop::RSpec::EmptyLineAfterHook < ::RuboCop::Cop::RSpec::Base
373
- include ::RuboCop::Cop::RSpec::FinalEndLocation
374
- include ::RuboCop::Cop::RangeHelp
375
- include ::RuboCop::Cop::RSpec::EmptyLineSeparation
376
- extend ::RuboCop::Cop::AutoCorrector
377
-
378
- def on_block(node); end
379
- end
380
-
381
- RuboCop::Cop::RSpec::EmptyLineAfterHook::MSG = T.let(T.unsafe(nil), String)
382
-
383
- class RuboCop::Cop::RSpec::EmptyLineAfterSubject < ::RuboCop::Cop::RSpec::Base
384
- include ::RuboCop::Cop::RSpec::FinalEndLocation
385
- include ::RuboCop::Cop::RangeHelp
386
- include ::RuboCop::Cop::RSpec::EmptyLineSeparation
387
- extend ::RuboCop::Cop::AutoCorrector
388
-
389
- def on_block(node); end
390
-
391
- private
392
-
393
- def in_spec_block?(node); end
394
- end
395
-
396
- RuboCop::Cop::RSpec::EmptyLineAfterSubject::MSG = T.let(T.unsafe(nil), String)
397
-
398
- module RuboCop::Cop::RSpec::EmptyLineSeparation
399
- include ::RuboCop::Cop::RSpec::FinalEndLocation
400
- include ::RuboCop::Cop::RangeHelp
401
-
402
- def last_child?(node); end
403
- def missing_separating_line(node); end
404
- def missing_separating_line_offense(node); end
405
- def offending_loc(last_line); end
406
- end
407
-
408
- class RuboCop::Cop::RSpec::ExampleLength < ::RuboCop::Cop::RSpec::Base
409
- include ::RuboCop::Cop::CodeLength
410
-
411
- def on_block(node); end
412
-
413
- private
414
-
415
- def cop_label; end
416
- end
417
-
418
- RuboCop::Cop::RSpec::ExampleLength::LABEL = T.let(T.unsafe(nil), String)
419
-
420
- class RuboCop::Cop::RSpec::ExampleWithoutDescription < ::RuboCop::Cop::RSpec::Base
421
- include ::RuboCop::Cop::ConfigurableEnforcedStyle
422
-
423
- def example_description(param0 = T.unsafe(nil)); end
424
- def on_block(node); end
425
-
426
- private
427
-
428
- def check_example_without_description(node); end
429
- def disallow_empty_description?(node); end
430
- end
431
-
432
- RuboCop::Cop::RSpec::ExampleWithoutDescription::MSG_ADD_DESCRIPTION = T.let(T.unsafe(nil), String)
433
- RuboCop::Cop::RSpec::ExampleWithoutDescription::MSG_DEFAULT_ARGUMENT = T.let(T.unsafe(nil), String)
434
-
435
- class RuboCop::Cop::RSpec::ExampleWording < ::RuboCop::Cop::RSpec::Base
436
- extend ::RuboCop::Cop::AutoCorrector
437
-
438
- def it_description(param0 = T.unsafe(nil)); end
439
- def on_block(node); end
440
-
441
- private
442
-
443
- def add_wording_offense(node, message); end
444
- def custom_transform; end
445
- def docstring(node); end
446
- def ignored_words; end
447
- def replacement_text(node); end
448
- def text(node); end
449
- end
450
-
451
- RuboCop::Cop::RSpec::ExampleWording::IT_PREFIX = T.let(T.unsafe(nil), Regexp)
452
- RuboCop::Cop::RSpec::ExampleWording::MSG_IT = T.let(T.unsafe(nil), String)
453
- RuboCop::Cop::RSpec::ExampleWording::MSG_SHOULD = T.let(T.unsafe(nil), String)
454
- RuboCop::Cop::RSpec::ExampleWording::SHOULD_PREFIX = T.let(T.unsafe(nil), Regexp)
455
-
456
- class RuboCop::Cop::RSpec::ExpectActual < ::RuboCop::Cop::RSpec::Base
457
- extend ::RuboCop::Cop::AutoCorrector
458
-
459
- def expect_literal(param0 = T.unsafe(nil)); end
460
- def on_send(node); end
461
-
462
- private
463
-
464
- def complex_literal?(node); end
465
- def literal?(node); end
466
- def simple_literal?(node); end
467
- def swap(corrector, actual, expected); end
468
- end
469
-
470
- RuboCop::Cop::RSpec::ExpectActual::COMPLEX_LITERALS = T.let(T.unsafe(nil), Array)
471
- RuboCop::Cop::RSpec::ExpectActual::MSG = T.let(T.unsafe(nil), String)
472
- RuboCop::Cop::RSpec::ExpectActual::SIMPLE_LITERALS = T.let(T.unsafe(nil), Array)
473
- RuboCop::Cop::RSpec::ExpectActual::SUPPORTED_MATCHERS = T.let(T.unsafe(nil), Array)
474
-
475
- class RuboCop::Cop::RSpec::ExpectChange < ::RuboCop::Cop::RSpec::Base
476
- include ::RuboCop::Cop::ConfigurableEnforcedStyle
477
- extend ::RuboCop::Cop::AutoCorrector
478
-
479
- def expect_change_with_arguments(param0 = T.unsafe(nil)); end
480
- def expect_change_with_block(param0 = T.unsafe(nil)); end
481
- def on_block(node); end
482
- def on_send(node); end
483
- end
484
-
485
- RuboCop::Cop::RSpec::ExpectChange::MSG_BLOCK = T.let(T.unsafe(nil), String)
486
- RuboCop::Cop::RSpec::ExpectChange::MSG_CALL = T.let(T.unsafe(nil), String)
487
- RuboCop::Cop::RSpec::ExpectChange::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array)
488
-
489
- class RuboCop::Cop::RSpec::ExpectInHook < ::RuboCop::Cop::RSpec::Base
490
- def expectation(param0); end
491
- def on_block(node); end
492
-
493
- private
494
-
495
- def message(expect, hook); end
496
- end
497
-
498
- RuboCop::Cop::RSpec::ExpectInHook::MSG = T.let(T.unsafe(nil), String)
499
-
500
- class RuboCop::Cop::RSpec::ExpectOutput < ::RuboCop::Cop::RSpec::Base
501
- def on_gvasgn(node); end
502
-
503
- private
504
-
505
- def inside_example_scope?(node); end
506
- end
507
-
508
- RuboCop::Cop::RSpec::ExpectOutput::MSG = T.let(T.unsafe(nil), String)
509
-
510
- module RuboCop::Cop::RSpec::ExplicitHelper
511
- include ::RuboCop::RSpec::Language
512
- extend ::RuboCop::AST::NodePattern::Macros
513
-
514
- def predicate_matcher?(param0 = T.unsafe(nil)); end
515
- def predicate_matcher_block?(param0 = T.unsafe(nil)); end
516
-
517
- private
518
-
519
- def allowed_explicit_matchers; end
520
- def check_explicit(node); end
521
- def corrector_explicit(corrector, to_node, actual, matcher, block_child); end
522
- def message_explicit(matcher); end
523
- def move_predicate(corrector, actual, matcher, block_child); end
524
- def predicate_matcher_name?(name); end
525
- def replacement_matcher(node); end
526
- def to_predicate_method(matcher); end
527
- end
528
-
529
- RuboCop::Cop::RSpec::ExplicitHelper::BUILT_IN_MATCHERS = T.let(T.unsafe(nil), Array)
530
- RuboCop::Cop::RSpec::ExplicitHelper::MSG_EXPLICIT = T.let(T.unsafe(nil), String)
531
- module RuboCop::Cop::RSpec::FactoryBot; end
532
-
533
- class RuboCop::Cop::RSpec::FactoryBot::AttributeDefinedStatically < ::RuboCop::Cop::RSpec::Base
534
- extend ::RuboCop::Cop::AutoCorrector
535
-
536
- def association?(param0 = T.unsafe(nil)); end
537
- def factory_attributes(param0 = T.unsafe(nil)); end
538
- def on_block(node); end
539
- def value_matcher(param0 = T.unsafe(nil)); end
540
-
541
- private
542
-
543
- def attribute_defining_method?(method_name); end
544
- def autocorrect(corrector, node); end
545
- def autocorrect_replacing_parens(corrector, node); end
546
- def autocorrect_without_parens(corrector, node); end
547
- def braces(node); end
548
- def offensive_receiver?(receiver, node); end
549
- def proc?(attribute); end
550
- def receiver_matches_first_block_argument?(receiver, node); end
551
- def reserved_method?(method_name); end
552
- def value_hash_without_braces?(node); end
553
- end
554
-
555
- RuboCop::Cop::RSpec::FactoryBot::AttributeDefinedStatically::MSG = T.let(T.unsafe(nil), String)
556
-
557
- class RuboCop::Cop::RSpec::FactoryBot::CreateList < ::RuboCop::Cop::RSpec::Base
558
- include ::RuboCop::Cop::ConfigurableEnforcedStyle
559
- extend ::RuboCop::Cop::AutoCorrector
560
-
561
- def factory_call(param0 = T.unsafe(nil)); end
562
- def factory_list_call(param0 = T.unsafe(nil)); end
563
- def n_times_block_without_arg?(param0 = T.unsafe(nil)); end
564
- def on_block(node); end
565
- def on_send(node); end
566
-
567
- private
568
-
569
- def contains_only_factory?(node); end
570
- end
571
-
572
- module RuboCop::Cop::RSpec::FactoryBot::CreateList::Corrector
573
- private
574
-
575
- def build_options_string(options); end
576
- def format_method_call(node, method, arguments); end
577
- def format_receiver(receiver); end
578
- end
579
-
580
- class RuboCop::Cop::RSpec::FactoryBot::CreateList::CreateListCorrector
581
- include ::RuboCop::Cop::RSpec::FactoryBot::CreateList::Corrector
582
-
583
- def initialize(node); end
584
-
585
- def call(corrector); end
586
-
587
- private
588
-
589
- def build_arguments(node, count); end
590
- def call_replacement(node); end
591
- def call_with_block_replacement(node); end
592
- def format_block(node); end
593
- def format_multiline_block(node); end
594
- def format_singeline_block(node); end
595
- def node; end
596
- end
597
-
598
- RuboCop::Cop::RSpec::FactoryBot::CreateList::MSG_CREATE_LIST = T.let(T.unsafe(nil), String)
599
- RuboCop::Cop::RSpec::FactoryBot::CreateList::MSG_N_TIMES = T.let(T.unsafe(nil), String)
600
- RuboCop::Cop::RSpec::FactoryBot::CreateList::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array)
601
-
602
- class RuboCop::Cop::RSpec::FactoryBot::CreateList::TimesCorrector
603
- include ::RuboCop::Cop::RSpec::FactoryBot::CreateList::Corrector
604
-
605
- def initialize(node); end
606
-
607
- def call(corrector); end
608
-
609
- private
610
-
611
- def generate_n_times_block(node); end
612
- def node; end
613
- end
614
-
615
- class RuboCop::Cop::RSpec::FactoryBot::FactoryClassName < ::RuboCop::Cop::RSpec::Base
616
- extend ::RuboCop::Cop::AutoCorrector
617
-
618
- def class_name(param0 = T.unsafe(nil)); end
619
- def on_send(node); end
620
-
621
- private
622
-
623
- def allowed?(const_name); end
624
- end
625
-
626
- RuboCop::Cop::RSpec::FactoryBot::FactoryClassName::ALLOWED_CONSTANTS = T.let(T.unsafe(nil), Array)
627
- RuboCop::Cop::RSpec::FactoryBot::FactoryClassName::MSG = T.let(T.unsafe(nil), String)
628
- RuboCop::Cop::RSpec::FactoryBot::FactoryClassName::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array)
629
-
630
- class RuboCop::Cop::RSpec::FilePath < ::RuboCop::Cop::RSpec::Base
631
- include ::RuboCop::Cop::RSpec::TopLevelGroup
632
-
633
- def example_group(param0 = T.unsafe(nil)); end
634
- def on_top_level_example_group(node); end
635
- def routing_metadata?(param0); end
636
-
637
- private
638
-
639
- def camel_to_snake_case(string); end
640
- def custom_transform; end
641
- def ensure_correct_file_path(send_node, example_group, arguments); end
642
- def expected_path(constant); end
643
- def filename_ends_with?(pattern); end
644
- def ignore_methods?; end
645
- def name_pattern(method_name); end
646
- def pattern_for(example_group, method_name); end
647
- def pattern_for_spec_suffix_only?; end
648
- def relevant_rubocop_rspec_file?(_file); end
649
- def routing_spec?(args); end
650
- def spec_suffix_only?; end
651
- end
652
-
653
- RuboCop::Cop::RSpec::FilePath::MSG = T.let(T.unsafe(nil), String)
654
-
655
- module RuboCop::Cop::RSpec::FinalEndLocation
656
- def final_end_location(start_node); end
657
- end
658
-
659
- class RuboCop::Cop::RSpec::Focus < ::RuboCop::Cop::RSpec::Base
660
- include ::RuboCop::Cop::RangeHelp
661
- extend ::RuboCop::Cop::AutoCorrector
662
-
663
- def focusable_selector?(param0 = T.unsafe(nil)); end
664
- def focused_block?(param0 = T.unsafe(nil)); end
665
- def metadata(param0 = T.unsafe(nil)); end
666
- def on_send(node); end
667
-
668
- private
669
-
670
- def correct_send(corrector, focus); end
671
- def focus_metadata(node, &block); end
672
- def with_surrounding(focus); end
673
- end
674
-
675
- RuboCop::Cop::RSpec::Focus::MSG = T.let(T.unsafe(nil), String)
676
-
677
- class RuboCop::Cop::RSpec::HookArgument < ::RuboCop::Cop::RSpec::Base
678
- include ::RuboCop::Cop::ConfigurableEnforcedStyle
679
- extend ::RuboCop::Cop::AutoCorrector
680
-
681
- def on_block(node); end
682
- def scoped_hook(param0 = T.unsafe(nil)); end
683
- def unscoped_hook(param0 = T.unsafe(nil)); end
684
-
685
- private
686
-
687
- def argument_range(send_node); end
688
- def check_implicit(method_send); end
689
- def explicit_message(scope); end
690
- def hook(node, &block); end
691
- def implicit_style?; end
692
- end
693
-
694
- RuboCop::Cop::RSpec::HookArgument::EXPLICIT_MSG = T.let(T.unsafe(nil), String)
695
- RuboCop::Cop::RSpec::HookArgument::IMPLICIT_MSG = T.let(T.unsafe(nil), String)
696
-
697
- class RuboCop::Cop::RSpec::HooksBeforeExamples < ::RuboCop::Cop::RSpec::Base
698
- extend ::RuboCop::Cop::AutoCorrector
699
-
700
- def example_or_group?(param0 = T.unsafe(nil)); end
701
- def on_block(node); end
702
-
703
- private
704
-
705
- def autocorrect(corrector, node, first_example); end
706
- def check_hooks(node); end
707
- def find_first_example(node); end
708
- def multiline_block?(block); end
709
- end
710
-
711
- RuboCop::Cop::RSpec::HooksBeforeExamples::MSG = T.let(T.unsafe(nil), String)
712
-
713
- class RuboCop::Cop::RSpec::IdenticalEqualityAssertion < ::RuboCop::Cop::RSpec::Base
714
- def equality_check?(param0 = T.unsafe(nil)); end
715
- def on_send(node); end
716
- end
717
-
718
- RuboCop::Cop::RSpec::IdenticalEqualityAssertion::MSG = T.let(T.unsafe(nil), String)
719
- RuboCop::Cop::RSpec::IdenticalEqualityAssertion::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array)
720
-
721
- class RuboCop::Cop::RSpec::ImplicitBlockExpectation < ::RuboCop::Cop::RSpec::Base
722
- def implicit_expect(param0 = T.unsafe(nil)); end
723
- def lambda?(param0 = T.unsafe(nil)); end
724
- def lambda_subject?(param0 = T.unsafe(nil)); end
725
- def on_send(node); end
726
-
727
- private
728
-
729
- def find_subject(block_node); end
730
- def multi_statement_example_group?(node); end
731
- def nearest_subject(node); end
732
- end
733
-
734
- RuboCop::Cop::RSpec::ImplicitBlockExpectation::MSG = T.let(T.unsafe(nil), String)
735
- RuboCop::Cop::RSpec::ImplicitBlockExpectation::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array)
736
-
737
- class RuboCop::Cop::RSpec::ImplicitExpect < ::RuboCop::Cop::RSpec::Base
738
- include ::RuboCop::Cop::ConfigurableEnforcedStyle
739
- extend ::RuboCop::Cop::AutoCorrector
740
-
741
- def implicit_expect(param0 = T.unsafe(nil)); end
742
- def on_send(node); end
743
-
744
- private
745
-
746
- def is_expected_range(source_map); end
747
- def offending_expect(node); end
748
- def offense_message(offending_source); end
749
- def replacement_source(offending_source); end
750
- end
751
-
752
- RuboCop::Cop::RSpec::ImplicitExpect::ENFORCED_REPLACEMENTS = T.let(T.unsafe(nil), Hash)
753
- RuboCop::Cop::RSpec::ImplicitExpect::MSG = T.let(T.unsafe(nil), String)
754
-
755
- class RuboCop::Cop::RSpec::ImplicitSubject < ::RuboCop::Cop::RSpec::Base
756
- include ::RuboCop::Cop::ConfigurableEnforcedStyle
757
- extend ::RuboCop::Cop::AutoCorrector
758
-
759
- def implicit_subject?(param0 = T.unsafe(nil)); end
760
- def on_send(node); end
761
-
762
- private
763
-
764
- def allowed_by_style?(example); end
765
- def autocorrect(corrector, node); end
766
- def valid_usage?(node); end
767
- end
768
-
769
- RuboCop::Cop::RSpec::ImplicitSubject::MSG = T.let(T.unsafe(nil), String)
770
- RuboCop::Cop::RSpec::ImplicitSubject::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array)
771
-
772
- module RuboCop::Cop::RSpec::InflectedHelper
773
- include ::RuboCop::RSpec::Language
774
- extend ::RuboCop::AST::NodePattern::Macros
775
-
776
- def be_bool?(param0 = T.unsafe(nil)); end
777
- def be_boolthy?(param0 = T.unsafe(nil)); end
778
- def predicate_in_actual?(param0 = T.unsafe(nil)); end
779
-
780
- private
781
-
782
- def boolean_matcher?(node); end
783
- def check_inflected(node); end
784
- def message_inflected(predicate); end
785
- def predicate?(sym); end
786
- def remove_predicate(corrector, predicate); end
787
- def rewrite_matcher(corrector, predicate, matcher); end
788
- def to_predicate_matcher(name); end
789
- def true?(to_symbol, matcher); end
790
- end
791
-
792
- RuboCop::Cop::RSpec::InflectedHelper::MSG_INFLECTED = T.let(T.unsafe(nil), String)
793
-
794
- class RuboCop::Cop::RSpec::InstanceSpy < ::RuboCop::Cop::RSpec::Base
795
- extend ::RuboCop::Cop::AutoCorrector
796
-
797
- def have_received_usage(param0); end
798
- def null_double(param0); end
799
- def on_block(node); end
800
-
801
- private
802
-
803
- def autocorrect(corrector, node); end
804
- end
805
-
806
- RuboCop::Cop::RSpec::InstanceSpy::MSG = T.let(T.unsafe(nil), String)
807
-
808
- class RuboCop::Cop::RSpec::InstanceVariable < ::RuboCop::Cop::RSpec::Base
809
- include ::RuboCop::Cop::RSpec::TopLevelGroup
810
-
811
- def custom_matcher?(param0 = T.unsafe(nil)); end
812
- def dynamic_class?(param0 = T.unsafe(nil)); end
813
- def ivar_assigned?(param0, param1); end
814
- def ivar_usage(param0); end
815
- def on_top_level_group(node); end
816
-
817
- private
818
-
819
- def assignment_only?; end
820
- def valid_usage?(node); end
821
- end
822
-
823
- RuboCop::Cop::RSpec::InstanceVariable::MSG = T.let(T.unsafe(nil), String)
824
-
825
- class RuboCop::Cop::RSpec::ItBehavesLike < ::RuboCop::Cop::RSpec::Base
826
- include ::RuboCop::Cop::ConfigurableEnforcedStyle
827
- extend ::RuboCop::Cop::AutoCorrector
828
-
829
- def example_inclusion_offense(param0 = T.unsafe(nil), param1); end
830
- def on_send(node); end
831
-
832
- private
833
-
834
- def message(_node); end
835
- end
836
-
837
- RuboCop::Cop::RSpec::ItBehavesLike::MSG = T.let(T.unsafe(nil), String)
838
- RuboCop::Cop::RSpec::ItBehavesLike::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array)
839
-
840
- class RuboCop::Cop::RSpec::IteratedExpectation < ::RuboCop::Cop::RSpec::Base
841
- def each?(param0 = T.unsafe(nil)); end
842
- def expectation?(param0 = T.unsafe(nil), param1); end
843
- def on_block(node); end
844
-
845
- private
846
-
847
- def only_expectations?(body, arg); end
848
- def single_expectation?(body, arg); end
849
- end
850
-
851
- RuboCop::Cop::RSpec::IteratedExpectation::MSG = T.let(T.unsafe(nil), String)
852
-
853
- class RuboCop::Cop::RSpec::LeadingSubject < ::RuboCop::Cop::RSpec::Base
854
- extend ::RuboCop::Cop::AutoCorrector
855
-
856
- def check_previous_nodes(node); end
857
- def on_block(node); end
858
-
859
- private
860
-
861
- def autocorrect(corrector, node, sibling); end
862
- def in_spec_block?(node); end
863
- def offending?(node); end
864
- def offending_node(node); end
865
- def parent(node); end
866
- end
867
-
868
- RuboCop::Cop::RSpec::LeadingSubject::MSG = T.let(T.unsafe(nil), String)
869
-
870
- class RuboCop::Cop::RSpec::LeakyConstantDeclaration < ::RuboCop::Cop::RSpec::Base
871
- def on_casgn(node); end
872
- def on_class(node); end
873
- def on_module(node); end
874
-
875
- private
876
-
877
- def inside_describe_block?(node); end
878
- end
879
-
880
- RuboCop::Cop::RSpec::LeakyConstantDeclaration::MSG_CLASS = T.let(T.unsafe(nil), String)
881
- RuboCop::Cop::RSpec::LeakyConstantDeclaration::MSG_CONST = T.let(T.unsafe(nil), String)
882
- RuboCop::Cop::RSpec::LeakyConstantDeclaration::MSG_MODULE = T.let(T.unsafe(nil), String)
883
-
884
- class RuboCop::Cop::RSpec::LetBeforeExamples < ::RuboCop::Cop::RSpec::Base
885
- extend ::RuboCop::Cop::AutoCorrector
886
-
887
- def example_or_group?(param0 = T.unsafe(nil)); end
888
- def on_block(node); end
889
-
890
- private
891
-
892
- def autocorrect(corrector, node, first_example); end
893
- def check_let_declarations(node); end
894
- def find_first_example(node); end
895
- def multiline_block?(block); end
896
- end
897
-
898
- RuboCop::Cop::RSpec::LetBeforeExamples::MSG = T.let(T.unsafe(nil), String)
899
-
900
- class RuboCop::Cop::RSpec::LetSetup < ::RuboCop::Cop::RSpec::Base
901
- def example_or_shared_group_or_including?(param0 = T.unsafe(nil)); end
902
- def let_bang(param0 = T.unsafe(nil)); end
903
- def method_called?(param0, param1); end
904
- def on_block(node); end
905
-
906
- private
907
-
908
- def child_let_bang(node, &block); end
909
- def unused_let_bang(node); end
910
- end
911
-
912
- RuboCop::Cop::RSpec::LetSetup::MSG = T.let(T.unsafe(nil), String)
913
-
914
- class RuboCop::Cop::RSpec::MessageChain < ::RuboCop::Cop::RSpec::Base
915
- def on_send(node); end
916
- end
917
-
918
- RuboCop::Cop::RSpec::MessageChain::MSG = T.let(T.unsafe(nil), String)
919
- RuboCop::Cop::RSpec::MessageChain::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array)
920
-
921
- class RuboCop::Cop::RSpec::MessageExpectation < ::RuboCop::Cop::RSpec::Base
922
- include ::RuboCop::Cop::ConfigurableEnforcedStyle
923
-
924
- def message_expectation(param0 = T.unsafe(nil)); end
925
- def on_send(node); end
926
- def receive_message?(param0); end
927
-
928
- private
929
-
930
- def preferred_style?(expectation); end
931
- end
932
-
933
- RuboCop::Cop::RSpec::MessageExpectation::MSG = T.let(T.unsafe(nil), String)
934
- RuboCop::Cop::RSpec::MessageExpectation::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array)
935
- RuboCop::Cop::RSpec::MessageExpectation::SUPPORTED_STYLES = T.let(T.unsafe(nil), Array)
936
-
937
- class RuboCop::Cop::RSpec::MessageSpies < ::RuboCop::Cop::RSpec::Base
938
- include ::RuboCop::Cop::ConfigurableEnforcedStyle
939
-
940
- def message_expectation(param0 = T.unsafe(nil)); end
941
- def on_send(node); end
942
- def receive_message(param0); end
943
-
944
- private
945
-
946
- def error_message(receiver); end
947
- def preferred_style?(expectation); end
948
- def receive_message_matcher(node); end
949
- end
950
-
951
- RuboCop::Cop::RSpec::MessageSpies::MSG_HAVE_RECEIVED = T.let(T.unsafe(nil), String)
952
- RuboCop::Cop::RSpec::MessageSpies::MSG_RECEIVE = T.let(T.unsafe(nil), String)
953
- RuboCop::Cop::RSpec::MessageSpies::SUPPORTED_STYLES = T.let(T.unsafe(nil), Array)
954
-
955
- class RuboCop::Cop::RSpec::MissingExampleGroupArgument < ::RuboCop::Cop::RSpec::Base
956
- def on_block(node); end
957
- end
958
-
959
- RuboCop::Cop::RSpec::MissingExampleGroupArgument::MSG = T.let(T.unsafe(nil), String)
960
-
961
- class RuboCop::Cop::RSpec::MultipleDescribes < ::RuboCop::Cop::RSpec::Base
962
- include ::RuboCop::Cop::RSpec::TopLevelGroup
963
-
964
- def on_top_level_group(node); end
965
- end
966
-
967
- RuboCop::Cop::RSpec::MultipleDescribes::MSG = T.let(T.unsafe(nil), String)
968
-
969
- class RuboCop::Cop::RSpec::MultipleExpectations < ::RuboCop::Cop::RSpec::Base
970
- include ::RuboCop::Cop::ConfigurableMax
971
-
972
- def aggregate_failures?(param0 = T.unsafe(nil), param1); end
973
- def aggregate_failures_block?(param0 = T.unsafe(nil)); end
974
- def expect?(param0 = T.unsafe(nil)); end
975
- def on_block(node); end
976
-
977
- private
978
-
979
- def example_with_aggregate_failures?(example_node); end
980
- def find_aggregate_failures(example_node); end
981
- def find_expectation(node, &block); end
982
- def flag_example(node, expectation_count:); end
983
- def max_expectations; end
984
- end
985
-
986
- RuboCop::Cop::RSpec::MultipleExpectations::ANYTHING = T.let(T.unsafe(nil), Proc)
987
- RuboCop::Cop::RSpec::MultipleExpectations::MSG = T.let(T.unsafe(nil), String)
988
- RuboCop::Cop::RSpec::MultipleExpectations::TRUE = T.let(T.unsafe(nil), Proc)
989
-
990
- class RuboCop::Cop::RSpec::MultipleMemoizedHelpers < ::RuboCop::Cop::RSpec::Base
991
- include ::RuboCop::Cop::ConfigurableMax
992
- include ::RuboCop::Cop::RSpec::Variable
993
-
994
- def on_block(node); end
995
- def on_new_investigation; end
996
-
997
- private
998
-
999
- def all_helpers(node); end
1000
- def allow_subject?; end
1001
- def example_group_memoized_helpers; end
1002
- def helpers(node); end
1003
- def max; end
1004
- def variable_nodes(node); end
1005
- end
1006
-
1007
- RuboCop::Cop::RSpec::MultipleMemoizedHelpers::MSG = T.let(T.unsafe(nil), String)
1008
-
1009
- class RuboCop::Cop::RSpec::MultipleSubjects < ::RuboCop::Cop::RSpec::Base
1010
- include ::RuboCop::Cop::RangeHelp
1011
- extend ::RuboCop::Cop::AutoCorrector
1012
-
1013
- def on_block(node); end
1014
-
1015
- private
1016
-
1017
- def autocorrect(corrector, subject); end
1018
- def named_subject?(node); end
1019
- def remove_autocorrect(corrector, node); end
1020
- def rename_autocorrect(corrector, node); end
1021
- end
1022
-
1023
- RuboCop::Cop::RSpec::MultipleSubjects::MSG = T.let(T.unsafe(nil), String)
1024
-
1025
- class RuboCop::Cop::RSpec::NamedSubject < ::RuboCop::Cop::RSpec::Base
1026
- def example_or_hook_block?(param0 = T.unsafe(nil)); end
1027
- def ignored_shared_example?(node); end
1028
- def on_block(node); end
1029
- def shared_example?(param0 = T.unsafe(nil)); end
1030
- def subject_usage(param0); end
1031
- end
1032
-
1033
- RuboCop::Cop::RSpec::NamedSubject::MSG = T.let(T.unsafe(nil), String)
1034
-
1035
- class RuboCop::Cop::RSpec::NestedGroups < ::RuboCop::Cop::RSpec::Base
1036
- include ::RuboCop::Cop::ConfigurableMax
1037
- include ::RuboCop::Cop::RSpec::TopLevelGroup
1038
-
1039
- def on_top_level_group(node); end
1040
-
1041
- private
1042
-
1043
- def find_nested_example_groups(node, nesting: T.unsafe(nil), &block); end
1044
- def max_nesting; end
1045
- def max_nesting_config; end
1046
- def message(nesting); end
1047
- end
1048
-
1049
- RuboCop::Cop::RSpec::NestedGroups::DEPRECATED_MAX_KEY = T.let(T.unsafe(nil), String)
1050
- RuboCop::Cop::RSpec::NestedGroups::DEPRECATION_WARNING = T.let(T.unsafe(nil), String)
1051
- RuboCop::Cop::RSpec::NestedGroups::MSG = T.let(T.unsafe(nil), String)
1052
-
1053
- class RuboCop::Cop::RSpec::NotToNot < ::RuboCop::Cop::RSpec::Base
1054
- include ::RuboCop::Cop::ConfigurableEnforcedStyle
1055
- extend ::RuboCop::Cop::AutoCorrector
1056
-
1057
- def not_to_not_offense(param0 = T.unsafe(nil), param1); end
1058
- def on_send(node); end
1059
-
1060
- private
1061
-
1062
- def message(_node); end
1063
- end
1064
-
1065
- RuboCop::Cop::RSpec::NotToNot::MSG = T.let(T.unsafe(nil), String)
1066
- RuboCop::Cop::RSpec::NotToNot::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array)
1067
-
1068
- class RuboCop::Cop::RSpec::OverwritingSetup < ::RuboCop::Cop::RSpec::Base
1069
- def first_argument_name(param0 = T.unsafe(nil)); end
1070
- def on_block(node); end
1071
- def setup?(param0 = T.unsafe(nil)); end
1072
-
1073
- private
1074
-
1075
- def common_setup?(node); end
1076
- def find_duplicates(node); end
1077
- end
1078
-
1079
- RuboCop::Cop::RSpec::OverwritingSetup::MSG = T.let(T.unsafe(nil), String)
1080
-
1081
- class RuboCop::Cop::RSpec::Pending < ::RuboCop::Cop::RSpec::Base
1082
- def on_send(node); end
1083
- def pending_block?(param0 = T.unsafe(nil)); end
1084
- def skip_or_pending?(param0 = T.unsafe(nil)); end
1085
- def skippable?(param0 = T.unsafe(nil)); end
1086
- def skipped_in_metadata?(param0 = T.unsafe(nil)); end
1087
-
1088
- private
1089
-
1090
- def skipped?(node); end
1091
- end
1092
-
1093
- RuboCop::Cop::RSpec::Pending::MSG = T.let(T.unsafe(nil), String)
1094
-
1095
- class RuboCop::Cop::RSpec::PredicateMatcher < ::RuboCop::Cop::RSpec::Base
1096
- include ::RuboCop::Cop::ConfigurableEnforcedStyle
1097
- include ::RuboCop::Cop::RSpec::InflectedHelper
1098
- include ::RuboCop::Cop::RSpec::ExplicitHelper
1099
- extend ::RuboCop::Cop::AutoCorrector
1100
-
1101
- def on_block(node); end
1102
- def on_send(node); end
1103
-
1104
- private
1105
-
1106
- def args_loc(send_node); end
1107
- def block_loc(send_node); end
1108
- end
1109
-
1110
- module RuboCop::Cop::RSpec::Rails; end
1111
-
1112
- class RuboCop::Cop::RSpec::Rails::AvoidSetupHook < ::RuboCop::Cop::RSpec::Base
1113
- extend ::RuboCop::Cop::AutoCorrector
1114
-
1115
- def on_block(node); end
1116
- def setup_call(param0 = T.unsafe(nil)); end
1117
- end
1118
-
1119
- RuboCop::Cop::RSpec::Rails::AvoidSetupHook::MSG = T.let(T.unsafe(nil), String)
1120
-
1121
- class RuboCop::Cop::RSpec::Rails::HttpStatus < ::RuboCop::Cop::RSpec::Base
1122
- include ::RuboCop::Cop::ConfigurableEnforcedStyle
1123
- extend ::RuboCop::Cop::AutoCorrector
1124
-
1125
- def http_status(param0 = T.unsafe(nil)); end
1126
- def on_send(node); end
1127
-
1128
- private
1129
-
1130
- def checker_class; end
1131
- end
1132
-
1133
- class RuboCop::Cop::RSpec::Rails::HttpStatus::NumericStyleChecker
1134
- def initialize(node); end
1135
-
1136
- def message; end
1137
- def node; end
1138
- def offensive?; end
1139
- def preferred_style; end
1140
-
1141
- private
1142
-
1143
- def allowed_symbol?; end
1144
- def number; end
1145
- def symbol; end
1146
- end
1147
-
1148
- RuboCop::Cop::RSpec::Rails::HttpStatus::NumericStyleChecker::ALLOWED_STATUSES = T.let(T.unsafe(nil), Array)
1149
- RuboCop::Cop::RSpec::Rails::HttpStatus::NumericStyleChecker::MSG = T.let(T.unsafe(nil), String)
1150
- RuboCop::Cop::RSpec::Rails::HttpStatus::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array)
1151
-
1152
- class RuboCop::Cop::RSpec::Rails::HttpStatus::SymbolicStyleChecker
1153
- def initialize(node); end
1154
-
1155
- def message; end
1156
- def node; end
1157
- def offensive?; end
1158
- def preferred_style; end
1159
-
1160
- private
1161
-
1162
- def custom_http_status_code?; end
1163
- def number; end
1164
- def symbol; end
1165
- end
1166
-
1167
- RuboCop::Cop::RSpec::Rails::HttpStatus::SymbolicStyleChecker::MSG = T.let(T.unsafe(nil), String)
1168
-
1169
- class RuboCop::Cop::RSpec::ReceiveCounts < ::RuboCop::Cop::RSpec::Base
1170
- extend ::RuboCop::Cop::AutoCorrector
1171
-
1172
- def on_send(node); end
1173
- def receive_counts(param0 = T.unsafe(nil)); end
1174
- def stub?(param0); end
1175
-
1176
- private
1177
-
1178
- def autocorrect(corrector, node, range); end
1179
- def matcher_for(method, count); end
1180
- def message_for(node, source); end
1181
- def range(node, offending_node); end
1182
- end
1183
-
1184
- RuboCop::Cop::RSpec::ReceiveCounts::MSG = T.let(T.unsafe(nil), String)
1185
- RuboCop::Cop::RSpec::ReceiveCounts::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array)
1186
-
1187
- class RuboCop::Cop::RSpec::ReceiveNever < ::RuboCop::Cop::RSpec::Base
1188
- extend ::RuboCop::Cop::AutoCorrector
1189
-
1190
- def method_on_stub?(param0); end
1191
- def on_send(node); end
1192
-
1193
- private
1194
-
1195
- def autocorrect(corrector, node); end
1196
- end
1197
-
1198
- RuboCop::Cop::RSpec::ReceiveNever::MSG = T.let(T.unsafe(nil), String)
1199
- RuboCop::Cop::RSpec::ReceiveNever::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array)
1200
-
1201
- class RuboCop::Cop::RSpec::RepeatedDescription < ::RuboCop::Cop::RSpec::Base
1202
- def on_block(node); end
1203
-
1204
- private
1205
-
1206
- def example_signature(example); end
1207
- def repeated_descriptions(node); end
1208
- end
1209
-
1210
- RuboCop::Cop::RSpec::RepeatedDescription::MSG = T.let(T.unsafe(nil), String)
1211
-
1212
- class RuboCop::Cop::RSpec::RepeatedExample < ::RuboCop::Cop::RSpec::Base
1213
- def on_block(node); end
1214
-
1215
- private
1216
-
1217
- def example_signature(example); end
1218
- def repeated_examples(node); end
1219
- end
1220
-
1221
- RuboCop::Cop::RSpec::RepeatedExample::MSG = T.let(T.unsafe(nil), String)
1222
-
1223
- class RuboCop::Cop::RSpec::RepeatedExampleGroupBody < ::RuboCop::Cop::RSpec::Base
1224
- def body(param0 = T.unsafe(nil)); end
1225
- def const_arg(param0 = T.unsafe(nil)); end
1226
- def metadata(param0 = T.unsafe(nil)); end
1227
- def on_begin(node); end
1228
- def several_example_groups?(param0 = T.unsafe(nil)); end
1229
- def skip_or_pending?(param0 = T.unsafe(nil)); end
1230
-
1231
- private
1232
-
1233
- def add_repeated_lines(groups); end
1234
- def message(group, repeats); end
1235
- def repeated_group_bodies(node); end
1236
- def signature_keys(group); end
1237
- end
1238
-
1239
- RuboCop::Cop::RSpec::RepeatedExampleGroupBody::MSG = T.let(T.unsafe(nil), String)
1240
-
1241
- class RuboCop::Cop::RSpec::RepeatedExampleGroupDescription < ::RuboCop::Cop::RSpec::Base
1242
- def doc_string_and_metadata(param0 = T.unsafe(nil)); end
1243
- def empty_description?(param0 = T.unsafe(nil)); end
1244
- def on_begin(node); end
1245
- def several_example_groups?(param0 = T.unsafe(nil)); end
1246
- def skip_or_pending?(param0 = T.unsafe(nil)); end
1247
-
1248
- private
1249
-
1250
- def add_repeated_lines(groups); end
1251
- def message(group, repeats); end
1252
- def repeated_group_descriptions(node); end
1253
- end
1254
-
1255
- RuboCop::Cop::RSpec::RepeatedExampleGroupDescription::MSG = T.let(T.unsafe(nil), String)
1256
-
1257
- class RuboCop::Cop::RSpec::RepeatedIncludeExample < ::RuboCop::Cop::RSpec::Base
1258
- def include_examples?(param0 = T.unsafe(nil)); end
1259
- def on_begin(node); end
1260
- def several_include_examples?(param0 = T.unsafe(nil)); end
1261
- def shared_examples_name(param0 = T.unsafe(nil)); end
1262
-
1263
- private
1264
-
1265
- def add_repeated_lines(items); end
1266
- def literal_include_examples?(node); end
1267
- def message(item, repeats); end
1268
- def repeated_include_examples(node); end
1269
- def signature_keys(item); end
1270
- end
1271
-
1272
- RuboCop::Cop::RSpec::RepeatedIncludeExample::MSG = T.let(T.unsafe(nil), String)
1273
-
1274
- class RuboCop::Cop::RSpec::ReturnFromStub < ::RuboCop::Cop::RSpec::Base
1275
- include ::RuboCop::Cop::ConfigurableEnforcedStyle
1276
- extend ::RuboCop::Cop::AutoCorrector
1277
-
1278
- def and_return_value(param0); end
1279
- def contains_stub?(param0); end
1280
- def on_block(node); end
1281
- def on_send(node); end
1282
- def stub_with_block?(param0 = T.unsafe(nil)); end
1283
-
1284
- private
1285
-
1286
- def check_and_return_call(node); end
1287
- def check_block_body(block); end
1288
- def dynamic?(node); end
1289
- end
1290
-
1291
- class RuboCop::Cop::RSpec::ReturnFromStub::AndReturnCallCorrector
1292
- def initialize(node); end
1293
-
1294
- def call(corrector); end
1295
-
1296
- private
1297
-
1298
- def arg; end
1299
- def hash_without_braces?; end
1300
- def heredoc?; end
1301
- def node; end
1302
- def range; end
1303
- def receiver; end
1304
- def replacement; end
1305
- end
1306
-
1307
- class RuboCop::Cop::RSpec::ReturnFromStub::BlockBodyCorrector
1308
- def initialize(block); end
1309
-
1310
- def call(corrector); end
1311
-
1312
- private
1313
-
1314
- def block; end
1315
- def body; end
1316
- def heredoc?; end
1317
- def node; end
1318
- end
1319
-
1320
- RuboCop::Cop::RSpec::ReturnFromStub::BlockBodyCorrector::NULL_BLOCK_BODY = T.let(T.unsafe(nil), T.untyped)
1321
- RuboCop::Cop::RSpec::ReturnFromStub::MSG_AND_RETURN = T.let(T.unsafe(nil), String)
1322
- RuboCop::Cop::RSpec::ReturnFromStub::MSG_BLOCK = T.let(T.unsafe(nil), String)
1323
- RuboCop::Cop::RSpec::ReturnFromStub::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array)
1324
-
1325
- class RuboCop::Cop::RSpec::ScatteredLet < ::RuboCop::Cop::RSpec::Base
1326
- extend ::RuboCop::Cop::AutoCorrector
1327
-
1328
- def on_block(node); end
1329
-
1330
- private
1331
-
1332
- def check_let_declarations(body); end
1333
- def find_first_let(node); end
1334
- end
1335
-
1336
- RuboCop::Cop::RSpec::ScatteredLet::MSG = T.let(T.unsafe(nil), String)
1337
-
1338
- class RuboCop::Cop::RSpec::ScatteredSetup < ::RuboCop::Cop::RSpec::Base
1339
- def lines_msg(numbers); end
1340
- def on_block(node); end
1341
- def repeated_hooks(node); end
1342
- end
1343
-
1344
- RuboCop::Cop::RSpec::ScatteredSetup::MSG = T.let(T.unsafe(nil), String)
1345
-
1346
- class RuboCop::Cop::RSpec::SharedContext < ::RuboCop::Cop::RSpec::Base
1347
- extend ::RuboCop::Cop::AutoCorrector
1348
-
1349
- def context?(param0); end
1350
- def examples?(param0); end
1351
- def on_block(node); end
1352
- def shared_context(param0 = T.unsafe(nil)); end
1353
- def shared_example(param0 = T.unsafe(nil)); end
1354
-
1355
- private
1356
-
1357
- def context_with_only_examples(node); end
1358
- def examples_with_only_context(node); end
1359
- end
1360
-
1361
- RuboCop::Cop::RSpec::SharedContext::MSG_CONTEXT = T.let(T.unsafe(nil), String)
1362
- RuboCop::Cop::RSpec::SharedContext::MSG_EXAMPLES = T.let(T.unsafe(nil), String)
1363
-
1364
- class RuboCop::Cop::RSpec::SharedExamples < ::RuboCop::Cop::RSpec::Base
1365
- extend ::RuboCop::Cop::AutoCorrector
1366
-
1367
- def on_send(node); end
1368
- def shared_examples(param0 = T.unsafe(nil)); end
1369
- end
1370
-
1371
- class RuboCop::Cop::RSpec::SharedExamples::Checker
1372
- def initialize(node); end
1373
-
1374
- def message; end
1375
- def node; end
1376
- def preferred_style; end
1377
-
1378
- private
1379
-
1380
- def symbol; end
1381
- def wrap_with_single_quotes(string); end
1382
- end
1383
-
1384
- RuboCop::Cop::RSpec::SharedExamples::Checker::MSG = T.let(T.unsafe(nil), String)
1385
-
1386
- class RuboCop::Cop::RSpec::SingleArgumentMessageChain < ::RuboCop::Cop::RSpec::Base
1387
- extend ::RuboCop::Cop::AutoCorrector
1388
-
1389
- def message_chain(param0 = T.unsafe(nil)); end
1390
- def on_send(node); end
1391
- def single_key_hash?(param0 = T.unsafe(nil)); end
1392
-
1393
- private
1394
-
1395
- def autocorrect(corrector, node, method, arg); end
1396
- def autocorrect_array_arg(corrector, arg); end
1397
- def autocorrect_hash_arg(corrector, arg); end
1398
- def key_to_arg(node); end
1399
- def replacement(method); end
1400
- def single_element_array?(node); end
1401
- def valid_usage?(node); end
1402
- end
1403
-
1404
- RuboCop::Cop::RSpec::SingleArgumentMessageChain::MSG = T.let(T.unsafe(nil), String)
1405
- RuboCop::Cop::RSpec::SingleArgumentMessageChain::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array)
1406
-
1407
- class RuboCop::Cop::RSpec::StubbedMock < ::RuboCop::Cop::RSpec::Base
1408
- def configured_response?(param0 = T.unsafe(nil)); end
1409
- def expectation(param0 = T.unsafe(nil)); end
1410
- def matcher_with_blockpass(param0 = T.unsafe(nil)); end
1411
- def matcher_with_configured_response(param0 = T.unsafe(nil)); end
1412
- def matcher_with_hash(param0 = T.unsafe(nil)); end
1413
- def matcher_with_return_block(param0 = T.unsafe(nil)); end
1414
- def message_expectation?(param0 = T.unsafe(nil)); end
1415
- def on_send(node); end
1416
-
1417
- private
1418
-
1419
- def msg(method_name); end
1420
- def on_expectation(expectation, method_name, matcher); end
1421
- def replacement(method_name); end
1422
- end
1423
-
1424
- RuboCop::Cop::RSpec::StubbedMock::MSG = T.let(T.unsafe(nil), String)
1425
-
1426
- class RuboCop::Cop::RSpec::SubjectStub < ::RuboCop::Cop::RSpec::Base
1427
- include ::RuboCop::Cop::RSpec::TopLevelGroup
1428
-
1429
- def message_expectation?(param0 = T.unsafe(nil), param1); end
1430
- def message_expectation_matcher?(param0); end
1431
- def on_top_level_group(node); end
1432
- def subject(param0 = T.unsafe(nil)); end
1433
-
1434
- private
1435
-
1436
- def find_all_explicit_subjects(node); end
1437
- def find_subject_expectations(node, subject_names = T.unsafe(nil), &block); end
1438
- end
1439
-
1440
- RuboCop::Cop::RSpec::SubjectStub::MSG = T.let(T.unsafe(nil), String)
1441
-
1442
- module RuboCop::Cop::RSpec::TopLevelGroup
1443
- extend ::RuboCop::AST::NodePattern::Macros
1444
-
1445
- def on_new_investigation; end
1446
- def top_level_groups; end
1447
-
1448
- private
1449
-
1450
- def on_top_level_example_group(_node); end
1451
- def on_top_level_group(_node); end
1452
- def root_node; end
1453
- def top_level_group?(node); end
1454
- def top_level_nodes(node); end
1455
- end
1456
-
1457
- class RuboCop::Cop::RSpec::UnspecifiedException < ::RuboCop::Cop::RSpec::Base
1458
- def block_with_args?(node); end
1459
- def empty_exception_matcher?(node); end
1460
- def empty_raise_error_or_exception(param0 = T.unsafe(nil)); end
1461
- def on_send(node); end
1462
- end
1463
-
1464
- RuboCop::Cop::RSpec::UnspecifiedException::MSG = T.let(T.unsafe(nil), String)
1465
- RuboCop::Cop::RSpec::UnspecifiedException::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array)
1466
-
1467
- module RuboCop::Cop::RSpec::Variable
1468
- extend ::RuboCop::AST::NodePattern::Macros
1469
-
1470
- def variable_definition?(param0 = T.unsafe(nil)); end
1471
- end
1472
-
1473
- RuboCop::Cop::RSpec::Variable::Helpers = RuboCop::RSpec::Language::Helpers
1474
- RuboCop::Cop::RSpec::Variable::Subjects = RuboCop::RSpec::Language::Subjects
1475
-
1476
- class RuboCop::Cop::RSpec::VariableDefinition < ::RuboCop::Cop::RSpec::Base
1477
- include ::RuboCop::Cop::ConfigurableEnforcedStyle
1478
- include ::RuboCop::Cop::RSpec::Variable
1479
-
1480
- def on_send(node); end
1481
-
1482
- private
1483
-
1484
- def string?(node); end
1485
- def style_violation?(variable); end
1486
- def symbol?(node); end
1487
- end
1488
-
1489
- RuboCop::Cop::RSpec::VariableDefinition::MSG = T.let(T.unsafe(nil), String)
1490
-
1491
- class RuboCop::Cop::RSpec::VariableName < ::RuboCop::Cop::RSpec::Base
1492
- include ::RuboCop::Cop::ConfigurableEnforcedStyle
1493
- include ::RuboCop::Cop::ConfigurableFormatting
1494
- include ::RuboCop::Cop::ConfigurableNaming
1495
- include ::RuboCop::Cop::IgnoredPattern
1496
- include ::RuboCop::Cop::RSpec::Variable
1497
-
1498
- def on_send(node); end
1499
-
1500
- private
1501
-
1502
- def message(style); end
1503
- end
1504
-
1505
- RuboCop::Cop::RSpec::VariableName::MSG = T.let(T.unsafe(nil), String)
1506
-
1507
- class RuboCop::Cop::RSpec::VerifiedDoubles < ::RuboCop::Cop::RSpec::Base
1508
- def on_send(node); end
1509
- def unverified_double(param0 = T.unsafe(nil)); end
1510
-
1511
- private
1512
-
1513
- def symbol?(name); end
1514
- end
1515
-
1516
- RuboCop::Cop::RSpec::VerifiedDoubles::MSG = T.let(T.unsafe(nil), String)
1517
- RuboCop::Cop::RSpec::VerifiedDoubles::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array)
1518
-
1519
- class RuboCop::Cop::RSpec::VoidExpect < ::RuboCop::Cop::RSpec::Base
1520
- def expect?(param0 = T.unsafe(nil)); end
1521
- def expect_block?(param0 = T.unsafe(nil)); end
1522
- def on_block(node); end
1523
- def on_send(node); end
1524
-
1525
- private
1526
-
1527
- def check_expect(node); end
1528
- def void?(expect); end
1529
- end
1530
-
1531
- RuboCop::Cop::RSpec::VoidExpect::MSG = T.let(T.unsafe(nil), String)
1532
- RuboCop::Cop::RSpec::VoidExpect::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array)
1533
-
1534
- class RuboCop::Cop::RSpec::Yield < ::RuboCop::Cop::RSpec::Base
1535
- include ::RuboCop::Cop::RangeHelp
1536
- extend ::RuboCop::Cop::AutoCorrector
1537
-
1538
- def block_arg(param0 = T.unsafe(nil)); end
1539
- def block_call?(param0 = T.unsafe(nil), param1); end
1540
- def method_on_stub?(param0); end
1541
- def on_block(node); end
1542
-
1543
- private
1544
-
1545
- def autocorrect(corrector, node, range); end
1546
- def block_range(node); end
1547
- def calling_block?(node, block); end
1548
- def convert_block_to_yield(node); end
1549
- def generate_replacement(node); end
1550
- end
1551
-
1552
- RuboCop::Cop::RSpec::Yield::MSG = T.let(T.unsafe(nil), String)
1553
- RuboCop::NodePattern = RuboCop::AST::NodePattern
1554
- RuboCop::ProcessedSource = RuboCop::AST::ProcessedSource
1555
- module RuboCop::RSpec; end
1556
-
1557
- class RuboCop::RSpec::AlignLetBrace
1558
- include ::RuboCop::RSpec::Language
1559
-
1560
- def initialize(root, token); end
1561
-
1562
- def indent_for(node); end
1563
- def offending_tokens; end
1564
-
1565
- private
1566
-
1567
- def adjacent_let_chunks; end
1568
- def let_group_for(let); end
1569
- def let_token(node); end
1570
- def root; end
1571
- def single_line_lets; end
1572
- def target_column_for(let); end
1573
- def token; end
1574
- end
1575
-
1576
- class RuboCop::RSpec::Concept
1577
- include ::RuboCop::RSpec::Language
1578
- extend ::RuboCop::AST::NodePattern::Macros
1579
- extend ::RuboCop::RSpec::Language::NodePattern
1580
-
1581
- def initialize(node); end
1582
-
1583
- def ==(other); end
1584
- def eql?(other); end
1585
- def hash; end
1586
- def to_node; end
1587
-
1588
- protected
1589
-
1590
- def node; end
1591
- end
1592
-
1593
- module RuboCop::RSpec::Corrector; end
1594
-
1595
- class RuboCop::RSpec::Corrector::MoveNode
1596
- include ::RuboCop::Cop::RangeHelp
1597
- include ::RuboCop::Cop::RSpec::FinalEndLocation
1598
- include ::RuboCop::Cop::RSpec::CommentsHelp
1599
-
1600
- def initialize(node, corrector, processed_source); end
1601
-
1602
- def corrector; end
1603
- def move_after(other); end
1604
- def move_before(other); end
1605
- def original; end
1606
- def processed_source; end
1607
-
1608
- private
1609
-
1610
- def node_range(node); end
1611
- def node_range_with_surrounding_space(node); end
1612
- def source(node); end
1613
- end
1614
-
1615
- class RuboCop::RSpec::Example < ::RuboCop::RSpec::Concept
1616
- def definition; end
1617
- def doc_string; end
1618
- def extract_doc_string(param0 = T.unsafe(nil)); end
1619
- def extract_implementation(param0 = T.unsafe(nil)); end
1620
- def extract_metadata(param0 = T.unsafe(nil)); end
1621
- def implementation; end
1622
- def metadata; end
1623
- end
1624
-
1625
- class RuboCop::RSpec::ExampleGroup < ::RuboCop::RSpec::Concept
1626
- def examples; end
1627
- def hooks; end
1628
- def lets; end
1629
- def scope_change?(param0 = T.unsafe(nil)); end
1630
- def subjects; end
1631
-
1632
- private
1633
-
1634
- def find_all(node, predicate); end
1635
- def find_all_in_scope(node, predicate); end
1636
- end
1637
-
1638
- module RuboCop::RSpec::FactoryBot
1639
- class << self
1640
- def attribute_defining_methods; end
1641
- def reserved_methods; end
1642
- end
1643
- end
1644
-
1645
- RuboCop::RSpec::FactoryBot::ATTRIBUTE_DEFINING_METHODS = T.let(T.unsafe(nil), Array)
1646
- RuboCop::RSpec::FactoryBot::DEFINITION_PROXY_METHODS = T.let(T.unsafe(nil), Array)
1647
- RuboCop::RSpec::FactoryBot::RESERVED_METHODS = T.let(T.unsafe(nil), Array)
1648
- RuboCop::RSpec::FactoryBot::UNPROXIED_METHODS = T.let(T.unsafe(nil), Array)
1649
-
1650
- class RuboCop::RSpec::Hook < ::RuboCop::RSpec::Concept
1651
- def example?; end
1652
- def extract_metadata(param0 = T.unsafe(nil)); end
1653
- def knowable_scope?; end
1654
- def metadata; end
1655
- def name; end
1656
- def scope; end
1657
-
1658
- private
1659
-
1660
- def scope_argument; end
1661
- def scope_name; end
1662
- def transform_metadata(meta); end
1663
- def transform_true(node); end
1664
- def valid_scope?(node); end
1665
- end
1666
-
1667
- module RuboCop::RSpec::Inject
1668
- class << self
1669
- def defaults!; end
1670
- end
1671
- end
1672
-
1673
- module RuboCop::RSpec::Language
1674
- extend ::RuboCop::AST::NodePattern::Macros
1675
- extend ::RuboCop::RSpec::Language::NodePattern
1676
-
1677
- def example?(param0 = T.unsafe(nil)); end
1678
- def example_group?(param0 = T.unsafe(nil)); end
1679
- def example_group_with_body?(param0 = T.unsafe(nil)); end
1680
- def hook?(param0 = T.unsafe(nil)); end
1681
- def include?(param0 = T.unsafe(nil)); end
1682
- def let?(param0 = T.unsafe(nil)); end
1683
- def rspec?(param0 = T.unsafe(nil)); end
1684
- def shared_group?(param0 = T.unsafe(nil)); end
1685
- def spec_group?(param0 = T.unsafe(nil)); end
1686
- def subject?(param0 = T.unsafe(nil)); end
1687
-
1688
- class << self
1689
- def config; end
1690
- def config=(_arg0); end
1691
- end
1692
- end
1693
-
1694
- module RuboCop::RSpec::Language::ALL
1695
- class << self
1696
- def all(element); end
1697
- end
1698
- end
1699
-
1700
- module RuboCop::RSpec::Language::ExampleGroups
1701
- class << self
1702
- def all(element); end
1703
- def focused(element); end
1704
- def regular(element); end
1705
- def skipped(element); end
1706
- end
1707
- end
1708
-
1709
- module RuboCop::RSpec::Language::Examples
1710
- class << self
1711
- def all(element); end
1712
- def focused(element); end
1713
- def pending(element); end
1714
- def regular(element); end
1715
- def skipped(element); end
1716
- end
1717
- end
1718
-
1719
- module RuboCop::RSpec::Language::Expectations
1720
- class << self
1721
- def all(element); end
1722
- end
1723
- end
1724
-
1725
- module RuboCop::RSpec::Language::Helpers
1726
- class << self
1727
- def all(element); end
1728
- end
1729
- end
1730
-
1731
- module RuboCop::RSpec::Language::HookScopes
1732
- class << self
1733
- def all(element); end
1734
- end
1735
- end
1736
-
1737
- module RuboCop::RSpec::Language::Hooks
1738
- class << self
1739
- def all(element); end
1740
- end
1741
- end
1742
-
1743
- module RuboCop::RSpec::Language::Includes
1744
- class << self
1745
- def all(element); end
1746
- def context(element); end
1747
- def examples(element); end
1748
- end
1749
- end
1750
-
1751
- module RuboCop::RSpec::Language::NodePattern
1752
- def block_pattern(string); end
1753
- def send_pattern(string); end
1754
- end
1755
-
1756
- module RuboCop::RSpec::Language::Runners
1757
- class << self
1758
- def all(element); end
1759
- end
1760
- end
1761
-
1762
- module RuboCop::RSpec::Language::SharedGroups
1763
- class << self
1764
- def all(element); end
1765
- def context(element); end
1766
- def examples(element); end
1767
- end
1768
- end
1769
-
1770
- module RuboCop::RSpec::Language::Subjects
1771
- class << self
1772
- def all(element); end
1773
- end
1774
- end
1775
-
1776
- module RuboCop::RSpec::Node
1777
- def recursive_literal_or_const?; end
1778
- end
1779
-
1780
- module RuboCop::RSpec::Version; end
1781
- RuboCop::RSpec::Version::STRING = T.let(T.unsafe(nil), String)
1782
-
1783
- class RuboCop::RSpec::Wording
1784
- def initialize(text, ignore:, replace:); end
1785
-
1786
- def rewrite; end
1787
-
1788
- private
1789
-
1790
- def append_suffix(word, suffix); end
1791
- def ignored_word?(word); end
1792
- def ignores; end
1793
- def remove_should_and_pluralize; end
1794
- def replace_prefix(pattern, replacement); end
1795
- def replacements; end
1796
- def substitute(word); end
1797
- def text; end
1798
- def uppercase?(word); end
1799
- end
1800
-
1801
- RuboCop::RSpec::Wording::ES_SUFFIX_PATTERN = T.let(T.unsafe(nil), Regexp)
1802
- RuboCop::RSpec::Wording::IES_SUFFIX_PATTERN = T.let(T.unsafe(nil), Regexp)
1803
- RuboCop::RSpec::Wording::SHOULDNT_BE_PREFIX = T.let(T.unsafe(nil), Regexp)
1804
- RuboCop::RSpec::Wording::SHOULDNT_PREFIX = T.let(T.unsafe(nil), Regexp)
1805
- RuboCop::Token = RuboCop::AST::Token