shotgrid_api_ruby 0.2.0.4 → 0.2.0.6

Sign up to get free protection for your applications and to get access to all the features.
Files changed (190) hide show
  1. checksums.yaml +4 -4
  2. data/.github/workflows/test_and_publish.yml +3 -3
  3. data/.github/workflows/test_only.yml +7 -5
  4. data/.ruby-version +1 -1
  5. data/CHANGELOG.md +54 -2
  6. data/Gemfile +12 -0
  7. data/Gemfile.lock +108 -93
  8. data/bin/prettirun +1 -1
  9. data/docs/ShotgridApiRuby/Auth/Validator.html +4 -4
  10. data/docs/ShotgridApiRuby/Auth.html +4 -4
  11. data/docs/ShotgridApiRuby/Client.html +4 -4
  12. data/docs/ShotgridApiRuby/Entities/Params/TooComplexFiltersError.html +4 -4
  13. data/docs/ShotgridApiRuby/Entities/Params.html +41 -41
  14. data/docs/ShotgridApiRuby/Entities/Schema.html +4 -4
  15. data/docs/ShotgridApiRuby/Entities/Summarize/Summary.html +8 -8
  16. data/docs/ShotgridApiRuby/Entities/Summarize.html +9 -9
  17. data/docs/ShotgridApiRuby/Entities.html +27 -27
  18. data/docs/ShotgridApiRuby/Entity.html +12 -12
  19. data/docs/ShotgridApiRuby/Preferences.html +4 -4
  20. data/docs/ShotgridApiRuby/ServerInfo.html +4 -4
  21. data/docs/ShotgridApiRuby/ShotgridCallError.html +4 -4
  22. data/docs/ShotgridApiRuby/Types.html +4 -4
  23. data/docs/ShotgridApiRuby.html +5 -5
  24. data/docs/_index.html +5 -5
  25. data/docs/file.README.html +4 -4
  26. data/docs/frames.html +1 -1
  27. data/docs/index.html +4 -4
  28. data/docs/top-level-namespace.html +4 -4
  29. data/lib/shotgrid_api_ruby/entities/params.rb +15 -18
  30. data/lib/shotgrid_api_ruby/entities/summarize.rb +4 -4
  31. data/lib/shotgrid_api_ruby/entities.rb +23 -23
  32. data/lib/shotgrid_api_ruby/version.rb +1 -1
  33. data/shotgrid_api_ruby.gemspec +3 -12
  34. data/sorbet/rbi/gems/activesupport@7.0.4.2.rbi +18676 -0
  35. data/sorbet/rbi/gems/ast@2.4.2.rbi +533 -3
  36. data/sorbet/rbi/gems/backport@1.2.0.rbi +518 -4
  37. data/sorbet/rbi/gems/benchmark@0.2.1.rbi +588 -0
  38. data/sorbet/rbi/gems/bundler-audit@0.9.1.rbi +308 -0
  39. data/sorbet/rbi/gems/byebug@11.1.3.rbi +2065 -28
  40. data/sorbet/rbi/gems/childprocess@4.1.0.rbi +397 -4
  41. data/sorbet/rbi/gems/coderay@1.1.3.rbi +2425 -4
  42. data/sorbet/rbi/gems/concurrent-ruby@1.2.0.rbi +11570 -0
  43. data/sorbet/rbi/gems/diff-lcs@1.5.0.rbi +1083 -0
  44. data/sorbet/rbi/gems/docile@1.4.0.rbi +335 -13
  45. data/sorbet/rbi/gems/dotenv@2.8.1.rbi +234 -0
  46. data/sorbet/rbi/gems/e2mmap@0.1.0.rbi +4 -4
  47. data/sorbet/rbi/gems/faker@3.1.0.rbi +13380 -0
  48. data/sorbet/rbi/gems/faraday-em_http@1.0.0.rbi +167 -11
  49. data/sorbet/rbi/gems/faraday-em_synchrony@1.0.0.rbi +94 -11
  50. data/sorbet/rbi/gems/faraday-excon@1.1.0.rbi +105 -11
  51. data/sorbet/rbi/gems/faraday-httpclient@1.0.1.rbi +118 -11
  52. data/sorbet/rbi/gems/faraday-multipart@1.0.4.rbi +273 -0
  53. data/sorbet/rbi/gems/faraday-net_http@1.0.1.rbi +106 -11
  54. data/sorbet/rbi/gems/faraday-net_http_persistent@1.2.0.rbi +92 -11
  55. data/sorbet/rbi/gems/faraday-patron@1.0.0.rbi +97 -11
  56. data/sorbet/rbi/gems/faraday-rack@1.0.0.rbi +106 -11
  57. data/sorbet/rbi/gems/faraday-retry@1.0.3.rbi +227 -0
  58. data/sorbet/rbi/gems/faraday@1.10.3.rbi +2743 -0
  59. data/sorbet/rbi/gems/ffi@1.15.5.rbi +8 -0
  60. data/sorbet/rbi/gems/formatador@1.1.0.rbi +8 -0
  61. data/sorbet/rbi/gems/guard-compat@1.2.1.rbi +62 -4
  62. data/sorbet/rbi/gems/guard-rspec@4.7.3.rbi +558 -4
  63. data/sorbet/rbi/gems/guard@2.18.0.rbi +4 -4
  64. data/sorbet/rbi/gems/haml@6.1.1.rbi +1588 -0
  65. data/sorbet/rbi/gems/i18n@1.12.0.rbi +2296 -0
  66. data/sorbet/rbi/gems/iniparse@1.5.0.rbi +893 -4
  67. data/sorbet/rbi/gems/jaro_winkler@1.5.4.rbi +15 -4
  68. data/sorbet/rbi/gems/json@2.6.3.rbi +1533 -0
  69. data/sorbet/rbi/gems/kramdown-parser-gfm@1.1.0.rbi +129 -4
  70. data/sorbet/rbi/gems/kramdown@2.4.0.rbi +3271 -0
  71. data/sorbet/rbi/gems/listen@3.8.0.rbi +1181 -0
  72. data/sorbet/rbi/gems/lumberjack@1.2.8.rbi +4 -4
  73. data/sorbet/rbi/gems/method_source@1.0.0.rbi +202 -2
  74. data/sorbet/rbi/gems/minitest@5.17.0.rbi +1457 -0
  75. data/sorbet/rbi/gems/multipart-post@2.3.0.rbi +233 -0
  76. data/sorbet/rbi/gems/nenv@0.3.0.rbi +4 -4
  77. data/sorbet/rbi/gems/netrc@0.11.0.rbi +158 -0
  78. data/sorbet/rbi/gems/nokogiri@1.14.0.rbi +7250 -0
  79. data/sorbet/rbi/gems/notiffany@0.1.3.rbi +4 -4
  80. data/sorbet/rbi/gems/overcommit@0.60.0.rbi +2399 -0
  81. data/sorbet/rbi/gems/parallel@1.22.1.rbi +277 -0
  82. data/sorbet/rbi/gems/parser@3.2.0.0.rbi +6964 -0
  83. data/sorbet/rbi/gems/prettier@3.2.2.rbi +22 -0
  84. data/sorbet/rbi/gems/prettier_print@1.2.0.rbi +8 -0
  85. data/sorbet/rbi/gems/pry-byebug@3.10.1.rbi +1171 -0
  86. data/sorbet/rbi/gems/pry@0.14.2.rbi +10081 -0
  87. data/sorbet/rbi/gems/racc@1.6.2.rbi +154 -0
  88. data/sorbet/rbi/gems/rainbow@3.1.1.rbi +408 -0
  89. data/sorbet/rbi/gems/rake@13.0.6.rbi +2248 -13
  90. data/sorbet/rbi/gems/rb-fsevent@0.11.2.rbi +8 -0
  91. data/sorbet/rbi/gems/rb-inotify@0.10.1.rbi +4 -4
  92. data/sorbet/rbi/gems/rbi@0.0.16.rbi +3008 -0
  93. data/sorbet/rbi/gems/rbs@2.8.4.rbi +8 -0
  94. data/sorbet/rbi/gems/regexp_parser@2.6.2.rbi +3481 -0
  95. data/sorbet/rbi/gems/reverse_markdown@2.1.1.rbi +389 -0
  96. data/sorbet/rbi/gems/rexml@3.2.5.rbi +4048 -3
  97. data/sorbet/rbi/gems/rspec-core@3.12.0.rbi +10809 -0
  98. data/sorbet/rbi/gems/rspec-expectations@3.12.2.rbi +8109 -0
  99. data/sorbet/rbi/gems/rspec-mocks@3.12.3.rbi +5308 -0
  100. data/sorbet/rbi/gems/rspec-support@3.12.0.rbi +1620 -0
  101. data/sorbet/rbi/gems/rspec@3.12.0.rbi +91 -0
  102. data/sorbet/rbi/gems/rspec_in_context@1.1.0.3.rbi +387 -15
  103. data/sorbet/rbi/gems/rubocop-ast@1.24.1.rbi +7019 -0
  104. data/sorbet/rbi/gems/rubocop-faker@1.1.0.rbi +102 -4
  105. data/sorbet/rbi/gems/rubocop-performance@1.15.2.rbi +3021 -0
  106. data/sorbet/rbi/gems/rubocop-sorbet@0.6.11.rbi +990 -0
  107. data/sorbet/rbi/gems/rubocop@1.44.1.rbi +54394 -0
  108. data/sorbet/rbi/gems/ruby-progressbar@1.11.0.rbi +1235 -4
  109. data/sorbet/rbi/gems/ruby2_keywords@0.0.5.rbi +4 -4
  110. data/sorbet/rbi/gems/shellany@0.0.1.rbi +4 -4
  111. data/sorbet/rbi/gems/simplecov-html@0.12.3.rbi +135 -5
  112. data/sorbet/rbi/gems/simplecov@0.22.0.rbi +2148 -0
  113. data/sorbet/rbi/gems/simplecov_json_formatter@0.1.4.rbi +8 -0
  114. data/sorbet/rbi/gems/solargraph@0.48.0.rbi +9146 -0
  115. data/sorbet/rbi/gems/spoom@1.1.15.rbi +2383 -0
  116. data/sorbet/rbi/gems/syntax_tree-haml@3.0.0.rbi +8 -0
  117. data/sorbet/rbi/gems/syntax_tree-rbs@0.5.1.rbi +8 -0
  118. data/sorbet/rbi/gems/syntax_tree@5.2.0.rbi +8 -0
  119. data/sorbet/rbi/gems/tapioca@0.10.5.rbi +3226 -0
  120. data/sorbet/rbi/gems/temple@0.10.0.rbi +1722 -0
  121. data/sorbet/rbi/gems/thor@1.2.1.rbi +3956 -0
  122. data/sorbet/rbi/gems/tilt@2.0.11.rbi +745 -0
  123. data/sorbet/rbi/gems/timecop@0.9.6.rbi +368 -0
  124. data/sorbet/rbi/gems/tzinfo@2.0.5.rbi +5914 -0
  125. data/sorbet/rbi/gems/unicode-display_width@2.4.2.rbi +65 -0
  126. data/sorbet/rbi/gems/unparser@0.6.7.rbi +4524 -0
  127. data/sorbet/rbi/gems/vcr@6.1.0.rbi +3020 -0
  128. data/sorbet/rbi/gems/webrick@1.7.0.rbi +2555 -0
  129. data/sorbet/rbi/gems/yard-sorbet@0.8.0.rbi +441 -0
  130. data/sorbet/rbi/gems/yard@0.9.28.rbi +17863 -0
  131. data/sorbet/rbi/gems/zeitwerk@2.6.6.rbi +950 -0
  132. data/yarn.lock +3 -3
  133. metadata +71 -190
  134. data/sorbet/rbi/gems/activesupport@6.1.4.1.rbi +0 -3770
  135. data/sorbet/rbi/gems/benchmark@0.1.1.rbi +0 -65
  136. data/sorbet/rbi/gems/bundler-audit@0.8.0.rbi +0 -8
  137. data/sorbet/rbi/gems/colorize@0.8.1.rbi +0 -39
  138. data/sorbet/rbi/gems/commander@4.6.0.rbi +0 -8
  139. data/sorbet/rbi/gems/concurrent-ruby@1.1.9.rbi +0 -2403
  140. data/sorbet/rbi/gems/diff-lcs@1.4.4.rbi +0 -8
  141. data/sorbet/rbi/gems/dotenv@2.7.6.rbi +0 -88
  142. data/sorbet/rbi/gems/faker@2.19.0.rbi +0 -2513
  143. data/sorbet/rbi/gems/faraday@1.7.0.rbi +0 -783
  144. data/sorbet/rbi/gems/ffi@1.15.3.rbi +0 -8
  145. data/sorbet/rbi/gems/formatador@0.3.0.rbi +0 -8
  146. data/sorbet/rbi/gems/haml@5.2.2.rbi +0 -8
  147. data/sorbet/rbi/gems/highline@2.0.3.rbi +0 -8
  148. data/sorbet/rbi/gems/i18n@1.8.10.rbi +0 -584
  149. data/sorbet/rbi/gems/kramdown@2.3.1.rbi +0 -8
  150. data/sorbet/rbi/gems/listen@3.7.0.rbi +0 -476
  151. data/sorbet/rbi/gems/minitest@5.14.4.rbi +0 -344
  152. data/sorbet/rbi/gems/multipart-post@2.1.1.rbi +0 -69
  153. data/sorbet/rbi/gems/nokogiri@1.12.3.rbi +0 -8
  154. data/sorbet/rbi/gems/overcommit@0.58.0.rbi +0 -8
  155. data/sorbet/rbi/gems/parallel@1.20.1.rbi +0 -8
  156. data/sorbet/rbi/gems/parlour@6.0.1.rbi +0 -1610
  157. data/sorbet/rbi/gems/parser@3.0.2.0.rbi +0 -1731
  158. data/sorbet/rbi/gems/prettier@1.6.1.rbi +0 -8
  159. data/sorbet/rbi/gems/pry-byebug@3.9.0.rbi +0 -461
  160. data/sorbet/rbi/gems/pry@0.13.1.rbi +0 -2553
  161. data/sorbet/rbi/gems/racc@1.5.2.rbi +0 -47
  162. data/sorbet/rbi/gems/rainbow@3.0.0.rbi +0 -153
  163. data/sorbet/rbi/gems/rb-fsevent@0.11.0.rbi +0 -8
  164. data/sorbet/rbi/gems/regexp_parser@2.1.1.rbi +0 -8
  165. data/sorbet/rbi/gems/reverse_markdown@2.0.0.rbi +0 -8
  166. data/sorbet/rbi/gems/rspec-core@3.10.1.rbi +0 -2500
  167. data/sorbet/rbi/gems/rspec-expectations@3.10.1.rbi +0 -1574
  168. data/sorbet/rbi/gems/rspec-mocks@3.10.2.rbi +0 -1462
  169. data/sorbet/rbi/gems/rspec-support@3.10.2.rbi +0 -510
  170. data/sorbet/rbi/gems/rspec@3.10.0.rbi +0 -39
  171. data/sorbet/rbi/gems/rubocop-ast@1.11.0.rbi +0 -8
  172. data/sorbet/rbi/gems/rubocop-performance@1.11.5.rbi +0 -8
  173. data/sorbet/rbi/gems/rubocop-sorbet@0.6.2.rbi +0 -8
  174. data/sorbet/rbi/gems/rubocop@1.20.0.rbi +0 -8
  175. data/sorbet/rbi/gems/simplecov@0.21.2.rbi +0 -577
  176. data/sorbet/rbi/gems/simplecov_json_formatter@0.1.3.rbi +0 -8
  177. data/sorbet/rbi/gems/solargraph@0.43.0.rbi +0 -8
  178. data/sorbet/rbi/gems/spoom@1.1.2.rbi +0 -1204
  179. data/sorbet/rbi/gems/tapioca@0.4.25.rbi +0 -1239
  180. data/sorbet/rbi/gems/temple@0.8.2.rbi +0 -8
  181. data/sorbet/rbi/gems/thor@1.1.0.rbi +0 -838
  182. data/sorbet/rbi/gems/tilt@2.0.10.rbi +0 -8
  183. data/sorbet/rbi/gems/timecop@0.9.4.rbi +0 -82
  184. data/sorbet/rbi/gems/tzinfo@2.0.4.rbi +0 -857
  185. data/sorbet/rbi/gems/unicode-display_width@2.0.0.rbi +0 -8
  186. data/sorbet/rbi/gems/unparser@0.6.0.rbi +0 -8
  187. data/sorbet/rbi/gems/vcr@6.0.0.rbi +0 -782
  188. data/sorbet/rbi/gems/yard-sorbet@0.5.3.rbi +0 -8
  189. data/sorbet/rbi/gems/yard@0.9.26.rbi +0 -8
  190. data/sorbet/rbi/gems/zeitwerk@2.4.2.rbi +0 -173
