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