checkoff 0.201.0 → 0.203.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (148) hide show
  1. checksums.yaml +4 -4
  2. data/.circleci/config.yml +130 -28
  3. data/.git-hooks/pre_commit/solargraph_typecheck.rb +12 -11
  4. data/.overcommit.yml +27 -2
  5. data/.rubocop.yml +20 -2
  6. data/.rubocop_todo.yml +90 -0
  7. data/.solargraph.yml +10 -1
  8. data/DEVELOPMENT.md +1 -1
  9. data/Gemfile +11 -8
  10. data/Gemfile.lock +66 -42
  11. data/LICENSE +1 -1
  12. data/Makefile +14 -12
  13. data/bin/brakeman +27 -0
  14. data/bin/overcommit_branch +117 -0
  15. data/bin/spoom +27 -0
  16. data/bin/srb +27 -0
  17. data/bin/srb-rbi +27 -0
  18. data/bin/tapioca +27 -0
  19. data/config/annotations_misc.rb +35 -0
  20. data/docs/cookiecutter_input.json +1 -0
  21. data/fix.sh +14 -6
  22. data/lib/checkoff/internal/search_url/simple_param_converter.rb +11 -0
  23. data/lib/checkoff/version.rb +1 -1
  24. data/requirements_dev.txt +1 -1
  25. data/sorbet/config +4 -0
  26. data/sorbet/rbi/annotations/.gitattributes +1 -0
  27. data/sorbet/rbi/annotations/activesupport.rbi +453 -0
  28. data/sorbet/rbi/annotations/faraday.rbi +17 -0
  29. data/sorbet/rbi/annotations/minitest.rbi +119 -0
  30. data/sorbet/rbi/annotations/mocha.rbi +34 -0
  31. data/sorbet/rbi/annotations/rainbow.rbi +269 -0
  32. data/sorbet/rbi/annotations/webmock.rbi +9 -0
  33. data/sorbet/rbi/dsl/.gitattributes +1 -0
  34. data/sorbet/rbi/dsl/active_support/callbacks.rbi +23 -0
  35. data/sorbet/rbi/gems/.gitattributes +1 -0
  36. data/sorbet/rbi/gems/activesupport@7.1.3.rbi +18749 -0
  37. data/sorbet/rbi/gems/addressable@2.8.6.rbi +1994 -0
  38. data/sorbet/rbi/gems/ansi@1.5.0.rbi +688 -0
  39. data/sorbet/rbi/gems/asana@0.10.6-ab9393136d9ca59b75e42a661fdddc1c65c8f7c3.rbi +6142 -0
  40. data/sorbet/rbi/gems/ast@2.4.2.rbi +585 -0
  41. data/sorbet/rbi/gems/backport@1.2.0.rbi +523 -0
  42. data/sorbet/rbi/gems/base64@0.2.0.rbi +509 -0
  43. data/sorbet/rbi/gems/benchmark@0.4.0.rbi +618 -0
  44. data/sorbet/rbi/gems/bigdecimal@3.1.5.rbi +78 -0
  45. data/sorbet/rbi/gems/builder@3.2.4.rbi +505 -0
  46. data/sorbet/rbi/gems/bump@0.10.0.rbi +169 -0
  47. data/sorbet/rbi/gems/cache@0.4.1.rbi +211 -0
  48. data/sorbet/rbi/gems/cache_method@0.2.7.rbi +293 -0
  49. data/sorbet/rbi/gems/chef-utils@18.3.0.rbi +9 -0
  50. data/sorbet/rbi/gems/childprocess@5.1.0.rbi +383 -0
  51. data/sorbet/rbi/gems/coderay@1.1.3.rbi +3427 -0
  52. data/sorbet/rbi/gems/concurrent-ruby@1.2.3.rbi +11591 -0
  53. data/sorbet/rbi/gems/connection_pool@2.4.1.rbi +9 -0
  54. data/sorbet/rbi/gems/crack@0.4.5.rbi +145 -0
  55. data/sorbet/rbi/gems/diff-lcs@1.5.1.rbi +969 -0
  56. data/sorbet/rbi/gems/docile@1.4.0.rbi +377 -0
  57. data/sorbet/rbi/gems/drb@2.2.0.rbi +1347 -0
  58. data/sorbet/rbi/gems/e2mmap@0.1.0.rbi +9 -0
  59. data/sorbet/rbi/gems/erubi@1.13.0.rbi +152 -0
  60. data/sorbet/rbi/gems/faraday-em_http@1.0.0.rbi +222 -0
  61. data/sorbet/rbi/gems/faraday-em_synchrony@1.0.0.rbi +126 -0
  62. data/sorbet/rbi/gems/faraday-excon@1.1.0.rbi +136 -0
  63. data/sorbet/rbi/gems/faraday-httpclient@1.0.1.rbi +145 -0
  64. data/sorbet/rbi/gems/faraday-multipart@1.0.4.rbi +259 -0
  65. data/sorbet/rbi/gems/faraday-net_http@1.0.1.rbi +142 -0
  66. data/sorbet/rbi/gems/faraday-net_http_persistent@1.2.0.rbi +118 -0
  67. data/sorbet/rbi/gems/faraday-patron@1.0.0.rbi +125 -0
  68. data/sorbet/rbi/gems/faraday-rack@1.0.0.rbi +133 -0
  69. data/sorbet/rbi/gems/faraday-retry@1.0.3.rbi +198 -0
  70. data/sorbet/rbi/gems/faraday@1.10.3.rbi +2729 -0
  71. data/sorbet/rbi/gems/faraday_middleware-multi_json@0.0.6.rbi +29 -0
  72. data/sorbet/rbi/gems/faraday_middleware@1.2.0.rbi +1004 -0
  73. data/sorbet/rbi/gems/gli@2.21.1.rbi +9 -0
  74. data/sorbet/rbi/gems/hashdiff@1.0.1.rbi +351 -0
  75. data/sorbet/rbi/gems/i18n@1.14.1.rbi +2326 -0
  76. data/sorbet/rbi/gems/imagen@0.1.8.rbi +340 -0
  77. data/sorbet/rbi/gems/iniparse@1.5.0.rbi +899 -0
  78. data/sorbet/rbi/gems/jaro_winkler@1.6.0.rbi +22 -0
  79. data/sorbet/rbi/gems/json@2.7.1.rbi +1562 -0
  80. data/sorbet/rbi/gems/jwt@2.7.1.rbi +1405 -0
  81. data/sorbet/rbi/gems/kramdown-parser-gfm@1.1.0.rbi +128 -0
  82. data/sorbet/rbi/gems/kramdown@2.4.0.rbi +3272 -0
  83. data/sorbet/rbi/gems/language_server-protocol@3.17.0.3.rbi +14238 -0
  84. data/sorbet/rbi/gems/logger@1.6.1.rbi +920 -0
  85. data/sorbet/rbi/gems/mdl@0.13.0.rbi +445 -0
  86. data/sorbet/rbi/gems/method_source@1.0.0.rbi +273 -0
  87. data/sorbet/rbi/gems/mime-types-data@3.2023.1205.rbi +127 -0
  88. data/sorbet/rbi/gems/mime-types@3.5.1.rbi +1252 -0
  89. data/sorbet/rbi/gems/minitest-profile@0.0.2.rbi +136 -0
  90. data/sorbet/rbi/gems/minitest-reporters@1.6.1.rbi +1014 -0
  91. data/sorbet/rbi/gems/minitest@5.21.1.rbi +1539 -0
  92. data/sorbet/rbi/gems/mixlib-cli@2.1.8.rbi +314 -0
  93. data/sorbet/rbi/gems/mixlib-config@3.0.27.rbi +581 -0
  94. data/sorbet/rbi/gems/mixlib-shellout@3.2.7.rbi +629 -0
  95. data/sorbet/rbi/gems/mocha@2.1.0.rbi +12 -0
  96. data/sorbet/rbi/gems/multi_json@1.15.0.rbi +268 -0
  97. data/sorbet/rbi/gems/multi_xml@0.6.0.rbi +102 -0
  98. data/sorbet/rbi/gems/multipart-post@2.3.0.rbi +234 -0
  99. data/sorbet/rbi/gems/mutex_m@0.2.0.rbi +94 -0
  100. data/sorbet/rbi/gems/netrc@0.11.0.rbi +159 -0
  101. data/sorbet/rbi/gems/nokogiri@1.16.7.rbi +7311 -0
  102. data/sorbet/rbi/gems/oauth2@1.4.11.rbi +833 -0
  103. data/sorbet/rbi/gems/ostruct@0.6.1.rbi +354 -0
  104. data/sorbet/rbi/gems/overcommit@0.64.0.rbi +2400 -0
  105. data/sorbet/rbi/gems/parallel@1.23.0.rbi +274 -0
  106. data/sorbet/rbi/gems/parser@3.2.2.4.rbi +7253 -0
  107. data/sorbet/rbi/gems/prism@1.2.0.rbi +39085 -0
  108. data/sorbet/rbi/gems/pry@0.14.2.rbi +10070 -0
  109. data/sorbet/rbi/gems/public_suffix@5.0.4.rbi +936 -0
  110. data/sorbet/rbi/gems/punchlist@1.3.2.rbi +173 -0
  111. data/sorbet/rbi/gems/racc@1.7.3.rbi +162 -0
  112. data/sorbet/rbi/gems/rack@3.0.8.rbi +5184 -0
  113. data/sorbet/rbi/gems/rainbow@3.1.1.rbi +403 -0
  114. data/sorbet/rbi/gems/rake@13.1.0.rbi +3022 -0
  115. data/sorbet/rbi/gems/rbi@0.2.1.rbi +4535 -0
  116. data/sorbet/rbi/gems/rbs@2.8.4.rbi +5613 -0
  117. data/sorbet/rbi/gems/regexp_parser@2.8.3.rbi +3750 -0
  118. data/sorbet/rbi/gems/reverse_markdown@2.1.1.rbi +390 -0
  119. data/sorbet/rbi/gems/rexml@3.2.6.rbi +4888 -0
  120. data/sorbet/rbi/gems/rubocop-ast@1.30.0.rbi +7061 -0
  121. data/sorbet/rbi/gems/rubocop-minitest@0.34.5.rbi +2577 -0
  122. data/sorbet/rbi/gems/rubocop-performance@1.20.2.rbi +3262 -0
  123. data/sorbet/rbi/gems/rubocop-rake@0.6.0.rbi +329 -0
  124. data/sorbet/rbi/gems/rubocop@1.59.0.rbi +57238 -0
  125. data/sorbet/rbi/gems/ruby-progressbar@1.13.0.rbi +1318 -0
  126. data/sorbet/rbi/gems/ruby2_keywords@0.0.5.rbi +9 -0
  127. data/sorbet/rbi/gems/rugged@1.6.3.rbi +1577 -0
  128. data/sorbet/rbi/gems/simplecov-html@0.12.3.rbi +217 -0
  129. data/sorbet/rbi/gems/simplecov-lcov@0.8.0.rbi +256 -0
  130. data/sorbet/rbi/gems/simplecov@0.22.0.rbi +2149 -0
  131. data/sorbet/rbi/gems/simplecov_json_formatter@0.1.4.rbi +9 -0
  132. data/sorbet/rbi/gems/solargraph@0.50.1-904b9304770a59fac393c5cc3cad481e5bdf0fd8.rbi +9396 -0
  133. data/sorbet/rbi/gems/source_finder@3.2.1.rbi +317 -0
  134. data/sorbet/rbi/gems/spoom@1.5.0.rbi +4932 -0
  135. data/sorbet/rbi/gems/tapioca@0.16.4.rbi +3604 -0
  136. data/sorbet/rbi/gems/thor@1.3.2.rbi +4378 -0
  137. data/sorbet/rbi/gems/tilt@2.4.0.rbi +933 -0
  138. data/sorbet/rbi/gems/tomlrb@2.0.3.rbi +9 -0
  139. data/sorbet/rbi/gems/tzinfo@2.0.6.rbi +5918 -0
  140. data/sorbet/rbi/gems/undercover@0.5.0.rbi +433 -0
  141. data/sorbet/rbi/gems/unicode-display_width@2.5.0.rbi +66 -0
  142. data/sorbet/rbi/gems/webmock@3.19.1.rbi +1769 -0
  143. data/sorbet/rbi/gems/yard-sorbet@0.9.0.rbi +435 -0
  144. data/sorbet/rbi/gems/yard@0.9.34.rbi +18247 -0
  145. data/sorbet/rbi/todo.rbi +11 -0
  146. data/sorbet/tapioca/config.yml +13 -0
  147. data/sorbet/tapioca/require.rb +4 -0
  148. metadata +134 -3
