lunchmoney 1.2.0 → 1.3.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.github/workflows/build_and_publish_yard_docs.yml +1 -1
- data/.github/workflows/check_pipeline.yml +2 -2
- data/.github/workflows/ci.yml +1 -1
- data/.github/workflows/{dependabot-rbi-updater.yml → rbi-updater.yml} +2 -3
- data/Gemfile +1 -1
- data/Gemfile.lock +25 -28
- data/lib/lunchmoney/objects/user.rb +4 -1
- data/lib/lunchmoney/version.rb +1 -1
- data/sorbet/rbi/dsl/active_support/callbacks.rbi +1 -0
- data/sorbet/rbi/gems/{dotenv@3.1.0.rbi → dotenv@3.1.2.rbi} +20 -17
- data/sorbet/rbi/gems/{json@2.7.1.rbi → json@2.7.2.rbi} +72 -72
- data/sorbet/rbi/gems/{mocha@2.1.0.rbi → mocha@2.2.0.rbi} +149 -113
- data/sorbet/rbi/gems/{prism@0.24.0.rbi → prism@0.29.0.rbi} +19135 -12188
- data/sorbet/rbi/gems/{rbi@0.1.9.rbi → rbi@0.1.13.rbi} +211 -156
- data/sorbet/rbi/gems/{regexp_parser@2.9.0.rbi → regexp_parser@2.9.1.rbi} +1 -0
- data/sorbet/rbi/gems/{rubocop-ast@1.31.2.rbi → rubocop-ast@1.31.3.rbi} +10 -12
- data/sorbet/rbi/gems/{rubocop-sorbet@0.8.0.rbi → rubocop-sorbet@0.8.3.rbi} +142 -74
- data/sorbet/rbi/gems/{rubocop@1.62.1.rbi → rubocop@1.63.5.rbi} +813 -572
- data/sorbet/rbi/gems/{spoom@1.2.4.rbi → spoom@1.3.2.rbi} +1057 -413
- data/sorbet/rbi/gems/{tapioca@0.13.1.rbi → tapioca@0.14.1.rbi} +101 -87
- metadata +16 -18
- data/sorbet/rbi/gems/prettier_print@1.2.1.rbi +0 -951
- data/sorbet/rbi/gems/syntax_tree@6.2.0.rbi +0 -23136
- /data/sorbet/rbi/gems/{parser@3.3.0.5.rbi → parser@3.3.1.0.rbi} +0 -0
@@ -4,6 +4,7 @@
|
|
4
4
|
# This is an autogenerated file for types exported from the `regexp_parser` gem.
|
5
5
|
# Please instead update this file by running `bin/tapioca gem regexp_parser`.
|
6
6
|
|
7
|
+
|
7
8
|
# source://regexp_parser//lib/regexp_parser/expression/shared.rb#1
|
8
9
|
module Regexp::Expression; end
|
9
10
|
|
@@ -4,6 +4,7 @@
|
|
4
4
|
# This is an autogenerated file for types exported from the `rubocop-ast` gem.
|
5
5
|
# Please instead update this file by running `bin/tapioca gem rubocop-ast`.
|
6
6
|
|
7
|
+
|
7
8
|
class Parser::Source::Range
|
8
9
|
include ::RuboCop::AST::Ext::Range
|
9
10
|
end
|
@@ -5122,9 +5123,6 @@ RuboCop::AST::NodePattern::Sets::SET_10_10 = T.let(T.unsafe(nil), Set)
|
|
5122
5123
|
# source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10
|
5123
5124
|
RuboCop::AST::NodePattern::Sets::SET_1_1 = T.let(T.unsafe(nil), Set)
|
5124
5125
|
|
5125
|
-
# source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10
|
5126
|
-
RuboCop::AST::NodePattern::Sets::SET_ABSTRACT_OVERRIDE_OVERRIDABLE_ETC = T.let(T.unsafe(nil), Set)
|
5127
|
-
|
5128
5126
|
# source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10
|
5129
5127
|
RuboCop::AST::NodePattern::Sets::SET_ADD_DEPENDENCY_ADD_RUNTIME_DEPENDENCY_ADD_DEVELOPMENT_DEPENDENCY = T.let(T.unsafe(nil), Set)
|
5130
5128
|
|
@@ -5182,9 +5180,6 @@ RuboCop::AST::NodePattern::Sets::SET_CLASS_MODULE_STRUCT = T.let(T.unsafe(nil),
|
|
5182
5180
|
# source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10
|
5183
5181
|
RuboCop::AST::NodePattern::Sets::SET_CLONE_DUP_FREEZE = T.let(T.unsafe(nil), Set)
|
5184
5182
|
|
5185
|
-
# source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10
|
5186
|
-
RuboCop::AST::NodePattern::Sets::SET_CONSTANTIZE_CONSTANTS_CONST_GET = T.let(T.unsafe(nil), Set)
|
5187
|
-
|
5188
5183
|
# source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10
|
5189
5184
|
RuboCop::AST::NodePattern::Sets::SET_COUNT_LENGTH_SIZE = T.let(T.unsafe(nil), Set)
|
5190
5185
|
|
@@ -5194,9 +5189,6 @@ RuboCop::AST::NodePattern::Sets::SET_CREATED_AT_UPDATED_AT = T.let(T.unsafe(nil)
|
|
5194
5189
|
# source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10
|
5195
5190
|
RuboCop::AST::NodePattern::Sets::SET_CREATED_AT_UPDATED_AT_2 = T.let(T.unsafe(nil), Set)
|
5196
5191
|
|
5197
|
-
# source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10
|
5198
|
-
RuboCop::AST::NodePattern::Sets::SET_DEFINE_METHOD = T.let(T.unsafe(nil), Set)
|
5199
|
-
|
5200
5192
|
# source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10
|
5201
5193
|
RuboCop::AST::NodePattern::Sets::SET_DEFINE_METHOD_DEFINE_SINGLETON_METHOD = T.let(T.unsafe(nil), Set)
|
5202
5194
|
|
@@ -5206,9 +5198,6 @@ RuboCop::AST::NodePattern::Sets::SET_EACH_WITH_INDEX_WITH_INDEX = T.let(T.unsafe
|
|
5206
5198
|
# source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10
|
5207
5199
|
RuboCop::AST::NodePattern::Sets::SET_EACH_WITH_OBJECT_WITH_OBJECT = T.let(T.unsafe(nil), Set)
|
5208
5200
|
|
5209
|
-
# source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10
|
5210
|
-
RuboCop::AST::NodePattern::Sets::SET_ENV = T.let(T.unsafe(nil), Set)
|
5211
|
-
|
5212
5201
|
# source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10
|
5213
5202
|
RuboCop::AST::NodePattern::Sets::SET_ESCAPE_ENCODE_UNESCAPE_DECODE = T.let(T.unsafe(nil), Set)
|
5214
5203
|
|
@@ -5263,6 +5252,9 @@ RuboCop::AST::NodePattern::Sets::SET_IF_UNLESS = T.let(T.unsafe(nil), Set)
|
|
5263
5252
|
# source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10
|
5264
5253
|
RuboCop::AST::NodePattern::Sets::SET_INCLUDE_EXTEND_PREPEND = T.let(T.unsafe(nil), Set)
|
5265
5254
|
|
5255
|
+
# source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10
|
5256
|
+
RuboCop::AST::NodePattern::Sets::SET_INCLUDE_PREPEND = T.let(T.unsafe(nil), Set)
|
5257
|
+
|
5266
5258
|
# source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10
|
5267
5259
|
RuboCop::AST::NodePattern::Sets::SET_INSERT_INSERT = T.let(T.unsafe(nil), Set)
|
5268
5260
|
|
@@ -5284,6 +5276,9 @@ RuboCop::AST::NodePattern::Sets::SET_KEYS_VALUES_TO_H_TO_XML = T.let(T.unsafe(ni
|
|
5284
5276
|
# source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10
|
5285
5277
|
RuboCop::AST::NodePattern::Sets::SET_KEY_HAS_KEY_FETCH_ETC = T.let(T.unsafe(nil), Set)
|
5286
5278
|
|
5279
|
+
# source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10
|
5280
|
+
RuboCop::AST::NodePattern::Sets::SET_LAMBDA_PROC = T.let(T.unsafe(nil), Set)
|
5281
|
+
|
5287
5282
|
# source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10
|
5288
5283
|
RuboCop::AST::NodePattern::Sets::SET_LAST_FIRST = T.let(T.unsafe(nil), Set)
|
5289
5284
|
|
@@ -5458,6 +5453,9 @@ RuboCop::AST::NodePattern::Sets::SET__FETCH = T.let(T.unsafe(nil), Set)
|
|
5458
5453
|
# source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10
|
5459
5454
|
RuboCop::AST::NodePattern::Sets::SET__GLOB = T.let(T.unsafe(nil), Set)
|
5460
5455
|
|
5456
|
+
# source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10
|
5457
|
+
RuboCop::AST::NodePattern::Sets::SET__PUSH_APPEND = T.let(T.unsafe(nil), Set)
|
5458
|
+
|
5461
5459
|
# source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10
|
5462
5460
|
RuboCop::AST::NodePattern::Sets::SET___ = T.let(T.unsafe(nil), Set)
|
5463
5461
|
|
@@ -4,6 +4,7 @@
|
|
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
|
+
|
7
8
|
# source://rubocop-sorbet//lib/rubocop/sorbet/version.rb#3
|
8
9
|
module RuboCop; end
|
9
10
|
|
@@ -190,16 +191,30 @@ RuboCop::Cop::Sorbet::BuggyObsoleteStrictMemoization::MSG = T.let(T.unsafe(nil),
|
|
190
191
|
# end
|
191
192
|
#
|
192
193
|
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/callback_conditionals_binding.rb#35
|
193
|
-
class RuboCop::Cop::Sorbet::CallbackConditionalsBinding < ::RuboCop::Cop::
|
194
|
-
|
195
|
-
|
194
|
+
class RuboCop::Cop::Sorbet::CallbackConditionalsBinding < ::RuboCop::Cop::Base
|
195
|
+
include ::RuboCop::Cop::Alignment
|
196
|
+
extend ::RuboCop::Cop::AutoCorrector
|
197
|
+
|
198
|
+
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/callback_conditionals_binding.rb#81
|
199
|
+
def argumentless_unbound_callable_callback_conditional?(param0 = T.unsafe(nil)); end
|
196
200
|
|
197
|
-
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/callback_conditionals_binding.rb#
|
201
|
+
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/callback_conditionals_binding.rb#91
|
198
202
|
def on_send(node); end
|
203
|
+
|
204
|
+
private
|
205
|
+
|
206
|
+
# Find the immediately enclosing class or module name.
|
207
|
+
# Returns `nil`` if the immediate parent (skipping begin if present) is not a class or module.
|
208
|
+
#
|
209
|
+
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/callback_conditionals_binding.rb#128
|
210
|
+
def immediately_enclosing_module_name(node); end
|
199
211
|
end
|
200
212
|
|
201
|
-
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/callback_conditionals_binding.rb#
|
202
|
-
RuboCop::Cop::Sorbet::CallbackConditionalsBinding::
|
213
|
+
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/callback_conditionals_binding.rb#39
|
214
|
+
RuboCop::Cop::Sorbet::CallbackConditionalsBinding::MSG = T.let(T.unsafe(nil), String)
|
215
|
+
|
216
|
+
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/callback_conditionals_binding.rb#41
|
217
|
+
RuboCop::Cop::Sorbet::CallbackConditionalsBinding::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array)
|
203
218
|
|
204
219
|
# Disallows the usage of `checked(true)`. This usage could cause
|
205
220
|
# confusion; it could lead some people to believe that a method would be checked
|
@@ -259,15 +274,18 @@ RuboCop::Cop::Sorbet::CheckedTrueInSignature::MESSAGE = T.let(T.unsafe(nil), Str
|
|
259
274
|
# # good
|
260
275
|
# { "User" => User }.fetch(class_name)
|
261
276
|
#
|
262
|
-
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/constants_from_strings.rb#
|
263
|
-
class RuboCop::Cop::Sorbet::ConstantsFromStrings < ::RuboCop::Cop::
|
264
|
-
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/constants_from_strings.rb#
|
265
|
-
def constant_from_string?(param0 = T.unsafe(nil)); end
|
266
|
-
|
267
|
-
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/constants_from_strings.rb#42
|
277
|
+
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/constants_from_strings.rb#36
|
278
|
+
class RuboCop::Cop::Sorbet::ConstantsFromStrings < ::RuboCop::Cop::Base
|
279
|
+
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/constants_from_strings.rb#46
|
268
280
|
def on_send(node); end
|
269
281
|
end
|
270
282
|
|
283
|
+
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/constants_from_strings.rb#37
|
284
|
+
RuboCop::Cop::Sorbet::ConstantsFromStrings::MSG = T.let(T.unsafe(nil), String)
|
285
|
+
|
286
|
+
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/constants_from_strings.rb#40
|
287
|
+
RuboCop::Cop::Sorbet::ConstantsFromStrings::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array)
|
288
|
+
|
271
289
|
# Checks for blank lines after signatures.
|
272
290
|
#
|
273
291
|
# @example
|
@@ -506,6 +524,42 @@ class RuboCop::Cop::Sorbet::FalseSigil < ::RuboCop::Cop::Sorbet::HasSigil
|
|
506
524
|
def minimum_strictness; end
|
507
525
|
end
|
508
526
|
|
527
|
+
# Disallow including the `Comparable` module in `T::Enum`.
|
528
|
+
#
|
529
|
+
# @example
|
530
|
+
#
|
531
|
+
# # bad
|
532
|
+
# class Priority < T::Enum
|
533
|
+
# include Comparable
|
534
|
+
#
|
535
|
+
# enums do
|
536
|
+
# High = new(3)
|
537
|
+
# Medium = new(2)
|
538
|
+
# Low = new(1)
|
539
|
+
# end
|
540
|
+
#
|
541
|
+
# def <=>(other)
|
542
|
+
# serialize <=> other.serialize
|
543
|
+
# end
|
544
|
+
# end
|
545
|
+
#
|
546
|
+
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/t_enum/forbid_comparable_t_enum.rb#24
|
547
|
+
class RuboCop::Cop::Sorbet::ForbidComparableTEnum < ::RuboCop::Cop::Base
|
548
|
+
include ::RuboCop::Cop::Sorbet::TEnum
|
549
|
+
|
550
|
+
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/t_enum/forbid_comparable_t_enum.rb#32
|
551
|
+
def mix_in_comparable?(param0 = T.unsafe(nil)); end
|
552
|
+
|
553
|
+
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/t_enum/forbid_comparable_t_enum.rb#36
|
554
|
+
def on_send(node); end
|
555
|
+
end
|
556
|
+
|
557
|
+
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/t_enum/forbid_comparable_t_enum.rb#27
|
558
|
+
RuboCop::Cop::Sorbet::ForbidComparableTEnum::MSG = T.let(T.unsafe(nil), String)
|
559
|
+
|
560
|
+
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/t_enum/forbid_comparable_t_enum.rb#29
|
561
|
+
RuboCop::Cop::Sorbet::ForbidComparableTEnum::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array)
|
562
|
+
|
509
563
|
# Ensures RBI shims do not include a call to extend T::Sig
|
510
564
|
# or to extend T::Helpers
|
511
565
|
#
|
@@ -1042,6 +1096,42 @@ class RuboCop::Cop::Sorbet::KeywordArgumentOrdering < ::RuboCop::Cop::Cop
|
|
1042
1096
|
def check_order_for_kwoptargs(parameters); end
|
1043
1097
|
end
|
1044
1098
|
|
1099
|
+
# Disallow creating a `T::Enum` with less than two values.
|
1100
|
+
#
|
1101
|
+
# @example
|
1102
|
+
#
|
1103
|
+
# # bad
|
1104
|
+
# class ErrorMessages < T::Enum
|
1105
|
+
# enums do
|
1106
|
+
# ServerError = new("There was a server error.")
|
1107
|
+
# end
|
1108
|
+
# end
|
1109
|
+
#
|
1110
|
+
# # good
|
1111
|
+
# class ErrorMessages < T::Enum
|
1112
|
+
# enums do
|
1113
|
+
# ServerError = new("There was a server error.")
|
1114
|
+
# NotFound = new("The resource was not found.")
|
1115
|
+
# end
|
1116
|
+
# end
|
1117
|
+
#
|
1118
|
+
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/t_enum/multiple_t_enum_values.rb#24
|
1119
|
+
class RuboCop::Cop::Sorbet::MultipleTEnumValues < ::RuboCop::Cop::Base
|
1120
|
+
include ::RuboCop::Cop::Sorbet::TEnum
|
1121
|
+
|
1122
|
+
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/t_enum/multiple_t_enum_values.rb#30
|
1123
|
+
def enums_block?(param0 = T.unsafe(nil)); end
|
1124
|
+
|
1125
|
+
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/t_enum/multiple_t_enum_values.rb#40
|
1126
|
+
def on_block(node); end
|
1127
|
+
|
1128
|
+
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/t_enum/multiple_t_enum_values.rb#34
|
1129
|
+
def on_class(node); end
|
1130
|
+
end
|
1131
|
+
|
1132
|
+
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/t_enum/multiple_t_enum_values.rb#27
|
1133
|
+
RuboCop::Cop::Sorbet::MultipleTEnumValues::MSG = T.let(T.unsafe(nil), String)
|
1134
|
+
|
1045
1135
|
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/mutable_constant_sorbet_aware_behaviour.rb#8
|
1046
1136
|
module RuboCop::Cop::Sorbet::MutableConstantSorbetAwareBehaviour
|
1047
1137
|
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/mutable_constant_sorbet_aware_behaviour.rb#18
|
@@ -1106,54 +1196,6 @@ end
|
|
1106
1196
|
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/obsolete_strict_memoization.rb#47
|
1107
1197
|
RuboCop::Cop::Sorbet::ObsoleteStrictMemoization::MSG = T.let(T.unsafe(nil), String)
|
1108
1198
|
|
1109
|
-
# Ensures one ancestor per requires_ancestor line
|
1110
|
-
# rather than chaining them as a comma-separated list.
|
1111
|
-
#
|
1112
|
-
# @example
|
1113
|
-
#
|
1114
|
-
# # bad
|
1115
|
-
# module SomeModule
|
1116
|
-
# requires_ancestor Kernel, Minitest::Assertions
|
1117
|
-
# end
|
1118
|
-
#
|
1119
|
-
# # good
|
1120
|
-
# module SomeModule
|
1121
|
-
# requires_ancestor Kernel
|
1122
|
-
# requires_ancestor Minitest::Assertions
|
1123
|
-
# end
|
1124
|
-
#
|
1125
|
-
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/one_ancestor_per_line.rb#24
|
1126
|
-
class RuboCop::Cop::Sorbet::OneAncestorPerLine < ::RuboCop::Cop::Cop
|
1127
|
-
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/one_ancestor_per_line.rb#38
|
1128
|
-
def abstract?(param0); end
|
1129
|
-
|
1130
|
-
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/one_ancestor_per_line.rb#56
|
1131
|
-
def autocorrect(node); end
|
1132
|
-
|
1133
|
-
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/one_ancestor_per_line.rb#33
|
1134
|
-
def more_than_one_ancestor(param0 = T.unsafe(nil)); end
|
1135
|
-
|
1136
|
-
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/one_ancestor_per_line.rb#49
|
1137
|
-
def on_class(node); end
|
1138
|
-
|
1139
|
-
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/one_ancestor_per_line.rb#42
|
1140
|
-
def on_module(node); end
|
1141
|
-
|
1142
|
-
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/one_ancestor_per_line.rb#28
|
1143
|
-
def requires_ancestors(param0); end
|
1144
|
-
|
1145
|
-
private
|
1146
|
-
|
1147
|
-
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/one_ancestor_per_line.rb#72
|
1148
|
-
def new_ra_line(indent_count); end
|
1149
|
-
|
1150
|
-
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/one_ancestor_per_line.rb#66
|
1151
|
-
def process_node(node); end
|
1152
|
-
end
|
1153
|
-
|
1154
|
-
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/one_ancestor_per_line.rb#25
|
1155
|
-
RuboCop::Cop::Sorbet::OneAncestorPerLine::MSG = T.let(T.unsafe(nil), String)
|
1156
|
-
|
1157
1199
|
# Forbids the use of redundant `extend T::Sig`. Only for use in
|
1158
1200
|
# applications that monkey patch `Module.include(T::Sig)` globally,
|
1159
1201
|
# which would make it redundant.
|
@@ -1306,6 +1348,32 @@ class RuboCop::Cop::Sorbet::StrongSigil < ::RuboCop::Cop::Sorbet::HasSigil
|
|
1306
1348
|
def minimum_strictness; end
|
1307
1349
|
end
|
1308
1350
|
|
1351
|
+
# Mixing for writing cops that deal with `T::Enum`s
|
1352
|
+
#
|
1353
|
+
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/mixin/t_enum.rb#7
|
1354
|
+
module RuboCop::Cop::Sorbet::TEnum
|
1355
|
+
extend ::RuboCop::AST::NodePattern::Macros
|
1356
|
+
|
1357
|
+
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/mixin/t_enum.rb#9
|
1358
|
+
def initialize(*_arg0); end
|
1359
|
+
|
1360
|
+
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/mixin/t_enum.rb#23
|
1361
|
+
def after_class(node); end
|
1362
|
+
|
1363
|
+
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/mixin/t_enum.rb#19
|
1364
|
+
def on_class(node); end
|
1365
|
+
|
1366
|
+
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/mixin/t_enum.rb#15
|
1367
|
+
def t_enum?(param0 = T.unsafe(nil)); end
|
1368
|
+
|
1369
|
+
private
|
1370
|
+
|
1371
|
+
# @return [Boolean]
|
1372
|
+
#
|
1373
|
+
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/mixin/t_enum.rb#29
|
1374
|
+
def in_t_enum_class?; end
|
1375
|
+
end
|
1376
|
+
|
1309
1377
|
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/mixin/target_sorbet_version.rb#6
|
1310
1378
|
module RuboCop::Cop::Sorbet::TargetSorbetVersion
|
1311
1379
|
mixes_in_class_methods ::RuboCop::Cop::Sorbet::TargetSorbetVersion::ClassMethods
|
@@ -1392,7 +1460,7 @@ RuboCop::Cop::Sorbet::TypeAliasName::MSG = T.let(T.unsafe(nil), String)
|
|
1392
1460
|
#
|
1393
1461
|
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/sigils/valid_sigil.rb#20
|
1394
1462
|
class RuboCop::Cop::Sorbet::ValidSigil < ::RuboCop::Cop::Cop
|
1395
|
-
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/sigils/valid_sigil.rb#
|
1463
|
+
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/sigils/valid_sigil.rb#36
|
1396
1464
|
def autocorrect(_node); end
|
1397
1465
|
|
1398
1466
|
# So we can properly subclass this cop
|
@@ -1404,56 +1472,56 @@ class RuboCop::Cop::Sorbet::ValidSigil < ::RuboCop::Cop::Cop
|
|
1404
1472
|
|
1405
1473
|
# checks
|
1406
1474
|
#
|
1407
|
-
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/sigils/valid_sigil.rb#
|
1475
|
+
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/sigils/valid_sigil.rb#71
|
1408
1476
|
def check_sigil_present(sigil); end
|
1409
1477
|
|
1410
|
-
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/sigils/valid_sigil.rb#
|
1478
|
+
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/sigils/valid_sigil.rb#131
|
1411
1479
|
def check_strictness_level(sigil, strictness); end
|
1412
1480
|
|
1413
|
-
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/sigils/valid_sigil.rb#
|
1481
|
+
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/sigils/valid_sigil.rb#109
|
1414
1482
|
def check_strictness_not_empty(sigil, strictness); end
|
1415
1483
|
|
1416
|
-
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/sigils/valid_sigil.rb#
|
1484
|
+
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/sigils/valid_sigil.rb#120
|
1417
1485
|
def check_strictness_valid(sigil, strictness); end
|
1418
1486
|
|
1419
1487
|
# Default is `nil`
|
1420
1488
|
#
|
1421
|
-
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/sigils/valid_sigil.rb#
|
1489
|
+
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/sigils/valid_sigil.rb#181
|
1422
1490
|
def exact_strictness; end
|
1423
1491
|
|
1424
1492
|
# extraction
|
1425
1493
|
#
|
1426
|
-
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/sigils/valid_sigil.rb#
|
1494
|
+
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/sigils/valid_sigil.rb#59
|
1427
1495
|
def extract_sigil(processed_source); end
|
1428
1496
|
|
1429
|
-
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/sigils/valid_sigil.rb#
|
1497
|
+
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/sigils/valid_sigil.rb#65
|
1430
1498
|
def extract_strictness(sigil); end
|
1431
1499
|
|
1432
1500
|
# Default is `nil`
|
1433
1501
|
#
|
1434
|
-
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/sigils/valid_sigil.rb#
|
1502
|
+
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/sigils/valid_sigil.rb#175
|
1435
1503
|
def minimum_strictness; end
|
1436
1504
|
|
1437
1505
|
# Default is `false`
|
1438
1506
|
#
|
1439
1507
|
# @return [Boolean]
|
1440
1508
|
#
|
1441
|
-
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/sigils/valid_sigil.rb#
|
1509
|
+
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/sigils/valid_sigil.rb#164
|
1442
1510
|
def require_sigil_on_all_files?; end
|
1443
1511
|
|
1444
1512
|
# Default is `'false'`
|
1445
1513
|
#
|
1446
|
-
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/sigils/valid_sigil.rb#
|
1514
|
+
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/sigils/valid_sigil.rb#169
|
1447
1515
|
def suggested_strictness; end
|
1448
1516
|
|
1449
|
-
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/sigils/valid_sigil.rb#
|
1517
|
+
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/sigils/valid_sigil.rb#87
|
1450
1518
|
def suggested_strictness_level; end
|
1451
1519
|
end
|
1452
1520
|
|
1453
|
-
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/sigils/valid_sigil.rb#
|
1521
|
+
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/sigils/valid_sigil.rb#55
|
1454
1522
|
RuboCop::Cop::Sorbet::ValidSigil::SIGIL_REGEX = T.let(T.unsafe(nil), Regexp)
|
1455
1523
|
|
1456
|
-
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/sigils/valid_sigil.rb#
|
1524
|
+
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/sigils/valid_sigil.rb#54
|
1457
1525
|
RuboCop::Cop::Sorbet::ValidSigil::STRICTNESS_LEVELS = T.let(T.unsafe(nil), Array)
|
1458
1526
|
|
1459
1527
|
# Disallows the usage of `.void.checked(:tests)`.
|