frontman-ssg 0.0.4 → 0.1.0
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 +4 -4
- data/.rubocop.yml +3 -0
- data/CHANGELOG.md +13 -2
- data/Rakefile +5 -2
- data/frontman-ssg.gemspec +1 -0
- data/lib/frontman.rb +0 -5
- data/lib/frontman/app.rb +1 -3
- data/lib/frontman/builder/file.rb +1 -3
- data/lib/frontman/commands/init.rb +2 -3
- data/lib/frontman/commands/serve.rb +29 -28
- data/lib/frontman/concerns/forward_calls_to_app.rb +1 -1
- data/lib/frontman/context.rb +68 -57
- data/lib/frontman/data_store.rb +1 -3
- data/lib/frontman/iterator.rb +1 -3
- data/lib/frontman/renderers/erb_renderer.rb +19 -1
- data/lib/frontman/renderers/haml_renderer.rb +29 -1
- data/lib/frontman/renderers/renderer_resolver.rb +18 -5
- data/lib/frontman/renderers/slim_renderer.rb +30 -0
- data/lib/frontman/resource.rb +9 -13
- data/lib/frontman/sitemap_tree.rb +1 -3
- data/lib/frontman/version.rb +1 -1
- data/project-templates/webpack/helpers/assets_helper.rb +1 -3
- data/sorbet/rbi/gems/ast.rbi +48 -0
- data/sorbet/rbi/gems/better_errors.rbi +180 -0
- data/sorbet/rbi/gems/binding_of_caller.rbi +23 -0
- data/sorbet/rbi/gems/coderay.rbi +24 -0
- data/sorbet/rbi/gems/debug_inspector.rbi +19 -0
- data/sorbet/rbi/gems/docile.rbi +32 -0
- data/sorbet/rbi/gems/dotenv.rbi +68 -0
- data/sorbet/rbi/gems/erubi.rbi +27 -0
- data/sorbet/rbi/gems/erubis.rbi +280 -0
- data/sorbet/rbi/gems/haml.rbi +521 -0
- data/sorbet/rbi/gems/htmlentities.rbi +46 -0
- data/sorbet/rbi/gems/jaro_winkler.rbi +15 -0
- data/sorbet/rbi/gems/kramdown-parser-gfm.rbi +29 -0
- data/sorbet/rbi/gems/kramdown.rbi +338 -0
- data/sorbet/rbi/gems/listen.rbi +301 -0
- data/sorbet/rbi/gems/mustermann.rbi +481 -0
- data/sorbet/rbi/gems/nokogiri.rbi +1011 -0
- data/sorbet/rbi/gems/parallel.rbi +82 -0
- data/sorbet/rbi/gems/parser.rbi +1405 -0
- data/sorbet/rbi/gems/rack-protection.rbi +16 -0
- data/sorbet/rbi/gems/rack.rbi +507 -0
- data/sorbet/rbi/gems/rainbow.rbi +118 -0
- data/sorbet/rbi/gems/rake.rbi +641 -0
- data/sorbet/rbi/gems/rexml.rbi +93 -0
- data/sorbet/rbi/gems/rouge.rbi +1551 -0
- data/sorbet/rbi/gems/rspec-core.rbi +1893 -0
- data/sorbet/rbi/gems/rspec-expectations.rbi +1125 -0
- data/sorbet/rbi/gems/rspec-mocks.rbi +1099 -0
- data/sorbet/rbi/gems/rspec-support.rbi +280 -0
- data/sorbet/rbi/gems/rspec.rbi +15 -0
- data/sorbet/rbi/gems/rubocop-performance.rbi +274 -0
- data/sorbet/rbi/gems/rubocop.rbi +7403 -0
- data/sorbet/rbi/gems/ruby-progressbar.rbi +305 -0
- data/sorbet/rbi/gems/ruby2_keywords.rbi +17 -0
- data/sorbet/rbi/gems/simplecov-html.rbi +35 -0
- data/sorbet/rbi/gems/simplecov.rbi +405 -0
- data/sorbet/rbi/gems/sinatra.rbi +488 -0
- data/sorbet/rbi/gems/slim.rbi +144 -0
- data/sorbet/rbi/gems/temple.rbi +281 -0
- data/sorbet/rbi/gems/thor.rbi +522 -0
- data/sorbet/rbi/gems/tilt.rbi +82 -0
- data/sorbet/rbi/gems/unicode-display_width.rbi +17 -0
- data/sorbet/rbi/gems/yaml-front-matter.rbi +16 -0
- data/sorbet/rbi/hidden-definitions/errors.txt +2859 -24228
- data/sorbet/rbi/hidden-definitions/hidden.rbi +7111 -40830
- data/sorbet/rbi/sorbet-typed/lib/nokogiri/1.10.10/nokogiri.rbi +1615 -0
- data/sorbet/rbi/sorbet-typed/lib/thor/all/thor.rbi +905 -0
- data/sorbet/rbi/todo.rbi +6 -0
- data/spec/frontman/bootstrapper_spec.rb +1 -1
- data/spec/frontman/context_spec.rb +45 -6
- data/spec/frontman/mocks/context.haml +18 -0
- data/spec/frontman/renderers/slim_renderer_spec.rb +12 -0
- metadata +66 -4
@@ -0,0 +1,280 @@
|
|
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/rspec-support/all/rspec-support.rbi
|
9
|
+
#
|
10
|
+
# rspec-support-3.9.3
|
11
|
+
|
12
|
+
module RSpec
|
13
|
+
extend RSpec::Support::Warnings
|
14
|
+
end
|
15
|
+
module RSpec::Support
|
16
|
+
def self.class_of(object); end
|
17
|
+
def self.define_optimized_require_for_rspec(lib, &require_relative); end
|
18
|
+
def self.deregister_matcher_definition(&block); end
|
19
|
+
def self.failure_notifier; end
|
20
|
+
def self.failure_notifier=(callable); end
|
21
|
+
def self.is_a_matcher?(object); end
|
22
|
+
def self.matcher_definitions; end
|
23
|
+
def self.method_handle_for(object, method_name); end
|
24
|
+
def self.notify_failure(failure, options = nil); end
|
25
|
+
def self.register_matcher_definition(&block); end
|
26
|
+
def self.require_rspec_support(f); end
|
27
|
+
def self.rspec_description_for_object(object); end
|
28
|
+
def self.thread_local_data; end
|
29
|
+
def self.warning_notifier; end
|
30
|
+
def self.warning_notifier=(arg0); end
|
31
|
+
def self.with_failure_notifier(callable); end
|
32
|
+
end
|
33
|
+
module RSpec::Support::Version
|
34
|
+
end
|
35
|
+
class RSpec::Support::ComparableVersion
|
36
|
+
def <=>(other); end
|
37
|
+
def initialize(string); end
|
38
|
+
def segments; end
|
39
|
+
def string; end
|
40
|
+
include Comparable
|
41
|
+
end
|
42
|
+
module RSpec::Support::OS
|
43
|
+
def self.windows?; end
|
44
|
+
def self.windows_file_path?; end
|
45
|
+
def windows?; end
|
46
|
+
def windows_file_path?; end
|
47
|
+
end
|
48
|
+
module RSpec::Support::Ruby
|
49
|
+
def jruby?; end
|
50
|
+
def jruby_9000?; end
|
51
|
+
def jruby_version; end
|
52
|
+
def mri?; end
|
53
|
+
def non_mri?; end
|
54
|
+
def rbx?; end
|
55
|
+
def self.jruby?; end
|
56
|
+
def self.jruby_9000?; end
|
57
|
+
def self.jruby_version; end
|
58
|
+
def self.mri?; end
|
59
|
+
def self.non_mri?; end
|
60
|
+
def self.rbx?; end
|
61
|
+
def self.truffleruby?; end
|
62
|
+
def truffleruby?; end
|
63
|
+
end
|
64
|
+
module RSpec::Support::RubyFeatures
|
65
|
+
def caller_locations_supported?; end
|
66
|
+
def fork_supported?; end
|
67
|
+
def kw_args_supported?; end
|
68
|
+
def module_prepends_supported?; end
|
69
|
+
def module_refinement_supported?; end
|
70
|
+
def optional_and_splat_args_supported?; end
|
71
|
+
def required_kw_args_supported?; end
|
72
|
+
def ripper_supported?; end
|
73
|
+
def self.caller_locations_supported?; end
|
74
|
+
def self.fork_supported?; end
|
75
|
+
def self.kw_args_supported?; end
|
76
|
+
def self.module_prepends_supported?; end
|
77
|
+
def self.module_refinement_supported?; end
|
78
|
+
def self.optional_and_splat_args_supported?; end
|
79
|
+
def self.required_kw_args_supported?; end
|
80
|
+
def self.ripper_supported?; end
|
81
|
+
def self.supports_exception_cause?; end
|
82
|
+
def self.supports_rebinding_module_methods?; end
|
83
|
+
def self.supports_taint?; end
|
84
|
+
def supports_exception_cause?; end
|
85
|
+
def supports_rebinding_module_methods?; end
|
86
|
+
def supports_taint?; end
|
87
|
+
end
|
88
|
+
module RSpec::Support::AllExceptionsExceptOnesWeMustNotRescue
|
89
|
+
def self.===(exception); end
|
90
|
+
end
|
91
|
+
class RSpec::CallerFilter
|
92
|
+
def self.first_non_rspec_line(skip_frames = nil, increment = nil); end
|
93
|
+
end
|
94
|
+
module RSpec::Support::Warnings
|
95
|
+
def deprecate(deprecated, options = nil); end
|
96
|
+
def warn_deprecation(message, options = nil); end
|
97
|
+
def warn_with(message, options = nil); end
|
98
|
+
def warning(text, options = nil); end
|
99
|
+
end
|
100
|
+
class RSpec::Support::EncodedString
|
101
|
+
def <<(string); end
|
102
|
+
def ==(*args, &block); end
|
103
|
+
def detect_source_encoding(string); end
|
104
|
+
def empty?(*args, &block); end
|
105
|
+
def encoding(*args, &block); end
|
106
|
+
def eql?(*args, &block); end
|
107
|
+
def initialize(string, encoding = nil); end
|
108
|
+
def lines(*args, &block); end
|
109
|
+
def matching_encoding(string); end
|
110
|
+
def remove_invalid_bytes(string); end
|
111
|
+
def self.pick_encoding(source_a, source_b); end
|
112
|
+
def source_encoding; end
|
113
|
+
def split(regex_or_string); end
|
114
|
+
def to_s; end
|
115
|
+
def to_str; end
|
116
|
+
end
|
117
|
+
class RSpec::Support::ReentrantMutex
|
118
|
+
def enter; end
|
119
|
+
def exit; end
|
120
|
+
def initialize; end
|
121
|
+
def synchronize; end
|
122
|
+
end
|
123
|
+
class RSpec::Support::Mutex < Thread::Mutex
|
124
|
+
def self.new; end
|
125
|
+
end
|
126
|
+
class RSpec::Support::DirectoryMaker
|
127
|
+
def self.directory_exists?(dirname); end
|
128
|
+
def self.generate_path(stack, part); end
|
129
|
+
def self.generate_stack(path); end
|
130
|
+
def self.mkdir_p(path); end
|
131
|
+
end
|
132
|
+
class RSpec::Support::MethodSignature
|
133
|
+
def arbitrary_kw_args?; end
|
134
|
+
def classify_arity(arity = nil); end
|
135
|
+
def classify_parameters; end
|
136
|
+
def could_contain_kw_args?(args); end
|
137
|
+
def description; end
|
138
|
+
def has_kw_args_in?(args); end
|
139
|
+
def initialize(method); end
|
140
|
+
def invalid_kw_args_from(given_kw_args); end
|
141
|
+
def max_non_kw_args; end
|
142
|
+
def min_non_kw_args; end
|
143
|
+
def missing_kw_args_from(given_kw_args); end
|
144
|
+
def non_kw_args_arity_description; end
|
145
|
+
def optional_kw_args; end
|
146
|
+
def required_kw_args; end
|
147
|
+
def unlimited_args?; end
|
148
|
+
def valid_non_kw_args?(positional_arg_count, optional_max_arg_count = nil); end
|
149
|
+
end
|
150
|
+
class RSpec::Support::MethodSignatureExpectation
|
151
|
+
def empty?; end
|
152
|
+
def expect_arbitrary_keywords; end
|
153
|
+
def expect_arbitrary_keywords=(arg0); end
|
154
|
+
def expect_unlimited_arguments; end
|
155
|
+
def expect_unlimited_arguments=(arg0); end
|
156
|
+
def initialize; end
|
157
|
+
def keywords; end
|
158
|
+
def keywords=(values); end
|
159
|
+
def max_count; end
|
160
|
+
def max_count=(number); end
|
161
|
+
def min_count; end
|
162
|
+
def min_count=(number); end
|
163
|
+
end
|
164
|
+
class RSpec::Support::BlockSignature < RSpec::Support::MethodSignature
|
165
|
+
def classify_parameters; end
|
166
|
+
end
|
167
|
+
class RSpec::Support::MethodSignatureVerifier
|
168
|
+
def arbitrary_kw_args?; end
|
169
|
+
def error_message; end
|
170
|
+
def initialize(signature, args = nil); end
|
171
|
+
def invalid_kw_args; end
|
172
|
+
def kw_args; end
|
173
|
+
def max_non_kw_args; end
|
174
|
+
def min_non_kw_args; end
|
175
|
+
def missing_kw_args; end
|
176
|
+
def non_kw_args; end
|
177
|
+
def split_args(*args); end
|
178
|
+
def unlimited_args?; end
|
179
|
+
def valid?; end
|
180
|
+
def valid_non_kw_args?; end
|
181
|
+
def with_expectation(expectation); end
|
182
|
+
end
|
183
|
+
class RSpec::Support::LooseSignatureVerifier < RSpec::Support::MethodSignatureVerifier
|
184
|
+
def split_args(*args); end
|
185
|
+
end
|
186
|
+
class RSpec::Support::LooseSignatureVerifier::SignatureWithKeywordArgumentsMatcher
|
187
|
+
def has_kw_args_in?(args); end
|
188
|
+
def initialize(signature); end
|
189
|
+
def invalid_kw_args_from(_kw_args); end
|
190
|
+
def missing_kw_args_from(_kw_args); end
|
191
|
+
def non_kw_args_arity_description; end
|
192
|
+
def valid_non_kw_args?(*args); end
|
193
|
+
end
|
194
|
+
module RSpec::Support::WithKeywordsWhenNeeded
|
195
|
+
def class_exec(klass, *args, &block); end
|
196
|
+
def self.class_exec(klass, *args, &block); end
|
197
|
+
end
|
198
|
+
module RSpec::Support::RecursiveConstMethods
|
199
|
+
def const_defined_on?(mod, const_name); end
|
200
|
+
def constants_defined_on(mod); end
|
201
|
+
def get_const_defined_on(mod, const_name); end
|
202
|
+
def normalize_const_name(const_name); end
|
203
|
+
def recursive_const_defined?(const_name); end
|
204
|
+
def recursive_const_get(const_name); end
|
205
|
+
end
|
206
|
+
class RSpec::Support::ObjectFormatter
|
207
|
+
def format(object); end
|
208
|
+
def initialize(max_formatted_output_length = nil); end
|
209
|
+
def max_formatted_output_length; end
|
210
|
+
def max_formatted_output_length=(arg0); end
|
211
|
+
def prepare_array(array); end
|
212
|
+
def prepare_element(element); end
|
213
|
+
def prepare_for_inspection(object); end
|
214
|
+
def prepare_hash(input_hash); end
|
215
|
+
def recursive_structure?(object); end
|
216
|
+
def self.default_instance; end
|
217
|
+
def self.format(object); end
|
218
|
+
def self.prepare_for_inspection(object); end
|
219
|
+
def sort_hash_keys(input_hash); end
|
220
|
+
def truncate_string(str, start_index, end_index); end
|
221
|
+
def with_entering_structure(structure); end
|
222
|
+
end
|
223
|
+
class RSpec::Support::ObjectFormatter::InspectableItem < Struct
|
224
|
+
def inspect; end
|
225
|
+
def pretty_print(pp); end
|
226
|
+
def self.[](*arg0); end
|
227
|
+
def self.inspect; end
|
228
|
+
def self.members; end
|
229
|
+
def self.new(*arg0); end
|
230
|
+
def text; end
|
231
|
+
def text=(_); end
|
232
|
+
end
|
233
|
+
class RSpec::Support::ObjectFormatter::BaseInspector < Struct
|
234
|
+
def formatter; end
|
235
|
+
def formatter=(_); end
|
236
|
+
def inspect; end
|
237
|
+
def object; end
|
238
|
+
def object=(_); end
|
239
|
+
def pretty_print(pp); end
|
240
|
+
def self.[](*arg0); end
|
241
|
+
def self.can_inspect?(_object); end
|
242
|
+
def self.inspect; end
|
243
|
+
def self.members; end
|
244
|
+
def self.new(*arg0); end
|
245
|
+
end
|
246
|
+
class RSpec::Support::ObjectFormatter::TimeInspector < RSpec::Support::ObjectFormatter::BaseInspector
|
247
|
+
def inspect; end
|
248
|
+
def self.can_inspect?(object); end
|
249
|
+
end
|
250
|
+
class RSpec::Support::ObjectFormatter::DateTimeInspector < RSpec::Support::ObjectFormatter::BaseInspector
|
251
|
+
def inspect; end
|
252
|
+
def self.can_inspect?(object); end
|
253
|
+
end
|
254
|
+
class RSpec::Support::ObjectFormatter::BigDecimalInspector < RSpec::Support::ObjectFormatter::BaseInspector
|
255
|
+
def inspect; end
|
256
|
+
def self.can_inspect?(object); end
|
257
|
+
end
|
258
|
+
class RSpec::Support::ObjectFormatter::DescribableMatcherInspector < RSpec::Support::ObjectFormatter::BaseInspector
|
259
|
+
def inspect; end
|
260
|
+
def self.can_inspect?(object); end
|
261
|
+
end
|
262
|
+
class RSpec::Support::ObjectFormatter::UninspectableObjectInspector < RSpec::Support::ObjectFormatter::BaseInspector
|
263
|
+
def inspect; end
|
264
|
+
def klass; end
|
265
|
+
def native_object_id; end
|
266
|
+
def self.can_inspect?(object); end
|
267
|
+
end
|
268
|
+
class RSpec::Support::ObjectFormatter::DelegatorInspector < RSpec::Support::ObjectFormatter::BaseInspector
|
269
|
+
def inspect; end
|
270
|
+
def self.can_inspect?(object); end
|
271
|
+
end
|
272
|
+
class RSpec::Support::ObjectFormatter::InspectableObjectInspector < RSpec::Support::ObjectFormatter::BaseInspector
|
273
|
+
def inspect; end
|
274
|
+
def self.can_inspect?(object); end
|
275
|
+
end
|
276
|
+
module RSpec::Support::FuzzyMatcher
|
277
|
+
def self.arrays_match?(expected_list, actual_list); end
|
278
|
+
def self.hashes_match?(expected_hash, actual_hash); end
|
279
|
+
def self.values_match?(expected, actual); end
|
280
|
+
end
|
@@ -0,0 +1,15 @@
|
|
1
|
+
# This file is autogenerated. Do not edit it by hand. Regenerate it with:
|
2
|
+
# srb rbi gems
|
3
|
+
|
4
|
+
# typed: strict
|
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/rspec/all/rspec.rbi
|
9
|
+
#
|
10
|
+
# rspec-3.9.0
|
11
|
+
|
12
|
+
module RSpec
|
13
|
+
end
|
14
|
+
module RSpec::Version
|
15
|
+
end
|
@@ -0,0 +1,274 @@
|
|
1
|
+
# This file is autogenerated. Do not edit it by hand. Regenerate it with:
|
2
|
+
# srb rbi gems
|
3
|
+
|
4
|
+
# typed: strict
|
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/rubocop-performance/all/rubocop-performance.rbi
|
9
|
+
#
|
10
|
+
# rubocop-performance-1.3.0
|
11
|
+
|
12
|
+
module RuboCop
|
13
|
+
end
|
14
|
+
module RuboCop::Performance
|
15
|
+
end
|
16
|
+
module RuboCop::Performance::Version
|
17
|
+
end
|
18
|
+
module RuboCop::Performance::Inject
|
19
|
+
def self.defaults!; end
|
20
|
+
end
|
21
|
+
module RuboCop::Cop
|
22
|
+
end
|
23
|
+
module RuboCop::Cop::Performance
|
24
|
+
end
|
25
|
+
class RuboCop::Cop::Performance::Caller < RuboCop::Cop::Cop
|
26
|
+
def caller_with_scope_method?(node = nil); end
|
27
|
+
def int_value(node); end
|
28
|
+
def message(node); end
|
29
|
+
def on_send(node); end
|
30
|
+
def slow_caller?(node = nil); end
|
31
|
+
end
|
32
|
+
class RuboCop::Cop::Performance::CaseWhenSplat < RuboCop::Cop::Cop
|
33
|
+
def autocorrect(when_node); end
|
34
|
+
def indent_for(node); end
|
35
|
+
def inline_fix_branch(corrector, when_node); end
|
36
|
+
def needs_reorder?(when_node); end
|
37
|
+
def new_branch_without_then(node, new_condition); end
|
38
|
+
def new_condition_with_then(node, new_condition); end
|
39
|
+
def non_splat?(condition); end
|
40
|
+
def on_case(case_node); end
|
41
|
+
def reorder_condition(corrector, when_node); end
|
42
|
+
def reordering_correction(when_node); end
|
43
|
+
def replacement(conditions); end
|
44
|
+
def splat_offenses(when_conditions); end
|
45
|
+
def when_branch_range(when_node); end
|
46
|
+
include RuboCop::Cop::Alignment
|
47
|
+
include RuboCop::Cop::RangeHelp
|
48
|
+
end
|
49
|
+
class RuboCop::Cop::Performance::Casecmp < RuboCop::Cop::Cop
|
50
|
+
def autocorrect(node); end
|
51
|
+
def build_good_method(arg, variable); end
|
52
|
+
def correction(node, _receiver, method, arg, variable); end
|
53
|
+
def downcase_downcase(node = nil); end
|
54
|
+
def downcase_eq(node = nil); end
|
55
|
+
def eq_downcase(node = nil); end
|
56
|
+
def on_send(node); end
|
57
|
+
def take_method_apart(node); end
|
58
|
+
end
|
59
|
+
class RuboCop::Cop::Performance::CompareWithBlock < RuboCop::Cop::Cop
|
60
|
+
def autocorrect(node); end
|
61
|
+
def compare?(node = nil); end
|
62
|
+
def compare_range(send, node); end
|
63
|
+
def message(send, method, var_a, var_b, args); end
|
64
|
+
def on_block(node); end
|
65
|
+
def replaceable_body?(node = nil, param1, param2); end
|
66
|
+
def slow_compare?(method, args_a, args_b); end
|
67
|
+
include RuboCop::Cop::RangeHelp
|
68
|
+
end
|
69
|
+
class RuboCop::Cop::Performance::Count < RuboCop::Cop::Cop
|
70
|
+
def autocorrect(node); end
|
71
|
+
def count_candidate?(node = nil); end
|
72
|
+
def eligible_node?(node); end
|
73
|
+
def on_send(node); end
|
74
|
+
def source_starting_at(node); end
|
75
|
+
include RuboCop::Cop::RangeHelp
|
76
|
+
include RuboCop::Cop::SafeMode
|
77
|
+
end
|
78
|
+
class RuboCop::Cop::Performance::Detect < RuboCop::Cop::Cop
|
79
|
+
def accept_first_call?(receiver, body); end
|
80
|
+
def autocorrect(node); end
|
81
|
+
def detect_candidate?(node = nil); end
|
82
|
+
def lazy?(node); end
|
83
|
+
def on_send(node); end
|
84
|
+
def preferred_method; end
|
85
|
+
def register_offense(node, receiver, second_method); end
|
86
|
+
include RuboCop::Cop::SafeMode
|
87
|
+
end
|
88
|
+
class RuboCop::Cop::Performance::DoubleStartEndWith < RuboCop::Cop::Cop
|
89
|
+
def add_offense_for_double_call(node, receiver, method, combined_args); end
|
90
|
+
def autocorrect(node); end
|
91
|
+
def check_for_active_support_aliases?; end
|
92
|
+
def check_with_active_support_aliases(node = nil); end
|
93
|
+
def combine_args(first_call_args, second_call_args); end
|
94
|
+
def on_or(node); end
|
95
|
+
def process_source(node); end
|
96
|
+
def two_start_end_with_calls(node = nil); end
|
97
|
+
end
|
98
|
+
class RuboCop::Cop::Performance::EndWith < RuboCop::Cop::Cop
|
99
|
+
def autocorrect(node); end
|
100
|
+
def literal_at_end?(regex_str); end
|
101
|
+
def on_send(node); end
|
102
|
+
def redundant_regex?(node = nil); end
|
103
|
+
end
|
104
|
+
class RuboCop::Cop::Performance::FixedSize < RuboCop::Cop::Cop
|
105
|
+
def allowed_argument?(arg); end
|
106
|
+
def allowed_parent?(node); end
|
107
|
+
def allowed_variable?(var); end
|
108
|
+
def contains_double_splat?(node); end
|
109
|
+
def contains_splat?(node); end
|
110
|
+
def counter(node = nil); end
|
111
|
+
def non_string_argument?(node); end
|
112
|
+
def on_send(node); end
|
113
|
+
end
|
114
|
+
class RuboCop::Cop::Performance::FlatMap < RuboCop::Cop::Cop
|
115
|
+
def autocorrect(node); end
|
116
|
+
def flat_map_candidate?(node = nil); end
|
117
|
+
def offense_for_levels(node, map_node, first_method, flatten); end
|
118
|
+
def offense_for_method(node, map_node, first_method, flatten); end
|
119
|
+
def on_send(node); end
|
120
|
+
def register_offense(node, map_node, first_method, flatten, message); end
|
121
|
+
include RuboCop::Cop::RangeHelp
|
122
|
+
end
|
123
|
+
class RuboCop::Cop::Performance::InefficientHashSearch < RuboCop::Cop::Cop
|
124
|
+
def autocorrect(node); end
|
125
|
+
def autocorrect_argument(node); end
|
126
|
+
def autocorrect_hash_expression(node); end
|
127
|
+
def autocorrect_method(node); end
|
128
|
+
def current_method(node); end
|
129
|
+
def inefficient_include?(node = nil); end
|
130
|
+
def message(node); end
|
131
|
+
def on_send(node); end
|
132
|
+
def use_long_method; end
|
133
|
+
end
|
134
|
+
class RuboCop::Cop::Performance::OpenStruct < RuboCop::Cop::Cop
|
135
|
+
def on_send(node); end
|
136
|
+
def open_struct(node = nil); end
|
137
|
+
end
|
138
|
+
class RuboCop::Cop::Performance::RangeInclude < RuboCop::Cop::Cop
|
139
|
+
def autocorrect(node); end
|
140
|
+
def on_send(node); end
|
141
|
+
def range_include(node = nil); end
|
142
|
+
end
|
143
|
+
class RuboCop::Cop::Performance::RedundantBlockCall < RuboCop::Cop::Cop
|
144
|
+
def args_include_block_pass?(blockcall); end
|
145
|
+
def autocorrect(node); end
|
146
|
+
def blockarg_assigned?(node0, param1); end
|
147
|
+
def blockarg_calls(node0, param1); end
|
148
|
+
def blockarg_def(node = nil); end
|
149
|
+
def calls_to_report(argname, body); end
|
150
|
+
def on_def(node); end
|
151
|
+
end
|
152
|
+
class RuboCop::Cop::Performance::RedundantMatch < RuboCop::Cop::Cop
|
153
|
+
def autocorrect(node); end
|
154
|
+
def match_call?(node = nil); end
|
155
|
+
def on_send(node); end
|
156
|
+
def only_truthiness_matters?(node = nil); end
|
157
|
+
end
|
158
|
+
class RuboCop::Cop::Performance::RedundantMerge < RuboCop::Cop::Cop
|
159
|
+
def autocorrect(node); end
|
160
|
+
def correct_multiple_elements(node, parent, new_source); end
|
161
|
+
def correct_single_element(node, new_source); end
|
162
|
+
def each_redundant_merge(node); end
|
163
|
+
def indent_width; end
|
164
|
+
def kwsplat_used?(pairs); end
|
165
|
+
def leading_spaces(node); end
|
166
|
+
def max_key_value_pairs; end
|
167
|
+
def message(node); end
|
168
|
+
def modifier_flow_control?(node = nil); end
|
169
|
+
def non_redundant_merge?(node, receiver, pairs); end
|
170
|
+
def non_redundant_pairs?(receiver, pairs); end
|
171
|
+
def non_redundant_value_used?(receiver, node); end
|
172
|
+
def on_send(node); end
|
173
|
+
def redundant_merge_candidate(node = nil); end
|
174
|
+
def rewrite_with_modifier(node, parent, new_source); end
|
175
|
+
def to_assignments(receiver, pairs); end
|
176
|
+
end
|
177
|
+
class RuboCop::Cop::Performance::RedundantMerge::EachWithObjectInspector
|
178
|
+
def each_with_object_node(node = nil); end
|
179
|
+
def eligible_receiver?; end
|
180
|
+
def initialize(node, receiver); end
|
181
|
+
def node; end
|
182
|
+
def receiver; end
|
183
|
+
def second_argument; end
|
184
|
+
def unwind(receiver); end
|
185
|
+
def value_used?; end
|
186
|
+
extend RuboCop::NodePattern::Macros
|
187
|
+
end
|
188
|
+
class RuboCop::Cop::Performance::RegexpMatch < RuboCop::Cop::Cop
|
189
|
+
def autocorrect(node); end
|
190
|
+
def check_condition(cond); end
|
191
|
+
def correct_operator(corrector, recv, arg, oper = nil); end
|
192
|
+
def correction_range(recv, arg); end
|
193
|
+
def find_last_match(body, range, scope_root); end
|
194
|
+
def last_match_used?(match_node); end
|
195
|
+
def last_matches(node0); end
|
196
|
+
def match_gvar?(sym); end
|
197
|
+
def match_method?(node = nil); end
|
198
|
+
def match_node?(node = nil); end
|
199
|
+
def match_operator?(node = nil); end
|
200
|
+
def match_threequals?(node = nil); end
|
201
|
+
def match_with_lvasgn?(node); end
|
202
|
+
def message(node); end
|
203
|
+
def next_match_pos(body, match_node_pos, scope_root); end
|
204
|
+
def on_case(node); end
|
205
|
+
def on_if(node); end
|
206
|
+
def scope_body(node); end
|
207
|
+
def scope_root(node); end
|
208
|
+
def search_match_nodes(node0); end
|
209
|
+
def swap_receiver_and_arg(corrector, recv, arg); end
|
210
|
+
extend RuboCop::Cop::TargetRubyVersion
|
211
|
+
end
|
212
|
+
class RuboCop::Cop::Performance::ReverseEach < RuboCop::Cop::Cop
|
213
|
+
def autocorrect(node); end
|
214
|
+
def on_send(node); end
|
215
|
+
def reverse_each?(node = nil); end
|
216
|
+
include RuboCop::Cop::RangeHelp
|
217
|
+
end
|
218
|
+
class RuboCop::Cop::Performance::Size < RuboCop::Cop::Cop
|
219
|
+
def allowed_parent?(node); end
|
220
|
+
def array?(node); end
|
221
|
+
def autocorrect(node); end
|
222
|
+
def eligible_node?(node); end
|
223
|
+
def eligible_receiver?(node); end
|
224
|
+
def hash?(node); end
|
225
|
+
def on_send(node); end
|
226
|
+
end
|
227
|
+
class RuboCop::Cop::Performance::StartWith < RuboCop::Cop::Cop
|
228
|
+
def autocorrect(node); end
|
229
|
+
def literal_at_start?(regex_str); end
|
230
|
+
def on_send(node); end
|
231
|
+
def redundant_regex?(node = nil); end
|
232
|
+
end
|
233
|
+
class RuboCop::Cop::Performance::StringReplacement < RuboCop::Cop::Cop
|
234
|
+
def accept_first_param?(first_param); end
|
235
|
+
def accept_second_param?(second_param); end
|
236
|
+
def autocorrect(node); end
|
237
|
+
def first_source(first_param); end
|
238
|
+
def message(node, first_source, second_source); end
|
239
|
+
def method_suffix(node); end
|
240
|
+
def offense(node, first_param, second_param); end
|
241
|
+
def on_send(node); end
|
242
|
+
def range(node); end
|
243
|
+
def remove_second_param(corrector, node, first_param); end
|
244
|
+
def replace_method(node, first, second, first_param, replacement); end
|
245
|
+
def replacement_method(node, first_source, second_source); end
|
246
|
+
def source_from_regex_constructor(node); end
|
247
|
+
def source_from_regex_literal(node); end
|
248
|
+
def string_replacement?(node = nil); end
|
249
|
+
include RuboCop::Cop::RangeHelp
|
250
|
+
end
|
251
|
+
class RuboCop::Cop::Performance::TimesMap < RuboCop::Cop::Cop
|
252
|
+
def autocorrect(node); end
|
253
|
+
def check(node); end
|
254
|
+
def message(map_or_collect, count); end
|
255
|
+
def on_block(node); end
|
256
|
+
def on_send(node); end
|
257
|
+
def times_map_call(node = nil); end
|
258
|
+
end
|
259
|
+
class RuboCop::Cop::Performance::UnfreezeString < RuboCop::Cop::Cop
|
260
|
+
def dup_string?(node = nil); end
|
261
|
+
def on_send(node); end
|
262
|
+
def string_new?(node = nil); end
|
263
|
+
extend RuboCop::Cop::TargetRubyVersion
|
264
|
+
end
|
265
|
+
class RuboCop::Cop::Performance::UriDefaultParser < RuboCop::Cop::Cop
|
266
|
+
def autocorrect(node); end
|
267
|
+
def on_send(node); end
|
268
|
+
def uri_parser_new?(node = nil); end
|
269
|
+
end
|
270
|
+
class RuboCop::Cop::Performance::ChainArrayAllocation < RuboCop::Cop::Cop
|
271
|
+
def flat_map_candidate?(node = nil); end
|
272
|
+
def on_send(node); end
|
273
|
+
include RuboCop::Cop::RangeHelp
|
274
|
+
end
|