rspec-sorbet 1.8.0 → 1.8.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (119) hide show
  1. checksums.yaml +4 -4
  2. data/.github/workflows/ci.yml +14 -22
  3. data/.gitignore +2 -1
  4. data/CHANGELOG.md +4 -0
  5. data/Gemfile +1 -5
  6. data/bin/tapioca +29 -0
  7. data/lib/rspec/sorbet/doubles.rb +1 -1
  8. data/lib/rspec/sorbet/version.rb +1 -1
  9. data/nix/sources.json +14 -0
  10. data/nix/sources.nix +174 -0
  11. data/run_ci.sh +7 -0
  12. data/shell.nix +20 -0
  13. data/sorbet/config +2 -0
  14. data/sorbet/rbi/gems/{ast.rbi → ast@2.4.2.rbi} +28 -22
  15. data/sorbet/rbi/gems/byebug@11.1.3.rbi +1568 -0
  16. data/sorbet/rbi/gems/coderay@1.1.3.rbi +1005 -0
  17. data/sorbet/rbi/gems/diff-lcs@1.4.4.rbi +9 -0
  18. data/sorbet/rbi/gems/docile@1.4.0.rbi +54 -0
  19. data/sorbet/rbi/gems/em-websocket@0.5.2.rbi +8 -0
  20. data/sorbet/rbi/gems/eventmachine@1.2.7.rbi +45 -0
  21. data/sorbet/rbi/gems/ffaker@2.20.0.rbi +3171 -0
  22. data/sorbet/rbi/gems/ffi@1.15.4.rbi +8 -0
  23. data/sorbet/rbi/gems/formatador@0.3.0.rbi +8 -0
  24. data/sorbet/rbi/gems/guard-compat@1.2.1.rbi +31 -0
  25. data/sorbet/rbi/gems/guard-livereload@2.5.2.rbi +8 -0
  26. data/sorbet/rbi/gems/guard-rspec@4.7.3.rbi +211 -0
  27. data/sorbet/rbi/gems/guard@2.18.0.rbi +8 -0
  28. data/sorbet/rbi/gems/http_parser.rb@0.6.0.rbi +8 -0
  29. data/sorbet/rbi/gems/listen@3.7.0.rbi +8 -0
  30. data/sorbet/rbi/gems/lumberjack@1.2.8.rbi +8 -0
  31. data/sorbet/rbi/gems/method_source@1.0.0.rbi +72 -0
  32. data/sorbet/rbi/gems/multi_json@1.15.0.rbi +8 -0
  33. data/sorbet/rbi/gems/nenv@0.3.0.rbi +8 -0
  34. data/sorbet/rbi/gems/notiffany@0.1.3.rbi +8 -0
  35. data/sorbet/rbi/gems/parallel@1.21.0.rbi +113 -0
  36. data/sorbet/rbi/gems/parser@3.0.2.0.rbi +1189 -0
  37. data/sorbet/rbi/gems/pry-byebug@3.8.0.rbi +458 -0
  38. data/sorbet/rbi/gems/{pry.rbi → pry@0.14.1.rbi} +2264 -1727
  39. data/sorbet/rbi/gems/{rainbow.rbi → rainbow@3.0.0.rbi} +90 -55
  40. data/sorbet/rbi/gems/{rake.rbi → rake@13.0.6.rbi} +578 -431
  41. data/sorbet/rbi/gems/rb-fsevent@0.11.0.rbi +8 -0
  42. data/sorbet/rbi/gems/rb-inotify@0.10.1.rbi +8 -0
  43. data/sorbet/rbi/gems/rbi@0.0.6.rbi +1405 -0
  44. data/sorbet/rbi/gems/regexp_parser@2.1.1.rbi +1120 -0
  45. data/sorbet/rbi/gems/{rexml.rbi → rexml@3.2.5.rbi} +564 -497
  46. data/sorbet/rbi/gems/{rspec-core.rbi → rspec-core@3.10.1.rbi} +2308 -1766
  47. data/sorbet/rbi/gems/{rspec-expectations.rbi → rspec-expectations@3.10.1.rbi} +1149 -698
  48. data/sorbet/rbi/gems/{rspec-mocks.rbi → rspec-mocks@3.10.2.rbi} +1299 -936
  49. data/sorbet/rbi/gems/rspec-support@3.10.2.rbi +509 -0
  50. data/sorbet/rbi/gems/rspec@3.10.0.rbi +38 -0
  51. data/sorbet/rbi/gems/rubocop-ast@1.12.0.rbi +1938 -0
  52. data/sorbet/rbi/gems/rubocop-rspec@2.5.0.rbi +1786 -0
  53. data/sorbet/rbi/gems/rubocop@1.22.1.rbi +13252 -0
  54. data/sorbet/rbi/gems/ruby-progressbar@1.11.0.rbi +405 -0
  55. data/sorbet/rbi/gems/shellany@0.0.1.rbi +8 -0
  56. data/sorbet/rbi/gems/simplecov-html@0.12.3.rbi +89 -0
  57. data/sorbet/rbi/gems/simplecov@0.21.2.rbi +577 -0
  58. data/sorbet/rbi/gems/simplecov_json_formatter@0.1.3.rbi +8 -0
  59. data/sorbet/rbi/gems/spoom@1.1.5.rbi +1241 -0
  60. data/sorbet/rbi/gems/stackprof@0.2.17.rbi +98 -0
  61. data/sorbet/rbi/gems/tapioca@0.5.2.rbi +949 -0
  62. data/sorbet/rbi/gems/thor@1.1.0.rbi +839 -0
  63. data/sorbet/rbi/gems/unicode-display_width@2.1.0.rbi +26 -0
  64. data/sorbet/rbi/gems/unparser@0.6.0.rbi +8 -0
  65. data/sorbet/tapioca/require.rb +4 -0
  66. metadata +60 -64
  67. data/.reek.yml +0 -32
  68. data/.ruby-version +0 -1
  69. data/sorbet/rbi/gems/activesupport.rbi +0 -1722
  70. data/sorbet/rbi/gems/byebug.rbi +0 -1041
  71. data/sorbet/rbi/gems/coderay.rbi +0 -285
  72. data/sorbet/rbi/gems/concurrent-ruby.rbi +0 -1586
  73. data/sorbet/rbi/gems/docile.rbi +0 -32
  74. data/sorbet/rbi/gems/em-websocket.rbi +0 -225
  75. data/sorbet/rbi/gems/eventmachine.rbi +0 -489
  76. data/sorbet/rbi/gems/ffaker.rbi +0 -60
  77. data/sorbet/rbi/gems/guard.rbi +0 -397
  78. data/sorbet/rbi/gems/http_parser.rb.rbi +0 -37
  79. data/sorbet/rbi/gems/i18n.rbi +0 -133
  80. data/sorbet/rbi/gems/kwalify.rbi +0 -340
  81. data/sorbet/rbi/gems/listen.rbi +0 -324
  82. data/sorbet/rbi/gems/lumberjack.rbi +0 -300
  83. data/sorbet/rbi/gems/method_source.rbi +0 -64
  84. data/sorbet/rbi/gems/multi_json.rbi +0 -62
  85. data/sorbet/rbi/gems/nenv.rbi +0 -60
  86. data/sorbet/rbi/gems/notiffany.rbi +0 -215
  87. data/sorbet/rbi/gems/parallel.rbi +0 -82
  88. data/sorbet/rbi/gems/parser.rbi +0 -1846
  89. data/sorbet/rbi/gems/pry-byebug.rbi +0 -155
  90. data/sorbet/rbi/gems/rb-fsevent.rbi +0 -31
  91. data/sorbet/rbi/gems/rb-readline.rbi +0 -767
  92. data/sorbet/rbi/gems/reek.rbi +0 -1027
  93. data/sorbet/rbi/gems/regexp_parser.rbi +0 -913
  94. data/sorbet/rbi/gems/rspec-support.rbi +0 -280
  95. data/sorbet/rbi/gems/rspec.rbi +0 -15
  96. data/sorbet/rbi/gems/rubocop-ast.rbi +0 -1053
  97. data/sorbet/rbi/gems/rubocop-rspec.rbi +0 -937
  98. data/sorbet/rbi/gems/rubocop.rbi +0 -6841
  99. data/sorbet/rbi/gems/ruby-progressbar.rbi +0 -305
  100. data/sorbet/rbi/gems/shellany.rbi +0 -29
  101. data/sorbet/rbi/gems/shoulda-matchers.rbi +0 -1848
  102. data/sorbet/rbi/gems/simplecov-html.rbi +0 -35
  103. data/sorbet/rbi/gems/simplecov.rbi +0 -361
  104. data/sorbet/rbi/gems/sqlite3.rbi +0 -354
  105. data/sorbet/rbi/gems/stackprof.rbi +0 -52
  106. data/sorbet/rbi/gems/thor.rbi +0 -32
  107. data/sorbet/rbi/gems/thread_safe.rbi +0 -82
  108. data/sorbet/rbi/gems/timecop.rbi +0 -98
  109. data/sorbet/rbi/gems/tzinfo.rbi +0 -406
  110. data/sorbet/rbi/gems/unicode-display_width.rbi +0 -17
  111. data/sorbet/rbi/hidden-definitions/errors.txt +0 -7275
  112. data/sorbet/rbi/hidden-definitions/hidden.rbi +0 -14595
  113. data/sorbet/rbi/sorbet-typed/lib/activesupport/>=6.0.0.rc1/activesupport.rbi +0 -23
  114. data/sorbet/rbi/sorbet-typed/lib/activesupport/all/activesupport.rbi +0 -1431
  115. data/sorbet/rbi/sorbet-typed/lib/minitest/all/minitest.rbi +0 -108
  116. data/sorbet/rbi/sorbet-typed/lib/rainbow/all/rainbow.rbi +0 -276
  117. data/sorbet/rbi/sorbet-typed/lib/rubocop/~>0.85/rubocop.rbi +0 -2072
  118. data/sorbet/rbi/sorbet-typed/lib/rubocop-rspec/~>1.39/rubocop-rspec.rbi +0 -398
  119. data/sorbet/rbi/todo.rbi +0 -9
