packwerk 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.github/ISSUE_TEMPLATE/bug_report.md +27 -0
- data/.github/probots.yml +2 -0
- data/.github/pull_request_template.md +27 -0
- data/.github/workflows/ci.yml +50 -0
- data/.gitignore +12 -0
- data/.rubocop.yml +46 -0
- data/.ruby-version +1 -0
- data/CODEOWNERS +1 -0
- data/CODE_OF_CONDUCT.md +76 -0
- data/CONTRIBUTING.md +17 -0
- data/Gemfile +22 -0
- data/Gemfile.lock +236 -0
- data/LICENSE.md +7 -0
- data/README.md +73 -0
- data/Rakefile +13 -0
- data/TROUBLESHOOT.md +67 -0
- data/USAGE.md +250 -0
- data/bin/console +15 -0
- data/bin/setup +8 -0
- data/dev.yml +32 -0
- data/docs/cohesion.png +0 -0
- data/exe/packwerk +6 -0
- data/lib/packwerk.rb +44 -0
- data/lib/packwerk/application_validator.rb +343 -0
- data/lib/packwerk/association_inspector.rb +44 -0
- data/lib/packwerk/checking_deprecated_references.rb +40 -0
- data/lib/packwerk/cli.rb +238 -0
- data/lib/packwerk/configuration.rb +82 -0
- data/lib/packwerk/const_node_inspector.rb +44 -0
- data/lib/packwerk/constant_discovery.rb +60 -0
- data/lib/packwerk/constant_name_inspector.rb +22 -0
- data/lib/packwerk/dependency_checker.rb +28 -0
- data/lib/packwerk/deprecated_references.rb +92 -0
- data/lib/packwerk/file_processor.rb +43 -0
- data/lib/packwerk/files_for_processing.rb +67 -0
- data/lib/packwerk/formatters/progress_formatter.rb +46 -0
- data/lib/packwerk/generators/application_validation.rb +62 -0
- data/lib/packwerk/generators/configuration_file.rb +69 -0
- data/lib/packwerk/generators/inflections_file.rb +43 -0
- data/lib/packwerk/generators/root_package.rb +37 -0
- data/lib/packwerk/generators/templates/inflections.yml +6 -0
- data/lib/packwerk/generators/templates/package.yml +17 -0
- data/lib/packwerk/generators/templates/packwerk +23 -0
- data/lib/packwerk/generators/templates/packwerk.yml.erb +23 -0
- data/lib/packwerk/generators/templates/packwerk_validator_test.rb +11 -0
- data/lib/packwerk/graph.rb +74 -0
- data/lib/packwerk/inflections/custom.rb +33 -0
- data/lib/packwerk/inflections/default.rb +73 -0
- data/lib/packwerk/inflector.rb +41 -0
- data/lib/packwerk/node.rb +259 -0
- data/lib/packwerk/node_processor.rb +49 -0
- data/lib/packwerk/node_visitor.rb +22 -0
- data/lib/packwerk/offense.rb +44 -0
- data/lib/packwerk/output_styles.rb +41 -0
- data/lib/packwerk/package.rb +56 -0
- data/lib/packwerk/package_set.rb +59 -0
- data/lib/packwerk/parsed_constant_definitions.rb +62 -0
- data/lib/packwerk/parsers.rb +23 -0
- data/lib/packwerk/parsers/erb.rb +66 -0
- data/lib/packwerk/parsers/factory.rb +34 -0
- data/lib/packwerk/parsers/ruby.rb +42 -0
- data/lib/packwerk/privacy_checker.rb +45 -0
- data/lib/packwerk/reference.rb +6 -0
- data/lib/packwerk/reference_extractor.rb +81 -0
- data/lib/packwerk/reference_lister.rb +23 -0
- data/lib/packwerk/run_context.rb +103 -0
- data/lib/packwerk/sanity_checker.rb +10 -0
- data/lib/packwerk/spring_command.rb +28 -0
- data/lib/packwerk/updating_deprecated_references.rb +51 -0
- data/lib/packwerk/version.rb +6 -0
- data/lib/packwerk/violation_type.rb +13 -0
- data/library.yml +6 -0
- data/packwerk.gemspec +58 -0
- data/service.yml +6 -0
- data/shipit.rubygems.yml +1 -0
- data/sorbet/config +2 -0
- data/sorbet/rbi/gems/actioncable@6.1.0.alpha-d80c18a391e33552ae2d943e68af56946f883f65.rbi +840 -0
- data/sorbet/rbi/gems/actionmailbox@6.1.0.alpha-d80c18a391e33552ae2d943e68af56946f883f65.rbi +571 -0
- data/sorbet/rbi/gems/actionmailer@6.1.0.alpha-d80c18a391e33552ae2d943e68af56946f883f65.rbi +568 -0
- data/sorbet/rbi/gems/actionpack@6.1.0.alpha-d80c18a391e33552ae2d943e68af56946f883f65.rbi +5216 -0
- data/sorbet/rbi/gems/actiontext@6.1.0.alpha-d80c18a391e33552ae2d943e68af56946f883f65.rbi +663 -0
- data/sorbet/rbi/gems/actionview@6.1.0.alpha-d80c18a391e33552ae2d943e68af56946f883f65.rbi +2504 -0
- data/sorbet/rbi/gems/activejob@6.1.0.alpha-d80c18a391e33552ae2d943e68af56946f883f65.rbi +635 -0
- data/sorbet/rbi/gems/activemodel@6.1.0.alpha-d80c18a391e33552ae2d943e68af56946f883f65.rbi +1201 -0
- data/sorbet/rbi/gems/activerecord@6.1.0.alpha-d80c18a391e33552ae2d943e68af56946f883f65.rbi +8011 -0
- data/sorbet/rbi/gems/activestorage@6.1.0.alpha-d80c18a391e33552ae2d943e68af56946f883f65.rbi +904 -0
- data/sorbet/rbi/gems/activesupport@6.1.0.alpha-d80c18a391e33552ae2d943e68af56946f883f65.rbi +3888 -0
- data/sorbet/rbi/gems/ast@2.4.1.rbi +54 -0
- data/sorbet/rbi/gems/better_html@1.0.15.rbi +317 -0
- data/sorbet/rbi/gems/builder@3.2.4.rbi +8 -0
- data/sorbet/rbi/gems/byebug@11.1.3.rbi +8 -0
- data/sorbet/rbi/gems/coderay@1.1.3.rbi +8 -0
- data/sorbet/rbi/gems/colorize@0.8.1.rbi +40 -0
- data/sorbet/rbi/gems/commander@4.5.2.rbi +8 -0
- data/sorbet/rbi/gems/concurrent-ruby@1.1.6.rbi +1966 -0
- data/sorbet/rbi/gems/constant_resolver@0.1.5.rbi +26 -0
- data/sorbet/rbi/gems/crass@1.0.6.rbi +138 -0
- data/sorbet/rbi/gems/erubi@1.9.0.rbi +39 -0
- data/sorbet/rbi/gems/globalid@0.4.2.rbi +178 -0
- data/sorbet/rbi/gems/highline@2.0.3.rbi +8 -0
- data/sorbet/rbi/gems/html_tokenizer@0.0.7.rbi +46 -0
- data/sorbet/rbi/gems/i18n@1.8.2.rbi +633 -0
- data/sorbet/rbi/gems/jaro_winkler@1.5.4.rbi +8 -0
- data/sorbet/rbi/gems/loofah@2.5.0.rbi +272 -0
- data/sorbet/rbi/gems/m@1.5.1.rbi +108 -0
- data/sorbet/rbi/gems/mail@2.7.1.rbi +2490 -0
- data/sorbet/rbi/gems/marcel@0.3.3.rbi +30 -0
- data/sorbet/rbi/gems/method_source@1.0.0.rbi +76 -0
- data/sorbet/rbi/gems/mimemagic@0.3.5.rbi +47 -0
- data/sorbet/rbi/gems/mini_mime@1.0.2.rbi +71 -0
- data/sorbet/rbi/gems/mini_portile2@2.4.0.rbi +8 -0
- data/sorbet/rbi/gems/minitest@5.14.0.rbi +542 -0
- data/sorbet/rbi/gems/mocha@1.11.2.rbi +964 -0
- data/sorbet/rbi/gems/nio4r@2.5.2.rbi +89 -0
- data/sorbet/rbi/gems/nokogiri@1.10.9.rbi +1608 -0
- data/sorbet/rbi/gems/parallel@1.19.1.rbi +8 -0
- data/sorbet/rbi/gems/parlour@4.0.1.rbi +561 -0
- data/sorbet/rbi/gems/parser@2.7.1.4.rbi +1632 -0
- data/sorbet/rbi/gems/pry@0.13.1.rbi +8 -0
- data/sorbet/rbi/gems/rack-test@1.1.0.rbi +335 -0
- data/sorbet/rbi/gems/rack@2.2.2.rbi +1730 -0
- data/sorbet/rbi/gems/rails-dom-testing@2.0.3.rbi +123 -0
- data/sorbet/rbi/gems/rails-html-sanitizer@1.3.0.rbi +213 -0
- data/sorbet/rbi/gems/rails@6.1.0.alpha-d80c18a391e33552ae2d943e68af56946f883f65.rbi +8 -0
- data/sorbet/rbi/gems/railties@6.1.0.alpha-d80c18a391e33552ae2d943e68af56946f883f65.rbi +869 -0
- data/sorbet/rbi/gems/rainbow@3.0.0.rbi +155 -0
- data/sorbet/rbi/gems/rake@13.0.1.rbi +841 -0
- data/sorbet/rbi/gems/rexml@3.2.4.rbi +8 -0
- data/sorbet/rbi/gems/rubocop-performance@1.5.2.rbi +8 -0
- data/sorbet/rbi/gems/rubocop-shopify@1.0.2.rbi +8 -0
- data/sorbet/rbi/gems/rubocop-sorbet@0.3.7.rbi +8 -0
- data/sorbet/rbi/gems/rubocop@0.82.0.rbi +8 -0
- data/sorbet/rbi/gems/ruby-progressbar@1.10.1.rbi +8 -0
- data/sorbet/rbi/gems/smart_properties@1.15.0.rbi +168 -0
- data/sorbet/rbi/gems/spoom@1.0.4.rbi +418 -0
- data/sorbet/rbi/gems/spring@2.1.0.rbi +160 -0
- data/sorbet/rbi/gems/sprockets-rails@3.2.1.rbi +431 -0
- data/sorbet/rbi/gems/sprockets@4.0.0.rbi +1132 -0
- data/sorbet/rbi/gems/tapioca@0.4.5.rbi +518 -0
- data/sorbet/rbi/gems/thor@1.0.1.rbi +892 -0
- data/sorbet/rbi/gems/tzinfo@2.0.2.rbi +547 -0
- data/sorbet/rbi/gems/unicode-display_width@1.7.0.rbi +8 -0
- data/sorbet/rbi/gems/websocket-driver@0.7.1.rbi +438 -0
- data/sorbet/rbi/gems/websocket-extensions@0.1.4.rbi +71 -0
- data/sorbet/rbi/gems/zeitwerk@2.3.0.rbi +8 -0
- data/sorbet/tapioca/require.rb +25 -0
- data/static/packwerk-check-demo.png +0 -0
- data/static/packwerk_check.gif +0 -0
- data/static/packwerk_check_violation.gif +0 -0
- data/static/packwerk_update.gif +0 -0
- data/static/packwerk_validate.gif +0 -0
- metadata +341 -0
@@ -0,0 +1,54 @@
|
|
1
|
+
# DO NOT EDIT MANUALLY
|
2
|
+
# This is an autogenerated file for types exported from the `ast` gem.
|
3
|
+
# Please instead update this file by running `dev typecheck update`.
|
4
|
+
|
5
|
+
# typed: true
|
6
|
+
|
7
|
+
module AST
|
8
|
+
end
|
9
|
+
|
10
|
+
class AST::Node
|
11
|
+
def initialize(type, children = T.unsafe(nil), properties = T.unsafe(nil)); end
|
12
|
+
|
13
|
+
def +(array); end
|
14
|
+
def <<(element); end
|
15
|
+
def ==(other); end
|
16
|
+
def append(element); end
|
17
|
+
def children; end
|
18
|
+
def clone; end
|
19
|
+
def concat(array); end
|
20
|
+
def dup; end
|
21
|
+
def eql?(other); end
|
22
|
+
def hash; end
|
23
|
+
def inspect(indent = T.unsafe(nil)); end
|
24
|
+
def to_a; end
|
25
|
+
def to_ast; end
|
26
|
+
def to_s(indent = T.unsafe(nil)); end
|
27
|
+
def to_sexp(indent = T.unsafe(nil)); end
|
28
|
+
def to_sexp_array; end
|
29
|
+
def type; end
|
30
|
+
def updated(type = T.unsafe(nil), children = T.unsafe(nil), properties = T.unsafe(nil)); end
|
31
|
+
|
32
|
+
protected
|
33
|
+
|
34
|
+
def assign_properties(properties); end
|
35
|
+
def fancy_type; end
|
36
|
+
|
37
|
+
private
|
38
|
+
|
39
|
+
def original_dup; end
|
40
|
+
end
|
41
|
+
|
42
|
+
class AST::Processor
|
43
|
+
include(::AST::Processor::Mixin)
|
44
|
+
end
|
45
|
+
|
46
|
+
module AST::Processor::Mixin
|
47
|
+
def handler_missing(node); end
|
48
|
+
def process(node); end
|
49
|
+
def process_all(nodes); end
|
50
|
+
end
|
51
|
+
|
52
|
+
module AST::Sexp
|
53
|
+
def s(type, *children); end
|
54
|
+
end
|
@@ -0,0 +1,317 @@
|
|
1
|
+
# DO NOT EDIT MANUALLY
|
2
|
+
# This is an autogenerated file for types exported from the `better_html` gem.
|
3
|
+
# Please instead update this file by running `dev typecheck update`.
|
4
|
+
|
5
|
+
# typed: true
|
6
|
+
|
7
|
+
module BetterHtml
|
8
|
+
class << self
|
9
|
+
def config; end
|
10
|
+
def config=(new_config); end
|
11
|
+
def configure; end
|
12
|
+
end
|
13
|
+
end
|
14
|
+
|
15
|
+
module BetterHtml::AST
|
16
|
+
end
|
17
|
+
|
18
|
+
class BetterHtml::AST::Iterator
|
19
|
+
def initialize(types, &block); end
|
20
|
+
|
21
|
+
def traverse(node); end
|
22
|
+
def traverse_all(nodes); end
|
23
|
+
|
24
|
+
class << self
|
25
|
+
def descendants(root_node, type); end
|
26
|
+
end
|
27
|
+
end
|
28
|
+
|
29
|
+
class BetterHtml::AST::Node < ::AST::Node
|
30
|
+
def descendants(*types); end
|
31
|
+
def loc; end
|
32
|
+
def location; end
|
33
|
+
end
|
34
|
+
|
35
|
+
class BetterHtml::BetterErb
|
36
|
+
def content_types; end
|
37
|
+
def content_types=(val); end
|
38
|
+
|
39
|
+
class << self
|
40
|
+
def content_types; end
|
41
|
+
def content_types=(val); end
|
42
|
+
def prepend!; end
|
43
|
+
end
|
44
|
+
end
|
45
|
+
|
46
|
+
module BetterHtml::BetterErb::ConditionalImplementation
|
47
|
+
def call(template, source = T.unsafe(nil)); end
|
48
|
+
|
49
|
+
private
|
50
|
+
|
51
|
+
def generate(template, source); end
|
52
|
+
end
|
53
|
+
|
54
|
+
class BetterHtml::BetterErb::ErubiImplementation < ::ActionView::Template::Handlers::ERB::Erubi
|
55
|
+
include(::BetterHtml::BetterErb::RuntimeChecks)
|
56
|
+
|
57
|
+
def add_code(code); end
|
58
|
+
def add_expression(indicator, code); end
|
59
|
+
def add_text(text); end
|
60
|
+
|
61
|
+
private
|
62
|
+
|
63
|
+
def escape_text(text); end
|
64
|
+
end
|
65
|
+
|
66
|
+
module BetterHtml::BetterErb::RuntimeChecks
|
67
|
+
def initialize(erb, config: T.unsafe(nil), **options); end
|
68
|
+
|
69
|
+
def validate!; end
|
70
|
+
|
71
|
+
private
|
72
|
+
|
73
|
+
def add_expr_auto_escaped(src, code, auto_escape); end
|
74
|
+
def block_check(src, code); end
|
75
|
+
def build_location(line, column, length); end
|
76
|
+
def check_attribute_name(type, start, stop, line, column); end
|
77
|
+
def check_parser_errors; end
|
78
|
+
def check_quoted_value(type, start, stop, line, column); end
|
79
|
+
def check_tag_name(type, start, stop, line, column); end
|
80
|
+
def check_token(type, *args); end
|
81
|
+
def check_unquoted_value(type, start, stop, line, column); end
|
82
|
+
def class_name; end
|
83
|
+
def extract_line(line); end
|
84
|
+
def parser_context; end
|
85
|
+
def wrap_method; end
|
86
|
+
end
|
87
|
+
|
88
|
+
class BetterHtml::BetterErb::ValidatedOutputBuffer
|
89
|
+
def html_safe; end
|
90
|
+
def html_safe?; end
|
91
|
+
def to_s; end
|
92
|
+
|
93
|
+
class << self
|
94
|
+
def wrap(output, context, code, auto_escape); end
|
95
|
+
end
|
96
|
+
end
|
97
|
+
|
98
|
+
class BetterHtml::BetterErb::ValidatedOutputBuffer::Context
|
99
|
+
def initialize(output, context, code, auto_escape); end
|
100
|
+
|
101
|
+
def safe_after_attribute_name_append=(value); end
|
102
|
+
def safe_after_equal_append=(value); end
|
103
|
+
def safe_attribute_name_append=(value); end
|
104
|
+
def safe_comment_append=(value); end
|
105
|
+
def safe_none_append=(value); end
|
106
|
+
def safe_quoted_value_append=(value); end
|
107
|
+
def safe_rawtext_append=(value); end
|
108
|
+
def safe_space_after_attribute_append=(value); end
|
109
|
+
def safe_tag_append=(value); end
|
110
|
+
def safe_tag_name_append=(value); end
|
111
|
+
def safe_unquoted_value_append=(value); end
|
112
|
+
|
113
|
+
private
|
114
|
+
|
115
|
+
def auto_escape_html_safe_value(arg); end
|
116
|
+
def properly_escaped(value); end
|
117
|
+
end
|
118
|
+
|
119
|
+
class BetterHtml::Config
|
120
|
+
include(::SmartProperties)
|
121
|
+
extend(::SmartProperties::ClassMethods)
|
122
|
+
|
123
|
+
def javascript_attribute_name?(name); end
|
124
|
+
def javascript_safe_method?(name); end
|
125
|
+
def lodash_safe_javascript_expression?(code); end
|
126
|
+
end
|
127
|
+
|
128
|
+
class BetterHtml::DontInterpolateHere < ::BetterHtml::InterpolatorError
|
129
|
+
end
|
130
|
+
|
131
|
+
class BetterHtml::Errors < ::Array
|
132
|
+
def add(_); end
|
133
|
+
end
|
134
|
+
|
135
|
+
module BetterHtml::Helpers
|
136
|
+
def html_attributes(args); end
|
137
|
+
end
|
138
|
+
|
139
|
+
class BetterHtml::HtmlAttributes
|
140
|
+
def initialize(data); end
|
141
|
+
|
142
|
+
def to_s; end
|
143
|
+
end
|
144
|
+
|
145
|
+
class BetterHtml::HtmlError < ::RuntimeError
|
146
|
+
end
|
147
|
+
|
148
|
+
class BetterHtml::InterpolatorError < ::RuntimeError
|
149
|
+
end
|
150
|
+
|
151
|
+
class BetterHtml::Parser
|
152
|
+
def initialize(buffer, template_language: T.unsafe(nil)); end
|
153
|
+
|
154
|
+
def ast; end
|
155
|
+
def inspect; end
|
156
|
+
def nodes_with_type(*type); end
|
157
|
+
def parser_errors; end
|
158
|
+
def template_language; end
|
159
|
+
|
160
|
+
private
|
161
|
+
|
162
|
+
def build_attribute_name_node(tokens); end
|
163
|
+
def build_attribute_node(tokens); end
|
164
|
+
def build_attribute_value_node(tokens); end
|
165
|
+
def build_cdata_node(tokens); end
|
166
|
+
def build_comment_node(tokens); end
|
167
|
+
def build_document_node; end
|
168
|
+
def build_erb_node(tokens); end
|
169
|
+
def build_interpolation_node(tokens); end
|
170
|
+
def build_location(enumerable); end
|
171
|
+
def build_lodash_node(tokens); end
|
172
|
+
def build_nameless_attribute_node(tokens); end
|
173
|
+
def build_node(type, tokens, pre: T.unsafe(nil), post: T.unsafe(nil)); end
|
174
|
+
def build_tag_attributes_node(tokens); end
|
175
|
+
def build_tag_name_node(tokens); end
|
176
|
+
def build_tag_node(tokens); end
|
177
|
+
def build_text_node(tokens); end
|
178
|
+
def empty_location; end
|
179
|
+
def shift_all(tokens, *types); end
|
180
|
+
def shift_all_with_interpolation(tokens, *types); end
|
181
|
+
def shift_between(tokens, start_type, end_type); end
|
182
|
+
def shift_between_with_interpolation(tokens, start_type, end_type); end
|
183
|
+
def shift_single(tokens, *types); end
|
184
|
+
def shift_until(tokens, *types); end
|
185
|
+
def shift_until_with_interpolation(tokens, *types); end
|
186
|
+
def wrap_token(object); end
|
187
|
+
def wrap_tokens(enumerable); end
|
188
|
+
end
|
189
|
+
|
190
|
+
class BetterHtml::Parser::Error < ::BetterHtml::HtmlError
|
191
|
+
def initialize(message, location:); end
|
192
|
+
|
193
|
+
def loc; end
|
194
|
+
def location; end
|
195
|
+
end
|
196
|
+
|
197
|
+
BetterHtml::Parser::INTERPOLATION_TYPES = T.let(T.unsafe(nil), Array)
|
198
|
+
|
199
|
+
class BetterHtml::Railtie < ::Rails::Railtie
|
200
|
+
end
|
201
|
+
|
202
|
+
module BetterHtml::Tokenizer
|
203
|
+
end
|
204
|
+
|
205
|
+
class BetterHtml::Tokenizer::BaseErb < ::Erubi::Engine
|
206
|
+
def initialize(buffer); end
|
207
|
+
|
208
|
+
def current_position; end
|
209
|
+
def tokens; end
|
210
|
+
|
211
|
+
private
|
212
|
+
|
213
|
+
def add_code(code); end
|
214
|
+
def add_erb_tokens(ltrim, indicator, code, rtrim); end
|
215
|
+
def add_expression(indicator, code); end
|
216
|
+
def add_token(type, begin_pos, end_pos); end
|
217
|
+
def append(text); end
|
218
|
+
end
|
219
|
+
|
220
|
+
BetterHtml::Tokenizer::BaseErb::EXPR_TRIM_MATCHER = T.let(T.unsafe(nil), Regexp)
|
221
|
+
|
222
|
+
BetterHtml::Tokenizer::BaseErb::REGEXP_WITHOUT_TRIM = T.let(T.unsafe(nil), Regexp)
|
223
|
+
|
224
|
+
BetterHtml::Tokenizer::BaseErb::STMT_TRIM_MATCHER = T.let(T.unsafe(nil), Regexp)
|
225
|
+
|
226
|
+
class BetterHtml::Tokenizer::HtmlErb < ::BetterHtml::Tokenizer::BaseErb
|
227
|
+
def initialize(buffer); end
|
228
|
+
|
229
|
+
def current_position; end
|
230
|
+
def parser; end
|
231
|
+
|
232
|
+
private
|
233
|
+
|
234
|
+
def add_text(text); end
|
235
|
+
def append(text); end
|
236
|
+
end
|
237
|
+
|
238
|
+
class BetterHtml::Tokenizer::HtmlLodash
|
239
|
+
def initialize(buffer); end
|
240
|
+
|
241
|
+
def lodash_escape; end
|
242
|
+
def lodash_escape=(val); end
|
243
|
+
def lodash_evaluate; end
|
244
|
+
def lodash_evaluate=(val); end
|
245
|
+
def lodash_interpolate; end
|
246
|
+
def lodash_interpolate=(val); end
|
247
|
+
def parser; end
|
248
|
+
def tokens; end
|
249
|
+
|
250
|
+
private
|
251
|
+
|
252
|
+
def add_lodash_tokens(indicator, code); end
|
253
|
+
def add_text(text); end
|
254
|
+
def add_token(type, begin_pos: T.unsafe(nil), end_pos: T.unsafe(nil)); end
|
255
|
+
def scan!; end
|
256
|
+
def scan_pattern; end
|
257
|
+
|
258
|
+
class << self
|
259
|
+
def lodash_escape; end
|
260
|
+
def lodash_escape=(val); end
|
261
|
+
def lodash_evaluate; end
|
262
|
+
def lodash_evaluate=(val); end
|
263
|
+
def lodash_interpolate; end
|
264
|
+
def lodash_interpolate=(val); end
|
265
|
+
end
|
266
|
+
end
|
267
|
+
|
268
|
+
class BetterHtml::Tokenizer::JavascriptErb < ::BetterHtml::Tokenizer::BaseErb
|
269
|
+
|
270
|
+
private
|
271
|
+
|
272
|
+
def add_text(text); end
|
273
|
+
end
|
274
|
+
|
275
|
+
class BetterHtml::Tokenizer::Location < ::Parser::Source::Range
|
276
|
+
def initialize(buffer, begin_pos, end_pos); end
|
277
|
+
|
278
|
+
def adjust(begin_pos: T.unsafe(nil), end_pos: T.unsafe(nil)); end
|
279
|
+
def begin; end
|
280
|
+
def end; end
|
281
|
+
def line_range; end
|
282
|
+
def line_source_with_underline; end
|
283
|
+
def offset(offset); end
|
284
|
+
def range; end
|
285
|
+
def resize(new_size); end
|
286
|
+
def start_column; end
|
287
|
+
def start_line; end
|
288
|
+
def stop_column; end
|
289
|
+
def stop_line; end
|
290
|
+
def with(begin_pos: T.unsafe(nil), end_pos: T.unsafe(nil)); end
|
291
|
+
end
|
292
|
+
|
293
|
+
class BetterHtml::Tokenizer::Token
|
294
|
+
def initialize(type:, loc:); end
|
295
|
+
|
296
|
+
def inspect; end
|
297
|
+
def loc; end
|
298
|
+
def type; end
|
299
|
+
end
|
300
|
+
|
301
|
+
class BetterHtml::Tokenizer::TokenArray
|
302
|
+
def initialize(list); end
|
303
|
+
|
304
|
+
def any?; end
|
305
|
+
def current; end
|
306
|
+
def empty?; end
|
307
|
+
def last; end
|
308
|
+
def pop; end
|
309
|
+
def shift; end
|
310
|
+
def size; end
|
311
|
+
def trim(type); end
|
312
|
+
end
|
313
|
+
|
314
|
+
class BetterHtml::UnsafeHtmlError < ::BetterHtml::InterpolatorError
|
315
|
+
end
|
316
|
+
|
317
|
+
BetterHtml::VERSION = T.let(T.unsafe(nil), String)
|
@@ -0,0 +1,8 @@
|
|
1
|
+
# DO NOT EDIT MANUALLY
|
2
|
+
# This is an autogenerated file for types exported from the `builder` gem.
|
3
|
+
# Please instead update this file by running `dev typecheck update`.
|
4
|
+
|
5
|
+
# typed: true
|
6
|
+
|
7
|
+
# THIS IS AN EMPTY RBI FILE.
|
8
|
+
# see https://github.com/Shopify/tapioca/blob/master/README.md#manual-gem-requires
|
@@ -0,0 +1,8 @@
|
|
1
|
+
# DO NOT EDIT MANUALLY
|
2
|
+
# This is an autogenerated file for types exported from the `byebug` gem.
|
3
|
+
# Please instead update this file by running `dev typecheck update`.
|
4
|
+
|
5
|
+
# typed: true
|
6
|
+
|
7
|
+
# THIS IS AN EMPTY RBI FILE.
|
8
|
+
# see https://github.com/Shopify/tapioca/blob/master/README.md#manual-gem-requires
|
@@ -0,0 +1,8 @@
|
|
1
|
+
# DO NOT EDIT MANUALLY
|
2
|
+
# This is an autogenerated file for types exported from the `coderay` gem.
|
3
|
+
# Please instead update this file by running `dev typecheck update`.
|
4
|
+
|
5
|
+
# typed: true
|
6
|
+
|
7
|
+
# THIS IS AN EMPTY RBI FILE.
|
8
|
+
# see https://github.com/Shopify/tapioca/blob/master/README.md#manual-gem-requires
|
@@ -0,0 +1,40 @@
|
|
1
|
+
# DO NOT EDIT MANUALLY
|
2
|
+
# This is an autogenerated file for types exported from the `colorize` gem.
|
3
|
+
# Please instead update this file by running `dev typecheck update`.
|
4
|
+
|
5
|
+
# typed: true
|
6
|
+
|
7
|
+
module Colorize
|
8
|
+
end
|
9
|
+
|
10
|
+
module Colorize::ClassMethods
|
11
|
+
def color_codes; end
|
12
|
+
def color_matrix(_ = T.unsafe(nil)); end
|
13
|
+
def color_methods; end
|
14
|
+
def color_samples; end
|
15
|
+
def colors; end
|
16
|
+
def disable_colorization(value = T.unsafe(nil)); end
|
17
|
+
def disable_colorization=(value); end
|
18
|
+
def mode_codes; end
|
19
|
+
def modes; end
|
20
|
+
def modes_methods; end
|
21
|
+
end
|
22
|
+
|
23
|
+
module Colorize::InstanceMethods
|
24
|
+
def colorize(params); end
|
25
|
+
def colorized?; end
|
26
|
+
def uncolorize; end
|
27
|
+
|
28
|
+
private
|
29
|
+
|
30
|
+
def background_color(color); end
|
31
|
+
def color(color); end
|
32
|
+
def color_from_symbol(match, symbol); end
|
33
|
+
def colors_from_hash(match, hash); end
|
34
|
+
def colors_from_params(match, params); end
|
35
|
+
def defaults_colors(match); end
|
36
|
+
def mode(mode); end
|
37
|
+
def require_windows_libs; end
|
38
|
+
def scan_for_colors; end
|
39
|
+
def split_colors(match); end
|
40
|
+
end
|
@@ -0,0 +1,8 @@
|
|
1
|
+
# DO NOT EDIT MANUALLY
|
2
|
+
# This is an autogenerated file for types exported from the `commander` gem.
|
3
|
+
# Please instead update this file by running `dev typecheck update`.
|
4
|
+
|
5
|
+
# typed: true
|
6
|
+
|
7
|
+
# THIS IS AN EMPTY RBI FILE.
|
8
|
+
# see https://github.com/Shopify/tapioca/blob/master/README.md#manual-gem-requires
|