packwerk 3.2.0 → 3.2.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/packwerk/association_inspector.rb +17 -4
- data/lib/packwerk/checker.rb +3 -3
- data/lib/packwerk/configuration.rb +4 -0
- data/lib/packwerk/const_node_inspector.rb +2 -2
- data/lib/packwerk/constant_name_inspector.rb +2 -2
- data/lib/packwerk/offenses_formatter.rb +3 -3
- data/lib/packwerk/package.rb +1 -1
- data/lib/packwerk/package_todo.rb +1 -4
- data/lib/packwerk/parsers/factory.rb +3 -3
- data/lib/packwerk/parsers/ruby.rb +7 -0
- data/lib/packwerk/reference_extractor.rb +29 -1
- data/lib/packwerk/reference_offense.rb +1 -1
- data/lib/packwerk/run_context.rb +15 -4
- data/lib/packwerk/validator.rb +3 -3
- data/lib/packwerk/version.rb +1 -1
- data/lib/packwerk.rb +1 -0
- data/sorbet/config +1 -0
- data/sorbet/rbi/gems/actionpack@7.0.3.1.rbi +3280 -3450
- data/sorbet/rbi/gems/actionview@7.0.3.1.rbi +2322 -1782
- data/sorbet/rbi/gems/activesupport@7.0.3.1.rbi +2654 -3268
- data/sorbet/rbi/gems/ast@2.4.2.rbi +535 -6
- data/sorbet/rbi/gems/better_html@2.0.1.rbi +529 -0
- data/sorbet/rbi/gems/builder@3.2.4.rbi +4 -4
- data/sorbet/rbi/gems/byebug@11.1.3.rbi +32 -4
- data/sorbet/rbi/gems/concurrent-ruby@1.1.10.rbi +1750 -1840
- data/sorbet/rbi/gems/constant_resolver@0.2.0.rbi +15 -15
- data/sorbet/rbi/gems/crass@1.0.6.rbi +489 -5
- data/sorbet/rbi/gems/erubi@1.11.0.rbi +24 -21
- data/sorbet/rbi/gems/i18n@1.12.0.rbi +395 -395
- data/sorbet/rbi/gems/json@2.6.2.rbi +70 -77
- data/sorbet/rbi/gems/language_server-protocol@3.16.0.3.rbi +1 -1
- data/sorbet/rbi/gems/loofah@2.18.0.rbi +134 -134
- data/sorbet/rbi/gems/m@1.6.0.rbi +60 -60
- data/sorbet/rbi/gems/method_source@1.1.0.rbi +303 -0
- data/sorbet/rbi/gems/minitest-focus@1.3.1.rbi +22 -28
- data/sorbet/rbi/gems/minitest@5.16.2.rbi +384 -396
- data/sorbet/rbi/gems/mocha@1.14.0.rbi +589 -589
- data/sorbet/rbi/gems/netrc@0.11.0.rbi +37 -32
- data/sorbet/rbi/gems/nokogiri@1.15.3.rbi +962 -946
- data/sorbet/rbi/gems/{parallel@1.22.1.rbi → parallel@1.24.0.rbi} +85 -82
- data/sorbet/rbi/gems/{parser@3.2.2.0.rbi → parser@3.3.1.0.rbi} +1679 -1609
- data/sorbet/rbi/gems/prettier_print@0.1.0.rbi +1 -1
- data/sorbet/rbi/gems/{prism@0.24.0.rbi → prism@0.27.0.rbi} +13473 -6472
- data/sorbet/rbi/gems/{racc@1.6.0.rbi → racc@1.7.1.rbi} +42 -33
- data/sorbet/rbi/gems/rack-test@2.0.2.rbi +148 -338
- data/sorbet/rbi/gems/rack@2.2.4.rbi +1079 -1130
- data/sorbet/rbi/gems/rails-dom-testing@2.0.3.rbi +354 -22
- data/sorbet/rbi/gems/rails-html-sanitizer@1.4.3.rbi +113 -259
- data/sorbet/rbi/gems/railties@7.0.3.1.rbi +642 -638
- data/sorbet/rbi/gems/rainbow@3.1.1.rbi +109 -99
- data/sorbet/rbi/gems/rake@13.0.6.rbi +714 -599
- data/sorbet/rbi/gems/{rbi@0.0.15.rbi → rbi@0.1.12.rbi} +865 -801
- data/sorbet/rbi/gems/regexp_parser@2.5.0.rbi +853 -870
- data/sorbet/rbi/gems/rexml@3.2.5.rbi +480 -477
- data/sorbet/rbi/gems/rubocop-ast@1.21.0.rbi +1621 -1622
- data/sorbet/rbi/gems/rubocop-performance@1.14.3.rbi +507 -526
- data/sorbet/rbi/gems/rubocop-shopify@2.9.0.rbi +1 -1
- data/sorbet/rbi/gems/rubocop-sorbet@0.6.11.rbi +186 -203
- data/sorbet/rbi/gems/rubocop@1.34.1.rbi +8126 -8367
- data/sorbet/rbi/gems/{ruby-lsp@0.2.1.rbi → ruby-lsp@0.2.3.rbi} +2 -2
- data/sorbet/rbi/gems/ruby-progressbar@1.11.0.rbi +1235 -4
- data/sorbet/rbi/gems/smart_properties@1.17.0.rbi +90 -90
- data/sorbet/rbi/gems/spoom@1.3.2.rbi +4420 -0
- data/sorbet/rbi/gems/spring@4.0.0.rbi +104 -104
- data/sorbet/rbi/gems/syntax_tree@3.3.0.rbi +1 -1
- data/sorbet/rbi/gems/{tapioca@0.9.2.rbi → tapioca@0.13.3.rbi} +1596 -1253
- data/sorbet/rbi/gems/{thor@1.2.1.rbi → thor@1.3.1.rbi} +1047 -652
- data/sorbet/rbi/gems/tzinfo@2.0.5.rbi +531 -513
- data/sorbet/rbi/gems/unicode-display_width@2.2.0.rbi +13 -13
- data/sorbet/rbi/gems/{yard-sorbet@0.6.1.rbi → yard-sorbet@0.8.1.rbi} +132 -92
- data/sorbet/rbi/gems/{yard@0.9.28.rbi → yard@0.9.36.rbi} +3158 -3067
- data/sorbet/rbi/gems/zeitwerk@2.6.4.rbi +149 -145
- metadata +22 -94
- data/.github/ISSUE_TEMPLATE/bug_report.md +0 -27
- data/.github/pull_request_template.md +0 -28
- data/.github/workflows/ci.yml +0 -93
- data/.github/workflows/cla.yml +0 -22
- data/.gitignore +0 -13
- data/.rubocop.yml +0 -75
- data/.ruby-version +0 -1
- data/CODEOWNERS +0 -1
- data/CODE_OF_CONDUCT.md +0 -76
- data/CONTRIBUTING.md +0 -17
- data/Gemfile +0 -27
- data/Gemfile.lock +0 -206
- data/RESOLVING_VIOLATIONS.md +0 -76
- data/Rakefile +0 -22
- data/TROUBLESHOOT.md +0 -44
- data/UPGRADING.md +0 -66
- data/USAGE.md +0 -364
- data/bin/console +0 -15
- data/bin/m +0 -29
- data/bin/rake +0 -29
- data/bin/rubocop +0 -29
- data/bin/setup +0 -8
- data/bin/srb +0 -29
- data/bin/tapioca +0 -29
- data/dev.yml +0 -32
- data/docs/cohesion.png +0 -0
- data/gemfiles/Gemfile-rails-6-0 +0 -22
- data/gemfiles/Gemfile-rails-6-1 +0 -22
- data/packwerk.gemspec +0 -59
- data/shipit.rubygems.yml +0 -5
- data/sorbet/rbi/gems/actioncable@7.0.3.1.rbi +0 -2754
- data/sorbet/rbi/gems/actionmailbox@7.0.3.1.rbi +0 -1496
- data/sorbet/rbi/gems/actionmailer@7.0.3.1.rbi +0 -2362
- data/sorbet/rbi/gems/actiontext@7.0.3.1.rbi +0 -1569
- data/sorbet/rbi/gems/activejob@7.0.3.1.rbi +0 -2553
- data/sorbet/rbi/gems/activemodel@7.0.3.1.rbi +0 -5999
- data/sorbet/rbi/gems/activerecord@7.0.3.1.rbi +0 -37832
- data/sorbet/rbi/gems/activestorage@7.0.3.1.rbi +0 -2321
- data/sorbet/rbi/gems/better_html@1.0.16.rbi +0 -317
- data/sorbet/rbi/gems/coderay@1.1.3.rbi +0 -8
- data/sorbet/rbi/gems/diff-lcs@1.5.0.rbi +0 -1079
- data/sorbet/rbi/gems/digest@3.1.0.rbi +0 -189
- data/sorbet/rbi/gems/globalid@1.0.0.rbi +0 -572
- data/sorbet/rbi/gems/mail@2.7.1.rbi +0 -2490
- data/sorbet/rbi/gems/marcel@1.0.2.rbi +0 -220
- data/sorbet/rbi/gems/method_source@1.0.0.rbi +0 -76
- data/sorbet/rbi/gems/mini_mime@1.1.2.rbi +0 -170
- data/sorbet/rbi/gems/net-imap@0.2.3.rbi +0 -2147
- data/sorbet/rbi/gems/net-pop@0.1.1.rbi +0 -926
- data/sorbet/rbi/gems/net-protocol@0.1.3.rbi +0 -11
- data/sorbet/rbi/gems/net-smtp@0.3.1.rbi +0 -1108
- data/sorbet/rbi/gems/nio4r@2.5.8.rbi +0 -292
- data/sorbet/rbi/gems/pry@0.14.1.rbi +0 -8
- data/sorbet/rbi/gems/rails@7.0.3.1.rbi +0 -8
- data/sorbet/rbi/gems/spoom@1.1.11.rbi +0 -2181
- data/sorbet/rbi/gems/strscan@3.0.4.rbi +0 -8
- data/sorbet/rbi/gems/timeout@0.3.0.rbi +0 -142
- data/sorbet/rbi/gems/unparser@0.6.5.rbi +0 -4529
- data/sorbet/rbi/gems/webrick@1.7.0.rbi +0 -2582
- data/sorbet/rbi/gems/websocket-driver@0.7.5.rbi +0 -993
- data/sorbet/rbi/gems/websocket-extensions@0.1.5.rbi +0 -71
|
@@ -4,23 +4,13 @@
|
|
|
4
4
|
# This is an autogenerated file for types exported from the `rubocop-sorbet` gem.
|
|
5
5
|
# Please instead update this file by running `bin/tapioca gem rubocop-sorbet`.
|
|
6
6
|
|
|
7
|
-
# source://rubocop-sorbet
|
|
7
|
+
# source://rubocop-sorbet//lib/rubocop/sorbet/version.rb#2
|
|
8
8
|
module RuboCop; end
|
|
9
9
|
|
|
10
|
-
# source://rubocop-sorbet
|
|
10
|
+
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/binding_constants_without_type_alias.rb#6
|
|
11
11
|
module RuboCop::Cop; end
|
|
12
12
|
|
|
13
|
-
#
|
|
14
|
-
#
|
|
15
|
-
# source://rubocop-1.34.1/lib/rubocop/cop/mixin/allowed_methods.rb:33
|
|
16
|
-
RuboCop::Cop::IgnoredMethods = RuboCop::Cop::AllowedMethods
|
|
17
|
-
|
|
18
|
-
# @deprecated IgnoredPattern class has been replaced with AllowedPattern.
|
|
19
|
-
#
|
|
20
|
-
# source://rubocop-1.34.1/lib/rubocop/cop/mixin/allowed_pattern.rb:46
|
|
21
|
-
RuboCop::Cop::IgnoredPattern = RuboCop::Cop::AllowedPattern
|
|
22
|
-
|
|
23
|
-
# source://rubocop-sorbet-0.6.11/lib/rubocop/cop/sorbet/binding_constants_without_type_alias.rb:7
|
|
13
|
+
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/binding_constants_without_type_alias.rb#7
|
|
24
14
|
module RuboCop::Cop::Sorbet; end
|
|
25
15
|
|
|
26
16
|
# This cop disallows using `.override(allow_incompatible: true)`.
|
|
@@ -37,23 +27,23 @@ module RuboCop::Cop::Sorbet; end
|
|
|
37
27
|
# # good
|
|
38
28
|
# sig.override
|
|
39
29
|
#
|
|
40
|
-
# source://rubocop-sorbet
|
|
30
|
+
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/signatures/allow_incompatible_override.rb#21
|
|
41
31
|
class RuboCop::Cop::Sorbet::AllowIncompatibleOverride < ::RuboCop::Cop::Cop
|
|
42
|
-
# source://rubocop-sorbet
|
|
32
|
+
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/signatures/allow_incompatible_override.rb#35
|
|
43
33
|
def allow_incompatible?(param0); end
|
|
44
34
|
|
|
45
|
-
# source://rubocop-sorbet
|
|
35
|
+
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/signatures/allow_incompatible_override.rb#39
|
|
46
36
|
def allow_incompatible_override?(param0 = T.unsafe(nil)); end
|
|
47
37
|
|
|
48
38
|
# @return [Boolean]
|
|
49
39
|
#
|
|
50
|
-
# source://rubocop-sorbet
|
|
40
|
+
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/signatures/allow_incompatible_override.rb#31
|
|
51
41
|
def not_nil?(node); end
|
|
52
42
|
|
|
53
|
-
# source://rubocop-sorbet
|
|
43
|
+
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/signatures/allow_incompatible_override.rb#48
|
|
54
44
|
def on_send(node); end
|
|
55
45
|
|
|
56
|
-
# source://rubocop-sorbet
|
|
46
|
+
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/signatures/allow_incompatible_override.rb#22
|
|
57
47
|
def sig?(param0); end
|
|
58
48
|
end
|
|
59
49
|
|
|
@@ -68,56 +58,56 @@ end
|
|
|
68
58
|
# # good
|
|
69
59
|
# FooOrBar = T.type_alias { T.any(Foo, Bar) }
|
|
70
60
|
#
|
|
71
|
-
# source://rubocop-sorbet
|
|
61
|
+
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/binding_constants_without_type_alias.rb#18
|
|
72
62
|
class RuboCop::Cop::Sorbet::BindingConstantWithoutTypeAlias < ::RuboCop::Cop::Cop
|
|
73
|
-
# source://rubocop-sorbet
|
|
63
|
+
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/binding_constants_without_type_alias.rb#116
|
|
74
64
|
def autocorrect(node); end
|
|
75
65
|
|
|
76
|
-
# source://rubocop-sorbet
|
|
66
|
+
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/binding_constants_without_type_alias.rb#19
|
|
77
67
|
def binding_unaliased_type?(param0 = T.unsafe(nil)); end
|
|
78
68
|
|
|
79
|
-
# source://rubocop-sorbet
|
|
69
|
+
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/binding_constants_without_type_alias.rb#51
|
|
80
70
|
def dynamic_type_creation_with_block?(param0 = T.unsafe(nil)); end
|
|
81
71
|
|
|
82
|
-
# source://rubocop-sorbet
|
|
72
|
+
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/binding_constants_without_type_alias.rb#66
|
|
83
73
|
def generic_parameter_decl_block_call?(param0 = T.unsafe(nil)); end
|
|
84
74
|
|
|
85
|
-
# source://rubocop-sorbet
|
|
75
|
+
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/binding_constants_without_type_alias.rb#60
|
|
86
76
|
def generic_parameter_decl_call?(param0 = T.unsafe(nil)); end
|
|
87
77
|
|
|
88
|
-
# source://rubocop-sorbet
|
|
78
|
+
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/binding_constants_without_type_alias.rb#72
|
|
89
79
|
def method_needing_aliasing_on_t?(param0); end
|
|
90
80
|
|
|
91
81
|
# @return [Boolean]
|
|
92
82
|
#
|
|
93
|
-
# source://rubocop-sorbet
|
|
83
|
+
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/binding_constants_without_type_alias.rb#85
|
|
94
84
|
def not_dynamic_type_creation_with_block?(node); end
|
|
95
85
|
|
|
96
86
|
# @return [Boolean]
|
|
97
87
|
#
|
|
98
|
-
# source://rubocop-sorbet
|
|
88
|
+
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/binding_constants_without_type_alias.rb#89
|
|
99
89
|
def not_generic_parameter_decl?(node); end
|
|
100
90
|
|
|
101
91
|
# @return [Boolean]
|
|
102
92
|
#
|
|
103
|
-
# source://rubocop-sorbet
|
|
93
|
+
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/binding_constants_without_type_alias.rb#93
|
|
104
94
|
def not_nil?(node); end
|
|
105
95
|
|
|
106
96
|
# @return [Boolean]
|
|
107
97
|
#
|
|
108
|
-
# source://rubocop-sorbet
|
|
98
|
+
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/binding_constants_without_type_alias.rb#81
|
|
109
99
|
def not_t_let?(node); end
|
|
110
100
|
|
|
111
|
-
# source://rubocop-sorbet
|
|
101
|
+
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/binding_constants_without_type_alias.rb#97
|
|
112
102
|
def on_casgn(node); end
|
|
113
103
|
|
|
114
|
-
# source://rubocop-sorbet
|
|
104
|
+
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/binding_constants_without_type_alias.rb#41
|
|
115
105
|
def t_let?(param0 = T.unsafe(nil)); end
|
|
116
106
|
|
|
117
|
-
# source://rubocop-sorbet
|
|
107
|
+
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/binding_constants_without_type_alias.rb#32
|
|
118
108
|
def using_deprecated_type_alias_syntax?(param0 = T.unsafe(nil)); end
|
|
119
109
|
|
|
120
|
-
# source://rubocop-sorbet
|
|
110
|
+
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/binding_constants_without_type_alias.rb#23
|
|
121
111
|
def using_type_alias?(param0 = T.unsafe(nil)); end
|
|
122
112
|
end
|
|
123
113
|
|
|
@@ -151,16 +141,16 @@ end
|
|
|
151
141
|
# end
|
|
152
142
|
# end
|
|
153
143
|
#
|
|
154
|
-
# source://rubocop-sorbet
|
|
144
|
+
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/callback_conditionals_binding.rb#35
|
|
155
145
|
class RuboCop::Cop::Sorbet::CallbackConditionalsBinding < ::RuboCop::Cop::Cop
|
|
156
|
-
# source://rubocop-sorbet
|
|
146
|
+
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/callback_conditionals_binding.rb#47
|
|
157
147
|
def autocorrect(node); end
|
|
158
148
|
|
|
159
|
-
# source://rubocop-sorbet
|
|
149
|
+
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/callback_conditionals_binding.rb#99
|
|
160
150
|
def on_send(node); end
|
|
161
151
|
end
|
|
162
152
|
|
|
163
|
-
# source://rubocop-sorbet
|
|
153
|
+
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/callback_conditionals_binding.rb#36
|
|
164
154
|
RuboCop::Cop::Sorbet::CallbackConditionalsBinding::CALLBACKS = T.let(T.unsafe(nil), Array)
|
|
165
155
|
|
|
166
156
|
# This cop disallows the usage of `checked(true)`. This usage could cause
|
|
@@ -177,18 +167,18 @@ RuboCop::Cop::Sorbet::CallbackConditionalsBinding::CALLBACKS = T.let(T.unsafe(ni
|
|
|
177
167
|
# # good
|
|
178
168
|
# sig { void }
|
|
179
169
|
#
|
|
180
|
-
# source://rubocop-sorbet
|
|
170
|
+
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/signatures/checked_true_in_signature.rb#22
|
|
181
171
|
class RuboCop::Cop::Sorbet::CheckedTrueInSignature < ::RuboCop::Cop::Sorbet::SignatureCop
|
|
182
172
|
include ::RuboCop::Cop::RangeHelp
|
|
183
173
|
|
|
184
|
-
# source://rubocop-sorbet
|
|
174
|
+
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/signatures/checked_true_in_signature.rb#25
|
|
185
175
|
def offending_node(param0); end
|
|
186
176
|
|
|
187
|
-
# source://rubocop-sorbet
|
|
177
|
+
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/signatures/checked_true_in_signature.rb#36
|
|
188
178
|
def on_signature(node); end
|
|
189
179
|
end
|
|
190
180
|
|
|
191
|
-
# source://rubocop-sorbet
|
|
181
|
+
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/signatures/checked_true_in_signature.rb#29
|
|
192
182
|
RuboCop::Cop::Sorbet::CheckedTrueInSignature::MESSAGE = T.let(T.unsafe(nil), String)
|
|
193
183
|
|
|
194
184
|
# This cop disallows the calls that are used to get constants fom Strings
|
|
@@ -220,12 +210,12 @@ RuboCop::Cop::Sorbet::CheckedTrueInSignature::MESSAGE = T.let(T.unsafe(nil), Str
|
|
|
220
210
|
# # good
|
|
221
211
|
# { "User" => User }.fetch(class_name)
|
|
222
212
|
#
|
|
223
|
-
# source://rubocop-sorbet
|
|
213
|
+
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/constants_from_strings.rb#36
|
|
224
214
|
class RuboCop::Cop::Sorbet::ConstantsFromStrings < ::RuboCop::Cop::Cop
|
|
225
|
-
# source://rubocop-sorbet
|
|
215
|
+
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/constants_from_strings.rb#37
|
|
226
216
|
def constant_from_string?(param0 = T.unsafe(nil)); end
|
|
227
217
|
|
|
228
|
-
# source://rubocop-sorbet
|
|
218
|
+
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/constants_from_strings.rb#41
|
|
229
219
|
def on_send(node); end
|
|
230
220
|
end
|
|
231
221
|
|
|
@@ -248,42 +238,42 @@ end
|
|
|
248
238
|
# Only `typed`, `(en)?coding`, `warn_indent` and `frozen_string_literal` magic comments are considered,
|
|
249
239
|
# other comments or magic comments are left in the same place.
|
|
250
240
|
#
|
|
251
|
-
# source://rubocop-sorbet
|
|
241
|
+
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/sigils/enforce_sigil_order.rb#30
|
|
252
242
|
class RuboCop::Cop::Sorbet::EnforceSigilOrder < ::RuboCop::Cop::Sorbet::ValidSigil
|
|
253
243
|
include ::RuboCop::Cop::RangeHelp
|
|
254
244
|
|
|
255
|
-
# source://rubocop-sorbet
|
|
245
|
+
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/sigils/enforce_sigil_order.rb#42
|
|
256
246
|
def autocorrect(_node); end
|
|
257
247
|
|
|
258
|
-
# source://rubocop-sorbet
|
|
248
|
+
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/sigils/enforce_sigil_order.rb#33
|
|
259
249
|
def investigate(processed_source); end
|
|
260
250
|
|
|
261
251
|
protected
|
|
262
252
|
|
|
263
253
|
# checks
|
|
264
254
|
#
|
|
265
|
-
# source://rubocop-sorbet
|
|
255
|
+
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/sigils/enforce_sigil_order.rb#91
|
|
266
256
|
def check_magic_comments_order(tokens); end
|
|
267
257
|
|
|
268
258
|
# Get all the tokens in `processed_source` that match `MAGIC_REGEX`
|
|
269
259
|
#
|
|
270
|
-
# source://rubocop-sorbet
|
|
260
|
+
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/sigils/enforce_sigil_order.rb#83
|
|
271
261
|
def extract_magic_comments(processed_source); end
|
|
272
262
|
end
|
|
273
263
|
|
|
274
|
-
# source://rubocop-sorbet
|
|
264
|
+
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/sigils/enforce_sigil_order.rb#67
|
|
275
265
|
RuboCop::Cop::Sorbet::EnforceSigilOrder::CODING_REGEX = T.let(T.unsafe(nil), Regexp)
|
|
276
266
|
|
|
277
|
-
# source://rubocop-sorbet
|
|
267
|
+
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/sigils/enforce_sigil_order.rb#69
|
|
278
268
|
RuboCop::Cop::Sorbet::EnforceSigilOrder::FROZEN_REGEX = T.let(T.unsafe(nil), Regexp)
|
|
279
269
|
|
|
280
|
-
# source://rubocop-sorbet
|
|
270
|
+
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/sigils/enforce_sigil_order.rb#68
|
|
281
271
|
RuboCop::Cop::Sorbet::EnforceSigilOrder::INDENT_REGEX = T.let(T.unsafe(nil), Regexp)
|
|
282
272
|
|
|
283
|
-
# source://rubocop-sorbet
|
|
273
|
+
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/sigils/enforce_sigil_order.rb#78
|
|
284
274
|
RuboCop::Cop::Sorbet::EnforceSigilOrder::MAGIC_REGEX = T.let(T.unsafe(nil), Regexp)
|
|
285
275
|
|
|
286
|
-
# source://rubocop-sorbet
|
|
276
|
+
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/sigils/enforce_sigil_order.rb#71
|
|
287
277
|
RuboCop::Cop::Sorbet::EnforceSigilOrder::PREFERRED_ORDER = T.let(T.unsafe(nil), Hash)
|
|
288
278
|
|
|
289
279
|
# This cop checks that every method definition and attribute accessor has a Sorbet signature.
|
|
@@ -306,86 +296,86 @@ RuboCop::Cop::Sorbet::EnforceSigilOrder::PREFERRED_ORDER = T.let(T.unsafe(nil),
|
|
|
306
296
|
# * `ParameterTypePlaceholder`: placeholders used for parameter types (default: 'T.untyped')
|
|
307
297
|
# * `ReturnTypePlaceholder`: placeholders used for return types (default: 'T.untyped')
|
|
308
298
|
#
|
|
309
|
-
# source://rubocop-sorbet
|
|
299
|
+
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/signatures/enforce_signatures.rb#29
|
|
310
300
|
class RuboCop::Cop::Sorbet::EnforceSignatures < ::RuboCop::Cop::Sorbet::SignatureCop
|
|
311
301
|
# @return [EnforceSignatures] a new instance of EnforceSignatures
|
|
312
302
|
#
|
|
313
|
-
# source://rubocop-sorbet
|
|
303
|
+
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/signatures/enforce_signatures.rb#30
|
|
314
304
|
def initialize(config = T.unsafe(nil), options = T.unsafe(nil)); end
|
|
315
305
|
|
|
316
|
-
# source://rubocop-sorbet
|
|
306
|
+
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/signatures/enforce_signatures.rb#35
|
|
317
307
|
def accessor?(param0 = T.unsafe(nil)); end
|
|
318
308
|
|
|
319
|
-
# source://rubocop-sorbet
|
|
309
|
+
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/signatures/enforce_signatures.rb#55
|
|
320
310
|
def autocorrect(node); end
|
|
321
311
|
|
|
322
|
-
# source://rubocop-sorbet
|
|
312
|
+
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/signatures/enforce_signatures.rb#39
|
|
323
313
|
def on_def(node); end
|
|
324
314
|
|
|
325
|
-
# source://rubocop-sorbet
|
|
315
|
+
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/signatures/enforce_signatures.rb#43
|
|
326
316
|
def on_defs(node); end
|
|
327
317
|
|
|
328
|
-
# source://rubocop-sorbet
|
|
318
|
+
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/signatures/enforce_signatures.rb#47
|
|
329
319
|
def on_send(node); end
|
|
330
320
|
|
|
331
|
-
# source://rubocop-sorbet
|
|
321
|
+
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/signatures/enforce_signatures.rb#51
|
|
332
322
|
def on_signature(node); end
|
|
333
323
|
|
|
334
|
-
# source://rubocop-sorbet
|
|
324
|
+
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/signatures/enforce_signatures.rb#74
|
|
335
325
|
def scope(node); end
|
|
336
326
|
|
|
337
327
|
private
|
|
338
328
|
|
|
339
|
-
# source://rubocop-sorbet
|
|
329
|
+
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/signatures/enforce_signatures.rb#82
|
|
340
330
|
def check_node(node); end
|
|
341
331
|
|
|
342
|
-
# source://rubocop-sorbet
|
|
332
|
+
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/signatures/enforce_signatures.rb#93
|
|
343
333
|
def param_type_placeholder; end
|
|
344
334
|
|
|
345
|
-
# source://rubocop-sorbet
|
|
335
|
+
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/signatures/enforce_signatures.rb#97
|
|
346
336
|
def return_type_placeholder; end
|
|
347
337
|
end
|
|
348
338
|
|
|
349
|
-
# source://rubocop-sorbet
|
|
339
|
+
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/signatures/enforce_signatures.rb#101
|
|
350
340
|
class RuboCop::Cop::Sorbet::EnforceSignatures::SigSuggestion
|
|
351
341
|
# @return [SigSuggestion] a new instance of SigSuggestion
|
|
352
342
|
#
|
|
353
|
-
# source://rubocop-sorbet
|
|
343
|
+
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/signatures/enforce_signatures.rb#104
|
|
354
344
|
def initialize(indent, param_placeholder, return_placeholder); end
|
|
355
345
|
|
|
356
346
|
# Returns the value of attribute params.
|
|
357
347
|
#
|
|
358
|
-
# source://rubocop-sorbet
|
|
348
|
+
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/signatures/enforce_signatures.rb#102
|
|
359
349
|
def params; end
|
|
360
350
|
|
|
361
351
|
# Sets the attribute params
|
|
362
352
|
#
|
|
363
353
|
# @param value the value to set the attribute params to.
|
|
364
354
|
#
|
|
365
|
-
# source://rubocop-sorbet
|
|
355
|
+
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/signatures/enforce_signatures.rb#102
|
|
366
356
|
def params=(_arg0); end
|
|
367
357
|
|
|
368
358
|
# Returns the value of attribute returns.
|
|
369
359
|
#
|
|
370
|
-
# source://rubocop-sorbet
|
|
360
|
+
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/signatures/enforce_signatures.rb#102
|
|
371
361
|
def returns; end
|
|
372
362
|
|
|
373
363
|
# Sets the attribute returns
|
|
374
364
|
#
|
|
375
365
|
# @param value the value to set the attribute returns to.
|
|
376
366
|
#
|
|
377
|
-
# source://rubocop-sorbet
|
|
367
|
+
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/signatures/enforce_signatures.rb#102
|
|
378
368
|
def returns=(_arg0); end
|
|
379
369
|
|
|
380
|
-
# source://rubocop-sorbet
|
|
370
|
+
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/signatures/enforce_signatures.rb#112
|
|
381
371
|
def to_autocorrect; end
|
|
382
372
|
|
|
383
373
|
private
|
|
384
374
|
|
|
385
|
-
# source://rubocop-sorbet
|
|
375
|
+
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/signatures/enforce_signatures.rb#124
|
|
386
376
|
def generate_params; end
|
|
387
377
|
|
|
388
|
-
# source://rubocop-sorbet
|
|
378
|
+
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/signatures/enforce_signatures.rb#135
|
|
389
379
|
def generate_return; end
|
|
390
380
|
end
|
|
391
381
|
|
|
@@ -405,27 +395,27 @@ end
|
|
|
405
395
|
#
|
|
406
396
|
# Other comments or magic comments are left in place.
|
|
407
397
|
#
|
|
408
|
-
# source://rubocop-sorbet
|
|
398
|
+
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/sigils/enforce_single_sigil.rb#26
|
|
409
399
|
class RuboCop::Cop::Sorbet::EnforceSingleSigil < ::RuboCop::Cop::Sorbet::ValidSigil
|
|
410
400
|
include ::RuboCop::Cop::RangeHelp
|
|
411
401
|
|
|
412
|
-
# source://rubocop-sorbet
|
|
402
|
+
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/sigils/enforce_single_sigil.rb#39
|
|
413
403
|
def autocorrect(_node); end
|
|
414
404
|
|
|
415
|
-
# source://rubocop-sorbet
|
|
405
|
+
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/sigils/enforce_single_sigil.rb#29
|
|
416
406
|
def investigate(processed_source); end
|
|
417
407
|
|
|
418
408
|
protected
|
|
419
409
|
|
|
420
|
-
# source://rubocop-sorbet
|
|
410
|
+
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/sigils/enforce_single_sigil.rb#55
|
|
421
411
|
def extract_all_sigils(processed_source); end
|
|
422
412
|
end
|
|
423
413
|
|
|
424
414
|
# This cop makes the Sorbet `false` sigil mandatory in all files.
|
|
425
415
|
#
|
|
426
|
-
# source://rubocop-sorbet
|
|
416
|
+
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/sigils/false_sigil.rb#10
|
|
427
417
|
class RuboCop::Cop::Sorbet::FalseSigil < ::RuboCop::Cop::Sorbet::HasSigil
|
|
428
|
-
# source://rubocop-sorbet
|
|
418
|
+
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/sigils/false_sigil.rb#11
|
|
429
419
|
def minimum_strictness; end
|
|
430
420
|
end
|
|
431
421
|
|
|
@@ -449,59 +439,59 @@ end
|
|
|
449
439
|
# def foo; end
|
|
450
440
|
# end
|
|
451
441
|
#
|
|
452
|
-
# source://rubocop-sorbet
|
|
442
|
+
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/rbi/forbid_extend_t_sig_helpers_in_shims.rb#25
|
|
453
443
|
class RuboCop::Cop::Sorbet::ForbidExtendTSigHelpersInShims < ::RuboCop::Cop::Cop
|
|
454
444
|
include ::RuboCop::Cop::RangeHelp
|
|
455
445
|
|
|
456
|
-
# source://rubocop-sorbet
|
|
446
|
+
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/rbi/forbid_extend_t_sig_helpers_in_shims.rb#39
|
|
457
447
|
def autocorrect(node); end
|
|
458
448
|
|
|
459
|
-
# source://rubocop-sorbet
|
|
449
|
+
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/rbi/forbid_extend_t_sig_helpers_in_shims.rb#35
|
|
460
450
|
def extend_t_helpers?(param0 = T.unsafe(nil)); end
|
|
461
451
|
|
|
462
|
-
# source://rubocop-sorbet
|
|
452
|
+
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/rbi/forbid_extend_t_sig_helpers_in_shims.rb#31
|
|
463
453
|
def extend_t_sig?(param0 = T.unsafe(nil)); end
|
|
464
454
|
|
|
465
|
-
# source://rubocop-sorbet
|
|
455
|
+
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/rbi/forbid_extend_t_sig_helpers_in_shims.rb#47
|
|
466
456
|
def on_send(node); end
|
|
467
457
|
end
|
|
468
458
|
|
|
469
|
-
# source://rubocop-sorbet
|
|
459
|
+
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/rbi/forbid_extend_t_sig_helpers_in_shims.rb#28
|
|
470
460
|
RuboCop::Cop::Sorbet::ForbidExtendTSigHelpersInShims::MSG = T.let(T.unsafe(nil), String)
|
|
471
461
|
|
|
472
|
-
# source://rubocop-sorbet
|
|
462
|
+
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/rbi/forbid_extend_t_sig_helpers_in_shims.rb#29
|
|
473
463
|
RuboCop::Cop::Sorbet::ForbidExtendTSigHelpersInShims::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array)
|
|
474
464
|
|
|
475
|
-
# source://rubocop-sorbet
|
|
465
|
+
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/forbid_include_const_literal.rb#29
|
|
476
466
|
class RuboCop::Cop::Sorbet::ForbidIncludeConstLiteral < ::RuboCop::Cop::Cop
|
|
477
467
|
# @return [ForbidIncludeConstLiteral] a new instance of ForbidIncludeConstLiteral
|
|
478
468
|
#
|
|
479
|
-
# source://rubocop-sorbet
|
|
469
|
+
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/forbid_include_const_literal.rb#40
|
|
480
470
|
def initialize(*_arg0); end
|
|
481
471
|
|
|
482
|
-
# source://rubocop-sorbet
|
|
472
|
+
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/forbid_include_const_literal.rb#56
|
|
483
473
|
def autocorrect(node); end
|
|
484
474
|
|
|
485
|
-
# source://rubocop-sorbet
|
|
475
|
+
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/forbid_include_const_literal.rb#34
|
|
486
476
|
def not_lit_const_include?(param0 = T.unsafe(nil)); end
|
|
487
477
|
|
|
488
|
-
# source://rubocop-sorbet
|
|
478
|
+
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/forbid_include_const_literal.rb#45
|
|
489
479
|
def on_send(node); end
|
|
490
480
|
|
|
491
481
|
# Returns the value of attribute used_names.
|
|
492
482
|
#
|
|
493
|
-
# source://rubocop-sorbet
|
|
483
|
+
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/forbid_include_const_literal.rb#32
|
|
494
484
|
def used_names; end
|
|
495
485
|
|
|
496
486
|
# Sets the attribute used_names
|
|
497
487
|
#
|
|
498
488
|
# @param value the value to set the attribute used_names to.
|
|
499
489
|
#
|
|
500
|
-
# source://rubocop-sorbet
|
|
490
|
+
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/forbid_include_const_literal.rb#32
|
|
501
491
|
def used_names=(_arg0); end
|
|
502
492
|
end
|
|
503
493
|
|
|
504
|
-
# source://rubocop-sorbet
|
|
494
|
+
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/forbid_include_const_literal.rb#30
|
|
505
495
|
RuboCop::Cop::Sorbet::ForbidIncludeConstLiteral::MSG = T.let(T.unsafe(nil), String)
|
|
506
496
|
|
|
507
497
|
# This cop makes sure that RBI files are always located under the defined allowed paths.
|
|
@@ -519,29 +509,29 @@ RuboCop::Cop::Sorbet::ForbidIncludeConstLiteral::MSG = T.let(T.unsafe(nil), Stri
|
|
|
519
509
|
# # sorbet/rbi/some_file.rbi
|
|
520
510
|
# # sorbet/rbi/any/path/for/file.rbi
|
|
521
511
|
#
|
|
522
|
-
# source://rubocop-sorbet
|
|
512
|
+
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/rbi/forbid_rbi_outside_of_allowed_paths.rb#22
|
|
523
513
|
class RuboCop::Cop::Sorbet::ForbidRBIOutsideOfAllowedPaths < ::RuboCop::Cop::Cop
|
|
524
514
|
include ::RuboCop::Cop::RangeHelp
|
|
525
515
|
|
|
526
|
-
# source://rubocop-sorbet
|
|
516
|
+
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/rbi/forbid_rbi_outside_of_allowed_paths.rb#25
|
|
527
517
|
def investigate(processed_source); end
|
|
528
518
|
|
|
529
519
|
private
|
|
530
520
|
|
|
531
|
-
# source://rubocop-sorbet
|
|
521
|
+
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/rbi/forbid_rbi_outside_of_allowed_paths.rb#57
|
|
532
522
|
def allowed_paths; end
|
|
533
523
|
end
|
|
534
524
|
|
|
535
|
-
# source://rubocop-sorbet
|
|
525
|
+
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/forbid_superclass_const_literal.rb#27
|
|
536
526
|
class RuboCop::Cop::Sorbet::ForbidSuperclassConstLiteral < ::RuboCop::Cop::Cop
|
|
537
|
-
# source://rubocop-sorbet
|
|
527
|
+
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/forbid_superclass_const_literal.rb#30
|
|
538
528
|
def not_lit_const_superclass?(param0 = T.unsafe(nil)); end
|
|
539
529
|
|
|
540
|
-
# source://rubocop-sorbet
|
|
530
|
+
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/forbid_superclass_const_literal.rb#38
|
|
541
531
|
def on_class(node); end
|
|
542
532
|
end
|
|
543
533
|
|
|
544
|
-
# source://rubocop-sorbet
|
|
534
|
+
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/forbid_superclass_const_literal.rb#28
|
|
545
535
|
RuboCop::Cop::Sorbet::ForbidSuperclassConstLiteral::MSG = T.let(T.unsafe(nil), String)
|
|
546
536
|
|
|
547
537
|
# This cop disallows using `T.unsafe` anywhere.
|
|
@@ -554,12 +544,12 @@ RuboCop::Cop::Sorbet::ForbidSuperclassConstLiteral::MSG = T.let(T.unsafe(nil), S
|
|
|
554
544
|
# # good
|
|
555
545
|
# foo
|
|
556
546
|
#
|
|
557
|
-
# source://rubocop-sorbet
|
|
547
|
+
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/forbid_t_unsafe.rb#17
|
|
558
548
|
class RuboCop::Cop::Sorbet::ForbidTUnsafe < ::RuboCop::Cop::Cop
|
|
559
|
-
# source://rubocop-sorbet
|
|
549
|
+
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/forbid_t_unsafe.rb#20
|
|
560
550
|
def on_send(node); end
|
|
561
551
|
|
|
562
|
-
# source://rubocop-sorbet
|
|
552
|
+
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/forbid_t_unsafe.rb#18
|
|
563
553
|
def t_unsafe?(param0 = T.unsafe(nil)); end
|
|
564
554
|
end
|
|
565
555
|
|
|
@@ -575,12 +565,12 @@ end
|
|
|
575
565
|
# sig { params(my_argument: String).void }
|
|
576
566
|
# def foo(my_argument); end
|
|
577
567
|
#
|
|
578
|
-
# source://rubocop-sorbet
|
|
568
|
+
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/forbid_t_untyped.rb#20
|
|
579
569
|
class RuboCop::Cop::Sorbet::ForbidTUntyped < ::RuboCop::Cop::Cop
|
|
580
|
-
# source://rubocop-sorbet
|
|
570
|
+
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/forbid_t_untyped.rb#23
|
|
581
571
|
def on_send(node); end
|
|
582
572
|
|
|
583
|
-
# source://rubocop-sorbet
|
|
573
|
+
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/forbid_t_untyped.rb#21
|
|
584
574
|
def t_untyped?(param0 = T.unsafe(nil)); end
|
|
585
575
|
end
|
|
586
576
|
|
|
@@ -601,28 +591,28 @@ end
|
|
|
601
591
|
# prop :bar, T.nilable(String)
|
|
602
592
|
# end
|
|
603
593
|
#
|
|
604
|
-
# source://rubocop-sorbet
|
|
594
|
+
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/forbid_untyped_struct_props.rb#25
|
|
605
595
|
class RuboCop::Cop::Sorbet::ForbidUntypedStructProps < ::RuboCop::Cop::Cop
|
|
606
|
-
# source://rubocop-sorbet
|
|
596
|
+
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/forbid_untyped_struct_props.rb#48
|
|
607
597
|
def on_class(node); end
|
|
608
598
|
|
|
609
|
-
# source://rubocop-sorbet
|
|
599
|
+
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/forbid_untyped_struct_props.rb#40
|
|
610
600
|
def subclass_of_t_struct?(param0 = T.unsafe(nil)); end
|
|
611
601
|
|
|
612
|
-
# source://rubocop-sorbet
|
|
602
|
+
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/forbid_untyped_struct_props.rb#36
|
|
613
603
|
def t_nilable_untyped(param0 = T.unsafe(nil)); end
|
|
614
604
|
|
|
615
|
-
# source://rubocop-sorbet
|
|
605
|
+
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/forbid_untyped_struct_props.rb#28
|
|
616
606
|
def t_struct(param0 = T.unsafe(nil)); end
|
|
617
607
|
|
|
618
|
-
# source://rubocop-sorbet
|
|
608
|
+
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/forbid_untyped_struct_props.rb#32
|
|
619
609
|
def t_untyped(param0 = T.unsafe(nil)); end
|
|
620
610
|
|
|
621
|
-
# source://rubocop-sorbet
|
|
611
|
+
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/forbid_untyped_struct_props.rb#44
|
|
622
612
|
def untyped_props(param0); end
|
|
623
613
|
end
|
|
624
614
|
|
|
625
|
-
# source://rubocop-sorbet
|
|
615
|
+
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/forbid_untyped_struct_props.rb#26
|
|
626
616
|
RuboCop::Cop::Sorbet::ForbidUntypedStructProps::MSG = T.let(T.unsafe(nil), String)
|
|
627
617
|
|
|
628
618
|
# This cop makes the Sorbet typed sigil mandatory in all files.
|
|
@@ -634,19 +624,19 @@ RuboCop::Cop::Sorbet::ForbidUntypedStructProps::MSG = T.let(T.unsafe(nil), Strin
|
|
|
634
624
|
#
|
|
635
625
|
# If a `MinimumStrictness` level is specified, it will be used in offense messages and autocorrect.
|
|
636
626
|
#
|
|
637
|
-
# source://rubocop-sorbet
|
|
627
|
+
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/sigils/has_sigil.rb#17
|
|
638
628
|
class RuboCop::Cop::Sorbet::HasSigil < ::RuboCop::Cop::Sorbet::ValidSigil
|
|
639
629
|
# @return [Boolean]
|
|
640
630
|
#
|
|
641
|
-
# source://rubocop-sorbet
|
|
631
|
+
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/sigils/has_sigil.rb#20
|
|
642
632
|
def require_sigil_on_all_files?; end
|
|
643
633
|
end
|
|
644
634
|
|
|
645
635
|
# This cop makes the Sorbet `ignore` sigil mandatory in all files.
|
|
646
636
|
#
|
|
647
|
-
# source://rubocop-sorbet
|
|
637
|
+
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/sigils/ignore_sigil.rb#10
|
|
648
638
|
class RuboCop::Cop::Sorbet::IgnoreSigil < ::RuboCop::Cop::Sorbet::HasSigil
|
|
649
|
-
# source://rubocop-sorbet
|
|
639
|
+
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/sigils/ignore_sigil.rb#11
|
|
650
640
|
def minimum_strictness; end
|
|
651
641
|
end
|
|
652
642
|
|
|
@@ -665,24 +655,24 @@ end
|
|
|
665
655
|
# sig { params(b: String, a: Integer).void }
|
|
666
656
|
# def foo(b:, a: 1); end
|
|
667
657
|
#
|
|
668
|
-
# source://rubocop-sorbet
|
|
658
|
+
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/signatures/keyword_argument_ordering.rb#23
|
|
669
659
|
class RuboCop::Cop::Sorbet::KeywordArgumentOrdering < ::RuboCop::Cop::Sorbet::SignatureCop
|
|
670
|
-
# source://rubocop-sorbet
|
|
660
|
+
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/signatures/keyword_argument_ordering.rb#24
|
|
671
661
|
def on_signature(node); end
|
|
672
662
|
|
|
673
663
|
private
|
|
674
664
|
|
|
675
|
-
# source://rubocop-sorbet
|
|
665
|
+
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/signatures/keyword_argument_ordering.rb#34
|
|
676
666
|
def check_order_for_kwoptargs(parameters); end
|
|
677
667
|
end
|
|
678
668
|
|
|
679
|
-
# source://rubocop-sorbet
|
|
669
|
+
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/mutable_constant_sorbet_aware_behaviour.rb#8
|
|
680
670
|
module RuboCop::Cop::Sorbet::MutableConstantSorbetAwareBehaviour
|
|
681
|
-
# source://rubocop-sorbet
|
|
671
|
+
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/mutable_constant_sorbet_aware_behaviour.rb#15
|
|
682
672
|
def on_assignment(value); end
|
|
683
673
|
|
|
684
674
|
class << self
|
|
685
|
-
# source://rubocop-sorbet
|
|
675
|
+
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/mutable_constant_sorbet_aware_behaviour.rb#9
|
|
686
676
|
def prepended(base); end
|
|
687
677
|
end
|
|
688
678
|
end
|
|
@@ -703,57 +693,57 @@ end
|
|
|
703
693
|
# requires_ancestor Minitest::Assertions
|
|
704
694
|
# end
|
|
705
695
|
#
|
|
706
|
-
# source://rubocop-sorbet
|
|
696
|
+
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/one_ancestor_per_line.rb#24
|
|
707
697
|
class RuboCop::Cop::Sorbet::OneAncestorPerLine < ::RuboCop::Cop::Cop
|
|
708
|
-
# source://rubocop-sorbet
|
|
698
|
+
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/one_ancestor_per_line.rb#35
|
|
709
699
|
def abstract?(param0); end
|
|
710
700
|
|
|
711
|
-
# source://rubocop-sorbet
|
|
701
|
+
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/one_ancestor_per_line.rb#51
|
|
712
702
|
def autocorrect(node); end
|
|
713
703
|
|
|
714
|
-
# source://rubocop-sorbet
|
|
704
|
+
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/one_ancestor_per_line.rb#31
|
|
715
705
|
def more_than_one_ancestor(param0 = T.unsafe(nil)); end
|
|
716
706
|
|
|
717
|
-
# source://rubocop-sorbet
|
|
707
|
+
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/one_ancestor_per_line.rb#45
|
|
718
708
|
def on_class(node); end
|
|
719
709
|
|
|
720
|
-
# source://rubocop-sorbet
|
|
710
|
+
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/one_ancestor_per_line.rb#39
|
|
721
711
|
def on_module(node); end
|
|
722
712
|
|
|
723
|
-
# source://rubocop-sorbet
|
|
713
|
+
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/one_ancestor_per_line.rb#27
|
|
724
714
|
def requires_ancestors(param0); end
|
|
725
715
|
|
|
726
716
|
private
|
|
727
717
|
|
|
728
|
-
# source://rubocop-sorbet
|
|
718
|
+
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/one_ancestor_per_line.rb#67
|
|
729
719
|
def new_ra_line(indent_count); end
|
|
730
720
|
|
|
731
|
-
# source://rubocop-sorbet
|
|
721
|
+
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/one_ancestor_per_line.rb#61
|
|
732
722
|
def process_node(node); end
|
|
733
723
|
end
|
|
734
724
|
|
|
735
|
-
# source://rubocop-sorbet
|
|
725
|
+
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/one_ancestor_per_line.rb#25
|
|
736
726
|
RuboCop::Cop::Sorbet::OneAncestorPerLine::MSG = T.let(T.unsafe(nil), String)
|
|
737
727
|
|
|
738
|
-
# source://rubocop-sorbet
|
|
728
|
+
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/signatures/signature_build_order.rb#15
|
|
739
729
|
class RuboCop::Cop::Sorbet::SignatureBuildOrder < ::RuboCop::Cop::Sorbet::SignatureCop
|
|
740
|
-
# source://rubocop-sorbet
|
|
730
|
+
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/signatures/signature_build_order.rb#54
|
|
741
731
|
def autocorrect(node); end
|
|
742
732
|
|
|
743
|
-
# source://rubocop-sorbet
|
|
733
|
+
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/signatures/signature_build_order.rb#34
|
|
744
734
|
def on_signature(node); end
|
|
745
735
|
|
|
746
|
-
# source://rubocop-sorbet
|
|
736
|
+
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/signatures/signature_build_order.rb#30
|
|
747
737
|
def root_call(param0); end
|
|
748
738
|
|
|
749
739
|
private
|
|
750
740
|
|
|
751
|
-
# source://rubocop-sorbet
|
|
741
|
+
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/signatures/signature_build_order.rb#96
|
|
752
742
|
def call_chain(sig_child_node); end
|
|
753
743
|
|
|
754
744
|
# @return [Boolean]
|
|
755
745
|
#
|
|
756
|
-
# source://rubocop-sorbet
|
|
746
|
+
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/signatures/signature_build_order.rb#92
|
|
757
747
|
def can_autocorrect?; end
|
|
758
748
|
|
|
759
749
|
# This method exists to reparse the current node with modern features enabled.
|
|
@@ -761,40 +751,40 @@ class RuboCop::Cop::Sorbet::SignatureBuildOrder < ::RuboCop::Cop::Sorbet::Signat
|
|
|
761
751
|
# "index sends" (i.e. `[]` calls) back to index accessors (i.e. as `foo[bar]``).
|
|
762
752
|
# Otherwise, we would get the unparsed node as `foo.[](bar)`.
|
|
763
753
|
#
|
|
764
|
-
# source://rubocop-sorbet
|
|
754
|
+
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/signatures/signature_build_order.rb#83
|
|
765
755
|
def node_reparsed_with_modern_features(node); end
|
|
766
756
|
end
|
|
767
757
|
|
|
768
758
|
# Create a subclass of AST Builder that has modern features turned on
|
|
769
759
|
#
|
|
770
|
-
# source://rubocop-sorbet
|
|
760
|
+
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/signatures/signature_build_order.rb#72
|
|
771
761
|
class RuboCop::Cop::Sorbet::SignatureBuildOrder::ModernBuilder < ::RuboCop::AST::Builder; end
|
|
772
762
|
|
|
773
|
-
# source://rubocop-sorbet
|
|
763
|
+
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/signatures/signature_build_order.rb#16
|
|
774
764
|
RuboCop::Cop::Sorbet::SignatureBuildOrder::ORDER = T.let(T.unsafe(nil), Hash)
|
|
775
765
|
|
|
776
766
|
# Abstract cop specific to Sorbet signatures
|
|
777
767
|
#
|
|
778
768
|
# You can subclass it to use the `on_signature` trigger and the `signature?` node matcher.
|
|
779
769
|
#
|
|
780
|
-
# source://rubocop-sorbet
|
|
770
|
+
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/signatures/signature_cop.rb#11
|
|
781
771
|
class RuboCop::Cop::Sorbet::SignatureCop < ::RuboCop::Cop::Cop
|
|
782
|
-
# source://rubocop-sorbet
|
|
772
|
+
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/signatures/signature_cop.rb#26
|
|
783
773
|
def allowed_recv(recv); end
|
|
784
774
|
|
|
785
|
-
# source://rubocop-sorbet
|
|
775
|
+
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/signatures/signature_cop.rb#33
|
|
786
776
|
def on_block(node); end
|
|
787
777
|
|
|
788
|
-
# source://rubocop-sorbet
|
|
778
|
+
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/signatures/signature_cop.rb#37
|
|
789
779
|
def on_signature(_); end
|
|
790
780
|
|
|
791
|
-
# source://rubocop-sorbet
|
|
781
|
+
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/signatures/signature_cop.rb#14
|
|
792
782
|
def signature?(param0 = T.unsafe(nil)); end
|
|
793
783
|
|
|
794
|
-
# source://rubocop-sorbet
|
|
784
|
+
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/signatures/signature_cop.rb#18
|
|
795
785
|
def with_runtime?(param0 = T.unsafe(nil)); end
|
|
796
786
|
|
|
797
|
-
# source://rubocop-sorbet
|
|
787
|
+
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/signatures/signature_cop.rb#22
|
|
798
788
|
def without_runtime?(param0 = T.unsafe(nil)); end
|
|
799
789
|
end
|
|
800
790
|
|
|
@@ -810,50 +800,50 @@ end
|
|
|
810
800
|
# # good
|
|
811
801
|
# module SomeModule; end
|
|
812
802
|
#
|
|
813
|
-
# source://rubocop-sorbet
|
|
803
|
+
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/rbi/single_line_rbi_class_module_definitions.rb#17
|
|
814
804
|
class RuboCop::Cop::Sorbet::SingleLineRbiClassModuleDefinitions < ::RuboCop::Cop::Cop
|
|
815
|
-
# source://rubocop-sorbet
|
|
805
|
+
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/rbi/single_line_rbi_class_module_definitions.rb#28
|
|
816
806
|
def autocorrect(node); end
|
|
817
807
|
|
|
818
|
-
# source://rubocop-sorbet
|
|
808
|
+
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/rbi/single_line_rbi_class_module_definitions.rb#24
|
|
819
809
|
def on_class(node); end
|
|
820
810
|
|
|
821
|
-
# source://rubocop-sorbet
|
|
811
|
+
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/rbi/single_line_rbi_class_module_definitions.rb#20
|
|
822
812
|
def on_module(node); end
|
|
823
813
|
|
|
824
814
|
protected
|
|
825
815
|
|
|
826
|
-
# source://rubocop-sorbet
|
|
816
|
+
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/rbi/single_line_rbi_class_module_definitions.rb#34
|
|
827
817
|
def convert_newlines(source); end
|
|
828
818
|
|
|
829
|
-
# source://rubocop-sorbet
|
|
819
|
+
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/rbi/single_line_rbi_class_module_definitions.rb#38
|
|
830
820
|
def process_node(node); end
|
|
831
821
|
end
|
|
832
822
|
|
|
833
|
-
# source://rubocop-sorbet
|
|
823
|
+
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/rbi/single_line_rbi_class_module_definitions.rb#18
|
|
834
824
|
RuboCop::Cop::Sorbet::SingleLineRbiClassModuleDefinitions::MSG = T.let(T.unsafe(nil), String)
|
|
835
825
|
|
|
836
826
|
# This cop makes the Sorbet `strict` sigil mandatory in all files.
|
|
837
827
|
#
|
|
838
|
-
# source://rubocop-sorbet
|
|
828
|
+
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/sigils/strict_sigil.rb#10
|
|
839
829
|
class RuboCop::Cop::Sorbet::StrictSigil < ::RuboCop::Cop::Sorbet::HasSigil
|
|
840
|
-
# source://rubocop-sorbet
|
|
830
|
+
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/sigils/strict_sigil.rb#11
|
|
841
831
|
def minimum_strictness; end
|
|
842
832
|
end
|
|
843
833
|
|
|
844
834
|
# This cop makes the Sorbet `strong` sigil mandatory in all files.
|
|
845
835
|
#
|
|
846
|
-
# source://rubocop-sorbet
|
|
836
|
+
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/sigils/strong_sigil.rb#10
|
|
847
837
|
class RuboCop::Cop::Sorbet::StrongSigil < ::RuboCop::Cop::Sorbet::HasSigil
|
|
848
|
-
# source://rubocop-sorbet
|
|
838
|
+
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/sigils/strong_sigil.rb#11
|
|
849
839
|
def minimum_strictness; end
|
|
850
840
|
end
|
|
851
841
|
|
|
852
842
|
# This cop makes the Sorbet `true` sigil mandatory in all files.
|
|
853
843
|
#
|
|
854
|
-
# source://rubocop-sorbet
|
|
844
|
+
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/sigils/true_sigil.rb#10
|
|
855
845
|
class RuboCop::Cop::Sorbet::TrueSigil < ::RuboCop::Cop::Sorbet::HasSigil
|
|
856
|
-
# source://rubocop-sorbet
|
|
846
|
+
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/sigils/true_sigil.rb#11
|
|
857
847
|
def minimum_strictness; end
|
|
858
848
|
end
|
|
859
849
|
|
|
@@ -867,16 +857,16 @@ end
|
|
|
867
857
|
# # good
|
|
868
858
|
# FooOrBar = T.type_alias { T.any(Foo, Bar) }
|
|
869
859
|
#
|
|
870
|
-
# source://rubocop-sorbet
|
|
860
|
+
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/type_alias_name.rb#17
|
|
871
861
|
class RuboCop::Cop::Sorbet::TypeAliasName < ::RuboCop::Cop::Cop
|
|
872
|
-
# source://rubocop-sorbet
|
|
862
|
+
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/type_alias_name.rb#20
|
|
873
863
|
def casgn_type_alias?(param0 = T.unsafe(nil)); end
|
|
874
864
|
|
|
875
|
-
# source://rubocop-sorbet
|
|
865
|
+
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/type_alias_name.rb#32
|
|
876
866
|
def on_casgn(node); end
|
|
877
867
|
end
|
|
878
868
|
|
|
879
|
-
# source://rubocop-sorbet
|
|
869
|
+
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/type_alias_name.rb#18
|
|
880
870
|
RuboCop::Cop::Sorbet::TypeAliasName::MSG = T.let(T.unsafe(nil), String)
|
|
881
871
|
|
|
882
872
|
# This cop checks that every Ruby file contains a valid Sorbet sigil.
|
|
@@ -890,103 +880,96 @@ RuboCop::Cop::Sorbet::TypeAliasName::MSG = T.let(T.unsafe(nil), String)
|
|
|
890
880
|
#
|
|
891
881
|
# If a `MinimumStrictness` level is specified, it will be used in offense messages and autocorrect.
|
|
892
882
|
#
|
|
893
|
-
# source://rubocop-sorbet
|
|
883
|
+
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/sigils/valid_sigil.rb#18
|
|
894
884
|
class RuboCop::Cop::Sorbet::ValidSigil < ::RuboCop::Cop::Cop
|
|
895
|
-
# source://rubocop-sorbet
|
|
885
|
+
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/sigils/valid_sigil.rb#33
|
|
896
886
|
def autocorrect(_node); end
|
|
897
887
|
|
|
898
|
-
# source://rubocop-sorbet
|
|
888
|
+
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/sigils/valid_sigil.rb#21
|
|
899
889
|
def investigate(processed_source); end
|
|
900
890
|
|
|
901
891
|
protected
|
|
902
892
|
|
|
903
893
|
# checks
|
|
904
894
|
#
|
|
905
|
-
# source://rubocop-sorbet
|
|
895
|
+
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/sigils/valid_sigil.rb#68
|
|
906
896
|
def check_sigil_present(sigil); end
|
|
907
897
|
|
|
908
|
-
# source://rubocop-sorbet
|
|
898
|
+
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/sigils/valid_sigil.rb#125
|
|
909
899
|
def check_strictness_level(sigil, strictness); end
|
|
910
900
|
|
|
911
|
-
# source://rubocop-sorbet
|
|
901
|
+
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/sigils/valid_sigil.rb#103
|
|
912
902
|
def check_strictness_not_empty(sigil, strictness); end
|
|
913
903
|
|
|
914
|
-
# source://rubocop-sorbet
|
|
904
|
+
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/sigils/valid_sigil.rb#114
|
|
915
905
|
def check_strictness_valid(sigil, strictness); end
|
|
916
906
|
|
|
917
907
|
# extraction
|
|
918
908
|
#
|
|
919
|
-
# source://rubocop-sorbet
|
|
909
|
+
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/sigils/valid_sigil.rb#56
|
|
920
910
|
def extract_sigil(processed_source); end
|
|
921
911
|
|
|
922
|
-
# source://rubocop-sorbet
|
|
912
|
+
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/sigils/valid_sigil.rb#62
|
|
923
913
|
def extract_strictness(sigil); end
|
|
924
914
|
|
|
925
915
|
# Default is `nil`
|
|
926
916
|
#
|
|
927
|
-
# source://rubocop-sorbet
|
|
917
|
+
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/sigils/valid_sigil.rb#155
|
|
928
918
|
def minimum_strictness; end
|
|
929
919
|
|
|
930
920
|
# Default is `false`
|
|
931
921
|
#
|
|
932
922
|
# @return [Boolean]
|
|
933
923
|
#
|
|
934
|
-
# source://rubocop-sorbet
|
|
924
|
+
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/sigils/valid_sigil.rb#144
|
|
935
925
|
def require_sigil_on_all_files?; end
|
|
936
926
|
|
|
937
927
|
# Default is `'false'`
|
|
938
928
|
#
|
|
939
|
-
# source://rubocop-sorbet
|
|
929
|
+
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/sigils/valid_sigil.rb#149
|
|
940
930
|
def suggested_strictness; end
|
|
941
931
|
|
|
942
|
-
# source://rubocop-sorbet
|
|
932
|
+
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/sigils/valid_sigil.rb#84
|
|
943
933
|
def suggested_strictness_level(minimum_strictness, suggested_strictness); end
|
|
944
934
|
end
|
|
945
935
|
|
|
946
|
-
# source://rubocop-sorbet
|
|
936
|
+
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/sigils/valid_sigil.rb#52
|
|
947
937
|
RuboCop::Cop::Sorbet::ValidSigil::SIGIL_REGEX = T.let(T.unsafe(nil), Regexp)
|
|
948
938
|
|
|
949
|
-
# source://rubocop-sorbet
|
|
939
|
+
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/sigils/valid_sigil.rb#51
|
|
950
940
|
RuboCop::Cop::Sorbet::ValidSigil::STRICTNESS_LEVELS = T.let(T.unsafe(nil), Array)
|
|
951
941
|
|
|
942
|
+
module RuboCop::Cop::Style; end
|
|
943
|
+
|
|
952
944
|
class RuboCop::Cop::Style::MutableConstant < ::RuboCop::Cop::Base
|
|
953
945
|
include ::RuboCop::Cop::Sorbet::MutableConstantSorbetAwareBehaviour
|
|
954
946
|
end
|
|
955
947
|
|
|
956
|
-
# source://rubocop-
|
|
957
|
-
RuboCop::NodePattern = RuboCop::AST::NodePattern
|
|
958
|
-
|
|
959
|
-
# source://rubocop-1.34.1/lib/rubocop/ast_aliases.rb:6
|
|
960
|
-
RuboCop::ProcessedSource = RuboCop::AST::ProcessedSource
|
|
961
|
-
|
|
962
|
-
# source://rubocop-sorbet-0.6.11/lib/rubocop/sorbet/version.rb:3
|
|
948
|
+
# source://rubocop-sorbet//lib/rubocop/sorbet/version.rb#3
|
|
963
949
|
module RuboCop::Sorbet; end
|
|
964
950
|
|
|
965
|
-
# source://rubocop-sorbet
|
|
951
|
+
# source://rubocop-sorbet//lib/rubocop/sorbet.rb#11
|
|
966
952
|
RuboCop::Sorbet::CONFIG = T.let(T.unsafe(nil), Hash)
|
|
967
953
|
|
|
968
|
-
# source://rubocop-sorbet
|
|
954
|
+
# source://rubocop-sorbet//lib/rubocop/sorbet.rb#10
|
|
969
955
|
RuboCop::Sorbet::CONFIG_DEFAULT = T.let(T.unsafe(nil), Pathname)
|
|
970
956
|
|
|
971
|
-
# source://rubocop-sorbet
|
|
957
|
+
# source://rubocop-sorbet//lib/rubocop/sorbet.rb#7
|
|
972
958
|
class RuboCop::Sorbet::Error < ::StandardError; end
|
|
973
959
|
|
|
974
960
|
# Because RuboCop doesn't yet support plugins, we have to monkey patch in a
|
|
975
961
|
# bit of our configuration.
|
|
976
962
|
#
|
|
977
|
-
# source://rubocop-sorbet
|
|
963
|
+
# source://rubocop-sorbet//lib/rubocop/sorbet/inject.rb#9
|
|
978
964
|
module RuboCop::Sorbet::Inject
|
|
979
965
|
class << self
|
|
980
|
-
# source://rubocop-sorbet
|
|
966
|
+
# source://rubocop-sorbet//lib/rubocop/sorbet/inject.rb#10
|
|
981
967
|
def defaults!; end
|
|
982
968
|
end
|
|
983
969
|
end
|
|
984
970
|
|
|
985
|
-
# source://rubocop-sorbet
|
|
971
|
+
# source://rubocop-sorbet//lib/rubocop/sorbet.rb#9
|
|
986
972
|
RuboCop::Sorbet::PROJECT_ROOT = T.let(T.unsafe(nil), Pathname)
|
|
987
973
|
|
|
988
|
-
# source://rubocop-sorbet
|
|
974
|
+
# source://rubocop-sorbet//lib/rubocop/sorbet/version.rb#4
|
|
989
975
|
RuboCop::Sorbet::VERSION = T.let(T.unsafe(nil), String)
|
|
990
|
-
|
|
991
|
-
# source://rubocop-1.34.1/lib/rubocop/ast_aliases.rb:7
|
|
992
|
-
RuboCop::Token = RuboCop::AST::Token
|