diff --git a/Library/Homebrew/sorbet/rbi/dsl/rubo_cop/cop/cask/variables.rbi b/Library/Homebrew/sorbet/rbi/dsl/rubo_cop/cop/cask/variables.rbi index 03b3da5b04..77af835550 100644 --- a/Library/Homebrew/sorbet/rbi/dsl/rubo_cop/cop/cask/variables.rbi +++ b/Library/Homebrew/sorbet/rbi/dsl/rubo_cop/cop/cask/variables.rbi @@ -5,6 +5,13 @@ # Please instead update this file by running `bin/tapioca dsl RuboCop::Cop::Cask::Variables`. class RuboCop::Cop::Cask::Variables - sig { params(node: T.untyped, block: T.untyped).returns(T.untyped) } - def variable_assignment(*node, &block); end + sig do + params( + node: RuboCop::AST::Node, + pattern: T.any(String, Symbol), + kwargs: T.untyped, + block: T.untyped + ).returns(T.untyped) + end + def variable_assignment(node, *pattern, **kwargs, &block); end end diff --git a/Library/Homebrew/sorbet/rbi/dsl/rubo_cop/cop/formula_audit/components_order.rbi b/Library/Homebrew/sorbet/rbi/dsl/rubo_cop/cop/formula_audit/components_order.rbi index 470b6df1b8..0a56de7564 100644 --- a/Library/Homebrew/sorbet/rbi/dsl/rubo_cop/cop/formula_audit/components_order.rbi +++ b/Library/Homebrew/sorbet/rbi/dsl/rubo_cop/cop/formula_audit/components_order.rbi @@ -6,5 +6,5 @@ class RuboCop::Cop::FormulaAudit::ComponentsOrder sig { params(node: RuboCop::AST::Node, kwargs: T.untyped, block: T.untyped).returns(T.untyped) } - def depends_on_node?(*node, **kwargs, &block); end + def depends_on_node?(node, **kwargs, &block); end end diff --git a/Library/Homebrew/sorbet/rbi/dsl/rubo_cop/cop/formula_audit/dependency_order.rbi b/Library/Homebrew/sorbet/rbi/dsl/rubo_cop/cop/formula_audit/dependency_order.rbi index bbb86d9b5b..02c57246a9 100644 --- a/Library/Homebrew/sorbet/rbi/dsl/rubo_cop/cop/formula_audit/dependency_order.rbi +++ b/Library/Homebrew/sorbet/rbi/dsl/rubo_cop/cop/formula_audit/dependency_order.rbi @@ -5,30 +5,79 @@ # Please instead update this file by running `bin/tapioca dsl RuboCop::Cop::FormulaAudit::DependencyOrder`. class RuboCop::Cop::FormulaAudit::DependencyOrder - sig { params(node: T.untyped, block: T.untyped).returns(T.untyped) } - def build_with_dependency_node(*node, &block); end + sig do + params( + node: RuboCop::AST::Node, + pattern: T.any(String, Symbol), + kwargs: T.untyped, + block: T.untyped + ).returns(T.untyped) + end + def build_with_dependency_node(node, *pattern, **kwargs, &block); end - sig { params(node: T.untyped, block: T.untyped).returns(T::Boolean) } - def buildtime_dependency?(*node, &block); end + sig do + params( + node: RuboCop::AST::Node, + pattern: T.any(String, Symbol), + kwargs: T.untyped, + block: T.untyped + ).returns(T::Boolean) + end + def buildtime_dependency?(node, *pattern, **kwargs, &block); end - sig { params(node: T.untyped, block: T.untyped).returns(T.untyped) } - def dependency_name_node(*node, &block); end + sig do + params( + node: RuboCop::AST::Node, + pattern: T.any(String, Symbol), + kwargs: T.untyped, + block: T.untyped + ).returns(T.untyped) + end + def dependency_name_node(node, *pattern, **kwargs, &block); end sig { params(node: RuboCop::AST::Node, kwargs: T.untyped, block: T.untyped).returns(T.untyped) } - def depends_on_node?(*node, **kwargs, &block); end + def depends_on_node?(node, **kwargs, &block); end - sig { params(node: T.untyped, block: T.untyped).returns(T::Boolean) } - def negate_normal_dependency?(*node, &block); end + sig do + params( + node: RuboCop::AST::Node, + pattern: T.any(String, Symbol), + kwargs: T.untyped, + block: T.untyped + ).returns(T::Boolean) + end + def negate_normal_dependency?(node, *pattern, **kwargs, &block); end - sig { params(node: T.untyped, block: T.untyped).returns(T::Boolean) } - def optional_dependency?(*node, &block); end + sig do + params( + node: RuboCop::AST::Node, + pattern: T.any(String, Symbol), + kwargs: T.untyped, + block: T.untyped + ).returns(T::Boolean) + end + def optional_dependency?(node, *pattern, **kwargs, &block); end - sig { params(node: T.untyped, block: T.untyped).returns(T::Boolean) } - def recommended_dependency?(*node, &block); end + sig do + params( + node: RuboCop::AST::Node, + pattern: T.any(String, Symbol), + kwargs: T.untyped, + block: T.untyped + ).returns(T::Boolean) + end + def recommended_dependency?(node, *pattern, **kwargs, &block); end - sig { params(node: T.untyped, block: T.untyped).returns(T::Boolean) } - def test_dependency?(*node, &block); end + sig do + params( + node: RuboCop::AST::Node, + pattern: T.any(String, Symbol), + kwargs: T.untyped, + block: T.untyped + ).returns(T::Boolean) + end + def test_dependency?(node, *pattern, **kwargs, &block); end sig { params(node: RuboCop::AST::Node, kwargs: T.untyped, block: T.untyped).returns(T.untyped) } - def uses_from_macos_node?(*node, **kwargs, &block); end + def uses_from_macos_node?(node, **kwargs, &block); end end diff --git a/Library/Homebrew/sorbet/rbi/dsl/rubo_cop/cop/formula_audit/deprecate_disable_date.rbi b/Library/Homebrew/sorbet/rbi/dsl/rubo_cop/cop/formula_audit/deprecate_disable_date.rbi index 18b209a2fd..2a67553b9c 100644 --- a/Library/Homebrew/sorbet/rbi/dsl/rubo_cop/cop/formula_audit/deprecate_disable_date.rbi +++ b/Library/Homebrew/sorbet/rbi/dsl/rubo_cop/cop/formula_audit/deprecate_disable_date.rbi @@ -5,6 +5,13 @@ # Please instead update this file by running `bin/tapioca dsl RuboCop::Cop::FormulaAudit::DeprecateDisableDate`. class RuboCop::Cop::FormulaAudit::DeprecateDisableDate - sig { params(node: T.untyped, block: T.untyped).returns(T.untyped) } - def date(*node, &block); end + sig do + params( + node: RuboCop::AST::Node, + pattern: T.any(String, Symbol), + kwargs: T.untyped, + block: T.untyped + ).returns(T.untyped) + end + def date(node, *pattern, **kwargs, &block); end end diff --git a/Library/Homebrew/sorbet/rbi/dsl/rubo_cop/cop/formula_audit/deprecate_disable_reason.rbi b/Library/Homebrew/sorbet/rbi/dsl/rubo_cop/cop/formula_audit/deprecate_disable_reason.rbi index f3473654f4..efaff881a2 100644 --- a/Library/Homebrew/sorbet/rbi/dsl/rubo_cop/cop/formula_audit/deprecate_disable_reason.rbi +++ b/Library/Homebrew/sorbet/rbi/dsl/rubo_cop/cop/formula_audit/deprecate_disable_reason.rbi @@ -5,6 +5,13 @@ # Please instead update this file by running `bin/tapioca dsl RuboCop::Cop::FormulaAudit::DeprecateDisableReason`. class RuboCop::Cop::FormulaAudit::DeprecateDisableReason - sig { params(node: T.untyped, block: T.untyped).returns(T.untyped) } - def reason(*node, &block); end + sig do + params( + node: RuboCop::AST::Node, + pattern: T.any(String, Symbol), + kwargs: T.untyped, + block: T.untyped + ).returns(T.untyped) + end + def reason(node, *pattern, **kwargs, &block); end end diff --git a/Library/Homebrew/sorbet/rbi/dsl/rubo_cop/cop/formula_audit/generate_completions_dsl.rbi b/Library/Homebrew/sorbet/rbi/dsl/rubo_cop/cop/formula_audit/generate_completions_dsl.rbi index 152d2b3456..0e20431584 100644 --- a/Library/Homebrew/sorbet/rbi/dsl/rubo_cop/cop/formula_audit/generate_completions_dsl.rbi +++ b/Library/Homebrew/sorbet/rbi/dsl/rubo_cop/cop/formula_audit/generate_completions_dsl.rbi @@ -5,9 +5,23 @@ # Please instead update this file by running `bin/tapioca dsl RuboCop::Cop::FormulaAudit::GenerateCompletionsDSL`. class RuboCop::Cop::FormulaAudit::GenerateCompletionsDSL - sig { params(node: T.untyped, block: T.untyped).returns(T.untyped) } - def correctable_shell_completion_node(*node, &block); end + sig do + params( + node: RuboCop::AST::Node, + pattern: T.any(String, Symbol), + kwargs: T.untyped, + block: T.untyped + ).returns(T.untyped) + end + def correctable_shell_completion_node(node, *pattern, **kwargs, &block); end - sig { params(node: T.untyped, block: T.untyped).returns(T.untyped) } - def shell_completion_node(*node, &block); end + sig do + params( + node: RuboCop::AST::Node, + pattern: T.any(String, Symbol), + kwargs: T.untyped, + block: T.untyped + ).returns(T.untyped) + end + def shell_completion_node(node, *pattern, **kwargs, &block); end end diff --git a/Library/Homebrew/sorbet/rbi/dsl/rubo_cop/cop/formula_audit/git_urls.rbi b/Library/Homebrew/sorbet/rbi/dsl/rubo_cop/cop/formula_audit/git_urls.rbi index 5b0dd74ad9..65adb7065b 100644 --- a/Library/Homebrew/sorbet/rbi/dsl/rubo_cop/cop/formula_audit/git_urls.rbi +++ b/Library/Homebrew/sorbet/rbi/dsl/rubo_cop/cop/formula_audit/git_urls.rbi @@ -6,5 +6,5 @@ class RuboCop::Cop::FormulaAudit::GitUrls sig { params(node: RuboCop::AST::Node, kwargs: T.untyped, block: T.untyped).returns(T.untyped) } - def url_has_revision?(*node, **kwargs, &block); end + def url_has_revision?(node, **kwargs, &block); end end diff --git a/Library/Homebrew/sorbet/rbi/dsl/rubo_cop/cop/formula_audit/licenses.rbi b/Library/Homebrew/sorbet/rbi/dsl/rubo_cop/cop/formula_audit/licenses.rbi index 5eab79ac26..3cab20a1c7 100644 --- a/Library/Homebrew/sorbet/rbi/dsl/rubo_cop/cop/formula_audit/licenses.rbi +++ b/Library/Homebrew/sorbet/rbi/dsl/rubo_cop/cop/formula_audit/licenses.rbi @@ -6,5 +6,5 @@ class RuboCop::Cop::FormulaAudit::Licenses sig { params(node: RuboCop::AST::Node, kwargs: T.untyped, block: T.untyped).returns(T.untyped) } - def license_exception?(*node, **kwargs, &block); end + def license_exception?(node, **kwargs, &block); end end diff --git a/Library/Homebrew/sorbet/rbi/dsl/rubo_cop/cop/formula_audit/miscellaneous.rbi b/Library/Homebrew/sorbet/rbi/dsl/rubo_cop/cop/formula_audit/miscellaneous.rbi index aa46db2eb2..ce9addd4c5 100644 --- a/Library/Homebrew/sorbet/rbi/dsl/rubo_cop/cop/formula_audit/miscellaneous.rbi +++ b/Library/Homebrew/sorbet/rbi/dsl/rubo_cop/cop/formula_audit/miscellaneous.rbi @@ -5,18 +5,39 @@ # Please instead update this file by running `bin/tapioca dsl RuboCop::Cop::FormulaAudit::Miscellaneous`. class RuboCop::Cop::FormulaAudit::Miscellaneous - sig { params(node: T.untyped, block: T.untyped).returns(T.untyped) } - def conditional_dependencies(*node, &block); end + sig do + params( + node: RuboCop::AST::Node, + pattern: T.any(String, Symbol), + kwargs: T.untyped, + block: T.untyped + ).returns(T.untyped) + end + def conditional_dependencies(node, *pattern, **kwargs, &block); end sig { params(node: RuboCop::AST::Node, kwargs: T.untyped, block: T.untyped).returns(T.untyped) } - def destructure_hash(*node, **kwargs, &block); end + def destructure_hash(node, **kwargs, &block); end - sig { params(node: T.untyped, block: T.untyped).returns(T.untyped) } - def formula_path_strings(*node, &block); end + sig do + params( + node: RuboCop::AST::Node, + pattern: T.any(String, Symbol), + kwargs: T.untyped, + block: T.untyped + ).returns(T.untyped) + end + def formula_path_strings(node, *pattern, **kwargs, &block); end sig { params(node: RuboCop::AST::Node, kwargs: T.untyped, block: T.untyped).returns(T.untyped) } - def hash_dep(*node, **kwargs, &block); end + def hash_dep(node, **kwargs, &block); end - sig { params(node: T.untyped, block: T.untyped).returns(T::Boolean) } - def languageNodeModule?(*node, &block); end + sig do + params( + node: RuboCop::AST::Node, + pattern: T.any(String, Symbol), + kwargs: T.untyped, + block: T.untyped + ).returns(T::Boolean) + end + def languageNodeModule?(node, *pattern, **kwargs, &block); end end diff --git a/Library/Homebrew/sorbet/rbi/dsl/rubo_cop/cop/formula_audit/option_declarations.rbi b/Library/Homebrew/sorbet/rbi/dsl/rubo_cop/cop/formula_audit/option_declarations.rbi index eb94588521..4503647f98 100644 --- a/Library/Homebrew/sorbet/rbi/dsl/rubo_cop/cop/formula_audit/option_declarations.rbi +++ b/Library/Homebrew/sorbet/rbi/dsl/rubo_cop/cop/formula_audit/option_declarations.rbi @@ -5,6 +5,13 @@ # Please instead update this file by running `bin/tapioca dsl RuboCop::Cop::FormulaAudit::OptionDeclarations`. class RuboCop::Cop::FormulaAudit::OptionDeclarations - sig { params(node: T.untyped, block: T.untyped).returns(T.untyped) } - def depends_on_build_with(*node, &block); end + sig do + params( + node: RuboCop::AST::Node, + pattern: T.any(String, Symbol), + kwargs: T.untyped, + block: T.untyped + ).returns(T.untyped) + end + def depends_on_build_with(node, *pattern, **kwargs, &block); end end diff --git a/Library/Homebrew/sorbet/rbi/dsl/rubo_cop/cop/formula_audit/patches.rbi b/Library/Homebrew/sorbet/rbi/dsl/rubo_cop/cop/formula_audit/patches.rbi index 81db7b48e2..1abdb46964 100644 --- a/Library/Homebrew/sorbet/rbi/dsl/rubo_cop/cop/formula_audit/patches.rbi +++ b/Library/Homebrew/sorbet/rbi/dsl/rubo_cop/cop/formula_audit/patches.rbi @@ -5,6 +5,13 @@ # Please instead update this file by running `bin/tapioca dsl RuboCop::Cop::FormulaAudit::Patches`. class RuboCop::Cop::FormulaAudit::Patches - sig { params(node: T.untyped, block: T.untyped).returns(T::Boolean) } - def patch_data?(*node, &block); end + sig do + params( + node: RuboCop::AST::Node, + pattern: T.any(String, Symbol), + kwargs: T.untyped, + block: T.untyped + ).returns(T::Boolean) + end + def patch_data?(node, *pattern, **kwargs, &block); end end diff --git a/Library/Homebrew/sorbet/rbi/dsl/rubo_cop/cop/formula_audit/test.rbi b/Library/Homebrew/sorbet/rbi/dsl/rubo_cop/cop/formula_audit/test.rbi index 0d9fcb3e5a..856ae2a708 100644 --- a/Library/Homebrew/sorbet/rbi/dsl/rubo_cop/cop/formula_audit/test.rbi +++ b/Library/Homebrew/sorbet/rbi/dsl/rubo_cop/cop/formula_audit/test.rbi @@ -5,6 +5,13 @@ # Please instead update this file by running `bin/tapioca dsl RuboCop::Cop::FormulaAudit::Test`. class RuboCop::Cop::FormulaAudit::Test - sig { params(node: T.untyped, block: T.untyped).returns(T.untyped) } - def test_calls(*node, &block); end + sig do + params( + node: RuboCop::AST::Node, + pattern: T.any(String, Symbol), + kwargs: T.untyped, + block: T.untyped + ).returns(T.untyped) + end + def test_calls(node, *pattern, **kwargs, &block); end end diff --git a/Library/Homebrew/sorbet/rbi/dsl/rubo_cop/cop/formula_audit/text.rbi b/Library/Homebrew/sorbet/rbi/dsl/rubo_cop/cop/formula_audit/text.rbi index e45270488b..efd1de8751 100644 --- a/Library/Homebrew/sorbet/rbi/dsl/rubo_cop/cop/formula_audit/text.rbi +++ b/Library/Homebrew/sorbet/rbi/dsl/rubo_cop/cop/formula_audit/text.rbi @@ -5,6 +5,13 @@ # Please instead update this file by running `bin/tapioca dsl RuboCop::Cop::FormulaAudit::Text`. class RuboCop::Cop::FormulaAudit::Text - sig { params(node: T.untyped, block: T.untyped).returns(T.untyped) } - def prefix_path(*node, &block); end + sig do + params( + node: RuboCop::AST::Node, + pattern: T.any(String, Symbol), + kwargs: T.untyped, + block: T.untyped + ).returns(T.untyped) + end + def prefix_path(node, *pattern, **kwargs, &block); end end diff --git a/Library/Homebrew/sorbet/rbi/dsl/rubo_cop/cop/formula_audit_strict/git_urls.rbi b/Library/Homebrew/sorbet/rbi/dsl/rubo_cop/cop/formula_audit_strict/git_urls.rbi index db8f61d930..25e1615fe1 100644 --- a/Library/Homebrew/sorbet/rbi/dsl/rubo_cop/cop/formula_audit_strict/git_urls.rbi +++ b/Library/Homebrew/sorbet/rbi/dsl/rubo_cop/cop/formula_audit_strict/git_urls.rbi @@ -6,5 +6,5 @@ class RuboCop::Cop::FormulaAuditStrict::GitUrls sig { params(node: RuboCop::AST::Node, kwargs: T.untyped, block: T.untyped).returns(T.untyped) } - def url_has_tag?(*node, **kwargs, &block); end + def url_has_tag?(node, **kwargs, &block); end end diff --git a/Library/Homebrew/sorbet/rbi/dsl/rubo_cop/cop/formula_audit_strict/text.rbi b/Library/Homebrew/sorbet/rbi/dsl/rubo_cop/cop/formula_audit_strict/text.rbi index 1444a5206e..f096d342d1 100644 --- a/Library/Homebrew/sorbet/rbi/dsl/rubo_cop/cop/formula_audit_strict/text.rbi +++ b/Library/Homebrew/sorbet/rbi/dsl/rubo_cop/cop/formula_audit_strict/text.rbi @@ -5,9 +5,23 @@ # Please instead update this file by running `bin/tapioca dsl RuboCop::Cop::FormulaAuditStrict::Text`. class RuboCop::Cop::FormulaAuditStrict::Text - sig { params(node: T.untyped, block: T.untyped).returns(T.untyped) } - def interpolated_share_path_starts_with(*node, &block); end + sig do + params( + node: RuboCop::AST::Node, + pattern: T.any(String, Symbol), + kwargs: T.untyped, + block: T.untyped + ).returns(T.untyped) + end + def interpolated_share_path_starts_with(node, *pattern, **kwargs, &block); end - sig { params(node: T.untyped, block: T.untyped).returns(T.untyped) } - def share_path_starts_with(*node, &block); end + sig do + params( + node: RuboCop::AST::Node, + pattern: T.any(String, Symbol), + kwargs: T.untyped, + block: T.untyped + ).returns(T.untyped) + end + def share_path_starts_with(node, *pattern, **kwargs, &block); end end diff --git a/Library/Homebrew/sorbet/rbi/dsl/rubo_cop/cop/formula_cop.rbi b/Library/Homebrew/sorbet/rbi/dsl/rubo_cop/cop/formula_cop.rbi index aaea44eacc..574dcfd615 100644 --- a/Library/Homebrew/sorbet/rbi/dsl/rubo_cop/cop/formula_cop.rbi +++ b/Library/Homebrew/sorbet/rbi/dsl/rubo_cop/cop/formula_cop.rbi @@ -5,15 +5,43 @@ # Please instead update this file by running `bin/tapioca dsl RuboCop::Cop::FormulaCop`. class RuboCop::Cop::FormulaCop - sig { params(node: T.untyped, block: T.untyped).returns(T::Boolean) } - def dependency_name_hash_match?(*node, &block); end + sig do + params( + node: RuboCop::AST::Node, + pattern: T.any(String, Symbol), + kwargs: T.untyped, + block: T.untyped + ).returns(T::Boolean) + end + def dependency_name_hash_match?(node, *pattern, **kwargs, &block); end - sig { params(node: T.untyped, block: T.untyped).returns(T::Boolean) } - def dependency_type_hash_match?(*node, &block); end + sig do + params( + node: RuboCop::AST::Node, + pattern: T.any(String, Symbol), + kwargs: T.untyped, + block: T.untyped + ).returns(T::Boolean) + end + def dependency_type_hash_match?(node, *pattern, **kwargs, &block); end - sig { params(node: T.untyped, block: T.untyped).returns(T::Boolean) } - def required_dependency?(*node, &block); end + sig do + params( + node: RuboCop::AST::Node, + pattern: T.any(String, Symbol), + kwargs: T.untyped, + block: T.untyped + ).returns(T::Boolean) + end + def required_dependency?(node, *pattern, **kwargs, &block); end - sig { params(node: T.untyped, block: T.untyped).returns(T::Boolean) } - def required_dependency_name?(*node, &block); end + sig do + params( + node: RuboCop::AST::Node, + pattern: T.any(String, Symbol), + kwargs: T.untyped, + block: T.untyped + ).returns(T::Boolean) + end + def required_dependency_name?(node, *pattern, **kwargs, &block); end end diff --git a/Library/Homebrew/sorbet/rbi/dsl/rubo_cop/cop/homebrew/blank.rbi b/Library/Homebrew/sorbet/rbi/dsl/rubo_cop/cop/homebrew/blank.rbi index 3973833606..e4d2a8fac0 100644 --- a/Library/Homebrew/sorbet/rbi/dsl/rubo_cop/cop/homebrew/blank.rbi +++ b/Library/Homebrew/sorbet/rbi/dsl/rubo_cop/cop/homebrew/blank.rbi @@ -6,5 +6,5 @@ class RuboCop::Cop::Homebrew::Blank sig { params(node: RuboCop::AST::Node, kwargs: T.untyped, block: T.untyped).returns(T.untyped) } - def nil_or_empty?(*node, **kwargs, &block); end + def nil_or_empty?(node, **kwargs, &block); end end diff --git a/Library/Homebrew/sorbet/rbi/dsl/rubo_cop/cop/homebrew/compact_blank.rbi b/Library/Homebrew/sorbet/rbi/dsl/rubo_cop/cop/homebrew/compact_blank.rbi index c3063b7941..4b9fb22729 100644 --- a/Library/Homebrew/sorbet/rbi/dsl/rubo_cop/cop/homebrew/compact_blank.rbi +++ b/Library/Homebrew/sorbet/rbi/dsl/rubo_cop/cop/homebrew/compact_blank.rbi @@ -6,8 +6,8 @@ class RuboCop::Cop::Homebrew::CompactBlank sig { params(node: RuboCop::AST::Node, kwargs: T.untyped, block: T.untyped).returns(T.untyped) } - def reject_with_block?(*node, **kwargs, &block); end + def reject_with_block?(node, **kwargs, &block); end sig { params(node: RuboCop::AST::Node, kwargs: T.untyped, block: T.untyped).returns(T.untyped) } - def reject_with_block_pass?(*node, **kwargs, &block); end + def reject_with_block_pass?(node, **kwargs, &block); end end diff --git a/Library/Homebrew/sorbet/rbi/dsl/rubo_cop/cop/homebrew/move_to_extend_os.rbi b/Library/Homebrew/sorbet/rbi/dsl/rubo_cop/cop/homebrew/move_to_extend_os.rbi index fa23bca2c3..ba982aa1eb 100644 --- a/Library/Homebrew/sorbet/rbi/dsl/rubo_cop/cop/homebrew/move_to_extend_os.rbi +++ b/Library/Homebrew/sorbet/rbi/dsl/rubo_cop/cop/homebrew/move_to_extend_os.rbi @@ -6,5 +6,5 @@ class RuboCop::Cop::Homebrew::MoveToExtendOS sig { params(node: RuboCop::AST::Node, kwargs: T.untyped, block: T.untyped).returns(T.untyped) } - def os_check?(*node, **kwargs, &block); end + def os_check?(node, **kwargs, &block); end end diff --git a/Library/Homebrew/sorbet/rbi/dsl/rubo_cop/cop/homebrew/negate_include.rbi b/Library/Homebrew/sorbet/rbi/dsl/rubo_cop/cop/homebrew/negate_include.rbi index d254d9f06c..76e5d9d585 100644 --- a/Library/Homebrew/sorbet/rbi/dsl/rubo_cop/cop/homebrew/negate_include.rbi +++ b/Library/Homebrew/sorbet/rbi/dsl/rubo_cop/cop/homebrew/negate_include.rbi @@ -6,5 +6,5 @@ class RuboCop::Cop::Homebrew::NegateInclude sig { params(node: RuboCop::AST::Node, kwargs: T.untyped, block: T.untyped).returns(T.untyped) } - def negate_include_call?(*node, **kwargs, &block); end + def negate_include_call?(node, **kwargs, &block); end end diff --git a/Library/Homebrew/sorbet/rbi/dsl/rubo_cop/cop/homebrew/presence.rbi b/Library/Homebrew/sorbet/rbi/dsl/rubo_cop/cop/homebrew/presence.rbi index 45fbcf61f0..da15dd2ebd 100644 --- a/Library/Homebrew/sorbet/rbi/dsl/rubo_cop/cop/homebrew/presence.rbi +++ b/Library/Homebrew/sorbet/rbi/dsl/rubo_cop/cop/homebrew/presence.rbi @@ -6,8 +6,8 @@ class RuboCop::Cop::Homebrew::Presence sig { params(node: RuboCop::AST::Node, kwargs: T.untyped, block: T.untyped).returns(T.untyped) } - def redundant_negative_receiver_and_other(*node, **kwargs, &block); end + def redundant_negative_receiver_and_other(node, **kwargs, &block); end sig { params(node: RuboCop::AST::Node, kwargs: T.untyped, block: T.untyped).returns(T.untyped) } - def redundant_receiver_and_other(*node, **kwargs, &block); end + def redundant_receiver_and_other(node, **kwargs, &block); end end diff --git a/Library/Homebrew/sorbet/rbi/dsl/rubo_cop/cop/homebrew/present.rbi b/Library/Homebrew/sorbet/rbi/dsl/rubo_cop/cop/homebrew/present.rbi index 0a02fdf79e..69bc2befde 100644 --- a/Library/Homebrew/sorbet/rbi/dsl/rubo_cop/cop/homebrew/present.rbi +++ b/Library/Homebrew/sorbet/rbi/dsl/rubo_cop/cop/homebrew/present.rbi @@ -6,5 +6,5 @@ class RuboCop::Cop::Homebrew::Present sig { params(node: RuboCop::AST::Node, kwargs: T.untyped, block: T.untyped).returns(T.untyped) } - def exists_and_not_empty?(*node, **kwargs, &block); end + def exists_and_not_empty?(node, **kwargs, &block); end end diff --git a/Library/Homebrew/sorbet/rbi/dsl/rubo_cop/cop/homebrew/safe_navigation_with_blank.rbi b/Library/Homebrew/sorbet/rbi/dsl/rubo_cop/cop/homebrew/safe_navigation_with_blank.rbi index 22567eb453..9543900bfc 100644 --- a/Library/Homebrew/sorbet/rbi/dsl/rubo_cop/cop/homebrew/safe_navigation_with_blank.rbi +++ b/Library/Homebrew/sorbet/rbi/dsl/rubo_cop/cop/homebrew/safe_navigation_with_blank.rbi @@ -6,5 +6,5 @@ class RuboCop::Cop::Homebrew::SafeNavigationWithBlank sig { params(node: RuboCop::AST::Node, kwargs: T.untyped, block: T.untyped).returns(T.untyped) } - def safe_navigation_blank_in_conditional?(*node, **kwargs, &block); end + def safe_navigation_blank_in_conditional?(node, **kwargs, &block); end end diff --git a/Library/Homebrew/sorbet/rbi/dsl/rubo_cop/cop/on_system_conditionals_helper.rbi b/Library/Homebrew/sorbet/rbi/dsl/rubo_cop/cop/on_system_conditionals_helper.rbi index bd34168242..5e1ab8346f 100644 --- a/Library/Homebrew/sorbet/rbi/dsl/rubo_cop/cop/on_system_conditionals_helper.rbi +++ b/Library/Homebrew/sorbet/rbi/dsl/rubo_cop/cop/on_system_conditionals_helper.rbi @@ -5,24 +5,59 @@ # Please instead update this file by running `bin/tapioca dsl RuboCop::Cop::OnSystemConditionalsHelper`. module RuboCop::Cop::OnSystemConditionalsHelper - sig { params(node: T.untyped, block: T.untyped).returns(T.untyped) } - def hardware_cpu_search(*node, &block); end + sig do + params( + node: RuboCop::AST::Node, + pattern: T.any(String, Symbol), + kwargs: T.untyped, + block: T.untyped + ).returns(T.untyped) + end + def hardware_cpu_search(node, *pattern, **kwargs, &block); end - sig { params(node: T.untyped, block: T.untyped).returns(T.untyped) } - def if_arch_node_search(*node, &block); end + sig do + params( + node: RuboCop::AST::Node, + pattern: T.any(String, Symbol), + kwargs: T.untyped, + block: T.untyped + ).returns(T.untyped) + end + def if_arch_node_search(node, *pattern, **kwargs, &block); end - sig { params(node: T.untyped, block: T.untyped).returns(T.untyped) } - def if_base_os_node_search(*node, &block); end + sig do + params( + node: RuboCop::AST::Node, + pattern: T.any(String, Symbol), + kwargs: T.untyped, + block: T.untyped + ).returns(T.untyped) + end + def if_base_os_node_search(node, *pattern, **kwargs, &block); end - sig { params(node: T.untyped, block: T.untyped).returns(T.untyped) } - def if_macos_version_node_search(*node, &block); end + sig do + params( + node: RuboCop::AST::Node, + pattern: T.any(String, Symbol), + kwargs: T.untyped, + block: T.untyped + ).returns(T.untyped) + end + def if_macos_version_node_search(node, *pattern, **kwargs, &block); end - sig { params(node: T.untyped, block: T.untyped).returns(T.untyped) } - def macos_version_comparison_search(*node, &block); end + sig do + params( + node: RuboCop::AST::Node, + pattern: T.any(String, Symbol), + kwargs: T.untyped, + block: T.untyped + ).returns(T.untyped) + end + def macos_version_comparison_search(node, *pattern, **kwargs, &block); end sig { params(node: RuboCop::AST::Node, kwargs: T.untyped, block: T.untyped).returns(T.untyped) } - def on_macos_version_method_call(*node, **kwargs, &block); end + def on_macos_version_method_call(node, **kwargs, &block); end sig { params(node: RuboCop::AST::Node, kwargs: T.untyped, block: T.untyped).returns(T.untyped) } - def on_system_method_call(*node, **kwargs, &block); end + def on_system_method_call(node, **kwargs, &block); end end diff --git a/Library/Homebrew/sorbet/rbi/gems/parlour@8.1.0.rbi b/Library/Homebrew/sorbet/rbi/gems/parlour@8.1.0.rbi index ff888b396b..4dc97171ff 100644 --- a/Library/Homebrew/sorbet/rbi/gems/parlour@8.1.0.rbi +++ b/Library/Homebrew/sorbet/rbi/gems/parlour@8.1.0.rbi @@ -913,7 +913,7 @@ class Parlour::RbiGenerator::Namespace < ::Parlour::RbiGenerator::RbiObject # @param block [T.proc.params(x: Attribute).void, nil] # @return [Attribute] # - # source://sorbet-runtime/0.5.11237/lib/types/private/methods/_methods.rb#252 + # source://sorbet-runtime/0.5.11247/lib/types/private/methods/_methods.rb#252 def create_attr(*args, **_arg1, &blk); end # source://parlour//lib/parlour/rbi_generator/namespace.rb#472 @@ -1121,7 +1121,7 @@ class Parlour::RbiGenerator::Namespace < ::Parlour::RbiGenerator::RbiObject # @return [Array] # - # source://sorbet-runtime/0.5.11237/lib/types/private/methods/_methods.rb#252 + # source://sorbet-runtime/0.5.11247/lib/types/private/methods/_methods.rb#252 def type_aliases(*args, **_arg1, &blk); end private @@ -1885,7 +1885,7 @@ class Parlour::RbsGenerator::Namespace < ::Parlour::RbsGenerator::RbsObject # @param block [T.proc.params(x: Attribute).void, nil] # @return [Attribute] # - # source://sorbet-runtime/0.5.11237/lib/types/private/methods/_methods.rb#252 + # source://sorbet-runtime/0.5.11247/lib/types/private/methods/_methods.rb#252 def create_attr(*args, **_arg1, &blk); end # source://parlour//lib/parlour/rbs_generator/namespace.rb#347 @@ -2052,7 +2052,7 @@ class Parlour::RbsGenerator::Namespace < ::Parlour::RbsGenerator::RbsObject # @return [Array] # - # source://sorbet-runtime/0.5.11237/lib/types/private/methods/_methods.rb#252 + # source://sorbet-runtime/0.5.11247/lib/types/private/methods/_methods.rb#252 def type_aliases(*args, **_arg1, &blk); end private @@ -2395,7 +2395,7 @@ class Parlour::TypeParser::IntermediateSig < ::T::Struct prop :params, T.nilable(T::Array[::Parser::AST::Node]) class << self - # source://sorbet-runtime/0.5.11237/lib/types/struct.rb#13 + # source://sorbet-runtime/0.5.11247/lib/types/struct.rb#13 def inherited(s); end end end @@ -2450,7 +2450,7 @@ class Parlour::TypedObject # @param comment [String, Array] # @return [void] # - # source://sorbet-runtime/0.5.11237/lib/types/private/methods/_methods.rb#252 + # source://sorbet-runtime/0.5.11247/lib/types/private/methods/_methods.rb#252 def add_comments(*args, **_arg1, &blk); end # source://parlour//lib/parlour/typed_object.rb#32 @@ -2471,7 +2471,7 @@ class Parlour::TypedObject # @return [String] # - # source://sorbet-runtime/0.5.11237/lib/types/private/methods/_methods.rb#252 + # source://sorbet-runtime/0.5.11247/lib/types/private/methods/_methods.rb#252 def inspect(*args, **_arg1, &blk); end # source://parlour//lib/parlour/typed_object.rb#26 @@ -2480,7 +2480,7 @@ class Parlour::TypedObject # @return [String] # - # source://sorbet-runtime/0.5.11237/lib/types/private/methods/_methods.rb#252 + # source://sorbet-runtime/0.5.11247/lib/types/private/methods/_methods.rb#252 def to_s(*args, **_arg1, &blk); end protected diff --git a/Library/Homebrew/sorbet/rbi/gems/rbi@0.1.8.rbi b/Library/Homebrew/sorbet/rbi/gems/rbi@0.1.8.rbi index e27079cfd0..7bd1548db4 100644 --- a/Library/Homebrew/sorbet/rbi/gems/rbi@0.1.8.rbi +++ b/Library/Homebrew/sorbet/rbi/gems/rbi@0.1.8.rbi @@ -1820,7 +1820,7 @@ class RBI::Rewriters::Merge::Conflict < ::T::Struct def to_s; end class << self - # source://sorbet-runtime/0.5.11237/lib/types/struct.rb#13 + # source://sorbet-runtime/0.5.11247/lib/types/struct.rb#13 def inherited(s); end end end @@ -2037,7 +2037,7 @@ class RBI::Rewriters::RemoveKnownDefinitions::Operation < ::T::Struct def to_s; end class << self - # source://sorbet-runtime/0.5.11237/lib/types/struct.rb#13 + # source://sorbet-runtime/0.5.11247/lib/types/struct.rb#13 def inherited(s); end end end diff --git a/Library/Homebrew/sorbet/rbi/gems/rspec-sorbet@1.9.2.rbi b/Library/Homebrew/sorbet/rbi/gems/rspec-sorbet@1.9.2.rbi index 361cb21747..47bc9a1156 100644 --- a/Library/Homebrew/sorbet/rbi/gems/rspec-sorbet@1.9.2.rbi +++ b/Library/Homebrew/sorbet/rbi/gems/rspec-sorbet@1.9.2.rbi @@ -90,7 +90,7 @@ module RSpec::Sorbet::Doubles # @return [void] # - # source://sorbet-runtime/0.5.11237/lib/types/private/methods/_methods.rb#252 + # source://sorbet-runtime/0.5.11247/lib/types/private/methods/_methods.rb#252 def allow_instance_doubles!(*args, **_arg1, &blk); end # source://rspec-sorbet//lib/rspec/sorbet/doubles.rb#36 diff --git a/Library/Homebrew/sorbet/rbi/gems/spoom@1.2.4.rbi b/Library/Homebrew/sorbet/rbi/gems/spoom@1.2.4.rbi index 3911630528..efd197c01a 100644 --- a/Library/Homebrew/sorbet/rbi/gems/spoom@1.2.4.rbi +++ b/Library/Homebrew/sorbet/rbi/gems/spoom@1.2.4.rbi @@ -958,7 +958,7 @@ class Spoom::Coverage::D3::ColorPalette < ::T::Struct prop :strong, ::String class << self - # source://sorbet-runtime/0.5.11237/lib/types/struct.rb#13 + # source://sorbet-runtime/0.5.11247/lib/types/struct.rb#13 def inherited(s); end end end @@ -1298,7 +1298,7 @@ class Spoom::Coverage::Snapshot < ::T::Struct sig { params(obj: T::Hash[::String, T.untyped]).returns(::Spoom::Coverage::Snapshot) } def from_obj(obj); end - # source://sorbet-runtime/0.5.11237/lib/types/struct.rb#13 + # source://sorbet-runtime/0.5.11247/lib/types/struct.rb#13 def inherited(s); end end end @@ -1450,7 +1450,7 @@ class Spoom::Deadcode::Definition < ::T::Struct def module?; end class << self - # source://sorbet-runtime/0.5.11237/lib/types/struct.rb#13 + # source://sorbet-runtime/0.5.11247/lib/types/struct.rb#13 def inherited(s); end end end @@ -2343,7 +2343,7 @@ class Spoom::Deadcode::Reference < ::T::Struct def method?; end class << self - # source://sorbet-runtime/0.5.11237/lib/types/struct.rb#13 + # source://sorbet-runtime/0.5.11247/lib/types/struct.rb#13 def inherited(s); end end end @@ -2593,7 +2593,7 @@ class Spoom::Deadcode::Send < ::T::Struct def each_arg_assoc(&block); end class << self - # source://sorbet-runtime/0.5.11237/lib/types/struct.rb#13 + # source://sorbet-runtime/0.5.11247/lib/types/struct.rb#13 def inherited(s); end end end @@ -2613,7 +2613,7 @@ class Spoom::ExecResult < ::T::Struct def to_s; end class << self - # source://sorbet-runtime/0.5.11237/lib/types/struct.rb#13 + # source://sorbet-runtime/0.5.11247/lib/types/struct.rb#13 def inherited(s); end end end @@ -2821,7 +2821,7 @@ class Spoom::FileTree::Node < ::T::Struct def path; end class << self - # source://sorbet-runtime/0.5.11237/lib/types/struct.rb#13 + # source://sorbet-runtime/0.5.11247/lib/types/struct.rb#13 def inherited(s); end end end @@ -2887,7 +2887,7 @@ class Spoom::Git::Commit < ::T::Struct def timestamp; end class << self - # source://sorbet-runtime/0.5.11237/lib/types/struct.rb#13 + # source://sorbet-runtime/0.5.11247/lib/types/struct.rb#13 def inherited(s); end # Parse a line formated as `%h %at` into a `Commit` @@ -2999,7 +2999,7 @@ class Spoom::LSP::Diagnostic < ::T::Struct sig { params(json: T::Hash[T.untyped, T.untyped]).returns(::Spoom::LSP::Diagnostic) } def from_json(json); end - # source://sorbet-runtime/0.5.11237/lib/types/struct.rb#13 + # source://sorbet-runtime/0.5.11247/lib/types/struct.rb#13 def inherited(s); end end end @@ -3032,7 +3032,7 @@ class Spoom::LSP::DocumentSymbol < ::T::Struct sig { params(json: T::Hash[T.untyped, T.untyped]).returns(::Spoom::LSP::DocumentSymbol) } def from_json(json); end - # source://sorbet-runtime/0.5.11237/lib/types/struct.rb#13 + # source://sorbet-runtime/0.5.11247/lib/types/struct.rb#13 def inherited(s); end end end @@ -3090,7 +3090,7 @@ class Spoom::LSP::Hover < ::T::Struct sig { params(json: T::Hash[T.untyped, T.untyped]).returns(::Spoom::LSP::Hover) } def from_json(json); end - # source://sorbet-runtime/0.5.11237/lib/types/struct.rb#13 + # source://sorbet-runtime/0.5.11247/lib/types/struct.rb#13 def inherited(s); end end end @@ -3115,7 +3115,7 @@ class Spoom::LSP::Location < ::T::Struct sig { params(json: T::Hash[T.untyped, T.untyped]).returns(::Spoom::LSP::Location) } def from_json(json); end - # source://sorbet-runtime/0.5.11237/lib/types/struct.rb#13 + # source://sorbet-runtime/0.5.11247/lib/types/struct.rb#13 def inherited(s); end end end @@ -3178,7 +3178,7 @@ class Spoom::LSP::Position < ::T::Struct sig { params(json: T::Hash[T.untyped, T.untyped]).returns(::Spoom::LSP::Position) } def from_json(json); end - # source://sorbet-runtime/0.5.11237/lib/types/struct.rb#13 + # source://sorbet-runtime/0.5.11247/lib/types/struct.rb#13 def inherited(s); end end end @@ -3216,7 +3216,7 @@ class Spoom::LSP::Range < ::T::Struct sig { params(json: T::Hash[T.untyped, T.untyped]).returns(::Spoom::LSP::Range) } def from_json(json); end - # source://sorbet-runtime/0.5.11237/lib/types/struct.rb#13 + # source://sorbet-runtime/0.5.11247/lib/types/struct.rb#13 def inherited(s); end end end @@ -3282,7 +3282,7 @@ class Spoom::LSP::SignatureHelp < ::T::Struct sig { params(json: T::Hash[T.untyped, T.untyped]).returns(::Spoom::LSP::SignatureHelp) } def from_json(json); end - # source://sorbet-runtime/0.5.11237/lib/types/struct.rb#13 + # source://sorbet-runtime/0.5.11247/lib/types/struct.rb#13 def inherited(s); end end end diff --git a/Library/Homebrew/sorbet/rbi/gems/tapioca@0.12.0.rbi b/Library/Homebrew/sorbet/rbi/gems/tapioca@0.12.0.rbi index 6a2146ae2d..a8e31ba854 100644 --- a/Library/Homebrew/sorbet/rbi/gems/tapioca@0.12.0.rbi +++ b/Library/Homebrew/sorbet/rbi/gems/tapioca@0.12.0.rbi @@ -204,7 +204,7 @@ class RBI::TypedParam < ::T::Struct const :type, ::String class << self - # source://sorbet-runtime/0.5.11237/lib/types/struct.rb#13 + # source://sorbet-runtime/0.5.11247/lib/types/struct.rb#13 def inherited(s); end end end @@ -1121,7 +1121,7 @@ class Tapioca::ConfigHelper::ConfigError < ::T::Struct const :message_parts, T::Array[::Tapioca::ConfigHelper::ConfigErrorMessagePart] class << self - # source://sorbet-runtime/0.5.11237/lib/types/struct.rb#13 + # source://sorbet-runtime/0.5.11247/lib/types/struct.rb#13 def inherited(s); end end end @@ -1132,7 +1132,7 @@ class Tapioca::ConfigHelper::ConfigErrorMessagePart < ::T::Struct const :colors, T::Array[::Symbol] class << self - # source://sorbet-runtime/0.5.11237/lib/types/struct.rb#13 + # source://sorbet-runtime/0.5.11247/lib/types/struct.rb#13 def inherited(s); end end end @@ -2432,7 +2432,7 @@ class Tapioca::Loaders::Loader # @param engine [T.class_of(Rails::Engine)] # @return [Array] # - # source://sorbet-runtime/0.5.11237/lib/types/private/methods/_methods.rb#252 + # source://sorbet-runtime/0.5.11247/lib/types/private/methods/_methods.rb#252 def eager_load_paths(*args, **_arg1, &blk); end # source://tapioca//lib/tapioca/loaders/loader.rb#198 @@ -3340,7 +3340,7 @@ module Tapioca::Static::SymbolLoader # @return [Array] # - # source://sorbet-runtime/0.5.11237/lib/types/private/methods/_methods.rb#252 + # source://sorbet-runtime/0.5.11247/lib/types/private/methods/_methods.rb#252 def engines(*args, **_arg1, &blk); end # source://tapioca//lib/tapioca/static/symbol_loader.rb#82 diff --git a/Library/Homebrew/sorbet/rbi/gems/yard-sorbet@0.8.1.rbi b/Library/Homebrew/sorbet/rbi/gems/yard-sorbet@0.8.1.rbi index 6dcfa5ff8d..358a00217f 100644 --- a/Library/Homebrew/sorbet/rbi/gems/yard-sorbet@0.8.1.rbi +++ b/Library/Homebrew/sorbet/rbi/gems/yard-sorbet@0.8.1.rbi @@ -381,7 +381,7 @@ class YARDSorbet::TStructProp < ::T::Struct const :types, T::Array[::String] class << self - # source://sorbet-runtime/0.5.11237/lib/types/struct.rb#13 + # source://sorbet-runtime/0.5.11247/lib/types/struct.rb#13 def inherited(s); end end end diff --git a/Library/Homebrew/sorbet/tapioca/compilers/rubocop.rb b/Library/Homebrew/sorbet/tapioca/compilers/rubocop.rb index da03f37a3b..d264f9c252 100644 --- a/Library/Homebrew/sorbet/tapioca/compilers/rubocop.rb +++ b/Library/Homebrew/sorbet/tapioca/compilers/rubocop.rb @@ -46,7 +46,7 @@ module Tapioca klass.create_method( method_name.to_s, parameters: [ - create_rest_param("node", type: "RuboCop::AST::Node"), + create_param("node", type: "RuboCop::AST::Node"), create_kw_rest_param("kwargs", type: "T.untyped"), create_block_param("block", type: "T.untyped"), ], @@ -56,7 +56,9 @@ module Tapioca klass.create_method( method_name.to_s, parameters: [ - create_rest_param("node", type: "T.untyped"), + create_param("node", type: "RuboCop::AST::Node"), + create_rest_param("pattern", type: "T.any(String, Symbol)"), + create_kw_rest_param("kwargs", type: "T.untyped"), create_block_param("block", type: "T.untyped"), ], return_type: method_name.to_s.end_with?("?") ? "T::Boolean" : "T.untyped",