@@ -0,0 +1,990 @@
1
+ # typed: true
2
+
3
+ # DO NOT EDIT MANUALLY
4
+ # This is an autogenerated file for types exported from the `rubocop-sorbet` gem.
5
+ # Please instead update this file by running `bin/tapioca gem rubocop-sorbet`.
6
+
7
+ # source://rubocop-sorbet//lib/rubocop/sorbet/version.rb#2
8
+ module RuboCop; end
9
+
10
+ # source://rubocop-sorbet//lib/rubocop/cop/sorbet/binding_constants_without_type_alias.rb#6
11
+ module RuboCop::Cop; end
12
+
13
+ # source://rubocop/1.44.1/lib/rubocop/cop/mixin/allowed_methods.rb#38
14
+ RuboCop::Cop::IgnoredMethods = RuboCop::Cop::AllowedMethods
15
+
16
+ # source://rubocop/1.44.1/lib/rubocop/cop/mixin/allowed_pattern.rb#54
17
+ RuboCop::Cop::IgnoredPattern = RuboCop::Cop::AllowedPattern
18
+
19
+ # source://rubocop-sorbet//lib/rubocop/cop/sorbet/binding_constants_without_type_alias.rb#7
20
+ module RuboCop::Cop::Sorbet; end
21
+
22
+ # This cop disallows using `.override(allow_incompatible: true)`.
23
+ # Using `allow_incompatible` suggests a violation of the Liskov
24
+ # Substitution Principle, meaning that a subclass is not a valid
25
+ # subtype of it's superclass. This Cop prevents these design smells
26
+ # from occurring.
27
+ #
28
+ # @example
29
+ #
30
+ # # bad
31
+ # sig.override(allow_incompatible: true)
32
+ #
33
+ # # good
34
+ # sig.override
35
+ #
36
+ # source://rubocop-sorbet//lib/rubocop/cop/sorbet/signatures/allow_incompatible_override.rb#21
37
+ class RuboCop::Cop::Sorbet::AllowIncompatibleOverride < ::RuboCop::Cop::Cop
38
+ # source://rubocop-sorbet//lib/rubocop/cop/sorbet/signatures/allow_incompatible_override.rb#35
39
+ def allow_incompatible?(param0); end
40
+
41
+ # source://rubocop-sorbet//lib/rubocop/cop/sorbet/signatures/allow_incompatible_override.rb#39
42
+ def allow_incompatible_override?(param0 = T.unsafe(nil)); end
43
+
44
+ # @return [Boolean]
45
+ #
46
+ # source://rubocop-sorbet//lib/rubocop/cop/sorbet/signatures/allow_incompatible_override.rb#31
47
+ def not_nil?(node); end
48
+
49
+ # source://rubocop-sorbet//lib/rubocop/cop/sorbet/signatures/allow_incompatible_override.rb#48
50
+ def on_send(node); end
51
+
52
+ # source://rubocop-sorbet//lib/rubocop/cop/sorbet/signatures/allow_incompatible_override.rb#22
53
+ def sig?(param0); end
54
+ end
55
+
56
+ # This cop disallows binding the return value of `T.any`, `T.all`, `T.enum`
57
+ # to a constant directly. To bind the value, one must use `T.type_alias`.
58
+ #
59
+ # @example
60
+ #
61
+ # # bad
62
+ # FooOrBar = T.any(Foo, Bar)
63
+ #
64
+ # # good
65
+ # FooOrBar = T.type_alias { T.any(Foo, Bar) }
66
+ #
67
+ # source://rubocop-sorbet//lib/rubocop/cop/sorbet/binding_constants_without_type_alias.rb#18
68
+ class RuboCop::Cop::Sorbet::BindingConstantWithoutTypeAlias < ::RuboCop::Cop::Cop
69
+ # source://rubocop-sorbet//lib/rubocop/cop/sorbet/binding_constants_without_type_alias.rb#116
70
+ def autocorrect(node); end
71
+
72
+ # source://rubocop-sorbet//lib/rubocop/cop/sorbet/binding_constants_without_type_alias.rb#19
73
+ def binding_unaliased_type?(param0 = T.unsafe(nil)); end
74
+
75
+ # source://rubocop-sorbet//lib/rubocop/cop/sorbet/binding_constants_without_type_alias.rb#51
76
+ def dynamic_type_creation_with_block?(param0 = T.unsafe(nil)); end
77
+
78
+ # source://rubocop-sorbet//lib/rubocop/cop/sorbet/binding_constants_without_type_alias.rb#66
79
+ def generic_parameter_decl_block_call?(param0 = T.unsafe(nil)); end
80
+
81
+ # source://rubocop-sorbet//lib/rubocop/cop/sorbet/binding_constants_without_type_alias.rb#60
82
+ def generic_parameter_decl_call?(param0 = T.unsafe(nil)); end
83
+
84
+ # source://rubocop-sorbet//lib/rubocop/cop/sorbet/binding_constants_without_type_alias.rb#72
85
+ def method_needing_aliasing_on_t?(param0); end
86
+
87
+ # @return [Boolean]
88
+ #
89
+ # source://rubocop-sorbet//lib/rubocop/cop/sorbet/binding_constants_without_type_alias.rb#85
90
+ def not_dynamic_type_creation_with_block?(node); end
91
+
92
+ # @return [Boolean]
93
+ #
94
+ # source://rubocop-sorbet//lib/rubocop/cop/sorbet/binding_constants_without_type_alias.rb#89
95
+ def not_generic_parameter_decl?(node); end
96
+
97
+ # @return [Boolean]
98
+ #
99
+ # source://rubocop-sorbet//lib/rubocop/cop/sorbet/binding_constants_without_type_alias.rb#93
100
+ def not_nil?(node); end
101
+
102
+ # @return [Boolean]
103
+ #
104
+ # source://rubocop-sorbet//lib/rubocop/cop/sorbet/binding_constants_without_type_alias.rb#81
105
+ def not_t_let?(node); end
106
+
107
+ # source://rubocop-sorbet//lib/rubocop/cop/sorbet/binding_constants_without_type_alias.rb#97
108
+ def on_casgn(node); end
109
+
110
+ # source://rubocop-sorbet//lib/rubocop/cop/sorbet/binding_constants_without_type_alias.rb#41
111
+ def t_let?(param0 = T.unsafe(nil)); end
112
+
113
+ # source://rubocop-sorbet//lib/rubocop/cop/sorbet/binding_constants_without_type_alias.rb#32
114
+ def using_deprecated_type_alias_syntax?(param0 = T.unsafe(nil)); end
115
+
116
+ # source://rubocop-sorbet//lib/rubocop/cop/sorbet/binding_constants_without_type_alias.rb#23
117
+ def using_type_alias?(param0 = T.unsafe(nil)); end
118
+ end
119
+
120
+ # This cop ensures that callback conditionals are bound to the right type
121
+ # so that they are type checked properly.
122
+ #
123
+ # Auto-correction is unsafe because other libraries define similar style callbacks as Rails, but don't always need
124
+ # binding to the attached class. Auto-correcting those usages can lead to false positives and auto-correction
125
+ # introduces new typing errors.
126
+ #
127
+ # @example
128
+ #
129
+ # # bad
130
+ # class Post < ApplicationRecord
131
+ # before_create :do_it, if: -> { should_do_it? }
132
+ #
133
+ # def should_do_it?
134
+ # true
135
+ # end
136
+ # end
137
+ #
138
+ # # good
139
+ # class Post < ApplicationRecord
140
+ # before_create :do_it, if: -> {
141
+ # T.bind(self, Post)
142
+ # should_do_it?
143
+ # }
144
+ #
145
+ # def should_do_it?
146
+ # true
147
+ # end
148
+ # end
149
+ #
150
+ # source://rubocop-sorbet//lib/rubocop/cop/sorbet/callback_conditionals_binding.rb#35
151
+ class RuboCop::Cop::Sorbet::CallbackConditionalsBinding < ::RuboCop::Cop::Cop
152
+ # source://rubocop-sorbet//lib/rubocop/cop/sorbet/callback_conditionals_binding.rb#47
153
+ def autocorrect(node); end
154
+
155
+ # source://rubocop-sorbet//lib/rubocop/cop/sorbet/callback_conditionals_binding.rb#99
156
+ def on_send(node); end
157
+ end
158
+
159
+ # source://rubocop-sorbet//lib/rubocop/cop/sorbet/callback_conditionals_binding.rb#36
160
+ RuboCop::Cop::Sorbet::CallbackConditionalsBinding::CALLBACKS = T.let(T.unsafe(nil), Array)
161
+
162
+ # This cop disallows the usage of `checked(true)`. This usage could cause
163
+ # confusion; it could lead some people to believe that a method would be checked
164
+ # even if runtime checks have not been enabled on the class or globally.
165
+ # Additionally, in the event where checks are enabled, `checked(true)` would
166
+ # be redundant; only `checked(false)` or `soft` would change the behaviour.
167
+ #
168
+ # @example
169
+ #
170
+ # # bad
171
+ # sig { void.checked(true) }
172
+ #
173
+ # # good
174
+ # sig { void }
175
+ #
176
+ # source://rubocop-sorbet//lib/rubocop/cop/sorbet/signatures/checked_true_in_signature.rb#22
177
+ class RuboCop::Cop::Sorbet::CheckedTrueInSignature < ::RuboCop::Cop::Sorbet::SignatureCop
178
+ include ::RuboCop::Cop::RangeHelp
179
+
180
+ # source://rubocop-sorbet//lib/rubocop/cop/sorbet/signatures/checked_true_in_signature.rb#25
181
+ def offending_node(param0); end
182
+
183
+ # source://rubocop-sorbet//lib/rubocop/cop/sorbet/signatures/checked_true_in_signature.rb#36
184
+ def on_signature(node); end
185
+ end
186
+
187
+ # source://rubocop-sorbet//lib/rubocop/cop/sorbet/signatures/checked_true_in_signature.rb#29
188
+ RuboCop::Cop::Sorbet::CheckedTrueInSignature::MESSAGE = T.let(T.unsafe(nil), String)
189
+
190
+ # This cop disallows the calls that are used to get constants fom Strings
191
+ # such as +constantize+, +const_get+, and +constants+.
192
+ #
193
+ # The goal of this cop is to make the code easier to statically analyze,
194
+ # more IDE-friendly, and more predictable. It leads to code that clearly
195
+ # expresses which values the constant can have.
196
+ #
197
+ # @example
198
+ #
199
+ # # bad
200
+ # class_name.constantize
201
+ #
202
+ # # bad
203
+ # constants.detect { |c| c.name == "User" }
204
+ #
205
+ # # bad
206
+ # const_get(class_name)
207
+ #
208
+ # # good
209
+ # case class_name
210
+ # when "User"
211
+ # User
212
+ # else
213
+ # raise ArgumentError
214
+ # end
215
+ #
216
+ # # good
217
+ # { "User" => User }.fetch(class_name)
218
+ #
219
+ # source://rubocop-sorbet//lib/rubocop/cop/sorbet/constants_from_strings.rb#36
220
+ class RuboCop::Cop::Sorbet::ConstantsFromStrings < ::RuboCop::Cop::Cop
221
+ # source://rubocop-sorbet//lib/rubocop/cop/sorbet/constants_from_strings.rb#37
222
+ def constant_from_string?(param0 = T.unsafe(nil)); end
223
+
224
+ # source://rubocop-sorbet//lib/rubocop/cop/sorbet/constants_from_strings.rb#41
225
+ def on_send(node); end
226
+ end
227
+
228
+ # This cop checks that the Sorbet sigil comes as the first magic comment in the file.
229
+ #
230
+ # The expected order for magic comments is: typed, (en)?coding, warn_indent then frozen_string_literal.
231
+ #
232
+ # For example, the following bad ordering:
233
+ #
234
+ # ```ruby
235
+ # class Foo; end
236
+ # ```
237
+ #
238
+ # Will be corrected as:
239
+ #
240
+ # ```ruby
241
+ # class Foo; end
242
+ # ```
243
+ #
244
+ # Only `typed`, `(en)?coding`, `warn_indent` and `frozen_string_literal` magic comments are considered,
245
+ # other comments or magic comments are left in the same place.
246
+ #
247
+ # source://rubocop-sorbet//lib/rubocop/cop/sorbet/sigils/enforce_sigil_order.rb#30
248
+ class RuboCop::Cop::Sorbet::EnforceSigilOrder < ::RuboCop::Cop::Sorbet::ValidSigil
249
+ include ::RuboCop::Cop::RangeHelp
250
+
251
+ # source://rubocop-sorbet//lib/rubocop/cop/sorbet/sigils/enforce_sigil_order.rb#42
252
+ def autocorrect(_node); end
253
+
254
+ # source://rubocop-sorbet//lib/rubocop/cop/sorbet/sigils/enforce_sigil_order.rb#33
255
+ def investigate(processed_source); end
256
+
257
+ protected
258
+
259
+ # checks
260
+ #
261
+ # source://rubocop-sorbet//lib/rubocop/cop/sorbet/sigils/enforce_sigil_order.rb#91
262
+ def check_magic_comments_order(tokens); end
263
+
264
+ # Get all the tokens in `processed_source` that match `MAGIC_REGEX`
265
+ #
266
+ # source://rubocop-sorbet//lib/rubocop/cop/sorbet/sigils/enforce_sigil_order.rb#83
267
+ def extract_magic_comments(processed_source); end
268
+ end
269
+
270
+ # source://rubocop-sorbet//lib/rubocop/cop/sorbet/sigils/enforce_sigil_order.rb#67
271
+ RuboCop::Cop::Sorbet::EnforceSigilOrder::CODING_REGEX = T.let(T.unsafe(nil), Regexp)
272
+
273
+ # source://rubocop-sorbet//lib/rubocop/cop/sorbet/sigils/enforce_sigil_order.rb#69
274
+ RuboCop::Cop::Sorbet::EnforceSigilOrder::FROZEN_REGEX = T.let(T.unsafe(nil), Regexp)
275
+
276
+ # source://rubocop-sorbet//lib/rubocop/cop/sorbet/sigils/enforce_sigil_order.rb#68
277
+ RuboCop::Cop::Sorbet::EnforceSigilOrder::INDENT_REGEX = T.let(T.unsafe(nil), Regexp)
278
+
279
+ # source://rubocop-sorbet//lib/rubocop/cop/sorbet/sigils/enforce_sigil_order.rb#78
280
+ RuboCop::Cop::Sorbet::EnforceSigilOrder::MAGIC_REGEX = T.let(T.unsafe(nil), Regexp)
281
+
282
+ # source://rubocop-sorbet//lib/rubocop/cop/sorbet/sigils/enforce_sigil_order.rb#71
283
+ RuboCop::Cop::Sorbet::EnforceSigilOrder::PREFERRED_ORDER = T.let(T.unsafe(nil), Hash)
284
+
285
+ # This cop checks that every method definition and attribute accessor has a Sorbet signature.
286
+ #
287
+ # It also suggest an autocorrect with placeholders so the following code:
288
+ #
289
+ # ```
290
+ # def foo(a, b, c); end
291
+ # ```
292
+ #
293
+ # Will be corrected as:
294
+ #
295
+ # ```
296
+ # sig { params(a: T.untyped, b: T.untyped, c: T.untyped).returns(T.untyped)
297
+ # def foo(a, b, c); end
298
+ # ```
299
+ #
300
+ # You can configure the placeholders used by changing the following options:
301
+ #
302
+ # * `ParameterTypePlaceholder`: placeholders used for parameter types (default: 'T.untyped')
303
+ # * `ReturnTypePlaceholder`: placeholders used for return types (default: 'T.untyped')
304
+ #
305
+ # source://rubocop-sorbet//lib/rubocop/cop/sorbet/signatures/enforce_signatures.rb#29
306
+ class RuboCop::Cop::Sorbet::EnforceSignatures < ::RuboCop::Cop::Sorbet::SignatureCop
307
+ # @return [EnforceSignatures] a new instance of EnforceSignatures
308
+ #
309
+ # source://rubocop-sorbet//lib/rubocop/cop/sorbet/signatures/enforce_signatures.rb#30
310
+ def initialize(config = T.unsafe(nil), options = T.unsafe(nil)); end
311
+
312
+ # source://rubocop-sorbet//lib/rubocop/cop/sorbet/signatures/enforce_signatures.rb#35
313
+ def accessor?(param0 = T.unsafe(nil)); end
314
+
315
+ # source://rubocop-sorbet//lib/rubocop/cop/sorbet/signatures/enforce_signatures.rb#55
316
+ def autocorrect(node); end
317
+
318
+ # source://rubocop-sorbet//lib/rubocop/cop/sorbet/signatures/enforce_signatures.rb#39
319
+ def on_def(node); end
320
+
321
+ # source://rubocop-sorbet//lib/rubocop/cop/sorbet/signatures/enforce_signatures.rb#43
322
+ def on_defs(node); end
323
+
324
+ # source://rubocop-sorbet//lib/rubocop/cop/sorbet/signatures/enforce_signatures.rb#47
325
+ def on_send(node); end
326
+
327
+ # source://rubocop-sorbet//lib/rubocop/cop/sorbet/signatures/enforce_signatures.rb#51
328
+ def on_signature(node); end
329
+
330
+ # source://rubocop-sorbet//lib/rubocop/cop/sorbet/signatures/enforce_signatures.rb#74
331
+ def scope(node); end
332
+
333
+ private
334
+
335
+ # source://rubocop-sorbet//lib/rubocop/cop/sorbet/signatures/enforce_signatures.rb#82
336
+ def check_node(node); end
337
+
338
+ # source://rubocop-sorbet//lib/rubocop/cop/sorbet/signatures/enforce_signatures.rb#93
339
+ def param_type_placeholder; end
340
+
341
+ # source://rubocop-sorbet//lib/rubocop/cop/sorbet/signatures/enforce_signatures.rb#97
342
+ def return_type_placeholder; end
343
+ end
344
+
345
+ # source://rubocop-sorbet//lib/rubocop/cop/sorbet/signatures/enforce_signatures.rb#101
346
+ class RuboCop::Cop::Sorbet::EnforceSignatures::SigSuggestion
347
+ # @return [SigSuggestion] a new instance of SigSuggestion
348
+ #
349
+ # source://rubocop-sorbet//lib/rubocop/cop/sorbet/signatures/enforce_signatures.rb#104
350
+ def initialize(indent, param_placeholder, return_placeholder); end
351
+
352
+ # Returns the value of attribute params.
353
+ #
354
+ # source://rubocop-sorbet//lib/rubocop/cop/sorbet/signatures/enforce_signatures.rb#102
355
+ def params; end
356
+
357
+ # Sets the attribute params
358
+ #
359
+ # @param value the value to set the attribute params to.
360
+ #
361
+ # source://rubocop-sorbet//lib/rubocop/cop/sorbet/signatures/enforce_signatures.rb#102
362
+ def params=(_arg0); end
363
+
364
+ # Returns the value of attribute returns.
365
+ #
366
+ # source://rubocop-sorbet//lib/rubocop/cop/sorbet/signatures/enforce_signatures.rb#102
367
+ def returns; end
368
+
369
+ # Sets the attribute returns
370
+ #
371
+ # @param value the value to set the attribute returns to.
372
+ #
373
+ # source://rubocop-sorbet//lib/rubocop/cop/sorbet/signatures/enforce_signatures.rb#102
374
+ def returns=(_arg0); end
375
+
376
+ # source://rubocop-sorbet//lib/rubocop/cop/sorbet/signatures/enforce_signatures.rb#112
377
+ def to_autocorrect; end
378
+
379
+ private
380
+
381
+ # source://rubocop-sorbet//lib/rubocop/cop/sorbet/signatures/enforce_signatures.rb#124
382
+ def generate_params; end
383
+
384
+ # source://rubocop-sorbet//lib/rubocop/cop/sorbet/signatures/enforce_signatures.rb#135
385
+ def generate_return; end
386
+ end
387
+
388
+ # This cop checks that there is only one Sorbet sigil in a given file
389
+ #
390
+ # For example, the following class with two sigils
391
+ #
392
+ # ```ruby
393
+ # class Foo; end
394
+ # ```
395
+ #
396
+ # Will be corrected as:
397
+ #
398
+ # ```ruby
399
+ # class Foo; end
400
+ # ```
401
+ #
402
+ # Other comments or magic comments are left in place.
403
+ #
404
+ # source://rubocop-sorbet//lib/rubocop/cop/sorbet/sigils/enforce_single_sigil.rb#26
405
+ class RuboCop::Cop::Sorbet::EnforceSingleSigil < ::RuboCop::Cop::Sorbet::ValidSigil
406
+ include ::RuboCop::Cop::RangeHelp
407
+
408
+ # source://rubocop-sorbet//lib/rubocop/cop/sorbet/sigils/enforce_single_sigil.rb#39
409
+ def autocorrect(_node); end
410
+
411
+ # source://rubocop-sorbet//lib/rubocop/cop/sorbet/sigils/enforce_single_sigil.rb#29
412
+ def investigate(processed_source); end
413
+
414
+ protected
415
+
416
+ # source://rubocop-sorbet//lib/rubocop/cop/sorbet/sigils/enforce_single_sigil.rb#55
417
+ def extract_all_sigils(processed_source); end
418
+ end
419
+
420
+ # This cop makes the Sorbet `false` sigil mandatory in all files.
421
+ #
422
+ # source://rubocop-sorbet//lib/rubocop/cop/sorbet/sigils/false_sigil.rb#10
423
+ class RuboCop::Cop::Sorbet::FalseSigil < ::RuboCop::Cop::Sorbet::HasSigil
424
+ # source://rubocop-sorbet//lib/rubocop/cop/sorbet/sigils/false_sigil.rb#11
425
+ def minimum_strictness; end
426
+ end
427
+
428
+ # This cop ensures RBI shims do not include a call to extend T::Sig
429
+ # or to extend T::Helpers
430
+ #
431
+ # @example
432
+ #
433
+ # # bad
434
+ # module SomeModule
435
+ # extend T::Sig
436
+ # extend T::Helpers
437
+ #
438
+ # sig { returns(String) }
439
+ # def foo; end
440
+ # end
441
+ #
442
+ # # good
443
+ # module SomeModule
444
+ # sig { returns(String) }
445
+ # def foo; end
446
+ # end
447
+ #
448
+ # source://rubocop-sorbet//lib/rubocop/cop/sorbet/rbi/forbid_extend_t_sig_helpers_in_shims.rb#25
449
+ class RuboCop::Cop::Sorbet::ForbidExtendTSigHelpersInShims < ::RuboCop::Cop::Cop
450
+ include ::RuboCop::Cop::RangeHelp
451
+
452
+ # source://rubocop-sorbet//lib/rubocop/cop/sorbet/rbi/forbid_extend_t_sig_helpers_in_shims.rb#39
453
+ def autocorrect(node); end
454
+
455
+ # source://rubocop-sorbet//lib/rubocop/cop/sorbet/rbi/forbid_extend_t_sig_helpers_in_shims.rb#35
456
+ def extend_t_helpers?(param0 = T.unsafe(nil)); end
457
+
458
+ # source://rubocop-sorbet//lib/rubocop/cop/sorbet/rbi/forbid_extend_t_sig_helpers_in_shims.rb#31
459
+ def extend_t_sig?(param0 = T.unsafe(nil)); end
460
+
461
+ # source://rubocop-sorbet//lib/rubocop/cop/sorbet/rbi/forbid_extend_t_sig_helpers_in_shims.rb#47
462
+ def on_send(node); end
463
+ end
464
+
465
+ # source://rubocop-sorbet//lib/rubocop/cop/sorbet/rbi/forbid_extend_t_sig_helpers_in_shims.rb#28
466
+ RuboCop::Cop::Sorbet::ForbidExtendTSigHelpersInShims::MSG = T.let(T.unsafe(nil), String)
467
+
468
+ # source://rubocop-sorbet//lib/rubocop/cop/sorbet/rbi/forbid_extend_t_sig_helpers_in_shims.rb#29
469
+ RuboCop::Cop::Sorbet::ForbidExtendTSigHelpersInShims::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array)
470
+
471
+ # source://rubocop-sorbet//lib/rubocop/cop/sorbet/forbid_include_const_literal.rb#29
472
+ class RuboCop::Cop::Sorbet::ForbidIncludeConstLiteral < ::RuboCop::Cop::Cop
473
+ # @return [ForbidIncludeConstLiteral] a new instance of ForbidIncludeConstLiteral
474
+ #
475
+ # source://rubocop-sorbet//lib/rubocop/cop/sorbet/forbid_include_const_literal.rb#40
476
+ def initialize(*_arg0); end
477
+
478
+ # source://rubocop-sorbet//lib/rubocop/cop/sorbet/forbid_include_const_literal.rb#56
479
+ def autocorrect(node); end
480
+
481
+ # source://rubocop-sorbet//lib/rubocop/cop/sorbet/forbid_include_const_literal.rb#34
482
+ def not_lit_const_include?(param0 = T.unsafe(nil)); end
483
+
484
+ # source://rubocop-sorbet//lib/rubocop/cop/sorbet/forbid_include_const_literal.rb#45
485
+ def on_send(node); end
486
+
487
+ # Returns the value of attribute used_names.
488
+ #
489
+ # source://rubocop-sorbet//lib/rubocop/cop/sorbet/forbid_include_const_literal.rb#32
490
+ def used_names; end
491
+
492
+ # Sets the attribute used_names
493
+ #
494
+ # @param value the value to set the attribute used_names to.
495
+ #
496
+ # source://rubocop-sorbet//lib/rubocop/cop/sorbet/forbid_include_const_literal.rb#32
497
+ def used_names=(_arg0); end
498
+ end
499
+
500
+ # source://rubocop-sorbet//lib/rubocop/cop/sorbet/forbid_include_const_literal.rb#30
501
+ RuboCop::Cop::Sorbet::ForbidIncludeConstLiteral::MSG = T.let(T.unsafe(nil), String)
502
+
503
+ # This cop makes sure that RBI files are always located under the defined allowed paths.
504
+ #
505
+ # Options:
506
+ #
507
+ # * `AllowedPaths`: A list of the paths where RBI files are allowed (default: ["sorbet/rbi/**"])
508
+ #
509
+ # @example
510
+ # # bad
511
+ # # lib/some_file.rbi
512
+ # # other_file.rbi
513
+ #
514
+ # # good
515
+ # # sorbet/rbi/some_file.rbi
516
+ # # sorbet/rbi/any/path/for/file.rbi
517
+ #
518
+ # source://rubocop-sorbet//lib/rubocop/cop/sorbet/rbi/forbid_rbi_outside_of_allowed_paths.rb#22
519
+ class RuboCop::Cop::Sorbet::ForbidRBIOutsideOfAllowedPaths < ::RuboCop::Cop::Cop
520
+ include ::RuboCop::Cop::RangeHelp
521
+
522
+ # source://rubocop-sorbet//lib/rubocop/cop/sorbet/rbi/forbid_rbi_outside_of_allowed_paths.rb#25
523
+ def investigate(processed_source); end
524
+
525
+ private
526
+
527
+ # source://rubocop-sorbet//lib/rubocop/cop/sorbet/rbi/forbid_rbi_outside_of_allowed_paths.rb#57
528
+ def allowed_paths; end
529
+ end
530
+
531
+ # source://rubocop-sorbet//lib/rubocop/cop/sorbet/forbid_superclass_const_literal.rb#27
532
+ class RuboCop::Cop::Sorbet::ForbidSuperclassConstLiteral < ::RuboCop::Cop::Cop
533
+ # source://rubocop-sorbet//lib/rubocop/cop/sorbet/forbid_superclass_const_literal.rb#30
534
+ def not_lit_const_superclass?(param0 = T.unsafe(nil)); end
535
+
536
+ # source://rubocop-sorbet//lib/rubocop/cop/sorbet/forbid_superclass_const_literal.rb#38
537
+ def on_class(node); end
538
+ end
539
+
540
+ # source://rubocop-sorbet//lib/rubocop/cop/sorbet/forbid_superclass_const_literal.rb#28
541
+ RuboCop::Cop::Sorbet::ForbidSuperclassConstLiteral::MSG = T.let(T.unsafe(nil), String)
542
+
543
+ # This cop disallows using `T.unsafe` anywhere.
544
+ #
545
+ # @example
546
+ #
547
+ # # bad
548
+ # T.unsafe(foo)
549
+ #
550
+ # # good
551
+ # foo
552
+ #
553
+ # source://rubocop-sorbet//lib/rubocop/cop/sorbet/forbid_t_unsafe.rb#17
554
+ class RuboCop::Cop::Sorbet::ForbidTUnsafe < ::RuboCop::Cop::Cop
555
+ # source://rubocop-sorbet//lib/rubocop/cop/sorbet/forbid_t_unsafe.rb#20
556
+ def on_send(node); end
557
+
558
+ # source://rubocop-sorbet//lib/rubocop/cop/sorbet/forbid_t_unsafe.rb#18
559
+ def t_unsafe?(param0 = T.unsafe(nil)); end
560
+ end
561
+
562
+ # This cop disallows using `T.untyped` anywhere.
563
+ #
564
+ # @example
565
+ #
566
+ # # bad
567
+ # sig { params(my_argument: T.untyped).void }
568
+ # def foo(my_argument); end
569
+ #
570
+ # # good
571
+ # sig { params(my_argument: String).void }
572
+ # def foo(my_argument); end
573
+ #
574
+ # source://rubocop-sorbet//lib/rubocop/cop/sorbet/forbid_t_untyped.rb#20
575
+ class RuboCop::Cop::Sorbet::ForbidTUntyped < ::RuboCop::Cop::Cop
576
+ # source://rubocop-sorbet//lib/rubocop/cop/sorbet/forbid_t_untyped.rb#23
577
+ def on_send(node); end
578
+
579
+ # source://rubocop-sorbet//lib/rubocop/cop/sorbet/forbid_t_untyped.rb#21
580
+ def t_untyped?(param0 = T.unsafe(nil)); end
581
+ end
582
+
583
+ # This cop disallows use of `T.untyped` or `T.nilable(T.untyped)`
584
+ # as a prop type for `T::Struct`.
585
+ #
586
+ # @example
587
+ #
588
+ # # bad
589
+ # class SomeClass
590
+ # const :foo, T.untyped
591
+ # prop :bar, T.nilable(T.untyped)
592
+ # end
593
+ #
594
+ # # good
595
+ # class SomeClass
596
+ # const :foo, Integer
597
+ # prop :bar, T.nilable(String)
598
+ # end
599
+ #
600
+ # source://rubocop-sorbet//lib/rubocop/cop/sorbet/forbid_untyped_struct_props.rb#25
601
+ class RuboCop::Cop::Sorbet::ForbidUntypedStructProps < ::RuboCop::Cop::Cop
602
+ # source://rubocop-sorbet//lib/rubocop/cop/sorbet/forbid_untyped_struct_props.rb#48
603
+ def on_class(node); end
604
+
605
+ # source://rubocop-sorbet//lib/rubocop/cop/sorbet/forbid_untyped_struct_props.rb#40
606
+ def subclass_of_t_struct?(param0 = T.unsafe(nil)); end
607
+
608
+ # source://rubocop-sorbet//lib/rubocop/cop/sorbet/forbid_untyped_struct_props.rb#36
609
+ def t_nilable_untyped(param0 = T.unsafe(nil)); end
610
+
611
+ # source://rubocop-sorbet//lib/rubocop/cop/sorbet/forbid_untyped_struct_props.rb#28
612
+ def t_struct(param0 = T.unsafe(nil)); end
613
+
614
+ # source://rubocop-sorbet//lib/rubocop/cop/sorbet/forbid_untyped_struct_props.rb#32
615
+ def t_untyped(param0 = T.unsafe(nil)); end
616
+
617
+ # source://rubocop-sorbet//lib/rubocop/cop/sorbet/forbid_untyped_struct_props.rb#44
618
+ def untyped_props(param0); end
619
+ end
620
+
621
+ # source://rubocop-sorbet//lib/rubocop/cop/sorbet/forbid_untyped_struct_props.rb#26
622
+ RuboCop::Cop::Sorbet::ForbidUntypedStructProps::MSG = T.let(T.unsafe(nil), String)
623
+
624
+ # This cop makes the Sorbet typed sigil mandatory in all files.
625
+ #
626
+ # Options:
627
+ #
628
+ # * `SuggestedStrictness`: Sorbet strictness level suggested in offense messages (default: 'false')
629
+ # * `MinimumStrictness`: If set, make offense if the strictness level in the file is below this one
630
+ #
631
+ # If a `MinimumStrictness` level is specified, it will be used in offense messages and autocorrect.
632
+ #
633
+ # source://rubocop-sorbet//lib/rubocop/cop/sorbet/sigils/has_sigil.rb#17
634
+ class RuboCop::Cop::Sorbet::HasSigil < ::RuboCop::Cop::Sorbet::ValidSigil
635
+ # @return [Boolean]
636
+ #
637
+ # source://rubocop-sorbet//lib/rubocop/cop/sorbet/sigils/has_sigil.rb#20
638
+ def require_sigil_on_all_files?; end
639
+ end
640
+
641
+ # This cop makes the Sorbet `ignore` sigil mandatory in all files.
642
+ #
643
+ # source://rubocop-sorbet//lib/rubocop/cop/sorbet/sigils/ignore_sigil.rb#10
644
+ class RuboCop::Cop::Sorbet::IgnoreSigil < ::RuboCop::Cop::Sorbet::HasSigil
645
+ # source://rubocop-sorbet//lib/rubocop/cop/sorbet/sigils/ignore_sigil.rb#11
646
+ def minimum_strictness; end
647
+ end
648
+
649
+ # This cop checks for the ordering of keyword arguments required by
650
+ # sorbet-runtime. The ordering requires that all keyword arguments
651
+ # are at the end of the parameters list, and all keyword arguments
652
+ # with a default value must be after those without default values.
653
+ #
654
+ # @example
655
+ #
656
+ # # bad
657
+ # sig { params(a: Integer, b: String).void }
658
+ # def foo(a: 1, b:); end
659
+ #
660
+ # # good
661
+ # sig { params(b: String, a: Integer).void }
662
+ # def foo(b:, a: 1); end
663
+ #
664
+ # source://rubocop-sorbet//lib/rubocop/cop/sorbet/signatures/keyword_argument_ordering.rb#23
665
+ class RuboCop::Cop::Sorbet::KeywordArgumentOrdering < ::RuboCop::Cop::Sorbet::SignatureCop
666
+ # source://rubocop-sorbet//lib/rubocop/cop/sorbet/signatures/keyword_argument_ordering.rb#24
667
+ def on_signature(node); end
668
+
669
+ private
670
+
671
+ # source://rubocop-sorbet//lib/rubocop/cop/sorbet/signatures/keyword_argument_ordering.rb#34
672
+ def check_order_for_kwoptargs(parameters); end
673
+ end
674
+
675
+ # source://rubocop-sorbet//lib/rubocop/cop/sorbet/mutable_constant_sorbet_aware_behaviour.rb#8
676
+ module RuboCop::Cop::Sorbet::MutableConstantSorbetAwareBehaviour
677
+ # source://rubocop-sorbet//lib/rubocop/cop/sorbet/mutable_constant_sorbet_aware_behaviour.rb#15
678
+ def on_assignment(value); end
679
+
680
+ class << self
681
+ # source://rubocop-sorbet//lib/rubocop/cop/sorbet/mutable_constant_sorbet_aware_behaviour.rb#9
682
+ def prepended(base); end
683
+ end
684
+ end
685
+
686
+ # This cop ensures one ancestor per requires_ancestor line
687
+ # rather than chaining them as a comma-separated list.
688
+ #
689
+ # @example
690
+ #
691
+ # # bad
692
+ # module SomeModule
693
+ # requires_ancestor Kernel, Minitest::Assertions
694
+ # end
695
+ #
696
+ # # good
697
+ # module SomeModule
698
+ # requires_ancestor Kernel
699
+ # requires_ancestor Minitest::Assertions
700
+ # end
701
+ #
702
+ # source://rubocop-sorbet//lib/rubocop/cop/sorbet/one_ancestor_per_line.rb#24
703
+ class RuboCop::Cop::Sorbet::OneAncestorPerLine < ::RuboCop::Cop::Cop
704
+ # source://rubocop-sorbet//lib/rubocop/cop/sorbet/one_ancestor_per_line.rb#35
705
+ def abstract?(param0); end
706
+
707
+ # source://rubocop-sorbet//lib/rubocop/cop/sorbet/one_ancestor_per_line.rb#51
708
+ def autocorrect(node); end
709
+
710
+ # source://rubocop-sorbet//lib/rubocop/cop/sorbet/one_ancestor_per_line.rb#31
711
+ def more_than_one_ancestor(param0 = T.unsafe(nil)); end
712
+
713
+ # source://rubocop-sorbet//lib/rubocop/cop/sorbet/one_ancestor_per_line.rb#45
714
+ def on_class(node); end
715
+
716
+ # source://rubocop-sorbet//lib/rubocop/cop/sorbet/one_ancestor_per_line.rb#39
717
+ def on_module(node); end
718
+
719
+ # source://rubocop-sorbet//lib/rubocop/cop/sorbet/one_ancestor_per_line.rb#27
720
+ def requires_ancestors(param0); end
721
+
722
+ private
723
+
724
+ # source://rubocop-sorbet//lib/rubocop/cop/sorbet/one_ancestor_per_line.rb#67
725
+ def new_ra_line(indent_count); end
726
+
727
+ # source://rubocop-sorbet//lib/rubocop/cop/sorbet/one_ancestor_per_line.rb#61
728
+ def process_node(node); end
729
+ end
730
+
731
+ # source://rubocop-sorbet//lib/rubocop/cop/sorbet/one_ancestor_per_line.rb#25
732
+ RuboCop::Cop::Sorbet::OneAncestorPerLine::MSG = T.let(T.unsafe(nil), String)
733
+
734
+ # source://rubocop-sorbet//lib/rubocop/cop/sorbet/signatures/signature_build_order.rb#15
735
+ class RuboCop::Cop::Sorbet::SignatureBuildOrder < ::RuboCop::Cop::Sorbet::SignatureCop
736
+ # source://rubocop-sorbet//lib/rubocop/cop/sorbet/signatures/signature_build_order.rb#54
737
+ def autocorrect(node); end
738
+
739
+ # source://rubocop-sorbet//lib/rubocop/cop/sorbet/signatures/signature_build_order.rb#34
740
+ def on_signature(node); end
741
+
742
+ # source://rubocop-sorbet//lib/rubocop/cop/sorbet/signatures/signature_build_order.rb#30
743
+ def root_call(param0); end
744
+
745
+ private
746
+
747
+ # source://rubocop-sorbet//lib/rubocop/cop/sorbet/signatures/signature_build_order.rb#96
748
+ def call_chain(sig_child_node); end
749
+
750
+ # @return [Boolean]
751
+ #
752
+ # source://rubocop-sorbet//lib/rubocop/cop/sorbet/signatures/signature_build_order.rb#92
753
+ def can_autocorrect?; end
754
+
755
+ # This method exists to reparse the current node with modern features enabled.
756
+ # Modern features include "index send" emitting, which is necessary to unparse
757
+ # "index sends" (i.e. `[]` calls) back to index accessors (i.e. as `foo[bar]``).
758
+ # Otherwise, we would get the unparsed node as `foo.[](bar)`.
759
+ #
760
+ # source://rubocop-sorbet//lib/rubocop/cop/sorbet/signatures/signature_build_order.rb#83
761
+ def node_reparsed_with_modern_features(node); end
762
+ end
763
+
764
+ # Create a subclass of AST Builder that has modern features turned on
765
+ #
766
+ # source://rubocop-sorbet//lib/rubocop/cop/sorbet/signatures/signature_build_order.rb#72
767
+ class RuboCop::Cop::Sorbet::SignatureBuildOrder::ModernBuilder < ::RuboCop::AST::Builder; end
768
+
769
+ # source://rubocop-sorbet//lib/rubocop/cop/sorbet/signatures/signature_build_order.rb#16
770
+ RuboCop::Cop::Sorbet::SignatureBuildOrder::ORDER = T.let(T.unsafe(nil), Hash)
771
+
772
+ # Abstract cop specific to Sorbet signatures
773
+ #
774
+ # You can subclass it to use the `on_signature` trigger and the `signature?` node matcher.
775
+ #
776
+ # source://rubocop-sorbet//lib/rubocop/cop/sorbet/signatures/signature_cop.rb#11
777
+ class RuboCop::Cop::Sorbet::SignatureCop < ::RuboCop::Cop::Cop
778
+ # source://rubocop-sorbet//lib/rubocop/cop/sorbet/signatures/signature_cop.rb#26
779
+ def allowed_recv(recv); end
780
+
781
+ # source://rubocop-sorbet//lib/rubocop/cop/sorbet/signatures/signature_cop.rb#33
782
+ def on_block(node); end
783
+
784
+ # source://rubocop-sorbet//lib/rubocop/cop/sorbet/signatures/signature_cop.rb#37
785
+ def on_signature(_); end
786
+
787
+ # source://rubocop-sorbet//lib/rubocop/cop/sorbet/signatures/signature_cop.rb#14
788
+ def signature?(param0 = T.unsafe(nil)); end
789
+
790
+ # source://rubocop-sorbet//lib/rubocop/cop/sorbet/signatures/signature_cop.rb#18
791
+ def with_runtime?(param0 = T.unsafe(nil)); end
792
+
793
+ # source://rubocop-sorbet//lib/rubocop/cop/sorbet/signatures/signature_cop.rb#22
794
+ def without_runtime?(param0 = T.unsafe(nil)); end
795
+ end
796
+
797
+ # This cop ensures empty class/module definitions in RBI files are
798
+ # done on a single line rather than being split across multiple lines.
799
+ #
800
+ # @example
801
+ #
802
+ # # bad
803
+ # module SomeModule
804
+ # end
805
+ #
806
+ # # good
807
+ # module SomeModule; end
808
+ #
809
+ # source://rubocop-sorbet//lib/rubocop/cop/sorbet/rbi/single_line_rbi_class_module_definitions.rb#17
810
+ class RuboCop::Cop::Sorbet::SingleLineRbiClassModuleDefinitions < ::RuboCop::Cop::Cop
811
+ # source://rubocop-sorbet//lib/rubocop/cop/sorbet/rbi/single_line_rbi_class_module_definitions.rb#28
812
+ def autocorrect(node); end
813
+
814
+ # source://rubocop-sorbet//lib/rubocop/cop/sorbet/rbi/single_line_rbi_class_module_definitions.rb#24
815
+ def on_class(node); end
816
+
817
+ # source://rubocop-sorbet//lib/rubocop/cop/sorbet/rbi/single_line_rbi_class_module_definitions.rb#20
818
+ def on_module(node); end
819
+
820
+ protected
821
+
822
+ # source://rubocop-sorbet//lib/rubocop/cop/sorbet/rbi/single_line_rbi_class_module_definitions.rb#34
823
+ def convert_newlines(source); end
824
+
825
+ # source://rubocop-sorbet//lib/rubocop/cop/sorbet/rbi/single_line_rbi_class_module_definitions.rb#38
826
+ def process_node(node); end
827
+ end
828
+
829
+ # source://rubocop-sorbet//lib/rubocop/cop/sorbet/rbi/single_line_rbi_class_module_definitions.rb#18
830
+ RuboCop::Cop::Sorbet::SingleLineRbiClassModuleDefinitions::MSG = T.let(T.unsafe(nil), String)
831
+
832
+ # This cop makes the Sorbet `strict` sigil mandatory in all files.
833
+ #
834
+ # source://rubocop-sorbet//lib/rubocop/cop/sorbet/sigils/strict_sigil.rb#10
835
+ class RuboCop::Cop::Sorbet::StrictSigil < ::RuboCop::Cop::Sorbet::HasSigil
836
+ # source://rubocop-sorbet//lib/rubocop/cop/sorbet/sigils/strict_sigil.rb#11
837
+ def minimum_strictness; end
838
+ end
839
+
840
+ # This cop makes the Sorbet `strong` sigil mandatory in all files.
841
+ #
842
+ # source://rubocop-sorbet//lib/rubocop/cop/sorbet/sigils/strong_sigil.rb#10
843
+ class RuboCop::Cop::Sorbet::StrongSigil < ::RuboCop::Cop::Sorbet::HasSigil
844
+ # source://rubocop-sorbet//lib/rubocop/cop/sorbet/sigils/strong_sigil.rb#11
845
+ def minimum_strictness; end
846
+ end
847
+
848
+ # This cop makes the Sorbet `true` sigil mandatory in all files.
849
+ #
850
+ # source://rubocop-sorbet//lib/rubocop/cop/sorbet/sigils/true_sigil.rb#10
851
+ class RuboCop::Cop::Sorbet::TrueSigil < ::RuboCop::Cop::Sorbet::HasSigil
852
+ # source://rubocop-sorbet//lib/rubocop/cop/sorbet/sigils/true_sigil.rb#11
853
+ def minimum_strictness; end
854
+ end
855
+
856
+ # This cop ensures all constants used as `T.type_alias` are using CamelCase.
857
+ #
858
+ # @example
859
+ #
860
+ # # bad
861
+ # FOO_OR_BAR = T.type_alias { T.any(Foo, Bar) }
862
+ #
863
+ # # good
864
+ # FooOrBar = T.type_alias { T.any(Foo, Bar) }
865
+ #
866
+ # source://rubocop-sorbet//lib/rubocop/cop/sorbet/type_alias_name.rb#17
867
+ class RuboCop::Cop::Sorbet::TypeAliasName < ::RuboCop::Cop::Cop
868
+ # source://rubocop-sorbet//lib/rubocop/cop/sorbet/type_alias_name.rb#20
869
+ def casgn_type_alias?(param0 = T.unsafe(nil)); end
870
+
871
+ # source://rubocop-sorbet//lib/rubocop/cop/sorbet/type_alias_name.rb#32
872
+ def on_casgn(node); end
873
+ end
874
+
875
+ # source://rubocop-sorbet//lib/rubocop/cop/sorbet/type_alias_name.rb#18
876
+ RuboCop::Cop::Sorbet::TypeAliasName::MSG = T.let(T.unsafe(nil), String)
877
+
878
+ # This cop checks that every Ruby file contains a valid Sorbet sigil.
879
+ # Adapted from: https://gist.github.com/clarkdave/85aca4e16f33fd52aceb6a0a29936e52
880
+ #
881
+ # Options:
882
+ #
883
+ # * `RequireSigilOnAllFiles`: make offense if the Sorbet typed is not found in the file (default: false)
884
+ # * `SuggestedStrictness`: Sorbet strictness level suggested in offense messages (default: 'false')
885
+ # * `MinimumStrictness`: If set, make offense if the strictness level in the file is below this one
886
+ #
887
+ # If a `MinimumStrictness` level is specified, it will be used in offense messages and autocorrect.
888
+ #
889
+ # source://rubocop-sorbet//lib/rubocop/cop/sorbet/sigils/valid_sigil.rb#18
890
+ class RuboCop::Cop::Sorbet::ValidSigil < ::RuboCop::Cop::Cop
891
+ # source://rubocop-sorbet//lib/rubocop/cop/sorbet/sigils/valid_sigil.rb#33
892
+ def autocorrect(_node); end
893
+
894
+ # source://rubocop-sorbet//lib/rubocop/cop/sorbet/sigils/valid_sigil.rb#21
895
+ def investigate(processed_source); end
896
+
897
+ protected
898
+
899
+ # checks
900
+ #
901
+ # source://rubocop-sorbet//lib/rubocop/cop/sorbet/sigils/valid_sigil.rb#68
902
+ def check_sigil_present(sigil); end
903
+
904
+ # source://rubocop-sorbet//lib/rubocop/cop/sorbet/sigils/valid_sigil.rb#125
905
+ def check_strictness_level(sigil, strictness); end
906
+
907
+ # source://rubocop-sorbet//lib/rubocop/cop/sorbet/sigils/valid_sigil.rb#103
908
+ def check_strictness_not_empty(sigil, strictness); end
909
+
910
+ # source://rubocop-sorbet//lib/rubocop/cop/sorbet/sigils/valid_sigil.rb#114
911
+ def check_strictness_valid(sigil, strictness); end
912
+
913
+ # extraction
914
+ #
915
+ # source://rubocop-sorbet//lib/rubocop/cop/sorbet/sigils/valid_sigil.rb#56
916
+ def extract_sigil(processed_source); end
917
+
918
+ # source://rubocop-sorbet//lib/rubocop/cop/sorbet/sigils/valid_sigil.rb#62
919
+ def extract_strictness(sigil); end
920
+
921
+ # Default is `nil`
922
+ #
923
+ # source://rubocop-sorbet//lib/rubocop/cop/sorbet/sigils/valid_sigil.rb#155
924
+ def minimum_strictness; end
925
+
926
+ # Default is `false`
927
+ #
928
+ # @return [Boolean]
929
+ #
930
+ # source://rubocop-sorbet//lib/rubocop/cop/sorbet/sigils/valid_sigil.rb#144
931
+ def require_sigil_on_all_files?; end
932
+
933
+ # Default is `'false'`
934
+ #
935
+ # source://rubocop-sorbet//lib/rubocop/cop/sorbet/sigils/valid_sigil.rb#149
936
+ def suggested_strictness; end
937
+
938
+ # source://rubocop-sorbet//lib/rubocop/cop/sorbet/sigils/valid_sigil.rb#84
939
+ def suggested_strictness_level(minimum_strictness, suggested_strictness); end
940
+ end
941
+
942
+ # source://rubocop-sorbet//lib/rubocop/cop/sorbet/sigils/valid_sigil.rb#52
943
+ RuboCop::Cop::Sorbet::ValidSigil::SIGIL_REGEX = T.let(T.unsafe(nil), Regexp)
944
+
945
+ # source://rubocop-sorbet//lib/rubocop/cop/sorbet/sigils/valid_sigil.rb#51
946
+ RuboCop::Cop::Sorbet::ValidSigil::STRICTNESS_LEVELS = T.let(T.unsafe(nil), Array)
947
+
948
+ module RuboCop::Cop::Style; end
949
+
950
+ class RuboCop::Cop::Style::MutableConstant < ::RuboCop::Cop::Base
951
+ include ::RuboCop::Cop::Sorbet::MutableConstantSorbetAwareBehaviour
952
+ end
953
+
954
+ # source://rubocop/1.44.1/lib/rubocop/ast_aliases.rb#5
955
+ RuboCop::NodePattern = RuboCop::AST::NodePattern
956
+
957
+ # source://rubocop/1.44.1/lib/rubocop/ast_aliases.rb#6
958
+ RuboCop::ProcessedSource = RuboCop::AST::ProcessedSource
959
+
960
+ # source://rubocop-sorbet//lib/rubocop/sorbet/version.rb#3
961
+ module RuboCop::Sorbet; end
962
+
963
+ # source://rubocop-sorbet//lib/rubocop/sorbet.rb#11
964
+ RuboCop::Sorbet::CONFIG = T.let(T.unsafe(nil), Hash)
965
+
966
+ # source://rubocop-sorbet//lib/rubocop/sorbet.rb#10
967
+ RuboCop::Sorbet::CONFIG_DEFAULT = T.let(T.unsafe(nil), Pathname)
968
+
969
+ # source://rubocop-sorbet//lib/rubocop/sorbet.rb#7
970
+ class RuboCop::Sorbet::Error < ::StandardError; end
971
+
972
+ # Because RuboCop doesn't yet support plugins, we have to monkey patch in a
973
+ # bit of our configuration.
974
+ #
975
+ # source://rubocop-sorbet//lib/rubocop/sorbet/inject.rb#9
976
+ module RuboCop::Sorbet::Inject
977
+ class << self
978
+ # source://rubocop-sorbet//lib/rubocop/sorbet/inject.rb#10
979
+ def defaults!; end
980
+ end
981
+ end
982
+
983
+ # source://rubocop-sorbet//lib/rubocop/sorbet.rb#9
984
+ RuboCop::Sorbet::PROJECT_ROOT = T.let(T.unsafe(nil), Pathname)
985
+
986
+ # source://rubocop-sorbet//lib/rubocop/sorbet/version.rb#4
987
+ RuboCop::Sorbet::VERSION = T.let(T.unsafe(nil), String)
988
+
989
+ # source://rubocop/1.44.1/lib/rubocop/ast_aliases.rb#7
990
+ RuboCop::Token = RuboCop::AST::Token