@@ -0,0 +1,435 @@
1
+ # typed: true
2
+
3
+ # DO NOT EDIT MANUALLY
4
+ # This is an autogenerated file for types exported from the `yard-sorbet` gem.
5
+ # Please instead update this file by running `bin/tapioca gem yard-sorbet`.
6
+
7
+
8
+ class YARD::Handlers::Ruby::ClassHandler < ::YARD::Handlers::Ruby::Base
9
+ include ::YARDSorbet::Handlers::StructClassHandler
10
+ end
11
+
12
+ # Types are documentation
13
+ #
14
+ # source://yard-sorbet//lib/yard-sorbet/version.rb#5
15
+ module YARDSorbet; end
16
+
17
+ # Extract & re-add directives to a docstring
18
+ #
19
+ # source://yard-sorbet//lib/yard-sorbet/directives.rb#6
20
+ module YARDSorbet::Directives
21
+ class << self
22
+ # source://yard-sorbet//lib/yard-sorbet/directives.rb#21
23
+ sig { params(docstring: ::String, directives: T::Array[::String]).void }
24
+ def add_directives(docstring, directives); end
25
+
26
+ # source://yard-sorbet//lib/yard-sorbet/directives.rb#10
27
+ sig { params(docstring: T.nilable(::String)).returns([::YARD::Docstring, T::Array[::String]]) }
28
+ def extract_directives(docstring); end
29
+ end
30
+ end
31
+
32
+ # Custom YARD Handlers
33
+ #
34
+ # @see https://rubydoc.info/gems/yard/YARD/Handlers/Base YARD Base Handler documentation
35
+ #
36
+ # source://yard-sorbet//lib/yard-sorbet/handlers.rb#7
37
+ module YARDSorbet::Handlers; end
38
+
39
+ # Applies an `@abstract` tag to `abstract!`/`interface!` modules (if not alerady present).
40
+ #
41
+ # source://yard-sorbet//lib/yard-sorbet/handlers/abstract_dsl_handler.rb#7
42
+ class YARDSorbet::Handlers::AbstractDSLHandler < ::YARD::Handlers::Ruby::Base
43
+ # source://yard-sorbet//lib/yard-sorbet/handlers/abstract_dsl_handler.rb#21
44
+ sig { void }
45
+ def process; end
46
+ end
47
+
48
+ # Extra text for class namespaces
49
+ #
50
+ # source://yard-sorbet//lib/yard-sorbet/handlers/abstract_dsl_handler.rb#18
51
+ YARDSorbet::Handlers::AbstractDSLHandler::CLASS_TAG_TEXT = T.let(T.unsafe(nil), String)
52
+
53
+ # The text accompanying the `@abstract` tag.
54
+ #
55
+ # @see https://github.com/lsegal/yard/blob/main/templates/default/docstring/html/abstract.erb The `@abstract` tag template
56
+ #
57
+ # source://yard-sorbet//lib/yard-sorbet/handlers/abstract_dsl_handler.rb#16
58
+ YARDSorbet::Handlers::AbstractDSLHandler::TAG_TEXT = T.let(T.unsafe(nil), String)
59
+
60
+ # Handle `enums` calls, registering enum values as constants
61
+ #
62
+ # source://yard-sorbet//lib/yard-sorbet/handlers/enums_handler.rb#7
63
+ class YARDSorbet::Handlers::EnumsHandler < ::YARD::Handlers::Ruby::Base
64
+ # source://yard-sorbet//lib/yard-sorbet/handlers/enums_handler.rb#14
65
+ sig { void }
66
+ def process; end
67
+
68
+ private
69
+
70
+ # source://yard-sorbet//lib/yard-sorbet/handlers/enums_handler.rb#29
71
+ sig { params(node: ::YARD::Parser::Ruby::AstNode).returns(T::Boolean) }
72
+ def const_assign_node?(node); end
73
+ end
74
+
75
+ # Extends any modules included via `mixes_in_class_methods`
76
+ #
77
+ # @see https://sorbet.org/docs/abstract#interfaces-and-the-included-hook Sorbet `mixes_in_class_methods` documentation
78
+ #
79
+ # source://yard-sorbet//lib/yard-sorbet/handlers/include_handler.rb#9
80
+ class YARDSorbet::Handlers::IncludeHandler < ::YARD::Handlers::Ruby::Base
81
+ # source://yard-sorbet//lib/yard-sorbet/handlers/include_handler.rb#16
82
+ sig { void }
83
+ def process; end
84
+
85
+ private
86
+
87
+ # source://yard-sorbet//lib/yard-sorbet/handlers/include_handler.rb#28
88
+ sig { returns(::YARD::CodeObjects::NamespaceObject) }
89
+ def included_in; end
90
+ end
91
+
92
+ # Tracks modules that invoke `mixes_in_class_methods` for use in {IncludeHandler}
93
+ #
94
+ # @see https://sorbet.org/docs/abstract#interfaces-and-the-included-hook Sorbet `mixes_in_class_methods` documentation
95
+ #
96
+ # source://yard-sorbet//lib/yard-sorbet/handlers/mixes_in_class_methods_handler.rb#9
97
+ class YARDSorbet::Handlers::MixesInClassMethodsHandler < ::YARD::Handlers::Ruby::Base
98
+ # source://yard-sorbet//lib/yard-sorbet/handlers/mixes_in_class_methods_handler.rb#21
99
+ sig { void }
100
+ def process; end
101
+
102
+ class << self
103
+ # source://yard-sorbet//lib/yard-sorbet/handlers/mixes_in_class_methods_handler.rb#18
104
+ sig { params(code_obj: ::String).returns(T.nilable(T::Array[::String])) }
105
+ def mixed_in_class_methods(code_obj); end
106
+ end
107
+ end
108
+
109
+ # A YARD Handler for Sorbet type declarations
110
+ #
111
+ # source://yard-sorbet//lib/yard-sorbet/handlers/sig_handler.rb#7
112
+ class YARDSorbet::Handlers::SigHandler < ::YARD::Handlers::Ruby::Base
113
+ # Swap the method definition docstring and the sig docstring.
114
+ # Parse relevant parts of the `sig` and include them as well.
115
+ #
116
+ # source://yard-sorbet//lib/yard-sorbet/handlers/sig_handler.rb#24
117
+ sig { void }
118
+ def process; end
119
+
120
+ private
121
+
122
+ # source://yard-sorbet//lib/yard-sorbet/handlers/sig_handler.rb#73
123
+ sig { params(method_objects: T::Array[::YARD::CodeObjects::MethodObject]).void }
124
+ def document_attrs(method_objects); end
125
+
126
+ # An attr* sig can be merged into a previous attr* docstring if it is the only parameter passed to the attr*
127
+ # declaration. This is to avoid needing to rewrite the source code to separate merged and unmerged attr*
128
+ # declarations.
129
+ #
130
+ # source://yard-sorbet//lib/yard-sorbet/handlers/sig_handler.rb#60
131
+ sig { params(attr_node: ::YARD::Parser::Ruby::MethodCallNode).returns(T::Boolean) }
132
+ def merged_into_attr?(attr_node); end
133
+
134
+ # source://yard-sorbet//lib/yard-sorbet/handlers/sig_handler.rb#76
135
+ sig do
136
+ params(
137
+ attach_to: T.any(::YARD::CodeObjects::MethodObject, ::YARD::Parser::Ruby::MethodCallNode, ::YARD::Parser::Ruby::MethodDefinitionNode),
138
+ docstring: T.nilable(::String),
139
+ include_params: T::Boolean
140
+ ).void
141
+ end
142
+ def parse_node(attach_to, docstring, include_params: T.unsafe(nil)); end
143
+
144
+ # source://yard-sorbet//lib/yard-sorbet/handlers/sig_handler.rb#97
145
+ sig { params(node: ::YARD::Parser::Ruby::AstNode, docstring: ::YARD::Docstring).void }
146
+ def parse_params(node, docstring); end
147
+
148
+ # source://yard-sorbet//lib/yard-sorbet/handlers/sig_handler.rb#107
149
+ sig { params(node: ::YARD::Parser::Ruby::AstNode, docstring: ::YARD::Docstring).void }
150
+ def parse_return(node, docstring); end
151
+
152
+ # source://yard-sorbet//lib/yard-sorbet/handlers/sig_handler.rb#85
153
+ sig { params(docstring: ::YARD::Docstring, include_params: T::Boolean).void }
154
+ def parse_sig(docstring, include_params: T.unsafe(nil)); end
155
+
156
+ # source://yard-sorbet//lib/yard-sorbet/handlers/sig_handler.rb#50
157
+ sig { params(attr_node: ::YARD::Parser::Ruby::MethodCallNode).void }
158
+ def process_attr(attr_node); end
159
+
160
+ # source://yard-sorbet//lib/yard-sorbet/handlers/sig_handler.rb#36
161
+ sig { params(def_node: ::YARD::Parser::Ruby::MethodDefinitionNode).void }
162
+ def process_def(def_node); end
163
+ end
164
+
165
+ # YARD types that can have docstrings attached to them
166
+ #
167
+ # source://yard-sorbet//lib/yard-sorbet/handlers/sig_handler.rb#14
168
+ YARDSorbet::Handlers::SigHandler::Documentable = T.type_alias { T.any(::YARD::CodeObjects::MethodObject, ::YARD::Parser::Ruby::MethodCallNode, ::YARD::Parser::Ruby::MethodDefinitionNode) }
169
+
170
+ # Class-level handler that folds all `const` and `prop` declarations into the constructor documentation
171
+ # this needs to be injected as a module otherwise the default Class handler will overwrite documentation
172
+ #
173
+ # @note this module is included in `YARD::Handlers::Ruby::ClassHandler`
174
+ #
175
+ # source://yard-sorbet//lib/yard-sorbet/handlers/struct_class_handler.rb#10
176
+ module YARDSorbet::Handlers::StructClassHandler
177
+ # source://yard-sorbet//lib/yard-sorbet/handlers/struct_class_handler.rb#14
178
+ sig { void }
179
+ def process; end
180
+
181
+ private
182
+
183
+ # source://yard-sorbet//lib/yard-sorbet/handlers/struct_class_handler.rb#50
184
+ sig do
185
+ params(
186
+ object: ::YARD::CodeObjects::MethodObject,
187
+ props: T::Array[::YARDSorbet::TStructProp],
188
+ docstring: ::YARD::Docstring,
189
+ directives: T::Array[::String]
190
+ ).void
191
+ end
192
+ def decorate_t_struct_init(object, props, docstring, directives); end
193
+
194
+ # Create a virtual `initialize` method with all the `prop`/`const` arguments
195
+ #
196
+ # source://yard-sorbet//lib/yard-sorbet/handlers/struct_class_handler.rb#30
197
+ sig { params(props: T::Array[::YARDSorbet::TStructProp], class_ns: ::YARD::CodeObjects::ClassObject).void }
198
+ def process_t_struct_props(props, class_ns); end
199
+
200
+ # source://yard-sorbet//lib/yard-sorbet/handlers/struct_class_handler.rb#60
201
+ sig { params(props: T::Array[::YARDSorbet::TStructProp]).returns(T::Array[[::String, T.nilable(::String)]]) }
202
+ def to_object_parameters(props); end
203
+ end
204
+
205
+ # Handles all `const`/`prop` calls, creating accessor methods, and compiles them for later usage at the class level
206
+ # in creating a constructor
207
+ #
208
+ # source://yard-sorbet//lib/yard-sorbet/handlers/struct_prop_handler.rb#8
209
+ class YARDSorbet::Handlers::StructPropHandler < ::YARD::Handlers::Ruby::Base
210
+ # source://yard-sorbet//lib/yard-sorbet/handlers/struct_prop_handler.rb#15
211
+ sig { void }
212
+ def process; end
213
+
214
+ private
215
+
216
+ # Add the source and docstring to the method object
217
+ #
218
+ # source://yard-sorbet//lib/yard-sorbet/handlers/struct_prop_handler.rb#28
219
+ sig { params(object: ::YARD::CodeObjects::MethodObject, prop: ::YARDSorbet::TStructProp).void }
220
+ def decorate_object(object, prop); end
221
+
222
+ # source://yard-sorbet//lib/yard-sorbet/handlers/struct_prop_handler.rb#38
223
+ sig { returns(T::Boolean) }
224
+ def immutable?; end
225
+
226
+ # source://yard-sorbet//lib/yard-sorbet/handlers/struct_prop_handler.rb#42
227
+ sig { params(kwd: ::String).returns(T.nilable(::String)) }
228
+ def kw_arg(kwd); end
229
+
230
+ # source://yard-sorbet//lib/yard-sorbet/handlers/struct_prop_handler.rb#45
231
+ sig { params(name: ::String).returns(::YARDSorbet::TStructProp) }
232
+ def make_prop(name); end
233
+
234
+ # source://yard-sorbet//lib/yard-sorbet/handlers/struct_prop_handler.rb#56
235
+ sig { returns(T::Array[::YARD::Parser::Ruby::AstNode]) }
236
+ def params; end
237
+
238
+ # Register the field explicitly as an attribute.
239
+ #
240
+ # source://yard-sorbet//lib/yard-sorbet/handlers/struct_prop_handler.rb#60
241
+ sig { params(object: ::YARD::CodeObjects::MethodObject, name: ::String).void }
242
+ def register_attrs(object, name); end
243
+
244
+ # Store the prop for use in the constructor definition
245
+ #
246
+ # source://yard-sorbet//lib/yard-sorbet/handlers/struct_prop_handler.rb#68
247
+ sig { params(prop: ::YARDSorbet::TStructProp).void }
248
+ def update_state(prop); end
249
+ end
250
+
251
+ # Helper methods for working with `YARD` AST Nodes
252
+ #
253
+ # source://yard-sorbet//lib/yard-sorbet/node_utils.rb#6
254
+ module YARDSorbet::NodeUtils
255
+ class << self
256
+ # Traverse AST nodes in breadth-first order
257
+ #
258
+ # @note This will skip over some node types.
259
+ # @yield [YARD::Parser::Ruby::AstNode]
260
+ #
261
+ # source://yard-sorbet//lib/yard-sorbet/node_utils.rb#21
262
+ sig do
263
+ params(
264
+ node: ::YARD::Parser::Ruby::AstNode,
265
+ _blk: T.proc.params(n: ::YARD::Parser::Ruby::AstNode).void
266
+ ).void
267
+ end
268
+ def bfs_traverse(node, &_blk); end
269
+
270
+ # source://yard-sorbet//lib/yard-sorbet/node_utils.rb#31
271
+ sig { params(node: ::YARD::Parser::Ruby::AstNode).void }
272
+ def delete_node(node); end
273
+
274
+ # Enqueue the eligible children of a node in the BFS queue
275
+ #
276
+ # source://yard-sorbet//lib/yard-sorbet/node_utils.rb#35
277
+ sig { params(queue: ::Thread::Queue, node: ::YARD::Parser::Ruby::AstNode).void }
278
+ def enqueue_children(queue, node); end
279
+
280
+ # Gets the node that a sorbet `sig` can be attached do, bypassing visisbility modifiers and the like
281
+ #
282
+ # source://yard-sorbet//lib/yard-sorbet/node_utils.rb#48
283
+ sig do
284
+ params(
285
+ node: ::YARD::Parser::Ruby::AstNode
286
+ ).returns(T.any(::YARD::Parser::Ruby::MethodCallNode, ::YARD::Parser::Ruby::MethodDefinitionNode))
287
+ end
288
+ def get_method_node(node); end
289
+
290
+ # Find and return the adjacent node (ascending)
291
+ #
292
+ # @raise [IndexError] if the node does not have an adjacent sibling (ascending)
293
+ #
294
+ # source://yard-sorbet//lib/yard-sorbet/node_utils.rb#53
295
+ sig { params(node: ::YARD::Parser::Ruby::AstNode).returns(::YARD::Parser::Ruby::AstNode) }
296
+ def sibling_node(node); end
297
+
298
+ # source://yard-sorbet//lib/yard-sorbet/node_utils.rb#60
299
+ sig { params(node: ::YARD::Parser::Ruby::AstNode).returns(T::Boolean) }
300
+ def sigable_node?(node); end
301
+
302
+ # @see https://github.com/lsegal/yard/blob/main/lib/yard/handlers/ruby/attribute_handler.rb YARD::Handlers::Ruby::AttributeHandler.validated_attribute_names
303
+ #
304
+ # source://yard-sorbet//lib/yard-sorbet/node_utils.rb#71
305
+ sig { params(attr_node: ::YARD::Parser::Ruby::MethodCallNode).returns(T::Array[::String]) }
306
+ def validated_attribute_names(attr_node); end
307
+ end
308
+ end
309
+
310
+ # Command node types that can have type signatures
311
+ #
312
+ # source://yard-sorbet//lib/yard-sorbet/node_utils.rb#10
313
+ YARDSorbet::NodeUtils::ATTRIBUTE_METHODS = T.let(T.unsafe(nil), Array)
314
+
315
+ # Skip these method contents during BFS node traversal, they can have their own nested types via `T.Proc`
316
+ #
317
+ # source://yard-sorbet//lib/yard-sorbet/node_utils.rb#12
318
+ YARDSorbet::NodeUtils::SKIP_METHOD_CONTENTS = T.let(T.unsafe(nil), Array)
319
+
320
+ # Node types that can have type signatures
321
+ #
322
+ # source://yard-sorbet//lib/yard-sorbet/node_utils.rb#14
323
+ YARDSorbet::NodeUtils::SigableNode = T.type_alias { T.any(::YARD::Parser::Ruby::MethodCallNode, ::YARD::Parser::Ruby::MethodDefinitionNode) }
324
+
325
+ # Translate `sig` type syntax to `YARD` type syntax.
326
+ #
327
+ # source://yard-sorbet//lib/yard-sorbet/sig_to_yard.rb#6
328
+ module YARDSorbet::SigToYARD
329
+ class << self
330
+ # @see https://yardoc.org/types.html
331
+ #
332
+ # source://yard-sorbet//lib/yard-sorbet/sig_to_yard.rb#23
333
+ sig { params(node: ::YARD::Parser::Ruby::AstNode).returns(T::Array[::String]) }
334
+ def convert(node); end
335
+
336
+ private
337
+
338
+ # source://yard-sorbet//lib/yard-sorbet/sig_to_yard.rb#58
339
+ sig { params(node: ::YARD::Parser::Ruby::AstNode).returns(::String) }
340
+ def build_generic_type(node); end
341
+
342
+ # source://yard-sorbet//lib/yard-sorbet/sig_to_yard.rb#67
343
+ sig { params(node: ::YARD::Parser::Ruby::AstNode).returns(T::Array[::String]) }
344
+ def convert_aref(node); end
345
+
346
+ # source://yard-sorbet//lib/yard-sorbet/sig_to_yard.rb#79
347
+ sig { params(node: ::YARD::Parser::Ruby::AstNode).returns([::String]) }
348
+ def convert_array(node); end
349
+
350
+ # source://yard-sorbet//lib/yard-sorbet/sig_to_yard.rb#87
351
+ sig { params(node: ::YARD::Parser::Ruby::AstNode).returns([::String]) }
352
+ def convert_collection(node); end
353
+
354
+ # source://yard-sorbet//lib/yard-sorbet/sig_to_yard.rb#94
355
+ sig { params(node: ::YARD::Parser::Ruby::AstNode).returns([::String]) }
356
+ def convert_hash(node); end
357
+
358
+ # source://yard-sorbet//lib/yard-sorbet/sig_to_yard.rb#102
359
+ sig { params(node: ::YARD::Parser::Ruby::AstNode).returns(T::Array[::String]) }
360
+ def convert_list(node); end
361
+
362
+ # source://yard-sorbet//lib/yard-sorbet/sig_to_yard.rb#28
363
+ sig { params(node: ::YARD::Parser::Ruby::AstNode).returns(T::Array[::String]) }
364
+ def convert_node(node); end
365
+
366
+ # source://yard-sorbet//lib/yard-sorbet/sig_to_yard.rb#40
367
+ sig { params(node: ::YARD::Parser::Ruby::AstNode).returns(T::Array[::String]) }
368
+ def convert_node_type(node); end
369
+
370
+ # source://yard-sorbet//lib/yard-sorbet/sig_to_yard.rb#107
371
+ sig { params(node: ::YARD::Parser::Ruby::MethodCallNode).returns(T::Array[::String]) }
372
+ def convert_t_method(node); end
373
+
374
+ # source://yard-sorbet//lib/yard-sorbet/sig_to_yard.rb#118
375
+ sig { params(node: ::YARD::Parser::Ruby::AstNode).returns([::String]) }
376
+ def convert_unknown(node); end
377
+ end
378
+ end
379
+
380
+ # Used to store the details of a `T::Struct` `prop` definition
381
+ #
382
+ # source://yard-sorbet//lib/yard-sorbet/t_struct_prop.rb#6
383
+ class YARDSorbet::TStructProp < ::T::Struct
384
+ const :default, T.nilable(::String)
385
+ const :doc, ::String
386
+ const :prop_name, ::String
387
+ const :source, ::String
388
+ const :types, T::Array[::String]
389
+
390
+ class << self
391
+ # source://sorbet-runtime/0.5.11647/lib/types/struct.rb#13
392
+ def inherited(s); end
393
+ end
394
+ end
395
+
396
+ # Helper methods for working with `YARD` tags
397
+ #
398
+ # source://yard-sorbet//lib/yard-sorbet/tag_utils.rb#6
399
+ module YARDSorbet::TagUtils
400
+ class << self
401
+ # source://yard-sorbet//lib/yard-sorbet/tag_utils.rb#16
402
+ sig do
403
+ params(
404
+ docstring: ::YARD::Docstring,
405
+ tag_name: ::String,
406
+ name: T.nilable(::String)
407
+ ).returns(T.nilable(::YARD::Tags::Tag))
408
+ end
409
+ def find_tag(docstring, tag_name, name); end
410
+
411
+ # Create or update a `YARD` tag with type information
412
+ #
413
+ # source://yard-sorbet//lib/yard-sorbet/tag_utils.rb#28
414
+ sig do
415
+ params(
416
+ docstring: ::YARD::Docstring,
417
+ tag_name: ::String,
418
+ types: T.nilable(T::Array[::String]),
419
+ name: T.nilable(::String),
420
+ text: ::String
421
+ ).void
422
+ end
423
+ def upsert_tag(docstring, tag_name, types = T.unsafe(nil), name = T.unsafe(nil), text = T.unsafe(nil)); end
424
+ end
425
+ end
426
+
427
+ # The `void` return type, as a constant to reduce array allocations
428
+ #
429
+ # source://yard-sorbet//lib/yard-sorbet/tag_utils.rb#10
430
+ YARDSorbet::TagUtils::VOID_RETURN_TYPE = T.let(T.unsafe(nil), Array)
431
+
432
+ # {https://rubygems.org/gems/yard-sorbet Version history}
433
+ #
434
+ # source://yard-sorbet//lib/yard-sorbet/version.rb#7
435
+ YARDSorbet::VERSION = T.let(T.unsafe(nil), String)