muina 0.2.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +7 -0
- data/.github/workflows/main.yml +16 -0
- data/.gitignore +5 -0
- data/.mutant.yml +38 -0
- data/.rspec +4 -0
- data/.rubocop.yml +172 -0
- data/.ruby-version +1 -0
- data/.simplecov +14 -0
- data/CHANGELOG.md +38 -0
- data/Gemfile +34 -0
- data/Gemfile.lock +265 -0
- data/Guardfile +24 -0
- data/README.md +36 -0
- data/Rakefile +13 -0
- data/SECURITY.md +14 -0
- data/bin/bundle +114 -0
- data/bin/console +15 -0
- data/bin/flay +29 -0
- data/bin/flog +29 -0
- data/bin/guard +29 -0
- data/bin/irb +29 -0
- data/bin/lefthook +29 -0
- data/bin/mutant +29 -0
- data/bin/parlour +29 -0
- data/bin/rake +29 -0
- data/bin/rspec +29 -0
- data/bin/rubocop +29 -0
- data/bin/setup +8 -0
- data/bin/srb +29 -0
- data/bin/srb-rbi +29 -0
- data/bin/tapioca +29 -0
- data/exe/muina +11 -0
- data/lefthook.yml +39 -0
- data/lib/muina/action/params_factory.rb +17 -0
- data/lib/muina/action/step/command.rb +31 -0
- data/lib/muina/action/step/failure.rb +18 -0
- data/lib/muina/action/step/query.rb +31 -0
- data/lib/muina/action/step/result.rb +51 -0
- data/lib/muina/action/step.rb +13 -0
- data/lib/muina/action.rb +73 -0
- data/lib/muina/any.rb +7 -0
- data/lib/muina/classes.rb +7 -0
- data/lib/muina/module.rb +6 -0
- data/lib/muina/parameters.rb +7 -0
- data/lib/muina/params.rb +19 -0
- data/lib/muina/private_creation.rb +12 -0
- data/lib/muina/result/factory.rb +37 -0
- data/lib/muina/result/failure.rb +31 -0
- data/lib/muina/result/null.rb +25 -0
- data/lib/muina/result/success.rb +31 -0
- data/lib/muina/result.rb +17 -0
- data/lib/muina/service.rb +37 -0
- data/lib/muina/symbol_hash.rb +7 -0
- data/lib/muina/unit.rb +10 -0
- data/lib/muina/untyped_array.rb +7 -0
- data/lib/muina/untyped_hash.rb +7 -0
- data/lib/muina/value.rb +16 -0
- data/lib/muina/version.rb +7 -0
- data/lib/muina.rb +42 -0
- data/muina.gemspec +35 -0
- data/rbi/muina.rbi +268 -0
- data/sorbet/config +2 -0
- data/sorbet/rbi/gems/actionpack@6.1.4.rbi +5045 -0
- data/sorbet/rbi/gems/actionview@6.1.4.rbi +2416 -0
- data/sorbet/rbi/gems/activesupport@6.1.4.rbi +3778 -0
- data/sorbet/rbi/gems/ast@2.4.2.rbi +54 -0
- data/sorbet/rbi/gems/awesome_print@1.9.2.rbi +322 -0
- data/sorbet/rbi/gems/builder@3.2.4.rbi +8 -0
- data/sorbet/rbi/gems/byebug@11.1.3.rbi +18 -0
- data/sorbet/rbi/gems/coderay@1.1.3.rbi +8 -0
- data/sorbet/rbi/gems/colorize@0.8.1.rbi +39 -0
- data/sorbet/rbi/gems/commander@4.6.0.rbi +8 -0
- data/sorbet/rbi/gems/concurrent-ruby@1.1.9.rbi +2403 -0
- data/sorbet/rbi/gems/crass@1.0.6.rbi +123 -0
- data/sorbet/rbi/gems/diff-lcs@1.4.4.rbi +185 -0
- data/sorbet/rbi/gems/docile@1.4.0.rbi +54 -0
- data/sorbet/rbi/gems/erubi@1.10.0.rbi +36 -0
- data/sorbet/rbi/gems/erubis@2.7.0.rbi +8 -0
- data/sorbet/rbi/gems/faker@2.18.0.rbi +2469 -0
- data/sorbet/rbi/gems/ffi@1.15.3.rbi +8 -0
- data/sorbet/rbi/gems/flay@2.12.1.rbi +178 -0
- data/sorbet/rbi/gems/flog@4.6.4.rbi +70 -0
- data/sorbet/rbi/gems/formatador@0.3.0.rbi +8 -0
- data/sorbet/rbi/gems/guard-compat@1.2.1.rbi +49 -0
- data/sorbet/rbi/gems/guard-rspec@4.7.3.rbi +233 -0
- data/sorbet/rbi/gems/guard-rubocop@1.4.0.rbi +66 -0
- data/sorbet/rbi/gems/guard-shell@0.7.2.rbi +69 -0
- data/sorbet/rbi/gems/guard@2.18.0.rbi +617 -0
- data/sorbet/rbi/gems/highline@2.0.3.rbi +8 -0
- data/sorbet/rbi/gems/i18n@1.8.10.rbi +616 -0
- data/sorbet/rbi/gems/io-console@0.5.9.rbi +8 -0
- data/sorbet/rbi/gems/irb@1.3.6.rbi +452 -0
- data/sorbet/rbi/gems/lefthook@0.7.6.rbi +8 -0
- data/sorbet/rbi/gems/listen@3.6.0.rbi +476 -0
- data/sorbet/rbi/gems/loofah@2.10.0.rbi +223 -0
- data/sorbet/rbi/gems/lumberjack@1.2.8.rbi +431 -0
- data/sorbet/rbi/gems/method_source@1.0.0.rbi +8 -0
- data/sorbet/rbi/gems/minitest@5.14.4.rbi +344 -0
- data/sorbet/rbi/gems/mutant-license@0.1.1.1.4043027289354708743625974235631451632228.0.rbi +8 -0
- data/sorbet/rbi/gems/mutant-rspec@0.10.32.rbi +8 -0
- data/sorbet/rbi/gems/mutant@0.10.32.rbi +4154 -0
- data/sorbet/rbi/gems/nenv@0.3.0.rbi +88 -0
- data/sorbet/rbi/gems/nokogiri@1.11.7.rbi +1422 -0
- data/sorbet/rbi/gems/notiffany@0.1.3.rbi +331 -0
- data/sorbet/rbi/gems/parallel@1.20.1.rbi +113 -0
- data/sorbet/rbi/gems/parlour@6.0.1.rbi +1726 -0
- data/sorbet/rbi/gems/parser@3.0.2.0.rbi +1683 -0
- data/sorbet/rbi/gems/path_expander@1.1.0.rbi +24 -0
- data/sorbet/rbi/gems/polyfill@1.9.0.rbi +393 -0
- data/sorbet/rbi/gems/pry@0.14.1.rbi +8 -0
- data/sorbet/rbi/gems/racc@1.5.2.rbi +47 -0
- data/sorbet/rbi/gems/rack-test@1.1.0.rbi +272 -0
- data/sorbet/rbi/gems/rack@2.2.3.rbi +1618 -0
- data/sorbet/rbi/gems/rails-dom-testing@2.0.3.rbi +92 -0
- data/sorbet/rbi/gems/rails-html-sanitizer@1.3.0.rbi +183 -0
- data/sorbet/rbi/gems/rainbow@3.0.0.rbi +153 -0
- data/sorbet/rbi/gems/rake@13.0.6.rbi +808 -0
- data/sorbet/rbi/gems/rb-fsevent@0.11.0.rbi +8 -0
- data/sorbet/rbi/gems/rb-inotify@0.10.1.rbi +8 -0
- data/sorbet/rbi/gems/regexp_parser@2.1.1.rbi +1120 -0
- data/sorbet/rbi/gems/reline@0.2.6.rbi +662 -0
- data/sorbet/rbi/gems/rexml@3.2.5.rbi +672 -0
- data/sorbet/rbi/gems/rspec-core@3.10.1.rbi +2509 -0
- data/sorbet/rbi/gems/rspec-expectations@3.10.1.rbi +1574 -0
- data/sorbet/rbi/gems/rspec-mocks@3.10.2.rbi +1462 -0
- data/sorbet/rbi/gems/rspec-support@3.10.2.rbi +509 -0
- data/sorbet/rbi/gems/rspec@3.10.0.rbi +38 -0
- data/sorbet/rbi/gems/rubocop-ast@1.8.0.rbi +2194 -0
- data/sorbet/rbi/gems/rubocop-performance@1.11.4.rbi +899 -0
- data/sorbet/rbi/gems/rubocop-rake@0.6.0.rbi +118 -0
- data/sorbet/rbi/gems/rubocop-rspec@2.4.0.rbi +1805 -0
- data/sorbet/rbi/gems/rubocop-sorbet@0.6.2.rbi +288 -0
- data/sorbet/rbi/gems/rubocop@1.18.4.rbi +13197 -0
- data/sorbet/rbi/gems/ruby-progressbar@1.11.0.rbi +405 -0
- data/sorbet/rbi/gems/ruby_parser@3.16.0.rbi +4528 -0
- data/sorbet/rbi/gems/safe_type@1.1.1.rbi +157 -0
- data/sorbet/rbi/gems/sexp_processor@4.15.3.rbi +359 -0
- data/sorbet/rbi/gems/shellany@0.0.1.rbi +28 -0
- data/sorbet/rbi/gems/simplecov-html@0.12.3.rbi +89 -0
- data/sorbet/rbi/gems/simplecov@0.21.2.rbi +577 -0
- data/sorbet/rbi/gems/simplecov_json_formatter@0.1.3.rbi +8 -0
- data/sorbet/rbi/gems/sorbet-coerce@0.5.0.rbi +42 -0
- data/sorbet/rbi/gems/sorbet-rails@0.7.4.rbi +8 -0
- data/sorbet/rbi/gems/sorbet-struct-comparable@1.1.0.rbi +17 -0
- data/sorbet/rbi/gems/spoom@1.1.1.rbi +1193 -0
- data/sorbet/rbi/gems/tapioca@0.4.23.rbi +1826 -0
- data/sorbet/rbi/gems/thor@1.1.0.rbi +838 -0
- data/sorbet/rbi/gems/tzinfo@2.0.4.rbi +856 -0
- data/sorbet/rbi/gems/unicode-display_width@2.0.0.rbi +26 -0
- data/sorbet/rbi/gems/unparser@0.6.0.rbi +2037 -0
- data/sorbet/rbi/gems/zeitwerk@2.4.2.rbi +173 -0
- data/sorbet/rbi/todo.rbi +8 -0
- data/sorbet/rbi/typed_params.rbi +7 -0
- data/sorbet/tapioca/require.rb +16 -0
- metadata +269 -0
|
@@ -0,0 +1,899 @@
|
|
|
1
|
+
# DO NOT EDIT MANUALLY
|
|
2
|
+
# This is an autogenerated file for types exported from the `rubocop-performance` 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::Performance; end
|
|
10
|
+
|
|
11
|
+
class RuboCop::Cop::Performance::AncestorsInclude < ::RuboCop::Cop::Base
|
|
12
|
+
include ::RuboCop::Cop::RangeHelp
|
|
13
|
+
extend ::RuboCop::Cop::AutoCorrector
|
|
14
|
+
|
|
15
|
+
def ancestors_include_candidate?(param0 = T.unsafe(nil)); end
|
|
16
|
+
def on_send(node); end
|
|
17
|
+
|
|
18
|
+
private
|
|
19
|
+
|
|
20
|
+
def range(node); end
|
|
21
|
+
end
|
|
22
|
+
|
|
23
|
+
RuboCop::Cop::Performance::AncestorsInclude::MSG = T.let(T.unsafe(nil), String)
|
|
24
|
+
RuboCop::Cop::Performance::AncestorsInclude::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array)
|
|
25
|
+
|
|
26
|
+
class RuboCop::Cop::Performance::ArraySemiInfiniteRangeSlice < ::RuboCop::Cop::Base
|
|
27
|
+
include ::RuboCop::Cop::RangeHelp
|
|
28
|
+
extend ::RuboCop::Cop::AutoCorrector
|
|
29
|
+
extend ::RuboCop::Cop::TargetRubyVersion
|
|
30
|
+
|
|
31
|
+
def endless_range?(param0 = T.unsafe(nil)); end
|
|
32
|
+
def endless_range_slice?(param0 = T.unsafe(nil)); end
|
|
33
|
+
def on_send(node); end
|
|
34
|
+
|
|
35
|
+
private
|
|
36
|
+
|
|
37
|
+
def correction(receiver, range_node); end
|
|
38
|
+
end
|
|
39
|
+
|
|
40
|
+
RuboCop::Cop::Performance::ArraySemiInfiniteRangeSlice::MSG = T.let(T.unsafe(nil), String)
|
|
41
|
+
RuboCop::Cop::Performance::ArraySemiInfiniteRangeSlice::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Set)
|
|
42
|
+
RuboCop::Cop::Performance::ArraySemiInfiniteRangeSlice::SLICE_METHODS = T.let(T.unsafe(nil), Set)
|
|
43
|
+
|
|
44
|
+
class RuboCop::Cop::Performance::BigDecimalWithNumericArgument < ::RuboCop::Cop::Base
|
|
45
|
+
extend ::RuboCop::Cop::AutoCorrector
|
|
46
|
+
|
|
47
|
+
def big_decimal_with_numeric_argument?(param0 = T.unsafe(nil)); end
|
|
48
|
+
def on_send(node); end
|
|
49
|
+
|
|
50
|
+
private
|
|
51
|
+
|
|
52
|
+
def specifies_precision?(node); end
|
|
53
|
+
end
|
|
54
|
+
|
|
55
|
+
RuboCop::Cop::Performance::BigDecimalWithNumericArgument::MSG = T.let(T.unsafe(nil), String)
|
|
56
|
+
RuboCop::Cop::Performance::BigDecimalWithNumericArgument::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array)
|
|
57
|
+
|
|
58
|
+
class RuboCop::Cop::Performance::BindCall < ::RuboCop::Cop::Base
|
|
59
|
+
include ::RuboCop::Cop::RangeHelp
|
|
60
|
+
extend ::RuboCop::Cop::AutoCorrector
|
|
61
|
+
extend ::RuboCop::Cop::TargetRubyVersion
|
|
62
|
+
|
|
63
|
+
def bind_with_call_method?(param0 = T.unsafe(nil)); end
|
|
64
|
+
def on_send(node); end
|
|
65
|
+
|
|
66
|
+
private
|
|
67
|
+
|
|
68
|
+
def build_call_args(call_args_node); end
|
|
69
|
+
def correction_range(receiver, node); end
|
|
70
|
+
def message(bind_arg, call_args); end
|
|
71
|
+
end
|
|
72
|
+
|
|
73
|
+
RuboCop::Cop::Performance::BindCall::MSG = T.let(T.unsafe(nil), String)
|
|
74
|
+
RuboCop::Cop::Performance::BindCall::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array)
|
|
75
|
+
|
|
76
|
+
class RuboCop::Cop::Performance::BlockGivenWithExplicitBlock < ::RuboCop::Cop::Base
|
|
77
|
+
extend ::RuboCop::Cop::AutoCorrector
|
|
78
|
+
|
|
79
|
+
def on_send(node); end
|
|
80
|
+
def reassigns_block_arg?(param0 = T.unsafe(nil), param1); end
|
|
81
|
+
end
|
|
82
|
+
|
|
83
|
+
RuboCop::Cop::Performance::BlockGivenWithExplicitBlock::MSG = T.let(T.unsafe(nil), String)
|
|
84
|
+
RuboCop::Cop::Performance::BlockGivenWithExplicitBlock::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array)
|
|
85
|
+
|
|
86
|
+
class RuboCop::Cop::Performance::Caller < ::RuboCop::Cop::Base
|
|
87
|
+
extend ::RuboCop::Cop::AutoCorrector
|
|
88
|
+
|
|
89
|
+
def caller_with_scope_method?(param0 = T.unsafe(nil)); end
|
|
90
|
+
def on_send(node); end
|
|
91
|
+
def slow_caller?(param0 = T.unsafe(nil)); end
|
|
92
|
+
|
|
93
|
+
private
|
|
94
|
+
|
|
95
|
+
def int_value(node); end
|
|
96
|
+
end
|
|
97
|
+
|
|
98
|
+
RuboCop::Cop::Performance::Caller::MSG = T.let(T.unsafe(nil), String)
|
|
99
|
+
RuboCop::Cop::Performance::Caller::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array)
|
|
100
|
+
|
|
101
|
+
class RuboCop::Cop::Performance::CaseWhenSplat < ::RuboCop::Cop::Base
|
|
102
|
+
include ::RuboCop::Cop::Alignment
|
|
103
|
+
include ::RuboCop::Cop::RangeHelp
|
|
104
|
+
extend ::RuboCop::Cop::AutoCorrector
|
|
105
|
+
|
|
106
|
+
def on_case(case_node); end
|
|
107
|
+
|
|
108
|
+
private
|
|
109
|
+
|
|
110
|
+
def autocorrect(corrector, when_node); end
|
|
111
|
+
def indent_for(node); end
|
|
112
|
+
def inline_fix_branch(corrector, when_node); end
|
|
113
|
+
def needs_reorder?(when_node); end
|
|
114
|
+
def new_branch_without_then(node, new_condition); end
|
|
115
|
+
def new_condition_with_then(node, new_condition); end
|
|
116
|
+
def non_splat?(condition); end
|
|
117
|
+
def range(node); end
|
|
118
|
+
def reorder_condition(corrector, when_node); end
|
|
119
|
+
def reordering_correction(when_node); end
|
|
120
|
+
def replacement(conditions); end
|
|
121
|
+
def splat_offenses(when_conditions); end
|
|
122
|
+
def when_branch_range(when_node); end
|
|
123
|
+
end
|
|
124
|
+
|
|
125
|
+
RuboCop::Cop::Performance::CaseWhenSplat::ARRAY_MSG = T.let(T.unsafe(nil), String)
|
|
126
|
+
RuboCop::Cop::Performance::CaseWhenSplat::MSG = T.let(T.unsafe(nil), String)
|
|
127
|
+
|
|
128
|
+
class RuboCop::Cop::Performance::Casecmp < ::RuboCop::Cop::Base
|
|
129
|
+
extend ::RuboCop::Cop::AutoCorrector
|
|
130
|
+
|
|
131
|
+
def downcase_downcase(param0 = T.unsafe(nil)); end
|
|
132
|
+
def downcase_eq(param0 = T.unsafe(nil)); end
|
|
133
|
+
def eq_downcase(param0 = T.unsafe(nil)); end
|
|
134
|
+
def on_send(node); end
|
|
135
|
+
|
|
136
|
+
private
|
|
137
|
+
|
|
138
|
+
def build_good_method(arg, variable); end
|
|
139
|
+
def correction(corrector, node, method, arg, variable); end
|
|
140
|
+
def take_method_apart(node); end
|
|
141
|
+
end
|
|
142
|
+
|
|
143
|
+
RuboCop::Cop::Performance::Casecmp::CASE_METHODS = T.let(T.unsafe(nil), Array)
|
|
144
|
+
RuboCop::Cop::Performance::Casecmp::MSG = T.let(T.unsafe(nil), String)
|
|
145
|
+
RuboCop::Cop::Performance::Casecmp::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array)
|
|
146
|
+
|
|
147
|
+
class RuboCop::Cop::Performance::ChainArrayAllocation < ::RuboCop::Cop::Base
|
|
148
|
+
include ::RuboCop::Cop::RangeHelp
|
|
149
|
+
|
|
150
|
+
def chain_array_allocation?(param0 = T.unsafe(nil)); end
|
|
151
|
+
def on_send(node); end
|
|
152
|
+
end
|
|
153
|
+
|
|
154
|
+
RuboCop::Cop::Performance::ChainArrayAllocation::ALWAYS_RETURNS_NEW_ARRAY = T.let(T.unsafe(nil), Set)
|
|
155
|
+
RuboCop::Cop::Performance::ChainArrayAllocation::HAS_MUTATION_ALTERNATIVE = T.let(T.unsafe(nil), Set)
|
|
156
|
+
RuboCop::Cop::Performance::ChainArrayAllocation::MSG = T.let(T.unsafe(nil), String)
|
|
157
|
+
RuboCop::Cop::Performance::ChainArrayAllocation::RETURNS_NEW_ARRAY = T.let(T.unsafe(nil), Set)
|
|
158
|
+
RuboCop::Cop::Performance::ChainArrayAllocation::RETURNS_NEW_ARRAY_WHEN_NO_BLOCK = T.let(T.unsafe(nil), Set)
|
|
159
|
+
RuboCop::Cop::Performance::ChainArrayAllocation::RETURN_NEW_ARRAY_WHEN_ARGS = T.let(T.unsafe(nil), Set)
|
|
160
|
+
|
|
161
|
+
class RuboCop::Cop::Performance::CollectionLiteralInLoop < ::RuboCop::Cop::Base
|
|
162
|
+
def enumerable_loop?(param0 = T.unsafe(nil)); end
|
|
163
|
+
def kernel_loop?(param0 = T.unsafe(nil)); end
|
|
164
|
+
def on_send(node); end
|
|
165
|
+
|
|
166
|
+
private
|
|
167
|
+
|
|
168
|
+
def check_literal?(node, method); end
|
|
169
|
+
def enumerable_method?(method_name); end
|
|
170
|
+
def keyword_loop?(type); end
|
|
171
|
+
def literal_class(node); end
|
|
172
|
+
def loop?(ancestor, node); end
|
|
173
|
+
def min_size; end
|
|
174
|
+
def node_within_enumerable_loop?(node, ancestor); end
|
|
175
|
+
def nonmutable_method_of_array_or_hash?(node, method); end
|
|
176
|
+
def parent_is_loop?(node); end
|
|
177
|
+
end
|
|
178
|
+
|
|
179
|
+
RuboCop::Cop::Performance::CollectionLiteralInLoop::ARRAY_METHODS = T.let(T.unsafe(nil), Set)
|
|
180
|
+
RuboCop::Cop::Performance::CollectionLiteralInLoop::ENUMERABLE_METHOD_NAMES = T.let(T.unsafe(nil), Set)
|
|
181
|
+
RuboCop::Cop::Performance::CollectionLiteralInLoop::HASH_METHODS = T.let(T.unsafe(nil), Set)
|
|
182
|
+
RuboCop::Cop::Performance::CollectionLiteralInLoop::LOOP_TYPES = T.let(T.unsafe(nil), Array)
|
|
183
|
+
RuboCop::Cop::Performance::CollectionLiteralInLoop::MSG = T.let(T.unsafe(nil), String)
|
|
184
|
+
RuboCop::Cop::Performance::CollectionLiteralInLoop::NONMUTATING_ARRAY_METHODS = T.let(T.unsafe(nil), Array)
|
|
185
|
+
RuboCop::Cop::Performance::CollectionLiteralInLoop::NONMUTATING_HASH_METHODS = T.let(T.unsafe(nil), Array)
|
|
186
|
+
RuboCop::Cop::Performance::CollectionLiteralInLoop::POST_CONDITION_LOOP_TYPES = T.let(T.unsafe(nil), Array)
|
|
187
|
+
|
|
188
|
+
class RuboCop::Cop::Performance::CompareWithBlock < ::RuboCop::Cop::Base
|
|
189
|
+
include ::RuboCop::Cop::RangeHelp
|
|
190
|
+
extend ::RuboCop::Cop::AutoCorrector
|
|
191
|
+
|
|
192
|
+
def compare?(param0 = T.unsafe(nil)); end
|
|
193
|
+
def on_block(node); end
|
|
194
|
+
def replaceable_body?(param0 = T.unsafe(nil), param1, param2); end
|
|
195
|
+
|
|
196
|
+
private
|
|
197
|
+
|
|
198
|
+
def compare_range(send, node); end
|
|
199
|
+
def message(send, method, var_a, var_b, args); end
|
|
200
|
+
def slow_compare?(method, args_a, args_b); end
|
|
201
|
+
end
|
|
202
|
+
|
|
203
|
+
RuboCop::Cop::Performance::CompareWithBlock::MSG = T.let(T.unsafe(nil), String)
|
|
204
|
+
|
|
205
|
+
class RuboCop::Cop::Performance::ConstantRegexp < ::RuboCop::Cop::Base
|
|
206
|
+
extend ::RuboCop::Cop::AutoCorrector
|
|
207
|
+
|
|
208
|
+
def on_regexp(node); end
|
|
209
|
+
def regexp_escape?(param0 = T.unsafe(nil)); end
|
|
210
|
+
|
|
211
|
+
private
|
|
212
|
+
|
|
213
|
+
def include_interpolated_const?(node); end
|
|
214
|
+
def within_allowed_assignment?(node); end
|
|
215
|
+
end
|
|
216
|
+
|
|
217
|
+
RuboCop::Cop::Performance::ConstantRegexp::MSG = T.let(T.unsafe(nil), String)
|
|
218
|
+
|
|
219
|
+
class RuboCop::Cop::Performance::Count < ::RuboCop::Cop::Base
|
|
220
|
+
include ::RuboCop::Cop::RangeHelp
|
|
221
|
+
extend ::RuboCop::Cop::AutoCorrector
|
|
222
|
+
|
|
223
|
+
def count_candidate?(param0 = T.unsafe(nil)); end
|
|
224
|
+
def on_send(node); end
|
|
225
|
+
|
|
226
|
+
private
|
|
227
|
+
|
|
228
|
+
def autocorrect(corrector, node, selector_node, selector); end
|
|
229
|
+
def eligible_node?(node); end
|
|
230
|
+
def source_starting_at(node); end
|
|
231
|
+
end
|
|
232
|
+
|
|
233
|
+
RuboCop::Cop::Performance::Count::MSG = T.let(T.unsafe(nil), String)
|
|
234
|
+
RuboCop::Cop::Performance::Count::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array)
|
|
235
|
+
|
|
236
|
+
class RuboCop::Cop::Performance::DeletePrefix < ::RuboCop::Cop::Base
|
|
237
|
+
include ::RuboCop::Cop::RegexpMetacharacter
|
|
238
|
+
extend ::RuboCop::Cop::AutoCorrector
|
|
239
|
+
extend ::RuboCop::Cop::TargetRubyVersion
|
|
240
|
+
|
|
241
|
+
def delete_prefix_candidate?(param0 = T.unsafe(nil)); end
|
|
242
|
+
def on_send(node); end
|
|
243
|
+
end
|
|
244
|
+
|
|
245
|
+
RuboCop::Cop::Performance::DeletePrefix::MSG = T.let(T.unsafe(nil), String)
|
|
246
|
+
RuboCop::Cop::Performance::DeletePrefix::PREFERRED_METHODS = T.let(T.unsafe(nil), Hash)
|
|
247
|
+
RuboCop::Cop::Performance::DeletePrefix::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array)
|
|
248
|
+
|
|
249
|
+
class RuboCop::Cop::Performance::DeleteSuffix < ::RuboCop::Cop::Base
|
|
250
|
+
include ::RuboCop::Cop::RegexpMetacharacter
|
|
251
|
+
extend ::RuboCop::Cop::AutoCorrector
|
|
252
|
+
extend ::RuboCop::Cop::TargetRubyVersion
|
|
253
|
+
|
|
254
|
+
def delete_suffix_candidate?(param0 = T.unsafe(nil)); end
|
|
255
|
+
def on_send(node); end
|
|
256
|
+
end
|
|
257
|
+
|
|
258
|
+
RuboCop::Cop::Performance::DeleteSuffix::MSG = T.let(T.unsafe(nil), String)
|
|
259
|
+
RuboCop::Cop::Performance::DeleteSuffix::PREFERRED_METHODS = T.let(T.unsafe(nil), Hash)
|
|
260
|
+
RuboCop::Cop::Performance::DeleteSuffix::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array)
|
|
261
|
+
|
|
262
|
+
class RuboCop::Cop::Performance::Detect < ::RuboCop::Cop::Base
|
|
263
|
+
extend ::RuboCop::Cop::AutoCorrector
|
|
264
|
+
|
|
265
|
+
def detect_candidate?(param0 = T.unsafe(nil)); end
|
|
266
|
+
def on_send(node); end
|
|
267
|
+
|
|
268
|
+
private
|
|
269
|
+
|
|
270
|
+
def accept_first_call?(receiver, body); end
|
|
271
|
+
def autocorrect(corrector, node, replacement); end
|
|
272
|
+
def lazy?(node); end
|
|
273
|
+
def message_for_method(method, index); end
|
|
274
|
+
def preferred_method; end
|
|
275
|
+
def register_offense(node, receiver, second_method, index); end
|
|
276
|
+
def replacement(method, index); end
|
|
277
|
+
end
|
|
278
|
+
|
|
279
|
+
RuboCop::Cop::Performance::Detect::CANDIDATE_METHODS = T.let(T.unsafe(nil), Set)
|
|
280
|
+
RuboCop::Cop::Performance::Detect::INDEX_MSG = T.let(T.unsafe(nil), String)
|
|
281
|
+
RuboCop::Cop::Performance::Detect::INDEX_REVERSE_MSG = T.let(T.unsafe(nil), String)
|
|
282
|
+
RuboCop::Cop::Performance::Detect::MSG = T.let(T.unsafe(nil), String)
|
|
283
|
+
RuboCop::Cop::Performance::Detect::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array)
|
|
284
|
+
RuboCop::Cop::Performance::Detect::REVERSE_MSG = T.let(T.unsafe(nil), String)
|
|
285
|
+
|
|
286
|
+
class RuboCop::Cop::Performance::DoubleStartEndWith < ::RuboCop::Cop::Base
|
|
287
|
+
extend ::RuboCop::Cop::AutoCorrector
|
|
288
|
+
|
|
289
|
+
def check_with_active_support_aliases(param0 = T.unsafe(nil)); end
|
|
290
|
+
def on_or(node); end
|
|
291
|
+
def two_start_end_with_calls(param0 = T.unsafe(nil)); end
|
|
292
|
+
|
|
293
|
+
private
|
|
294
|
+
|
|
295
|
+
def autocorrect(corrector, first_call_args, second_call_args, combined_args); end
|
|
296
|
+
def check_for_active_support_aliases?; end
|
|
297
|
+
def combine_args(first_call_args, second_call_args); end
|
|
298
|
+
def message(node, receiver, method, combined_args); end
|
|
299
|
+
def process_source(node); end
|
|
300
|
+
end
|
|
301
|
+
|
|
302
|
+
RuboCop::Cop::Performance::DoubleStartEndWith::MSG = T.let(T.unsafe(nil), String)
|
|
303
|
+
|
|
304
|
+
class RuboCop::Cop::Performance::EndWith < ::RuboCop::Cop::Base
|
|
305
|
+
include ::RuboCop::Cop::RegexpMetacharacter
|
|
306
|
+
extend ::RuboCop::Cop::AutoCorrector
|
|
307
|
+
|
|
308
|
+
def on_match_with_lvasgn(node); end
|
|
309
|
+
def on_send(node); end
|
|
310
|
+
def redundant_regex?(param0 = T.unsafe(nil)); end
|
|
311
|
+
end
|
|
312
|
+
|
|
313
|
+
RuboCop::Cop::Performance::EndWith::MSG = T.let(T.unsafe(nil), String)
|
|
314
|
+
RuboCop::Cop::Performance::EndWith::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array)
|
|
315
|
+
|
|
316
|
+
class RuboCop::Cop::Performance::FixedSize < ::RuboCop::Cop::Base
|
|
317
|
+
def counter(param0 = T.unsafe(nil)); end
|
|
318
|
+
def on_send(node); end
|
|
319
|
+
|
|
320
|
+
private
|
|
321
|
+
|
|
322
|
+
def allowed_argument?(arg); end
|
|
323
|
+
def allowed_parent?(node); end
|
|
324
|
+
def allowed_variable?(var); end
|
|
325
|
+
def contains_double_splat?(node); end
|
|
326
|
+
def contains_splat?(node); end
|
|
327
|
+
def non_string_argument?(node); end
|
|
328
|
+
end
|
|
329
|
+
|
|
330
|
+
RuboCop::Cop::Performance::FixedSize::MSG = T.let(T.unsafe(nil), String)
|
|
331
|
+
RuboCop::Cop::Performance::FixedSize::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array)
|
|
332
|
+
|
|
333
|
+
class RuboCop::Cop::Performance::FlatMap < ::RuboCop::Cop::Base
|
|
334
|
+
include ::RuboCop::Cop::RangeHelp
|
|
335
|
+
extend ::RuboCop::Cop::AutoCorrector
|
|
336
|
+
|
|
337
|
+
def flat_map_candidate?(param0 = T.unsafe(nil)); end
|
|
338
|
+
def on_send(node); end
|
|
339
|
+
|
|
340
|
+
private
|
|
341
|
+
|
|
342
|
+
def autocorrect(corrector, node); end
|
|
343
|
+
def offense_for_levels(node, map_node, first_method, flatten); end
|
|
344
|
+
def offense_for_method(node, map_node, first_method, flatten); end
|
|
345
|
+
def register_offense(node, map_node, first_method, flatten, message); end
|
|
346
|
+
end
|
|
347
|
+
|
|
348
|
+
RuboCop::Cop::Performance::FlatMap::FLATTEN_MULTIPLE_LEVELS = T.let(T.unsafe(nil), String)
|
|
349
|
+
RuboCop::Cop::Performance::FlatMap::MSG = T.let(T.unsafe(nil), String)
|
|
350
|
+
RuboCop::Cop::Performance::FlatMap::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array)
|
|
351
|
+
|
|
352
|
+
class RuboCop::Cop::Performance::InefficientHashSearch < ::RuboCop::Cop::Base
|
|
353
|
+
extend ::RuboCop::Cop::AutoCorrector
|
|
354
|
+
|
|
355
|
+
def inefficient_include?(param0 = T.unsafe(nil)); end
|
|
356
|
+
def on_send(node); end
|
|
357
|
+
|
|
358
|
+
private
|
|
359
|
+
|
|
360
|
+
def autocorrect_argument(node); end
|
|
361
|
+
def autocorrect_hash_expression(node); end
|
|
362
|
+
def autocorrect_method(node); end
|
|
363
|
+
def current_method(node); end
|
|
364
|
+
def message(node); end
|
|
365
|
+
def use_long_method; end
|
|
366
|
+
end
|
|
367
|
+
|
|
368
|
+
RuboCop::Cop::Performance::InefficientHashSearch::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array)
|
|
369
|
+
|
|
370
|
+
class RuboCop::Cop::Performance::IoReadlines < ::RuboCop::Cop::Base
|
|
371
|
+
include ::RuboCop::Cop::RangeHelp
|
|
372
|
+
extend ::RuboCop::Cop::AutoCorrector
|
|
373
|
+
|
|
374
|
+
def on_send(node); end
|
|
375
|
+
def readlines_on_class?(param0 = T.unsafe(nil)); end
|
|
376
|
+
def readlines_on_instance?(param0 = T.unsafe(nil)); end
|
|
377
|
+
|
|
378
|
+
private
|
|
379
|
+
|
|
380
|
+
def autocorrect(corrector, enumerable_call, readlines_call, receiver); end
|
|
381
|
+
def build_bad_method(enumerable_call); end
|
|
382
|
+
def build_call_args(call_args_node); end
|
|
383
|
+
def build_good_method(enumerable_call); end
|
|
384
|
+
def correction_range(enumerable_call, readlines_call); end
|
|
385
|
+
def offense_range(enumerable_call, readlines_call); end
|
|
386
|
+
end
|
|
387
|
+
|
|
388
|
+
RuboCop::Cop::Performance::IoReadlines::MSG = T.let(T.unsafe(nil), String)
|
|
389
|
+
RuboCop::Cop::Performance::IoReadlines::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array)
|
|
390
|
+
|
|
391
|
+
class RuboCop::Cop::Performance::MapCompact < ::RuboCop::Cop::Base
|
|
392
|
+
include ::RuboCop::Cop::RangeHelp
|
|
393
|
+
extend ::RuboCop::Cop::AutoCorrector
|
|
394
|
+
extend ::RuboCop::Cop::TargetRubyVersion
|
|
395
|
+
|
|
396
|
+
def map_compact(param0 = T.unsafe(nil)); end
|
|
397
|
+
def on_send(node); end
|
|
398
|
+
|
|
399
|
+
private
|
|
400
|
+
|
|
401
|
+
def invoke_method_after_map_compact_on_same_line?(compact_node, chained_method); end
|
|
402
|
+
def remove_compact_method(corrector, compact_node); end
|
|
403
|
+
end
|
|
404
|
+
|
|
405
|
+
RuboCop::Cop::Performance::MapCompact::MSG = T.let(T.unsafe(nil), String)
|
|
406
|
+
RuboCop::Cop::Performance::MapCompact::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array)
|
|
407
|
+
|
|
408
|
+
class RuboCop::Cop::Performance::MethodObjectAsBlock < ::RuboCop::Cop::Base
|
|
409
|
+
def method_object_as_argument?(param0 = T.unsafe(nil)); end
|
|
410
|
+
def on_block_pass(node); end
|
|
411
|
+
end
|
|
412
|
+
|
|
413
|
+
RuboCop::Cop::Performance::MethodObjectAsBlock::MSG = T.let(T.unsafe(nil), String)
|
|
414
|
+
|
|
415
|
+
class RuboCop::Cop::Performance::OpenStruct < ::RuboCop::Cop::Base
|
|
416
|
+
def on_send(node); end
|
|
417
|
+
def open_struct(param0 = T.unsafe(nil)); end
|
|
418
|
+
end
|
|
419
|
+
|
|
420
|
+
RuboCop::Cop::Performance::OpenStruct::MSG = T.let(T.unsafe(nil), String)
|
|
421
|
+
RuboCop::Cop::Performance::OpenStruct::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array)
|
|
422
|
+
|
|
423
|
+
class RuboCop::Cop::Performance::RangeInclude < ::RuboCop::Cop::Base
|
|
424
|
+
extend ::RuboCop::Cop::AutoCorrector
|
|
425
|
+
|
|
426
|
+
def on_send(node); end
|
|
427
|
+
def range_include(param0 = T.unsafe(nil)); end
|
|
428
|
+
end
|
|
429
|
+
|
|
430
|
+
RuboCop::Cop::Performance::RangeInclude::MSG = T.let(T.unsafe(nil), String)
|
|
431
|
+
RuboCop::Cop::Performance::RangeInclude::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array)
|
|
432
|
+
|
|
433
|
+
class RuboCop::Cop::Performance::RedundantBlockCall < ::RuboCop::Cop::Base
|
|
434
|
+
extend ::RuboCop::Cop::AutoCorrector
|
|
435
|
+
|
|
436
|
+
def blockarg_assigned?(param0, param1); end
|
|
437
|
+
def blockarg_calls(param0, param1); end
|
|
438
|
+
def blockarg_def(param0 = T.unsafe(nil)); end
|
|
439
|
+
def on_def(node); end
|
|
440
|
+
|
|
441
|
+
private
|
|
442
|
+
|
|
443
|
+
def args_include_block_pass?(blockcall); end
|
|
444
|
+
def autocorrect(corrector, node); end
|
|
445
|
+
def calls_to_report(argname, body); end
|
|
446
|
+
def shadowed_block_argument?(body, block_argument_of_method_signature); end
|
|
447
|
+
end
|
|
448
|
+
|
|
449
|
+
RuboCop::Cop::Performance::RedundantBlockCall::CLOSE_PAREN = T.let(T.unsafe(nil), String)
|
|
450
|
+
RuboCop::Cop::Performance::RedundantBlockCall::MSG = T.let(T.unsafe(nil), String)
|
|
451
|
+
RuboCop::Cop::Performance::RedundantBlockCall::OPEN_PAREN = T.let(T.unsafe(nil), String)
|
|
452
|
+
RuboCop::Cop::Performance::RedundantBlockCall::SPACE = T.let(T.unsafe(nil), String)
|
|
453
|
+
RuboCop::Cop::Performance::RedundantBlockCall::YIELD = T.let(T.unsafe(nil), String)
|
|
454
|
+
|
|
455
|
+
class RuboCop::Cop::Performance::RedundantEqualityComparisonBlock < ::RuboCop::Cop::Base
|
|
456
|
+
extend ::RuboCop::Cop::AutoCorrector
|
|
457
|
+
extend ::RuboCop::Cop::TargetRubyVersion
|
|
458
|
+
|
|
459
|
+
def on_block(node); end
|
|
460
|
+
|
|
461
|
+
private
|
|
462
|
+
|
|
463
|
+
def new_argument(block_argument, block_body); end
|
|
464
|
+
def offense_range(node); end
|
|
465
|
+
def one_block_argument?(block_arguments); end
|
|
466
|
+
def same_block_argument_and_is_a_argument?(block_body, block_argument); end
|
|
467
|
+
def use_equality_comparison_block?(block_body); end
|
|
468
|
+
end
|
|
469
|
+
|
|
470
|
+
RuboCop::Cop::Performance::RedundantEqualityComparisonBlock::COMPARISON_METHODS = T.let(T.unsafe(nil), Array)
|
|
471
|
+
RuboCop::Cop::Performance::RedundantEqualityComparisonBlock::IS_A_METHODS = T.let(T.unsafe(nil), Array)
|
|
472
|
+
RuboCop::Cop::Performance::RedundantEqualityComparisonBlock::MSG = T.let(T.unsafe(nil), String)
|
|
473
|
+
RuboCop::Cop::Performance::RedundantEqualityComparisonBlock::TARGET_METHODS = T.let(T.unsafe(nil), Array)
|
|
474
|
+
|
|
475
|
+
class RuboCop::Cop::Performance::RedundantMatch < ::RuboCop::Cop::Base
|
|
476
|
+
extend ::RuboCop::Cop::AutoCorrector
|
|
477
|
+
|
|
478
|
+
def match_call?(param0 = T.unsafe(nil)); end
|
|
479
|
+
def on_send(node); end
|
|
480
|
+
def only_truthiness_matters?(param0 = T.unsafe(nil)); end
|
|
481
|
+
|
|
482
|
+
private
|
|
483
|
+
|
|
484
|
+
def autocorrect(corrector, node); end
|
|
485
|
+
end
|
|
486
|
+
|
|
487
|
+
RuboCop::Cop::Performance::RedundantMatch::MSG = T.let(T.unsafe(nil), String)
|
|
488
|
+
RuboCop::Cop::Performance::RedundantMatch::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array)
|
|
489
|
+
|
|
490
|
+
class RuboCop::Cop::Performance::RedundantMerge < ::RuboCop::Cop::Base
|
|
491
|
+
extend ::RuboCop::Cop::AutoCorrector
|
|
492
|
+
|
|
493
|
+
def modifier_flow_control?(param0 = T.unsafe(nil)); end
|
|
494
|
+
def on_send(node); end
|
|
495
|
+
def redundant_merge_candidate(param0 = T.unsafe(nil)); end
|
|
496
|
+
|
|
497
|
+
private
|
|
498
|
+
|
|
499
|
+
def correct_multiple_elements(corrector, node, parent, new_source); end
|
|
500
|
+
def correct_single_element(corrector, node, new_source); end
|
|
501
|
+
def each_redundant_merge(node); end
|
|
502
|
+
def indent_width; end
|
|
503
|
+
def kwsplat_used?(pairs); end
|
|
504
|
+
def leading_spaces(node); end
|
|
505
|
+
def max_key_value_pairs; end
|
|
506
|
+
def message(node); end
|
|
507
|
+
def non_redundant_merge?(node, receiver, pairs); end
|
|
508
|
+
def non_redundant_pairs?(receiver, pairs); end
|
|
509
|
+
def non_redundant_value_used?(receiver, node); end
|
|
510
|
+
def rewrite_with_modifier(node, parent, new_source); end
|
|
511
|
+
def to_assignments(receiver, pairs); end
|
|
512
|
+
end
|
|
513
|
+
|
|
514
|
+
RuboCop::Cop::Performance::RedundantMerge::AREF_ASGN = T.let(T.unsafe(nil), String)
|
|
515
|
+
|
|
516
|
+
class RuboCop::Cop::Performance::RedundantMerge::EachWithObjectInspector
|
|
517
|
+
extend ::RuboCop::AST::NodePattern::Macros
|
|
518
|
+
|
|
519
|
+
def initialize(node, receiver); end
|
|
520
|
+
|
|
521
|
+
def each_with_object_node(param0 = T.unsafe(nil)); end
|
|
522
|
+
def value_used?; end
|
|
523
|
+
|
|
524
|
+
private
|
|
525
|
+
|
|
526
|
+
def eligible_receiver?; end
|
|
527
|
+
def node; end
|
|
528
|
+
def receiver; end
|
|
529
|
+
def second_argument; end
|
|
530
|
+
def unwind(receiver); end
|
|
531
|
+
end
|
|
532
|
+
|
|
533
|
+
RuboCop::Cop::Performance::RedundantMerge::MSG = T.let(T.unsafe(nil), String)
|
|
534
|
+
RuboCop::Cop::Performance::RedundantMerge::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array)
|
|
535
|
+
RuboCop::Cop::Performance::RedundantMerge::WITH_MODIFIER_CORRECTION = T.let(T.unsafe(nil), String)
|
|
536
|
+
|
|
537
|
+
class RuboCop::Cop::Performance::RedundantSortBlock < ::RuboCop::Cop::Base
|
|
538
|
+
include ::RuboCop::Cop::RangeHelp
|
|
539
|
+
include ::RuboCop::Cop::SortBlock
|
|
540
|
+
extend ::RuboCop::Cop::AutoCorrector
|
|
541
|
+
|
|
542
|
+
def on_block(node); end
|
|
543
|
+
|
|
544
|
+
private
|
|
545
|
+
|
|
546
|
+
def message(var_a, var_b); end
|
|
547
|
+
end
|
|
548
|
+
|
|
549
|
+
RuboCop::Cop::Performance::RedundantSortBlock::MSG = T.let(T.unsafe(nil), String)
|
|
550
|
+
|
|
551
|
+
class RuboCop::Cop::Performance::RedundantSplitRegexpArgument < ::RuboCop::Cop::Base
|
|
552
|
+
extend ::RuboCop::Cop::AutoCorrector
|
|
553
|
+
|
|
554
|
+
def on_send(node); end
|
|
555
|
+
def split_call_with_regexp?(param0 = T.unsafe(nil)); end
|
|
556
|
+
|
|
557
|
+
private
|
|
558
|
+
|
|
559
|
+
def determinist_regexp?(regexp_node); end
|
|
560
|
+
def replacement(regexp_node); end
|
|
561
|
+
end
|
|
562
|
+
|
|
563
|
+
RuboCop::Cop::Performance::RedundantSplitRegexpArgument::DETERMINISTIC_REGEX = T.let(T.unsafe(nil), Regexp)
|
|
564
|
+
RuboCop::Cop::Performance::RedundantSplitRegexpArgument::MSG = T.let(T.unsafe(nil), String)
|
|
565
|
+
RuboCop::Cop::Performance::RedundantSplitRegexpArgument::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array)
|
|
566
|
+
RuboCop::Cop::Performance::RedundantSplitRegexpArgument::STR_SPECIAL_CHARS = T.let(T.unsafe(nil), Array)
|
|
567
|
+
|
|
568
|
+
class RuboCop::Cop::Performance::RedundantStringChars < ::RuboCop::Cop::Base
|
|
569
|
+
include ::RuboCop::Cop::RangeHelp
|
|
570
|
+
extend ::RuboCop::Cop::AutoCorrector
|
|
571
|
+
|
|
572
|
+
def on_send(node); end
|
|
573
|
+
def redundant_chars_call?(param0 = T.unsafe(nil)); end
|
|
574
|
+
|
|
575
|
+
private
|
|
576
|
+
|
|
577
|
+
def build_bad_method(method, args); end
|
|
578
|
+
def build_call_args(call_args_node); end
|
|
579
|
+
def build_good_method(method, args); end
|
|
580
|
+
def build_message(method, args); end
|
|
581
|
+
def correction_range(receiver, node); end
|
|
582
|
+
def offense_range(receiver, node); end
|
|
583
|
+
end
|
|
584
|
+
|
|
585
|
+
RuboCop::Cop::Performance::RedundantStringChars::MSG = T.let(T.unsafe(nil), String)
|
|
586
|
+
RuboCop::Cop::Performance::RedundantStringChars::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array)
|
|
587
|
+
|
|
588
|
+
class RuboCop::Cop::Performance::RegexpMatch < ::RuboCop::Cop::Base
|
|
589
|
+
extend ::RuboCop::Cop::AutoCorrector
|
|
590
|
+
|
|
591
|
+
def last_matches(param0); end
|
|
592
|
+
def match_method?(param0 = T.unsafe(nil)); end
|
|
593
|
+
def match_node?(param0 = T.unsafe(nil)); end
|
|
594
|
+
def match_operator?(param0 = T.unsafe(nil)); end
|
|
595
|
+
def match_threequals?(param0 = T.unsafe(nil)); end
|
|
596
|
+
def match_with_int_arg_method?(param0 = T.unsafe(nil)); end
|
|
597
|
+
def match_with_lvasgn?(node); end
|
|
598
|
+
def on_case(node); end
|
|
599
|
+
def on_if(node); end
|
|
600
|
+
def search_match_nodes(param0); end
|
|
601
|
+
|
|
602
|
+
private
|
|
603
|
+
|
|
604
|
+
def autocorrect(corrector, node); end
|
|
605
|
+
def check_condition(cond); end
|
|
606
|
+
def correct_operator(corrector, recv, arg, oper = T.unsafe(nil)); end
|
|
607
|
+
def correction_range(recv, arg); end
|
|
608
|
+
def find_last_match(body, range, scope_root); end
|
|
609
|
+
def last_match_used?(match_node); end
|
|
610
|
+
def match_gvar?(sym); end
|
|
611
|
+
def message(node); end
|
|
612
|
+
def modifier_form?(match_node); end
|
|
613
|
+
def next_match_pos(body, match_node_pos, scope_root); end
|
|
614
|
+
def range_to_search_for_last_matches(match_node, body, scope_root); end
|
|
615
|
+
def replace_with_match_predicate_method(corrector, recv, arg, op_range); end
|
|
616
|
+
def scope_body(node); end
|
|
617
|
+
def scope_root(node); end
|
|
618
|
+
def swap_receiver_and_arg(corrector, recv, arg); end
|
|
619
|
+
end
|
|
620
|
+
|
|
621
|
+
RuboCop::Cop::Performance::RegexpMatch::MATCH_NODE_PATTERN = T.let(T.unsafe(nil), String)
|
|
622
|
+
RuboCop::Cop::Performance::RegexpMatch::MSG = T.let(T.unsafe(nil), String)
|
|
623
|
+
RuboCop::Cop::Performance::RegexpMatch::TYPES_IMPLEMENTING_MATCH = T.let(T.unsafe(nil), Array)
|
|
624
|
+
|
|
625
|
+
class RuboCop::Cop::Performance::ReverseEach < ::RuboCop::Cop::Base
|
|
626
|
+
include ::RuboCop::Cop::RangeHelp
|
|
627
|
+
extend ::RuboCop::Cop::AutoCorrector
|
|
628
|
+
|
|
629
|
+
def on_send(node); end
|
|
630
|
+
def reverse_each?(param0 = T.unsafe(nil)); end
|
|
631
|
+
|
|
632
|
+
private
|
|
633
|
+
|
|
634
|
+
def offense_range(node); end
|
|
635
|
+
def use_return_value?(node); end
|
|
636
|
+
end
|
|
637
|
+
|
|
638
|
+
RuboCop::Cop::Performance::ReverseEach::MSG = T.let(T.unsafe(nil), String)
|
|
639
|
+
RuboCop::Cop::Performance::ReverseEach::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array)
|
|
640
|
+
|
|
641
|
+
class RuboCop::Cop::Performance::ReverseFirst < ::RuboCop::Cop::Base
|
|
642
|
+
include ::RuboCop::Cop::RangeHelp
|
|
643
|
+
extend ::RuboCop::Cop::AutoCorrector
|
|
644
|
+
|
|
645
|
+
def on_send(node); end
|
|
646
|
+
def reverse_first_candidate?(param0 = T.unsafe(nil)); end
|
|
647
|
+
|
|
648
|
+
private
|
|
649
|
+
|
|
650
|
+
def build_bad_method(node); end
|
|
651
|
+
def build_good_method(node); end
|
|
652
|
+
def build_message(node); end
|
|
653
|
+
def correction_range(receiver, node); end
|
|
654
|
+
end
|
|
655
|
+
|
|
656
|
+
RuboCop::Cop::Performance::ReverseFirst::MSG = T.let(T.unsafe(nil), String)
|
|
657
|
+
RuboCop::Cop::Performance::ReverseFirst::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array)
|
|
658
|
+
|
|
659
|
+
class RuboCop::Cop::Performance::SelectMap < ::RuboCop::Cop::Base
|
|
660
|
+
include ::RuboCop::Cop::RangeHelp
|
|
661
|
+
extend ::RuboCop::Cop::TargetRubyVersion
|
|
662
|
+
|
|
663
|
+
def bad_method?(param0 = T.unsafe(nil)); end
|
|
664
|
+
def on_send(node); end
|
|
665
|
+
|
|
666
|
+
private
|
|
667
|
+
|
|
668
|
+
def map_method_candidate(node); end
|
|
669
|
+
def offense_range(node, map_method); end
|
|
670
|
+
end
|
|
671
|
+
|
|
672
|
+
RuboCop::Cop::Performance::SelectMap::MSG = T.let(T.unsafe(nil), String)
|
|
673
|
+
RuboCop::Cop::Performance::SelectMap::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array)
|
|
674
|
+
|
|
675
|
+
class RuboCop::Cop::Performance::Size < ::RuboCop::Cop::Base
|
|
676
|
+
extend ::RuboCop::Cop::AutoCorrector
|
|
677
|
+
|
|
678
|
+
def array?(param0 = T.unsafe(nil)); end
|
|
679
|
+
def count?(param0 = T.unsafe(nil)); end
|
|
680
|
+
def hash?(param0 = T.unsafe(nil)); end
|
|
681
|
+
def on_send(node); end
|
|
682
|
+
end
|
|
683
|
+
|
|
684
|
+
RuboCop::Cop::Performance::Size::MSG = T.let(T.unsafe(nil), String)
|
|
685
|
+
RuboCop::Cop::Performance::Size::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array)
|
|
686
|
+
|
|
687
|
+
class RuboCop::Cop::Performance::SortReverse < ::RuboCop::Cop::Base
|
|
688
|
+
include ::RuboCop::Cop::RangeHelp
|
|
689
|
+
include ::RuboCop::Cop::SortBlock
|
|
690
|
+
extend ::RuboCop::Cop::AutoCorrector
|
|
691
|
+
|
|
692
|
+
def on_block(node); end
|
|
693
|
+
|
|
694
|
+
private
|
|
695
|
+
|
|
696
|
+
def message(var_a, var_b); end
|
|
697
|
+
end
|
|
698
|
+
|
|
699
|
+
RuboCop::Cop::Performance::SortReverse::MSG = T.let(T.unsafe(nil), String)
|
|
700
|
+
|
|
701
|
+
class RuboCop::Cop::Performance::Squeeze < ::RuboCop::Cop::Base
|
|
702
|
+
extend ::RuboCop::Cop::AutoCorrector
|
|
703
|
+
|
|
704
|
+
def on_send(node); end
|
|
705
|
+
def squeeze_candidate?(param0 = T.unsafe(nil)); end
|
|
706
|
+
|
|
707
|
+
private
|
|
708
|
+
|
|
709
|
+
def repeating_literal?(regex_str); end
|
|
710
|
+
end
|
|
711
|
+
|
|
712
|
+
RuboCop::Cop::Performance::Squeeze::MSG = T.let(T.unsafe(nil), String)
|
|
713
|
+
RuboCop::Cop::Performance::Squeeze::PREFERRED_METHODS = T.let(T.unsafe(nil), Hash)
|
|
714
|
+
RuboCop::Cop::Performance::Squeeze::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array)
|
|
715
|
+
|
|
716
|
+
class RuboCop::Cop::Performance::StartWith < ::RuboCop::Cop::Base
|
|
717
|
+
include ::RuboCop::Cop::RegexpMetacharacter
|
|
718
|
+
extend ::RuboCop::Cop::AutoCorrector
|
|
719
|
+
|
|
720
|
+
def on_match_with_lvasgn(node); end
|
|
721
|
+
def on_send(node); end
|
|
722
|
+
def redundant_regex?(param0 = T.unsafe(nil)); end
|
|
723
|
+
end
|
|
724
|
+
|
|
725
|
+
RuboCop::Cop::Performance::StartWith::MSG = T.let(T.unsafe(nil), String)
|
|
726
|
+
RuboCop::Cop::Performance::StartWith::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array)
|
|
727
|
+
|
|
728
|
+
class RuboCop::Cop::Performance::StringInclude < ::RuboCop::Cop::Base
|
|
729
|
+
extend ::RuboCop::Cop::AutoCorrector
|
|
730
|
+
|
|
731
|
+
def on_match_with_lvasgn(node); end
|
|
732
|
+
def on_send(node); end
|
|
733
|
+
def redundant_regex?(param0 = T.unsafe(nil)); end
|
|
734
|
+
|
|
735
|
+
private
|
|
736
|
+
|
|
737
|
+
def literal?(regex_str); end
|
|
738
|
+
end
|
|
739
|
+
|
|
740
|
+
RuboCop::Cop::Performance::StringInclude::MSG = T.let(T.unsafe(nil), String)
|
|
741
|
+
RuboCop::Cop::Performance::StringInclude::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array)
|
|
742
|
+
|
|
743
|
+
class RuboCop::Cop::Performance::StringReplacement < ::RuboCop::Cop::Base
|
|
744
|
+
include ::RuboCop::Cop::RangeHelp
|
|
745
|
+
extend ::RuboCop::Cop::AutoCorrector
|
|
746
|
+
|
|
747
|
+
def on_send(node); end
|
|
748
|
+
def string_replacement?(param0 = T.unsafe(nil)); end
|
|
749
|
+
|
|
750
|
+
private
|
|
751
|
+
|
|
752
|
+
def accept_first_param?(first_param); end
|
|
753
|
+
def accept_second_param?(second_param); end
|
|
754
|
+
def autocorrect(corrector, node); end
|
|
755
|
+
def first_source(first_param); end
|
|
756
|
+
def message(node, first_source, second_source); end
|
|
757
|
+
def method_suffix(node); end
|
|
758
|
+
def offense(node, first_param, second_param); end
|
|
759
|
+
def range(node); end
|
|
760
|
+
def remove_second_param(corrector, node, first_param); end
|
|
761
|
+
def replace_method(corrector, node, first_source, second_source, first_param); end
|
|
762
|
+
def replacement_method(node, first_source, second_source); end
|
|
763
|
+
def source_from_regex_constructor(node); end
|
|
764
|
+
def source_from_regex_literal(node); end
|
|
765
|
+
end
|
|
766
|
+
|
|
767
|
+
RuboCop::Cop::Performance::StringReplacement::BANG = T.let(T.unsafe(nil), String)
|
|
768
|
+
RuboCop::Cop::Performance::StringReplacement::DELETE = T.let(T.unsafe(nil), String)
|
|
769
|
+
RuboCop::Cop::Performance::StringReplacement::DETERMINISTIC_REGEX = T.let(T.unsafe(nil), Regexp)
|
|
770
|
+
RuboCop::Cop::Performance::StringReplacement::MSG = T.let(T.unsafe(nil), String)
|
|
771
|
+
RuboCop::Cop::Performance::StringReplacement::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array)
|
|
772
|
+
RuboCop::Cop::Performance::StringReplacement::TR = T.let(T.unsafe(nil), String)
|
|
773
|
+
|
|
774
|
+
class RuboCop::Cop::Performance::Sum < ::RuboCop::Cop::Base
|
|
775
|
+
include ::RuboCop::Cop::RangeHelp
|
|
776
|
+
extend ::RuboCop::Cop::AutoCorrector
|
|
777
|
+
|
|
778
|
+
def acc_plus_elem?(param0 = T.unsafe(nil), param1, param2); end
|
|
779
|
+
def elem_plus_acc?(param0 = T.unsafe(nil), param1, param2); end
|
|
780
|
+
def on_block(node); end
|
|
781
|
+
def on_send(node); end
|
|
782
|
+
def sum_candidate?(param0 = T.unsafe(nil)); end
|
|
783
|
+
def sum_map_candidate?(param0 = T.unsafe(nil)); end
|
|
784
|
+
def sum_with_block_candidate?(param0 = T.unsafe(nil)); end
|
|
785
|
+
|
|
786
|
+
private
|
|
787
|
+
|
|
788
|
+
def array_literal?(node); end
|
|
789
|
+
def autocorrect(corrector, init, range); end
|
|
790
|
+
def autocorrect_sum_map(corrector, sum, map, init); end
|
|
791
|
+
def build_block_bad_method(method, init, var_acc, var_elem, body); end
|
|
792
|
+
def build_block_message(send, init, var_acc, var_elem, body); end
|
|
793
|
+
def build_good_method(init, block_pass = T.unsafe(nil)); end
|
|
794
|
+
def build_method_bad_method(init, method, operation); end
|
|
795
|
+
def build_method_message(node, method, init, operation); end
|
|
796
|
+
def build_sum_map_message(method, init); end
|
|
797
|
+
def empty_array_literal?(node); end
|
|
798
|
+
def handle_sum_candidate(node); end
|
|
799
|
+
def handle_sum_map_candidate(node); end
|
|
800
|
+
def method_call_with_args_range(node); end
|
|
801
|
+
def sum_block_range(send, node); end
|
|
802
|
+
def sum_map_range(map, sum); end
|
|
803
|
+
def sum_method_range(node); end
|
|
804
|
+
end
|
|
805
|
+
|
|
806
|
+
RuboCop::Cop::Performance::Sum::MSG = T.let(T.unsafe(nil), String)
|
|
807
|
+
RuboCop::Cop::Performance::Sum::MSG_IF_NO_INIT_VALUE = T.let(T.unsafe(nil), String)
|
|
808
|
+
RuboCop::Cop::Performance::Sum::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array)
|
|
809
|
+
|
|
810
|
+
class RuboCop::Cop::Performance::TimesMap < ::RuboCop::Cop::Base
|
|
811
|
+
extend ::RuboCop::Cop::AutoCorrector
|
|
812
|
+
|
|
813
|
+
def on_block(node); end
|
|
814
|
+
def on_send(node); end
|
|
815
|
+
def times_map_call(param0 = T.unsafe(nil)); end
|
|
816
|
+
|
|
817
|
+
private
|
|
818
|
+
|
|
819
|
+
def check(node); end
|
|
820
|
+
def message(map_or_collect, count); end
|
|
821
|
+
end
|
|
822
|
+
|
|
823
|
+
RuboCop::Cop::Performance::TimesMap::MESSAGE = T.let(T.unsafe(nil), String)
|
|
824
|
+
RuboCop::Cop::Performance::TimesMap::MESSAGE_ONLY_IF = T.let(T.unsafe(nil), String)
|
|
825
|
+
RuboCop::Cop::Performance::TimesMap::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array)
|
|
826
|
+
|
|
827
|
+
class RuboCop::Cop::Performance::UnfreezeString < ::RuboCop::Cop::Base
|
|
828
|
+
extend ::RuboCop::Cop::AutoCorrector
|
|
829
|
+
|
|
830
|
+
def dup_string?(param0 = T.unsafe(nil)); end
|
|
831
|
+
def on_send(node); end
|
|
832
|
+
def string_new?(param0 = T.unsafe(nil)); end
|
|
833
|
+
|
|
834
|
+
private
|
|
835
|
+
|
|
836
|
+
def string_value(node); end
|
|
837
|
+
end
|
|
838
|
+
|
|
839
|
+
RuboCop::Cop::Performance::UnfreezeString::MSG = T.let(T.unsafe(nil), String)
|
|
840
|
+
RuboCop::Cop::Performance::UnfreezeString::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array)
|
|
841
|
+
|
|
842
|
+
class RuboCop::Cop::Performance::UriDefaultParser < ::RuboCop::Cop::Base
|
|
843
|
+
extend ::RuboCop::Cop::AutoCorrector
|
|
844
|
+
|
|
845
|
+
def on_send(node); end
|
|
846
|
+
def uri_parser_new?(param0 = T.unsafe(nil)); end
|
|
847
|
+
end
|
|
848
|
+
|
|
849
|
+
RuboCop::Cop::Performance::UriDefaultParser::MSG = T.let(T.unsafe(nil), String)
|
|
850
|
+
RuboCop::Cop::Performance::UriDefaultParser::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array)
|
|
851
|
+
|
|
852
|
+
module RuboCop::Cop::RegexpMetacharacter
|
|
853
|
+
private
|
|
854
|
+
|
|
855
|
+
def drop_end_metacharacter(regexp_string); end
|
|
856
|
+
def drop_start_metacharacter(regexp_string); end
|
|
857
|
+
def literal_at_end?(regexp); end
|
|
858
|
+
def literal_at_end_with_backslash_z?(regex_str); end
|
|
859
|
+
def literal_at_end_with_dollar?(regex_str); end
|
|
860
|
+
def literal_at_start?(regexp); end
|
|
861
|
+
def literal_at_start_with_backslash_a?(regex_str); end
|
|
862
|
+
def literal_at_start_with_caret?(regex_str); end
|
|
863
|
+
def safe_multiline?; end
|
|
864
|
+
end
|
|
865
|
+
|
|
866
|
+
module RuboCop::Cop::SortBlock
|
|
867
|
+
include ::RuboCop::Cop::RangeHelp
|
|
868
|
+
extend ::RuboCop::AST::NodePattern::Macros
|
|
869
|
+
|
|
870
|
+
def replaceable_body?(param0 = T.unsafe(nil), param1, param2); end
|
|
871
|
+
def sort_with_block?(param0 = T.unsafe(nil)); end
|
|
872
|
+
|
|
873
|
+
private
|
|
874
|
+
|
|
875
|
+
def sort_range(send, node); end
|
|
876
|
+
end
|
|
877
|
+
|
|
878
|
+
RuboCop::NodePattern = RuboCop::AST::NodePattern
|
|
879
|
+
module RuboCop::Performance; end
|
|
880
|
+
RuboCop::Performance::CONFIG = T.let(T.unsafe(nil), Hash)
|
|
881
|
+
RuboCop::Performance::CONFIG_DEFAULT = T.let(T.unsafe(nil), Pathname)
|
|
882
|
+
|
|
883
|
+
module RuboCop::Performance::Inject
|
|
884
|
+
class << self
|
|
885
|
+
def defaults!; end
|
|
886
|
+
end
|
|
887
|
+
end
|
|
888
|
+
|
|
889
|
+
RuboCop::Performance::PROJECT_ROOT = T.let(T.unsafe(nil), Pathname)
|
|
890
|
+
|
|
891
|
+
module RuboCop::Performance::Version
|
|
892
|
+
class << self
|
|
893
|
+
def document_version; end
|
|
894
|
+
end
|
|
895
|
+
end
|
|
896
|
+
|
|
897
|
+
RuboCop::Performance::Version::STRING = T.let(T.unsafe(nil), String)
|
|
898
|
+
RuboCop::ProcessedSource = RuboCop::AST::ProcessedSource
|
|
899
|
+
RuboCop::Token = RuboCop::AST::Token
|