@@ -1,1027 +0,0 @@
1
- # This file is autogenerated. Do not edit it by hand. Regenerate it with:
2
- # srb rbi gems
3
-
4
- # typed: true
5
- #
6
- # If you would like to make changes to this file, great! Please create the gem's shim here:
7
- #
8
- # https://github.com/sorbet/sorbet-typed/new/master?filename=lib/reek/all/reek.rbi
9
- #
10
- # reek-6.0.1
11
-
12
- module Reek
13
- end
14
- module Reek::Version
15
- end
16
- module Reek::DocumentationLink
17
- def build(subject); end
18
- def name_to_param(name); end
19
- def self.build(subject); end
20
- def self.name_to_param(name); end
21
- end
22
- class Reek::SmellWarning
23
- def <=>(other); end
24
- def base_hash; end
25
- def base_message; end
26
- def context; end
27
- def eql?(other); end
28
- def explanatory_link; end
29
- def hash; end
30
- def identifying_values; end
31
- def initialize(smell_type, lines:, message:, source:, context: nil, parameters: nil); end
32
- def lines; end
33
- def message; end
34
- def parameters; end
35
- def smell_type; end
36
- def source; end
37
- def to_hash; end
38
- def yaml_hash; end
39
- extend Forwardable
40
- include Comparable
41
- end
42
- class Reek::SmellConfiguration
43
- def enabled?; end
44
- def initialize(hash); end
45
- def merge(new_options); end
46
- def options; end
47
- def overrides_for(context); end
48
- def value(key, context); end
49
- end
50
- class Reek::Overrides
51
- def for_context(context); end
52
- def hash; end
53
- def initialize(hash); end
54
- end
55
- module Reek::SmellDetectors
56
- end
57
- class Reek::SmellDetectors::BaseDetector
58
- def config; end
59
- def config_for(ctx); end
60
- def context; end
61
- def enabled?; end
62
- def exception?; end
63
- def expression; end
64
- def initialize(configuration: nil, context: nil); end
65
- def run; end
66
- def self.configuration_keys; end
67
- def self.contexts; end
68
- def self.default_config; end
69
- def self.descendants; end
70
- def self.inherited(subclass); end
71
- def self.smell_type; end
72
- def self.to_detector(detector_name); end
73
- def self.todo_configuration_for(smells); end
74
- def smell_type; end
75
- def smell_warning(**options); end
76
- def source_line; end
77
- def value(key, ctx); end
78
- end
79
- module Reek::Errors
80
- end
81
- class Reek::Errors::BaseError < RuntimeError
82
- def long_message; end
83
- end
84
- class Reek::Errors::BadDetectorInCommentError < Reek::Errors::BaseError
85
- def initialize(detector_name:, source:, line:, original_comment:); end
86
- end
87
- class Reek::Errors::BadDetectorConfigurationKeyInCommentError < Reek::Errors::BaseError
88
- def initialize(detector_name:, offensive_keys:, source:, line:, original_comment:); end
89
- end
90
- class Reek::Errors::GarbageDetectorConfigurationInCommentError < Reek::Errors::BaseError
91
- def initialize(detector_name:, source:, line:, original_comment:); end
92
- end
93
- class Reek::Errors::LegacyCommentSeparatorError < Reek::Errors::BaseError
94
- def initialize(source:, line:, original_comment:); end
95
- end
96
- class Reek::CodeComment
97
- def config; end
98
- def descriptive?; end
99
- def escalate_legacy_separator(separator); end
100
- def initialize(comment:, line: nil, source: nil); end
101
- def line; end
102
- def original_comment; end
103
- def sanitized_comment; end
104
- def source; end
105
- end
106
- class Reek::CodeComment::CodeCommentValidator
107
- def configuration_keys_difference; end
108
- def detector_class; end
109
- def detector_name; end
110
- def escalate_unknown_configuration_key; end
111
- def given_configuration_keys; end
112
- def given_keys_legit?; end
113
- def initialize(detector_name:, original_comment:, line:, source:, options:); end
114
- def legacy_format?; end
115
- def line; end
116
- def options; end
117
- def original_comment; end
118
- def parsed_options; end
119
- def separator; end
120
- def source; end
121
- def valid_detector_keys; end
122
- def validate; end
123
- end
124
- module Reek::AST
125
- end
126
- class Reek::AST::ObjectRefs
127
- def initialize; end
128
- def most_popular; end
129
- def record_reference(name:, line: nil); end
130
- def references_to(name); end
131
- def refs; end
132
- def self_is_max?; end
133
- end
134
- module Reek::CLI
135
- end
136
- module Reek::CLI::Silencer
137
- def self.silently; end
138
- def self.without_warnings; end
139
- def silently; end
140
- def without_warnings; end
141
- end
142
- class Reek::AST::Node < Parser::AST::Node
143
- def comments; end
144
- def condition; end
145
- def contains_nested_node?(target_type); end
146
- def each_node(target_types, ignoring = nil, &blk); end
147
- def each_sexp; end
148
- def format_to_ruby; end
149
- def full_comment; end
150
- def initialize(type, children = nil, options = nil); end
151
- def leading_comment; end
152
- def length; end
153
- def line; end
154
- def look_for(target_types, ignoring, &blk); end
155
- def look_for_recurse(target_types, ignoring, &blk); end
156
- def name; end
157
- def source; end
158
- def statements; end
159
- end
160
- module Reek::Context
161
- end
162
- class Reek::Context::StatementCounter
163
- def decrease_by(number); end
164
- def increase_by(sexp); end
165
- def initialize; end
166
- def value; end
167
- def value=(arg0); end
168
- end
169
- class Reek::Context::CodeContext
170
- def append_child_context(child); end
171
- def apply_current_visibility(_current_visibility); end
172
- def children; end
173
- def config_for(detector_class); end
174
- def configuration_via_code_commment; end
175
- def each(&block); end
176
- def exp; end
177
- def full_comment; end
178
- def full_name; end
179
- def initialize(exp); end
180
- def instance_method?; end
181
- def local_nodes(type, ignored = nil, &blk); end
182
- def matches?(candidates); end
183
- def name(*args, &block); end
184
- def number_of_statements; end
185
- def parent; end
186
- def parent_config_for(detector_class); end
187
- def record_call_to(exp); end
188
- def record_use_of_self; end
189
- def refs; end
190
- def register_with_parent(parent); end
191
- def singleton_method?; end
192
- def statement_counter; end
193
- def type(*args, &block); end
194
- extend Forwardable
195
- include Enumerable
196
- end
197
- class Reek::Context::AttributeContext < Reek::Context::CodeContext
198
- def apply_current_visibility(current_visibility); end
199
- def full_comment; end
200
- def initialize(exp, send_expression); end
201
- def instance_method?; end
202
- def send_expression; end
203
- def visibility; end
204
- def visibility=(arg0); end
205
- end
206
- class Reek::Context::MethodContext < Reek::Context::CodeContext
207
- def apply_current_visibility(current_visibility); end
208
- def default_assignments; end
209
- def full_comment; end
210
- def initialize(exp, parent_exp); end
211
- def instance_method?; end
212
- def method_context_class; end
213
- def module_function?; end
214
- def non_public_visibility?; end
215
- def parent_exp; end
216
- def references_self?; end
217
- def refs; end
218
- def singleton_method?; end
219
- def unused_params; end
220
- def uses_param?(param); end
221
- def uses_super_with_implicit_arguments?; end
222
- def visibility; end
223
- def visibility=(arg0); end
224
- end
225
- class Reek::Context::VisibilityTracker
226
- def apply_visibility(context); end
227
- def initialize; end
228
- def track_singleton_visibility(children:, visibility:, names:); end
229
- def track_visibility(children:, visibility:, names:); end
230
- def tracked_visibility; end
231
- def tracked_visibility=(arg0); end
232
- end
233
- class Reek::Context::ModuleContext < Reek::Context::CodeContext
234
- def append_child_context(child); end
235
- def attribute_context_class; end
236
- def defined_instance_methods(visibility: nil); end
237
- def descriptively_commented?; end
238
- def initialize(exp); end
239
- def instance_method_calls; end
240
- def instance_method_children; end
241
- def method_context_class; end
242
- def namespace_module?; end
243
- def node_instance_methods; end
244
- def singleton_method_children; end
245
- def track_visibility(visibility, names); end
246
- def visibility_tracker; end
247
- end
248
- class Reek::Context::ClassContext < Reek::Context::ModuleContext
249
- end
250
- class Reek::Context::SingletonMethodContext < Reek::Context::MethodContext
251
- def apply_current_visibility(current_visibility); end
252
- def defined_as_instance_method?; end
253
- def instance_method?; end
254
- def module_function?; end
255
- def singleton_method?; end
256
- end
257
- class Reek::Context::GhostContext < Reek::Context::ModuleContext
258
- def append_child_context(child); end
259
- def attribute_context_class; end
260
- def children; end
261
- def method_context_class; end
262
- def record_use_of_self; end
263
- def register_with_parent(parent); end
264
- def statement_counter; end
265
- def track_visibility(visibility, names); end
266
- end
267
- class Reek::Context::RootContext < Reek::Context::CodeContext
268
- def full_name; end
269
- def method_context_class; end
270
- def type; end
271
- end
272
- class Reek::Context::SendContext < Reek::Context::CodeContext
273
- def initialize(exp, name); end
274
- def name; end
275
- end
276
- class Reek::Context::SingletonAttributeContext < Reek::Context::AttributeContext
277
- def instance_method?; end
278
- end
279
- class Reek::ContextBuilder
280
- def append_new_context(klass, *args); end
281
- def build(exp, parent_exp = nil); end
282
- def context_processor_exists?(name); end
283
- def context_tree; end
284
- def current_context; end
285
- def current_context=(arg0); end
286
- def decrease_statement_count; end
287
- def exp; end
288
- def handle_send_for_methods(exp); end
289
- def handle_send_for_modules(exp); end
290
- def increase_statement_count_by(sexp); end
291
- def initialize(syntax_tree); end
292
- def inside_new_context(klass, *args); end
293
- def process(exp); end
294
- def process_begin(exp, _parent); end
295
- def process_block(exp, _parent); end
296
- def process_case(exp, _parent); end
297
- def process_casgn(exp, parent); end
298
- def process_class(exp, _parent); end
299
- def process_def(exp, parent); end
300
- def process_defs(exp, parent); end
301
- def process_for(exp, _parent); end
302
- def process_if(exp, _parent); end
303
- def process_ivar(exp, _parent); end
304
- def process_ivasgn(exp, _parent); end
305
- def process_kwbegin(exp, _parent); end
306
- def process_module(exp, _parent); end
307
- def process_op_asgn(exp, _parent); end
308
- def process_resbody(exp, _parent); end
309
- def process_rescue(exp, _parent); end
310
- def process_sclass(exp, _parent); end
311
- def process_self(_exp, _parent); end
312
- def process_send(exp, _parent); end
313
- def process_super(exp, _parent); end
314
- def process_until(exp, _parent); end
315
- def process_when(exp, _parent); end
316
- def process_while(exp, _parent); end
317
- def process_zsuper(_exp, _parent); end
318
- def register_attributes(exp); end
319
- end
320
- class Reek::SmellDetectors::Attribute < Reek::SmellDetectors::BaseDetector
321
- def attributes_in_context; end
322
- def self.contexts; end
323
- def sniff; end
324
- end
325
- class Reek::SmellDetectors::BooleanParameter < Reek::SmellDetectors::BaseDetector
326
- def sniff; end
327
- end
328
- class Reek::SmellDetectors::ClassVariable < Reek::SmellDetectors::BaseDetector
329
- def class_variables_in_context; end
330
- def self.contexts; end
331
- def sniff; end
332
- end
333
- module Reek::SmellDetectors::ControlParameterHelpers
334
- end
335
- class Reek::SmellDetectors::ControlParameterHelpers::Candidate
336
- def initialize(parameter, occurences); end
337
- def lines; end
338
- def name; end
339
- def occurences; end
340
- def parameter; end
341
- def smells?; end
342
- end
343
- class Reek::SmellDetectors::ControlParameterHelpers::CallInConditionFinder
344
- def call_involving_param?(call_node); end
345
- def comparison_call?(call_node); end
346
- def initialize(node, parameter); end
347
- def node; end
348
- def parameter; end
349
- def regular_call_involving_param?(call_node); end
350
- def uses_param_in_call_in_condition?; end
351
- end
352
- class Reek::SmellDetectors::ControlParameterHelpers::ControlParameterFinder
353
- def conditional_nodes; end
354
- def find_matches; end
355
- def initialize(node, parameter); end
356
- def legitimate_uses?; end
357
- def nested_finders; end
358
- def node; end
359
- def parameter; end
360
- def parameter_used_in_body?; end
361
- def uses_of_param_in_condition; end
362
- end
363
- class Reek::SmellDetectors::ControlParameter < Reek::SmellDetectors::BaseDetector
364
- def control_parameters; end
365
- def find_matches(parameter); end
366
- def potential_parameters; end
367
- def sniff; end
368
- end
369
- class Reek::SmellDetectors::DataClump < Reek::SmellDetectors::BaseDetector
370
- def candidate_clumps; end
371
- def candidate_methods; end
372
- def clumps; end
373
- def common_argument_names_for(methods); end
374
- def max_copies; end
375
- def methods_containing_clump(clump); end
376
- def min_clump_size; end
377
- def self.contexts; end
378
- def self.default_config; end
379
- def self.print_clump(clump); end
380
- def sniff; end
381
- end
382
- class Reek::SmellDetectors::DuplicateMethodCall < Reek::SmellDetectors::BaseDetector
383
- def allow_calls; end
384
- def max_allowed_calls; end
385
- def self.default_config; end
386
- def sniff; end
387
- end
388
- class Reek::SmellDetectors::DuplicateMethodCall::FoundCall
389
- def call; end
390
- def call_node; end
391
- def initialize(call_node); end
392
- def lines; end
393
- def occurences; end
394
- def occurs; end
395
- def record(occurence); end
396
- end
397
- class Reek::SmellDetectors::DuplicateMethodCall::CallCollector
398
- def allow_calls; end
399
- def allow_calls?(method); end
400
- def calls; end
401
- def collect_calls(result); end
402
- def context; end
403
- def initialize(context, max_allowed_calls, allow_calls); end
404
- def max_allowed_calls; end
405
- def simple_method_call?(call_node); end
406
- def smelly_call?(found_call); end
407
- def smelly_calls; end
408
- end
409
- class Reek::SmellDetectors::FeatureEnvy < Reek::SmellDetectors::BaseDetector
410
- def envious_receivers; end
411
- def refs; end
412
- def sniff; end
413
- end
414
- class Reek::SmellDetectors::IrresponsibleModule < Reek::SmellDetectors::BaseDetector
415
- def descriptive_context?; end
416
- def self.contexts; end
417
- def sniff; end
418
- end
419
- class Reek::SmellDetectors::InstanceVariableAssumption < Reek::SmellDetectors::BaseDetector
420
- def build_smell_warning(assumption); end
421
- def method_expressions; end
422
- def self.contexts; end
423
- def sniff; end
424
- def variables_from_context; end
425
- def variables_from_initialize; end
426
- end
427
- class Reek::SmellDetectors::LongParameterList < Reek::SmellDetectors::BaseDetector
428
- def max_allowed_params; end
429
- def self.default_config; end
430
- def sniff; end
431
- end
432
- class Reek::SmellDetectors::LongYieldList < Reek::SmellDetectors::BaseDetector
433
- def max_allowed_params; end
434
- def self.default_config; end
435
- def sniff; end
436
- end
437
- class Reek::SmellDetectors::ManualDispatch < Reek::SmellDetectors::BaseDetector
438
- def sniff; end
439
- end
440
- class Reek::SmellDetectors::ModuleInitialize < Reek::SmellDetectors::BaseDetector
441
- def self.contexts; end
442
- def sniff; end
443
- end
444
- class Reek::SmellDetectors::NestedIterators < Reek::SmellDetectors::BaseDetector
445
- def find_candidates; end
446
- def find_violations; end
447
- def ignore_iterators; end
448
- def ignored_iterator?(exp); end
449
- def increment_depth(iterator, depth); end
450
- def max_allowed_nesting; end
451
- def scout(exp:, depth:); end
452
- def self.default_config; end
453
- def sniff; end
454
- end
455
- class Reek::SmellDetectors::NestedIterators::Iterator < Struct
456
- def depth; end
457
- def depth=(_); end
458
- def exp; end
459
- def exp=(_); end
460
- def line; end
461
- def self.[](*arg0); end
462
- def self.inspect; end
463
- def self.members; end
464
- def self.new(*arg0); end
465
- end
466
- class Reek::SmellDetectors::NilCheck < Reek::SmellDetectors::BaseDetector
467
- def detect_nodes; end
468
- def sniff; end
469
- end
470
- class Reek::SmellDetectors::NilCheck::NodeFinder
471
- def detector; end
472
- def initialize(ctx, type, detector); end
473
- def nodes; end
474
- def smelly_nodes; end
475
- end
476
- module Reek::SmellDetectors::NilCheck::NilCallNodeDetector
477
- def comparison_call?(call); end
478
- def comparison_methods; end
479
- def detect(node); end
480
- def involves_nil?(call); end
481
- def nil_comparison?(call); end
482
- def nil_query?(call); end
483
- def self.comparison_call?(call); end
484
- def self.comparison_methods; end
485
- def self.detect(node); end
486
- def self.involves_nil?(call); end
487
- def self.nil_comparison?(call); end
488
- def self.nil_query?(call); end
489
- end
490
- module Reek::SmellDetectors::NilCheck::NilWhenNodeDetector
491
- def detect(node); end
492
- def self.detect(node); end
493
- end
494
- class Reek::SmellDetectors::MissingSafeMethod < Reek::SmellDetectors::BaseDetector
495
- def ignore_method?(method_node); end
496
- def ignore_method_names; end
497
- def missing_safe_method?(method_sexp); end
498
- def self.contexts; end
499
- def sniff; end
500
- def version_without_bang_exists?(method_sexp); end
501
- end
502
- class Reek::SmellDetectors::RepeatedConditional < Reek::SmellDetectors::BaseDetector
503
- def conditional_counts; end
504
- def max_identical_ifs; end
505
- def self.contexts; end
506
- def self.default_config; end
507
- def sniff; end
508
- end
509
- class Reek::SmellDetectors::SubclassedFromCoreClass < Reek::SmellDetectors::BaseDetector
510
- def build_smell_warning(ancestor_name); end
511
- def self.contexts; end
512
- def sniff; end
513
- def sniff_superclass(superclass_name); end
514
- end
515
- class Reek::SmellDetectors::TooManyInstanceVariables < Reek::SmellDetectors::BaseDetector
516
- def max_allowed_ivars; end
517
- def self.contexts; end
518
- def self.default_config; end
519
- def sniff; end
520
- end
521
- class Reek::SmellDetectors::TooManyConstants < Reek::SmellDetectors::BaseDetector
522
- def build_smell_warning(count); end
523
- def max_allowed_constants; end
524
- def self.contexts; end
525
- def self.default_config; end
526
- def sniff; end
527
- end
528
- class Reek::SmellDetectors::TooManyMethods < Reek::SmellDetectors::BaseDetector
529
- def max_allowed_methods; end
530
- def self.contexts; end
531
- def self.default_config; end
532
- def sniff; end
533
- end
534
- class Reek::SmellDetectors::TooManyStatements < Reek::SmellDetectors::BaseDetector
535
- def max_allowed_statements; end
536
- def self.default_config; end
537
- def sniff; end
538
- end
539
- class Reek::SmellDetectors::UncommunicativeMethodName < Reek::SmellDetectors::BaseDetector
540
- def accept_patterns; end
541
- def acceptable_name?(name); end
542
- def reject_patterns; end
543
- def self.default_config; end
544
- def sniff; end
545
- end
546
- class Reek::SmellDetectors::UncommunicativeModuleName < Reek::SmellDetectors::BaseDetector
547
- def accept_patterns; end
548
- def acceptable_name?(module_name:, fully_qualified_name:); end
549
- def reject_patterns; end
550
- def self.contexts; end
551
- def self.default_config; end
552
- def sniff; end
553
- end
554
- class Reek::SmellDetectors::UncommunicativeParameterName < Reek::SmellDetectors::BaseDetector
555
- def accept_patterns; end
556
- def acceptable_name?(name); end
557
- def reject_patterns; end
558
- def self.default_config; end
559
- def sniff; end
560
- def uncommunicative_parameter?(parameter); end
561
- end
562
- class Reek::SmellDetectors::UncommunicativeVariableName < Reek::SmellDetectors::BaseDetector
563
- def accept_names; end
564
- def acceptable_name?(name); end
565
- def find_assignment_variable_names(accumulator); end
566
- def find_block_argument_variable_names(accumulator); end
567
- def record_variable_name(exp, symbol, accumulator); end
568
- def recursively_record_variable_names(accumulator, exp); end
569
- def reject_names; end
570
- def self.contexts; end
571
- def self.default_config; end
572
- def sniff; end
573
- def uncommunicative_variable_name?(name); end
574
- def variable_names; end
575
- end
576
- class Reek::SmellDetectors::UnusedParameters < Reek::SmellDetectors::BaseDetector
577
- def sniff; end
578
- end
579
- class Reek::SmellDetectors::UnusedPrivateMethod < Reek::SmellDetectors::BaseDetector
580
- def hits; end
581
- def ignore_method?(method); end
582
- def self.contexts; end
583
- def self.default_config; end
584
- def sniff; end
585
- def unused_private_methods; end
586
- end
587
- class Reek::SmellDetectors::UnusedPrivateMethod::Hit
588
- def initialize(context); end
589
- def line; end
590
- def name; end
591
- end
592
- class Reek::AST::ReferenceCollector
593
- def ast; end
594
- def explicit_self_calls; end
595
- def implicit_self_calls; end
596
- def initialize(ast); end
597
- def num_refs_to_self; end
598
- end
599
- class Reek::SmellDetectors::UtilityFunction < Reek::SmellDetectors::BaseDetector
600
- def ignore_method?; end
601
- def num_helper_methods; end
602
- def self.contexts; end
603
- def self.default_config; end
604
- def sniff; end
605
- end
606
- class Reek::Errors::ConfigFileError < Reek::Errors::BaseError
607
- end
608
- module Reek::Configuration
609
- end
610
- module Reek::Configuration::ConfigurationValidator
611
- def key_to_smell_detector(key); end
612
- def smell_type?(key); end
613
- def with_valid_directory(path); end
614
- end
615
- class Reek::Configuration::ConfigurationConverter
616
- def configuration; end
617
- def convert; end
618
- def convertible_attributes(detector_configuration); end
619
- def initialize(configuration); end
620
- def marked_as_regex?(value); end
621
- def strings_to_regexes_for_detectors; end
622
- def strings_to_regexes_for_directories; end
623
- def to_regex(value); end
624
- include Reek::Configuration::ConfigurationValidator
625
- end
626
- class Reek::Configuration::SchemaValidator
627
- def error_message(errors); end
628
- def initialize(configuration); end
629
- def validate; end
630
- end
631
- module Reek::Configuration::ConfigurationFileFinder
632
- def self.find(path: nil, current: nil, home: nil); end
633
- def self.find_and_load(path: nil); end
634
- def self.find_by_dir(start); end
635
- def self.find_in_dir(dir); end
636
- def self.load_from_file(path); end
637
- end
638
- module Reek::Configuration::DefaultDirective
639
- def add(detectors_configuration); end
640
- include Reek::Configuration::ConfigurationValidator
641
- end
642
- module Reek::Configuration::DirectoryDirectives
643
- def add(directory_config); end
644
- def best_match_for(source_base_dir); end
645
- def directive_for(source_via); end
646
- def error_message_for_invalid_smell_type(klass); end
647
- def glob_to_regexp(glob); end
648
- def match?(source_base_dir, pathname); end
649
- include Reek::Configuration::ConfigurationValidator
650
- end
651
- module Reek::Configuration::ExcludedPaths
652
- def add(paths); end
653
- include Reek::Configuration::ConfigurationValidator
654
- end
655
- class Reek::Configuration::AppConfiguration
656
- def default_directive; end
657
- def default_directive=(arg0); end
658
- def directive_for(source_via); end
659
- def directory_directives; end
660
- def directory_directives=(arg0); end
661
- def excluded_paths; end
662
- def excluded_paths=(arg0); end
663
- def initialize(values: nil); end
664
- def load_values(values); end
665
- def path_excluded?(path); end
666
- def self.default; end
667
- def self.from_default_path; end
668
- def self.from_hash(hash); end
669
- def self.from_path(path); end
670
- include Reek::Configuration::ConfigurationValidator
671
- end
672
- class Reek::DetectorRepository
673
- def configuration; end
674
- def configuration_for(klass); end
675
- def examine(context); end
676
- def initialize(smell_types: nil, configuration: nil); end
677
- def self.available_detector_names; end
678
- def self.eligible_smell_types(filter_by_smells = nil); end
679
- def self.smell_types; end
680
- def smell_detectors_for(type); end
681
- def smell_types; end
682
- end
683
- class Reek::Errors::IncomprehensibleSourceError < Reek::Errors::BaseError
684
- def initialize(origin:); end
685
- def long_message; end
686
- end
687
- class Reek::Errors::EncodingError < Reek::Errors::BaseError
688
- def initialize(origin:); end
689
- def long_message; end
690
- end
691
- class Reek::Errors::SyntaxError < Reek::Errors::BaseError
692
- def initialize(origin:); end
693
- def long_message; end
694
- end
695
- module Reek::AST::SexpExtensions
696
- end
697
- module Reek::AST::SexpExtensions::ArgNodeBase
698
- def anonymous_splat?; end
699
- def block?; end
700
- def components; end
701
- def marked_unused?; end
702
- def name; end
703
- def optional_argument?; end
704
- def plain_name; end
705
- end
706
- module Reek::AST::SexpExtensions::ArgNode
707
- include Reek::AST::SexpExtensions::ArgNodeBase
708
- end
709
- module Reek::AST::SexpExtensions::KwargNode
710
- include Reek::AST::SexpExtensions::ArgNodeBase
711
- end
712
- module Reek::AST::SexpExtensions::OptargNode
713
- def optional_argument?; end
714
- include Reek::AST::SexpExtensions::ArgNodeBase
715
- end
716
- module Reek::AST::SexpExtensions::KwoptargNode
717
- def optional_argument?; end
718
- include Reek::AST::SexpExtensions::ArgNodeBase
719
- end
720
- module Reek::AST::SexpExtensions::BlockargNode
721
- def block?; end
722
- include Reek::AST::SexpExtensions::ArgNodeBase
723
- end
724
- module Reek::AST::SexpExtensions::RestargNode
725
- def anonymous_splat?; end
726
- include Reek::AST::SexpExtensions::ArgNodeBase
727
- end
728
- module Reek::AST::SexpExtensions::KwrestargNode
729
- def anonymous_splat?; end
730
- include Reek::AST::SexpExtensions::ArgNodeBase
731
- end
732
- module Reek::AST::SexpExtensions::ShadowargNode
733
- include Reek::AST::SexpExtensions::ArgNodeBase
734
- end
735
- module Reek::AST::SexpExtensions::Forward_ArgsNode
736
- def anonymous_splat?; end
737
- include Reek::AST::SexpExtensions::ArgNodeBase
738
- end
739
- module Reek::AST::SexpExtensions::BeginNode
740
- def statements; end
741
- end
742
- module Reek::AST::SexpExtensions::BlockNode
743
- def args; end
744
- def block; end
745
- def call; end
746
- def parameter_names; end
747
- def parameters; end
748
- def simple_name; end
749
- def without_block_arguments?; end
750
- end
751
- module Reek::AST::SexpExtensions::CaseNode
752
- def body_nodes(type, ignoring = nil); end
753
- def condition; end
754
- def else_body; end
755
- end
756
- module Reek::AST::SexpExtensions::ConstNode
757
- def name; end
758
- def namespace; end
759
- def simple_name; end
760
- end
761
- module Reek::AST::SexpExtensions::IfNode
762
- def body_nodes(type, ignoring = nil); end
763
- def condition; end
764
- end
765
- module Reek::AST::SexpExtensions::LambdaNode
766
- def name; end
767
- end
768
- module Reek::AST::SexpExtensions::LogicOperatorBase
769
- def body_nodes(type, ignoring = nil); end
770
- def condition; end
771
- end
772
- module Reek::AST::SexpExtensions::AndNode
773
- include Reek::AST::SexpExtensions::LogicOperatorBase
774
- end
775
- module Reek::AST::SexpExtensions::OrNode
776
- include Reek::AST::SexpExtensions::LogicOperatorBase
777
- end
778
- module Reek::AST::SexpExtensions::MethodNodeBase
779
- def arg_names; end
780
- def arguments; end
781
- def body_nodes(types, ignoring = nil); end
782
- def ends_with_bang?; end
783
- def name_without_bang; end
784
- def parameter_names; end
785
- def parameters; end
786
- end
787
- module Reek::AST::SexpExtensions::DefNode
788
- def argslist; end
789
- def body; end
790
- def depends_on_instance?; end
791
- def full_name(outer); end
792
- def name; end
793
- include Reek::AST::SexpExtensions::MethodNodeBase
794
- end
795
- module Reek::AST::SexpExtensions::DefsNode
796
- def argslist; end
797
- def body; end
798
- def depends_on_instance?; end
799
- def full_name(outer); end
800
- def name; end
801
- def receiver; end
802
- include Reek::AST::SexpExtensions::MethodNodeBase
803
- end
804
- module Reek::AST::SexpExtensions::ConstantDefiningNodeBase
805
- def full_name(outer); end
806
- def simple_name; end
807
- end
808
- module Reek::AST::SexpExtensions::ModuleNodeBase
809
- def direct_children; end
810
- def name; end
811
- include Reek::AST::SexpExtensions::ConstantDefiningNodeBase
812
- end
813
- module Reek::AST::SexpExtensions::ModuleNode
814
- include Reek::AST::SexpExtensions::ModuleNodeBase
815
- end
816
- module Reek::AST::SexpExtensions::ClassNode
817
- def superclass; end
818
- include Reek::AST::SexpExtensions::ModuleNodeBase
819
- end
820
- module Reek::AST::SexpExtensions::CasgnNode
821
- def constant_definition; end
822
- def defines_module?; end
823
- def name; end
824
- def superclass; end
825
- def value; end
826
- include Reek::AST::SexpExtensions::ConstantDefiningNodeBase
827
- end
828
- module Reek::AST::SexpExtensions::NestedAssignables
829
- def components; end
830
- end
831
- module Reek::AST::SexpExtensions::ArgsNode
832
- include Reek::AST::SexpExtensions::NestedAssignables
833
- end
834
- module Reek::AST::SexpExtensions::MlhsNode
835
- include Reek::AST::SexpExtensions::NestedAssignables
836
- end
837
- module Reek::AST::SexpExtensions::SelfNode
838
- def name; end
839
- end
840
- module Reek::AST::SexpExtensions::SendNode
841
- def args; end
842
- def attr_with_writable_flag?; end
843
- def attribute_writer?; end
844
- def module_creation_call?; end
845
- def module_creation_receiver?; end
846
- def name; end
847
- def object_creation_call?; end
848
- def participants; end
849
- def receiver; end
850
- end
851
- module Reek::AST::SexpExtensions::SuperNode
852
- def name; end
853
- end
854
- module Reek::AST::SexpExtensions::SymNode
855
- def full_name(outer); end
856
- def name; end
857
- end
858
- module Reek::AST::SexpExtensions::VariableBase
859
- def name; end
860
- end
861
- module Reek::AST::SexpExtensions::CvarNode
862
- include Reek::AST::SexpExtensions::VariableBase
863
- end
864
- module Reek::AST::SexpExtensions::IvarNode
865
- include Reek::AST::SexpExtensions::VariableBase
866
- end
867
- module Reek::AST::SexpExtensions::IvasgnNode
868
- include Reek::AST::SexpExtensions::VariableBase
869
- end
870
- module Reek::AST::SexpExtensions::LvarNode
871
- def var_name; end
872
- include Reek::AST::SexpExtensions::VariableBase
873
- end
874
- module Reek::AST::SexpExtensions::GvarNode
875
- include Reek::AST::SexpExtensions::VariableBase
876
- end
877
- module Reek::AST::SexpExtensions::WhenNode
878
- def body; end
879
- def condition_list; end
880
- end
881
- module Reek::AST::SexpExtensions::YieldNode
882
- def args; end
883
- end
884
- class Reek::AST::ASTNodeClassMap
885
- def extension_map; end
886
- def initialize; end
887
- def klass_for(type); end
888
- def klass_map; end
889
- end
890
- class Reek::TreeDresser
891
- def dress(sexp, comment_map); end
892
- def initialize(klass_map: nil); end
893
- def klass_map; end
894
- end
895
- class Reek::AST::Builder < Parser::Builders::Default
896
- def string_value(token); end
897
- end
898
- module Reek::Source
899
- end
900
- class Reek::Source::SourceCode
901
- def code; end
902
- def initialize(source:, origin: nil, parser: nil); end
903
- def origin; end
904
- def parse; end
905
- def parser; end
906
- def self.default_parser; end
907
- def self.from(source, origin: nil); end
908
- def source; end
909
- def syntax_tree; end
910
- end
911
- class Reek::Examiner
912
- def detector_repository; end
913
- def examine_tree; end
914
- def initialize(source, filter_by_smells: nil, configuration: nil, detector_repository_class: nil, error_handler: nil); end
915
- def origin; end
916
- def run; end
917
- def smells; end
918
- def smells_count; end
919
- def smelly?; end
920
- def source; end
921
- def syntax_tree; end
922
- def wrap_exceptions; end
923
- end
924
- class Reek::Examiner::NullHandler
925
- def handle(_exception); end
926
- end
927
- module Reek::Report
928
- def self.heading_formatter(heading_format); end
929
- def self.location_formatter(location_format); end
930
- def self.progress_formatter(progress_format); end
931
- def self.report_class(report_format); end
932
- def self.warning_formatter_class(warning_format); end
933
- end
934
- class Reek::Report::BaseReport
935
- def add_examiner(examiner); end
936
- def examiners; end
937
- def heading_formatter; end
938
- def initialize(heading_formatter: nil, sort_by_issue_count: nil, warning_formatter: nil, progress_formatter: nil); end
939
- def progress_formatter; end
940
- def show; end
941
- def smells; end
942
- def smells?; end
943
- def sort_by_issue_count; end
944
- def total_smell_count; end
945
- def total_smell_count=(arg0); end
946
- def warning_formatter; end
947
- end
948
- class Reek::Report::HTMLReport < Reek::Report::BaseReport
949
- def show; end
950
- end
951
- class Reek::Report::JSONReport < Reek::Report::BaseReport
952
- def show(out = nil); end
953
- end
954
- class Reek::Report::TextReport < Reek::Report::BaseReport
955
- def add_examiner(examiner); end
956
- def display_summary; end
957
- def display_total_smell_count; end
958
- def initialize(**args); end
959
- def show; end
960
- def smell_summaries; end
961
- def sort_examiners; end
962
- def summarize_single_examiner(examiner); end
963
- def total_smell_count_message; end
964
- end
965
- class Reek::Report::XMLReport < Reek::Report::BaseReport
966
- def checkstyle; end
967
- def document; end
968
- def error(smell, line); end
969
- def file(name, smells); end
970
- def show; end
971
- end
972
- class Reek::Report::YAMLReport < Reek::Report::BaseReport
973
- def show(out = nil); end
974
- end
975
- class Reek::Report::HeadingFormatterBase
976
- def formatted_header(examiner); end
977
- def header(examiner); end
978
- def show_header?(_examiner); end
979
- end
980
- class Reek::Report::VerboseHeadingFormatter < Reek::Report::HeadingFormatterBase
981
- def show_header?(_examiner); end
982
- end
983
- class Reek::Report::QuietHeadingFormatter < Reek::Report::HeadingFormatterBase
984
- def show_header?(examiner); end
985
- end
986
- module Reek::Report::BlankLocationFormatter
987
- def format(_warning); end
988
- def self.format(_warning); end
989
- end
990
- module Reek::Report::DefaultLocationFormatter
991
- def format(warning); end
992
- def self.format(warning); end
993
- end
994
- module Reek::Report::SingleLineLocationFormatter
995
- def format(warning); end
996
- def self.format(warning); end
997
- end
998
- module Reek::Report::ProgressFormatter
999
- end
1000
- class Reek::Report::ProgressFormatter::Base
1001
- def footer; end
1002
- def header; end
1003
- def initialize(sources_count); end
1004
- def progress(_examiner); end
1005
- def sources_count; end
1006
- end
1007
- class Reek::Report::ProgressFormatter::Dots < Reek::Report::ProgressFormatter::Base
1008
- def display_clean; end
1009
- def display_smelly; end
1010
- def footer; end
1011
- def header; end
1012
- def progress(examiner); end
1013
- end
1014
- class Reek::Report::ProgressFormatter::Quiet < Reek::Report::ProgressFormatter::Base
1015
- def footer; end
1016
- def header; end
1017
- def progress(_examiner); end
1018
- end
1019
- class Reek::Report::SimpleWarningFormatter
1020
- def format(warning); end
1021
- def format_list(warnings); end
1022
- def initialize(location_formatter: nil); end
1023
- def location_formatter; end
1024
- end
1025
- class Reek::Report::DocumentationLinkWarningFormatter < Reek::Report::SimpleWarningFormatter
1026
- def format(warning); end
1027
- end