From 24ae318a3d5f0519f5fe29d08e01e8a044d99d87 Mon Sep 17 00:00:00 2001 From: Markus Reiter Date: Sat, 10 Oct 2020 14:16:11 +0200 Subject: [PATCH 01/15] Move type annotations into files. --- Library/Homebrew/PATH.rb | 1 + Library/Homebrew/bintray.rb | 1 + Library/Homebrew/brew.rb | 1 + Library/Homebrew/build.rb | 1 + Library/Homebrew/build_environment.rb | 1 + Library/Homebrew/build_options.rb | 1 + Library/Homebrew/cache_store.rb | 1 + Library/Homebrew/cask.rb | 1 + Library/Homebrew/cask/artifact.rb | 1 + .../cask/artifact/abstract_artifact.rb | 1 + .../cask/artifact/abstract_flight_block.rb | 1 + .../cask/artifact/abstract_uninstall.rb | 1 + Library/Homebrew/cask/artifact/app.rb | 1 + Library/Homebrew/cask/artifact/artifact.rb | 1 + .../cask/artifact/audio_unit_plugin.rb | 1 + Library/Homebrew/cask/artifact/binary.rb | 1 + Library/Homebrew/cask/artifact/colorpicker.rb | 1 + Library/Homebrew/cask/artifact/dictionary.rb | 1 + Library/Homebrew/cask/artifact/font.rb | 1 + .../Homebrew/cask/artifact/input_method.rb | 1 + Library/Homebrew/cask/artifact/installer.rb | 1 + .../Homebrew/cask/artifact/internet_plugin.rb | 1 + Library/Homebrew/cask/artifact/manpage.rb | 1 + Library/Homebrew/cask/artifact/mdimporter.rb | 1 + Library/Homebrew/cask/artifact/moved.rb | 1 + Library/Homebrew/cask/artifact/pkg.rb | 1 + .../cask/artifact/postflight_block.rb | 1 + .../Homebrew/cask/artifact/preflight_block.rb | 1 + Library/Homebrew/cask/artifact/prefpane.rb | 1 + Library/Homebrew/cask/artifact/qlplugin.rb | 1 + Library/Homebrew/cask/artifact/relocated.rb | 1 + .../Homebrew/cask/artifact/screen_saver.rb | 1 + Library/Homebrew/cask/artifact/service.rb | 1 + Library/Homebrew/cask/artifact/stage_only.rb | 1 + Library/Homebrew/cask/artifact/suite.rb | 1 + Library/Homebrew/cask/artifact/symlinked.rb | 1 + Library/Homebrew/cask/artifact/uninstall.rb | 1 + Library/Homebrew/cask/artifact/vst3_plugin.rb | 1 + Library/Homebrew/cask/artifact/vst_plugin.rb | 1 + Library/Homebrew/cask/artifact/zap.rb | 1 + Library/Homebrew/cask/audit.rb | 1 + Library/Homebrew/cask/auditor.rb | 1 + Library/Homebrew/cask/cache.rb | 1 + Library/Homebrew/cask/cask.rb | 1 + Library/Homebrew/cask/cask_loader.rb | 1 + Library/Homebrew/cask/caskroom.rb | 1 + Library/Homebrew/cask/cmd.rb | 1 + Library/Homebrew/cask/cmd/--cache.rb | 1 + Library/Homebrew/cask/cmd/abstract_command.rb | 1 + .../cask/cmd/abstract_internal_command.rb | 1 + Library/Homebrew/cask/cmd/audit.rb | 1 + Library/Homebrew/cask/cmd/cat.rb | 1 + Library/Homebrew/cask/cmd/create.rb | 1 + Library/Homebrew/cask/cmd/doctor.rb | 1 + Library/Homebrew/cask/cmd/edit.rb | 1 + Library/Homebrew/cask/cmd/fetch.rb | 1 + Library/Homebrew/cask/cmd/help.rb | 1 + Library/Homebrew/cask/cmd/home.rb | 1 + Library/Homebrew/cask/cmd/info.rb | 1 + Library/Homebrew/cask/cmd/install.rb | 1 + Library/Homebrew/cask/cmd/internal_help.rb | 1 + Library/Homebrew/cask/cmd/internal_stanza.rb | 1 + Library/Homebrew/cask/cmd/list.rb | 1 + Library/Homebrew/cask/cmd/outdated.rb | 1 + Library/Homebrew/cask/cmd/reinstall.rb | 1 + Library/Homebrew/cask/cmd/style.rb | 1 + Library/Homebrew/cask/cmd/uninstall.rb | 1 + Library/Homebrew/cask/cmd/upgrade.rb | 1 + Library/Homebrew/cask/cmd/zap.rb | 1 + Library/Homebrew/cask/config.rb | 1 + Library/Homebrew/cask/denylist.rb | 1 + Library/Homebrew/cask/download.rb | 1 + Library/Homebrew/cask/dsl.rb | 1 + Library/Homebrew/cask/dsl/appcast.rb | 1 + Library/Homebrew/cask/dsl/base.rb | 1 + Library/Homebrew/cask/dsl/caveats.rb | 1 + Library/Homebrew/cask/dsl/conflicts_with.rb | 1 + Library/Homebrew/cask/dsl/container.rb | 1 + Library/Homebrew/cask/dsl/depends_on.rb | 1 + Library/Homebrew/cask/dsl/postflight.rb | 1 + Library/Homebrew/cask/dsl/preflight.rb | 1 + .../Homebrew/cask/dsl/uninstall_postflight.rb | 1 + .../Homebrew/cask/dsl/uninstall_preflight.rb | 1 + Library/Homebrew/cask/dsl/version.rb | 1 + Library/Homebrew/cask/exceptions.rb | 1 + Library/Homebrew/cask/installer.rb | 1 + Library/Homebrew/cask/macos.rb | 1 + Library/Homebrew/cask/metadata.rb | 1 + Library/Homebrew/cask/pkg.rb | 1 + Library/Homebrew/cask/quarantine.rb | 1 + Library/Homebrew/cask/staged.rb | 1 + Library/Homebrew/cask/topological_hash.rb | 1 + Library/Homebrew/cask/url.rb | 2 +- Library/Homebrew/cask/utils.rb | 1 + Library/Homebrew/cask/verify.rb | 1 + Library/Homebrew/cask_dependent.rb | 1 + Library/Homebrew/caveats.rb | 1 + Library/Homebrew/checksum.rb | 1 + Library/Homebrew/cleaner.rb | 1 + Library/Homebrew/cleanup.rb | 1 + Library/Homebrew/cli/args.rb | 1 + Library/Homebrew/cli/named_args.rb | 1 + Library/Homebrew/cli/parser.rb | 1 + Library/Homebrew/cmd/--cache.rb | 1 + Library/Homebrew/cmd/--caskroom.rb | 1 + Library/Homebrew/cmd/--cellar.rb | 1 + Library/Homebrew/cmd/--env.rb | 1 + Library/Homebrew/cmd/--prefix.rb | 1 + Library/Homebrew/cmd/--repository.rb | 1 + Library/Homebrew/cmd/--version.rb | 1 + Library/Homebrew/cmd/analytics.rb | 1 + Library/Homebrew/cmd/cask.rb | 1 + Library/Homebrew/cmd/cleanup.rb | 1 + Library/Homebrew/cmd/commands.rb | 1 + Library/Homebrew/cmd/config.rb | 1 + Library/Homebrew/cmd/deps.rb | 1 + Library/Homebrew/cmd/desc.rb | 1 + Library/Homebrew/cmd/doctor.rb | 1 + Library/Homebrew/cmd/fetch.rb | 1 + Library/Homebrew/cmd/gist-logs.rb | 1 + Library/Homebrew/cmd/help.rb | 1 + Library/Homebrew/cmd/home.rb | 1 + Library/Homebrew/cmd/info.rb | 1 + Library/Homebrew/cmd/install.rb | 1 + Library/Homebrew/cmd/leaves.rb | 1 + Library/Homebrew/cmd/link.rb | 1 + Library/Homebrew/cmd/list.rb | 1 + Library/Homebrew/cmd/log.rb | 1 + Library/Homebrew/cmd/migrate.rb | 1 + Library/Homebrew/cmd/missing.rb | 1 + Library/Homebrew/cmd/options.rb | 1 + Library/Homebrew/cmd/outdated.rb | 1 + Library/Homebrew/cmd/pin.rb | 1 + Library/Homebrew/cmd/postinstall.rb | 1 + Library/Homebrew/cmd/readall.rb | 1 + Library/Homebrew/cmd/reinstall.rb | 1 + Library/Homebrew/cmd/search.rb | 1 + Library/Homebrew/cmd/switch.rb | 1 + Library/Homebrew/cmd/tap-info.rb | 1 + Library/Homebrew/cmd/tap.rb | 1 + Library/Homebrew/cmd/uninstall.rb | 1 + Library/Homebrew/cmd/unlink.rb | 1 + Library/Homebrew/cmd/unpin.rb | 1 + Library/Homebrew/cmd/untap.rb | 1 + Library/Homebrew/cmd/update-report.rb | 1 + Library/Homebrew/cmd/upgrade.rb | 1 + Library/Homebrew/cmd/uses.rb | 1 + Library/Homebrew/commands.rb | 1 + Library/Homebrew/compat.rb | 1 + Library/Homebrew/compat/cli/parser.rb | 1 + .../Homebrew/compat/dependencies_helpers.rb | 1 + Library/Homebrew/compat/extend/nil.rb | 1 + Library/Homebrew/compat/extend/string.rb | 1 + Library/Homebrew/compat/formula.rb | 1 + Library/Homebrew/compat/language/haskell.rb | 1 + Library/Homebrew/compat/language/java.rb | 1 + Library/Homebrew/compat/language/python.rb | 1 + Library/Homebrew/compat/os/mac.rb | 1 + Library/Homebrew/compilers.rb | 1 + Library/Homebrew/config.rb | 1 + Library/Homebrew/context.rb | 1 + Library/Homebrew/cxxstdlib.rb | 1 + Library/Homebrew/debrew.rb | 1 + Library/Homebrew/debrew/irb.rb | 1 + Library/Homebrew/dependable.rb | 1 + Library/Homebrew/dependencies.rb | 1 + Library/Homebrew/dependencies_helpers.rb | 1 + Library/Homebrew/dependency.rb | 1 + Library/Homebrew/dependency_collector.rb | 1 + Library/Homebrew/deprecate_disable.rb | 1 + Library/Homebrew/description_cache_store.rb | 1 + Library/Homebrew/descriptions.rb | 1 + Library/Homebrew/dev-cmd/audit.rb | 1 + Library/Homebrew/dev-cmd/bottle.rb | 1 + Library/Homebrew/dev-cmd/bump-cask-pr.rb | 1 + Library/Homebrew/dev-cmd/bump-formula-pr.rb | 1 + Library/Homebrew/dev-cmd/bump-revision.rb | 1 + Library/Homebrew/dev-cmd/bump.rb | 1 + Library/Homebrew/dev-cmd/cat.rb | 1 + Library/Homebrew/dev-cmd/command.rb | 1 + Library/Homebrew/dev-cmd/create.rb | 1 + Library/Homebrew/dev-cmd/diy.rb | 1 + Library/Homebrew/dev-cmd/edit.rb | 1 + Library/Homebrew/dev-cmd/extract.rb | 1 + Library/Homebrew/dev-cmd/formula.rb | 1 + .../Homebrew/dev-cmd/install-bundler-gems.rb | 1 + Library/Homebrew/dev-cmd/irb.rb | 1 + Library/Homebrew/dev-cmd/linkage.rb | 1 + Library/Homebrew/dev-cmd/livecheck.rb | 1 + Library/Homebrew/dev-cmd/man.rb | 1 + Library/Homebrew/dev-cmd/mirror.rb | 1 + Library/Homebrew/dev-cmd/pr-automerge.rb | 1 + Library/Homebrew/dev-cmd/pr-publish.rb | 1 + Library/Homebrew/dev-cmd/pr-pull.rb | 1 + Library/Homebrew/dev-cmd/pr-upload.rb | 1 + Library/Homebrew/dev-cmd/prof.rb | 1 + Library/Homebrew/dev-cmd/pull.rb | 1 + Library/Homebrew/dev-cmd/release-notes.rb | 1 + Library/Homebrew/dev-cmd/ruby.rb | 1 + Library/Homebrew/dev-cmd/sh.rb | 1 + Library/Homebrew/dev-cmd/sponsors.rb | 1 + Library/Homebrew/dev-cmd/style.rb | 1 + Library/Homebrew/dev-cmd/tap-new.rb | 1 + Library/Homebrew/dev-cmd/test.rb | 1 + Library/Homebrew/dev-cmd/tests.rb | 1 + Library/Homebrew/dev-cmd/typecheck.rb | 1 + Library/Homebrew/dev-cmd/unpack.rb | 1 + .../Homebrew/dev-cmd/update-license-data.rb | 1 + .../dev-cmd/update-python-resources.rb | 1 + Library/Homebrew/dev-cmd/update-test.rb | 1 + Library/Homebrew/dev-cmd/vendor-gems.rb | 1 + Library/Homebrew/development_tools.rb | 1 + Library/Homebrew/diagnostic.rb | 1 + Library/Homebrew/download_strategy.rb | 1 + Library/Homebrew/env_config.rb | 1 + Library/Homebrew/exceptions.rb | 1 + Library/Homebrew/extend/ENV.rb | 1 + Library/Homebrew/extend/ENV/shared.rb | 1 + Library/Homebrew/extend/ENV/std.rb | 1 + Library/Homebrew/extend/ENV/super.rb | 1 + Library/Homebrew/extend/cachable.rb | 1 + Library/Homebrew/extend/git_repository.rb | 1 + Library/Homebrew/extend/hash_validator.rb | 1 + Library/Homebrew/extend/io.rb | 1 + Library/Homebrew/extend/module.rb | 1 + Library/Homebrew/extend/optparse.rb | 1 + Library/Homebrew/extend/os/bottles.rb | 1 + Library/Homebrew/extend/os/caveats.rb | 1 + Library/Homebrew/extend/os/cleaner.rb | 1 + .../extend/os/dependency_collector.rb | 1 + .../Homebrew/extend/os/development_tools.rb | 1 + Library/Homebrew/extend/os/diagnostic.rb | 1 + .../Homebrew/extend/os/extend/ENV/shared.rb | 1 + Library/Homebrew/extend/os/extend/ENV/std.rb | 1 + .../Homebrew/extend/os/extend/ENV/super.rb | 1 + Library/Homebrew/extend/os/formula.rb | 1 + .../extend/os/formula_cellar_checks.rb | 1 + Library/Homebrew/extend/os/formula_support.rb | 1 + Library/Homebrew/extend/os/hardware.rb | 1 + Library/Homebrew/extend/os/install.rb | 1 + Library/Homebrew/extend/os/keg.rb | 1 + Library/Homebrew/extend/os/keg_relocate.rb | 1 + Library/Homebrew/extend/os/language/java.rb | 1 + Library/Homebrew/extend/os/linkage_checker.rb | 1 + Library/Homebrew/extend/os/linux/cleaner.rb | 1 + .../extend/os/linux/dependency_collector.rb | 1 + .../extend/os/linux/development_tools.rb | 1 + .../Homebrew/extend/os/linux/diagnostic.rb | 1 + .../extend/os/linux/extend/ENV/shared.rb | 1 + .../extend/os/linux/extend/ENV/std.rb | 1 + .../extend/os/linux/extend/ENV/super.rb | 1 + .../extend/os/linux/extend/pathname.rb | 1 + Library/Homebrew/extend/os/linux/formula.rb | 1 + .../extend/os/linux/formula_cellar_checks.rb | 1 + .../Homebrew/extend/os/linux/hardware/cpu.rb | 1 + Library/Homebrew/extend/os/linux/install.rb | 1 + .../Homebrew/extend/os/linux/keg_relocate.rb | 1 + .../extend/os/linux/linkage_checker.rb | 1 + Library/Homebrew/extend/os/linux/readall.rb | 1 + .../os/linux/requirements/java_requirement.rb | 1 + .../linux/requirements/osxfuse_requirement.rb | 1 + Library/Homebrew/extend/os/linux/resource.rb | 1 + .../Homebrew/extend/os/linux/software_spec.rb | 1 + .../Homebrew/extend/os/linux/system_config.rb | 1 + Library/Homebrew/extend/os/linux/tap.rb | 1 + .../extend/os/linux/utils/analytics.rb | 1 + Library/Homebrew/extend/os/mac/caveats.rb | 1 + Library/Homebrew/extend/os/mac/cleaner.rb | 1 + .../extend/os/mac/dependency_collector.rb | 1 + .../extend/os/mac/development_tools.rb | 1 + Library/Homebrew/extend/os/mac/diagnostic.rb | 1 + .../extend/os/mac/extend/ENV/shared.rb | 1 + .../Homebrew/extend/os/mac/extend/ENV/std.rb | 1 + .../extend/os/mac/extend/ENV/super.rb | 1 + .../Homebrew/extend/os/mac/extend/pathname.rb | 1 + Library/Homebrew/extend/os/mac/formula.rb | 1 + .../extend/os/mac/formula_cellar_checks.rb | 1 + .../Homebrew/extend/os/mac/formula_support.rb | 1 + Library/Homebrew/extend/os/mac/hardware.rb | 1 + .../Homebrew/extend/os/mac/hardware/cpu.rb | 1 + Library/Homebrew/extend/os/mac/keg.rb | 1 + .../Homebrew/extend/os/mac/keg_relocate.rb | 1 + .../Homebrew/extend/os/mac/language/java.rb | 1 + .../Homebrew/extend/os/mac/missing_formula.rb | 1 + .../os/mac/requirements/java_requirement.rb | 1 + .../mac/requirements/osxfuse_requirement.rb | 1 + .../os/mac/requirements/x11_requirement.rb | 1 + Library/Homebrew/extend/os/mac/resource.rb | 1 + Library/Homebrew/extend/os/mac/search.rb | 1 + .../Homebrew/extend/os/mac/software_spec.rb | 1 + .../Homebrew/extend/os/mac/system_config.rb | 1 + .../extend/os/mac/unpack_strategy/zip.rb | 1 + .../Homebrew/extend/os/mac/utils/analytics.rb | 1 + .../Homebrew/extend/os/mac/utils/bottles.rb | 1 + Library/Homebrew/extend/os/missing_formula.rb | 1 + Library/Homebrew/extend/os/pathname.rb | 1 + Library/Homebrew/extend/os/readall.rb | 1 + .../os/requirements/java_requirement.rb | 1 + .../os/requirements/osxfuse_requirement.rb | 1 + .../extend/os/requirements/x11_requirement.rb | 1 + Library/Homebrew/extend/os/resource.rb | 1 + Library/Homebrew/extend/os/search.rb | 1 + Library/Homebrew/extend/os/software_spec.rb | 1 + Library/Homebrew/extend/os/system_config.rb | 1 + Library/Homebrew/extend/os/tap.rb | 1 + Library/Homebrew/extend/os/utils/analytics.rb | 1 + Library/Homebrew/extend/pathname.rb | 1 + Library/Homebrew/extend/predicable.rb | 1 + Library/Homebrew/extend/string.rb | 1 + Library/Homebrew/fetch.rb | 1 + Library/Homebrew/formula.rb | 1 + Library/Homebrew/formula_assertions.rb | 1 + Library/Homebrew/formula_cellar_checks.rb | 1 + Library/Homebrew/formula_creator.rb | 1 + Library/Homebrew/formula_free_port.rb | 1 + Library/Homebrew/formula_info.rb | 1 + Library/Homebrew/formula_installer.rb | 1 + Library/Homebrew/formula_pin.rb | 1 + Library/Homebrew/formula_support.rb | 1 + Library/Homebrew/formula_versions.rb | 1 + Library/Homebrew/formulary.rb | 1 + Library/Homebrew/global.rb | 1 + Library/Homebrew/hardware.rb | 1 + Library/Homebrew/help.rb | 1 + Library/Homebrew/install.rb | 1 + Library/Homebrew/install_renamed.rb | 1 + Library/Homebrew/keg.rb | 1 + Library/Homebrew/keg_relocate.rb | 1 + Library/Homebrew/language/go.rb | 1 + Library/Homebrew/language/haskell.rb | 1 + Library/Homebrew/language/java.rb | 1 + Library/Homebrew/language/node.rb | 1 + Library/Homebrew/language/perl.rb | 1 + Library/Homebrew/language/python.rb | 1 + Library/Homebrew/lazy_object.rb | 1 + Library/Homebrew/linkage_cache_store.rb | 1 + Library/Homebrew/linkage_checker.rb | 1 + Library/Homebrew/livecheck.rb | 1 + Library/Homebrew/livecheck/livecheck.rb | 1 + Library/Homebrew/livecheck/strategy.rb | 1 + Library/Homebrew/livecheck/strategy/apache.rb | 1 + .../Homebrew/livecheck/strategy/bitbucket.rb | 1 + Library/Homebrew/livecheck/strategy/git.rb | 1 + Library/Homebrew/livecheck/strategy/gnome.rb | 1 + Library/Homebrew/livecheck/strategy/gnu.rb | 1 + .../Homebrew/livecheck/strategy/hackage.rb | 1 + .../Homebrew/livecheck/strategy/launchpad.rb | 1 + Library/Homebrew/livecheck/strategy/npm.rb | 1 + .../Homebrew/livecheck/strategy/page_match.rb | 1 + Library/Homebrew/livecheck/strategy/pypi.rb | 1 + .../livecheck/strategy/sourceforge.rb | 1 + Library/Homebrew/livecheck/strategy/xorg.rb | 1 + Library/Homebrew/load_path.rb | 1 + Library/Homebrew/locale.rb | 1 + Library/Homebrew/lock_file.rb | 1 + Library/Homebrew/messages.rb | 1 + Library/Homebrew/metafiles.rb | 1 + Library/Homebrew/migrator.rb | 1 + Library/Homebrew/missing_formula.rb | 1 + Library/Homebrew/mktemp.rb | 1 + Library/Homebrew/official_taps.rb | 1 + Library/Homebrew/options.rb | 1 + Library/Homebrew/os.rb | 1 + Library/Homebrew/os/global.rb | 1 + Library/Homebrew/os/linux.rb | 1 + Library/Homebrew/os/linux/elf.rb | 1 + Library/Homebrew/os/linux/glibc.rb | 1 + Library/Homebrew/os/linux/global.rb | 1 + Library/Homebrew/os/linux/kernel.rb | 1 + Library/Homebrew/os/mac.rb | 1 + Library/Homebrew/os/mac/architecture_list.rb | 1 + Library/Homebrew/os/mac/keg.rb | 1 + Library/Homebrew/os/mac/mach.rb | 1 + Library/Homebrew/os/mac/sdk.rb | 1 + Library/Homebrew/os/mac/version.rb | 1 + Library/Homebrew/os/mac/xcode.rb | 1 + Library/Homebrew/os/mac/xquartz.rb | 1 + Library/Homebrew/patch.rb | 1 + Library/Homebrew/pkg_version.rb | 1 + Library/Homebrew/postinstall.rb | 1 + Library/Homebrew/readall.rb | 1 + Library/Homebrew/reinstall.rb | 1 + Library/Homebrew/requirement.rb | 1 + Library/Homebrew/requirements.rb | 1 + .../Homebrew/requirements/arch_requirement.rb | 1 + .../requirements/codesign_requirement.rb | 1 + .../Homebrew/requirements/java_requirement.rb | 1 + .../requirements/linux_requirement.rb | 1 + .../requirements/macos_requirement.rb | 1 + .../requirements/osxfuse_requirement.rb | 1 + .../requirements/tuntap_requirement.rb | 1 + .../Homebrew/requirements/x11_requirement.rb | 1 + .../requirements/xcode_requirement.rb | 1 + Library/Homebrew/resource.rb | 1 + Library/Homebrew/rubocops.rb | 1 + .../Homebrew/rubocops/cask/ast/cask_block.rb | 1 + .../Homebrew/rubocops/cask/ast/cask_header.rb | 1 + Library/Homebrew/rubocops/cask/ast/stanza.rb | 1 + .../rubocops/cask/constants/stanza.rb | 1 + Library/Homebrew/rubocops/cask/desc.rb | 1 + Library/Homebrew/rubocops/cask/extend/node.rb | 1 + .../Homebrew/rubocops/cask/extend/string.rb | 1 + .../rubocops/cask/homepage_matches_url.rb | 1 + .../cask/homepage_url_trailing_slash.rb | 1 + .../Homebrew/rubocops/cask/mixin/cask_help.rb | 1 + .../rubocops/cask/mixin/on_desc_stanza.rb | 1 + .../rubocops/cask/mixin/on_homepage_stanza.rb | 1 + .../Homebrew/rubocops/cask/no_dsl_version.rb | 1 + .../Homebrew/rubocops/cask/stanza_grouping.rb | 1 + .../Homebrew/rubocops/cask/stanza_order.rb | 1 + Library/Homebrew/rubocops/caveats.rb | 1 + Library/Homebrew/rubocops/checksum.rb | 1 + Library/Homebrew/rubocops/class.rb | 1 + Library/Homebrew/rubocops/components_order.rb | 1 + .../rubocops/components_redundancy.rb | 1 + Library/Homebrew/rubocops/conflicts.rb | 1 + Library/Homebrew/rubocops/dependency_order.rb | 1 + .../Homebrew/rubocops/deprecate_disable.rb | 1 + Library/Homebrew/rubocops/extend/formula.rb | 1 + Library/Homebrew/rubocops/files.rb | 1 + Library/Homebrew/rubocops/formula_desc.rb | 1 + Library/Homebrew/rubocops/homepage.rb | 1 + Library/Homebrew/rubocops/keg_only.rb | 1 + Library/Homebrew/rubocops/lines.rb | 1 + Library/Homebrew/rubocops/livecheck.rb | 1 + Library/Homebrew/rubocops/options.rb | 1 + Library/Homebrew/rubocops/patches.rb | 1 + Library/Homebrew/rubocops/rubocop-cask.rb | 1 + .../Homebrew/rubocops/shared/desc_helper.rb | 1 + .../rubocops/shared/helper_functions.rb | 1 + Library/Homebrew/rubocops/text.rb | 1 + Library/Homebrew/rubocops/urls.rb | 1 + Library/Homebrew/rubocops/uses_from_macos.rb | 1 + Library/Homebrew/rubocops/version.rb | 1 + Library/Homebrew/sandbox.rb | 1 + Library/Homebrew/search.rb | 1 + Library/Homebrew/searchable.rb | 1 + Library/Homebrew/software_spec.rb | 1 + Library/Homebrew/sorbet/files.yaml | 967 +----------------- Library/Homebrew/style.rb | 1 + Library/Homebrew/system_command.rb | 1 + Library/Homebrew/system_config.rb | 1 + Library/Homebrew/tab.rb | 1 + Library/Homebrew/tap.rb | 1 + Library/Homebrew/tap_constants.rb | 1 + Library/Homebrew/test.rb | 1 + Library/Homebrew/test/ENV_spec.rb | 1 + Library/Homebrew/test/PATH_spec.rb | 1 + Library/Homebrew/test/bash_spec.rb | 1 + Library/Homebrew/test/bintray_spec.rb | 1 + Library/Homebrew/test/bottle_filename_spec.rb | 1 + .../Homebrew/test/build_environment_spec.rb | 1 + Library/Homebrew/test/build_options_spec.rb | 1 + Library/Homebrew/test/cache_store_spec.rb | 1 + .../test/cask/artifact/alt_target_spec.rb | 1 + .../Homebrew/test/cask/artifact/app_spec.rb | 1 + .../test/cask/artifact/binary_spec.rb | 1 + .../cask/artifact/generic_artifact_spec.rb | 1 + .../test/cask/artifact/installer_spec.rb | 1 + .../test/cask/artifact/manpage_spec.rb | 1 + .../Homebrew/test/cask/artifact/pkg_spec.rb | 1 + .../cask/artifact/postflight_block_spec.rb | 1 + .../cask/artifact/preflight_block_spec.rb | 1 + .../artifact/shared_examples/uninstall_zap.rb | 1 + .../Homebrew/test/cask/artifact/suite_spec.rb | 1 + .../cask/artifact/two_apps_correct_spec.rb | 1 + .../cask/artifact/uninstall_no_zap_spec.rb | 1 + .../test/cask/artifact/uninstall_spec.rb | 1 + .../Homebrew/test/cask/artifact/zap_spec.rb | 1 + Library/Homebrew/test/cask/audit_spec.rb | 1 + .../cask_loader/from__path_loader_spec.rb | 1 + .../cask_loader/from_content_loader_spec.rb | 1 + .../cask/cask_loader/from_uri_loader_spec.rb | 1 + Library/Homebrew/test/cask/cask_spec.rb | 1 + Library/Homebrew/test/cask/cmd/audit_spec.rb | 1 + Library/Homebrew/test/cask/cmd/cache_spec.rb | 1 + Library/Homebrew/test/cask/cmd/cat_spec.rb | 1 + Library/Homebrew/test/cask/cmd/create_spec.rb | 1 + Library/Homebrew/test/cask/cmd/doctor_spec.rb | 1 + Library/Homebrew/test/cask/cmd/edit_spec.rb | 1 + Library/Homebrew/test/cask/cmd/fetch_spec.rb | 1 + Library/Homebrew/test/cask/cmd/home_spec.rb | 1 + Library/Homebrew/test/cask/cmd/info_spec.rb | 1 + .../Homebrew/test/cask/cmd/install_spec.rb | 1 + .../test/cask/cmd/internal_stanza_spec.rb | 1 + Library/Homebrew/test/cask/cmd/list_spec.rb | 1 + .../Homebrew/test/cask/cmd/outdated_spec.rb | 1 + .../Homebrew/test/cask/cmd/reinstall_spec.rb | 1 + .../cmd/shared_examples/invalid_option.rb | 1 + .../shared_examples/requires_cask_token.rb | 1 + Library/Homebrew/test/cask/cmd/style_spec.rb | 1 + .../Homebrew/test/cask/cmd/uninstall_spec.rb | 1 + .../Homebrew/test/cask/cmd/upgrade_spec.rb | 1 + Library/Homebrew/test/cask/cmd/zap_spec.rb | 1 + Library/Homebrew/test/cask/cmd_spec.rb | 1 + Library/Homebrew/test/cask/config_spec.rb | 1 + .../Homebrew/test/cask/conflicts_with_spec.rb | 1 + Library/Homebrew/test/cask/denylist_spec.rb | 1 + Library/Homebrew/test/cask/depends_on_spec.rb | 1 + .../Homebrew/test/cask/dsl/appcast_spec.rb | 1 + .../Homebrew/test/cask/dsl/caveats_spec.rb | 1 + .../Homebrew/test/cask/dsl/postflight_spec.rb | 1 + .../Homebrew/test/cask/dsl/preflight_spec.rb | 1 + .../test/cask/dsl/shared_examples/base.rb | 1 + .../test/cask/dsl/shared_examples/staged.rb | 1 + .../cask/dsl/uninstall_postflight_spec.rb | 1 + .../test/cask/dsl/uninstall_preflight_spec.rb | 1 + .../Homebrew/test/cask/dsl/version_spec.rb | 1 + Library/Homebrew/test/cask/dsl_spec.rb | 1 + Library/Homebrew/test/cask/installer_spec.rb | 1 + Library/Homebrew/test/cask/macos_spec.rb | 1 + Library/Homebrew/test/cask/pkg_spec.rb | 1 + Library/Homebrew/test/cask/quarantine_spec.rb | 1 + Library/Homebrew/test/cask/verify_spec.rb | 1 + Library/Homebrew/test/cask_dependent_spec.rb | 1 + Library/Homebrew/test/caveats_spec.rb | 1 + Library/Homebrew/test/checksum_spec.rb | 1 + .../test/checksum_verification_spec.rb | 1 + Library/Homebrew/test/cleaner_spec.rb | 1 + Library/Homebrew/test/cleanup_spec.rb | 1 + Library/Homebrew/test/cli/named_args_spec.rb | 1 + Library/Homebrew/test/cli/parser_spec.rb | 1 + Library/Homebrew/test/cmd/--cache_spec.rb | 1 + Library/Homebrew/test/cmd/--caskroom_spec.rb | 1 + Library/Homebrew/test/cmd/--cellar_spec.rb | 1 + Library/Homebrew/test/cmd/--env_spec.rb | 1 + Library/Homebrew/test/cmd/--prefix_spec.rb | 1 + .../Homebrew/test/cmd/--repository_spec.rb | 1 + Library/Homebrew/test/cmd/--version_spec.rb | 1 + Library/Homebrew/test/cmd/analytics_spec.rb | 1 + Library/Homebrew/test/cmd/bundle_spec.rb | 1 + Library/Homebrew/test/cmd/cask_spec.rb | 1 + Library/Homebrew/test/cmd/cleanup_spec.rb | 1 + Library/Homebrew/test/cmd/commands_spec.rb | 1 + Library/Homebrew/test/cmd/config_spec.rb | 1 + .../test/cmd/custom-external-command_spec.rb | 1 + Library/Homebrew/test/cmd/deps_spec.rb | 1 + Library/Homebrew/test/cmd/desc_spec.rb | 1 + Library/Homebrew/test/cmd/doctor_spec.rb | 1 + Library/Homebrew/test/cmd/fetch_spec.rb | 1 + Library/Homebrew/test/cmd/gist-logs_spec.rb | 1 + Library/Homebrew/test/cmd/help_spec.rb | 1 + Library/Homebrew/test/cmd/home_spec.rb | 1 + Library/Homebrew/test/cmd/info_spec.rb | 1 + Library/Homebrew/test/cmd/install_spec.rb | 1 + Library/Homebrew/test/cmd/leaves_spec.rb | 1 + Library/Homebrew/test/cmd/link_spec.rb | 1 + Library/Homebrew/test/cmd/list_spec.rb | 1 + Library/Homebrew/test/cmd/log_spec.rb | 1 + Library/Homebrew/test/cmd/migrate_spec.rb | 1 + Library/Homebrew/test/cmd/missing_spec.rb | 1 + Library/Homebrew/test/cmd/options_spec.rb | 1 + Library/Homebrew/test/cmd/outdated_spec.rb | 1 + Library/Homebrew/test/cmd/pin_spec.rb | 1 + Library/Homebrew/test/cmd/postinstall_spec.rb | 1 + Library/Homebrew/test/cmd/readall_spec.rb | 1 + Library/Homebrew/test/cmd/reinstall_spec.rb | 1 + Library/Homebrew/test/cmd/search_spec.rb | 1 + Library/Homebrew/test/cmd/services_spec.rb | 1 + .../test/cmd/shared_examples/args_parse.rb | 1 + Library/Homebrew/test/cmd/switch_spec.rb | 1 + Library/Homebrew/test/cmd/tap-info_spec.rb | 1 + Library/Homebrew/test/cmd/tap_spec.rb | 1 + Library/Homebrew/test/cmd/uninstall_spec.rb | 1 + Library/Homebrew/test/cmd/unlink_spec.rb | 1 + Library/Homebrew/test/cmd/unpin_spec.rb | 1 + Library/Homebrew/test/cmd/untap_spec.rb | 1 + .../Homebrew/test/cmd/update-report_spec.rb | 1 + Library/Homebrew/test/cmd/upgrade_spec.rb | 1 + Library/Homebrew/test/cmd/uses_spec.rb | 1 + Library/Homebrew/test/commands_spec.rb | 1 + .../Homebrew/test/compiler_failure_spec.rb | 1 + .../Homebrew/test/compiler_selector_spec.rb | 1 + Library/Homebrew/test/cxxstdlib_spec.rb | 1 + Library/Homebrew/test/dependable_spec.rb | 1 + .../test/dependencies_helpers_spec.rb | 1 + Library/Homebrew/test/dependencies_spec.rb | 1 + .../test/dependency_collector_spec.rb | 1 + .../test/dependency_expansion_spec.rb | 1 + Library/Homebrew/test/dependency_spec.rb | 1 + .../test/description_cache_store_spec.rb | 1 + Library/Homebrew/test/descriptions_spec.rb | 1 + Library/Homebrew/test/dev-cmd/audit_spec.rb | 1 + Library/Homebrew/test/dev-cmd/bottle_spec.rb | 1 + .../test/dev-cmd/bump-cask-pr_spec.rb | 1 + .../test/dev-cmd/bump-formula-pr_spec.rb | 1 + .../test/dev-cmd/bump-revision_spec.rb | 1 + Library/Homebrew/test/dev-cmd/bump_spec.rb | 1 + Library/Homebrew/test/dev-cmd/cat_spec.rb | 1 + Library/Homebrew/test/dev-cmd/command_spec.rb | 1 + Library/Homebrew/test/dev-cmd/create_spec.rb | 1 + Library/Homebrew/test/dev-cmd/diy_spec.rb | 1 + Library/Homebrew/test/dev-cmd/edit_spec.rb | 1 + Library/Homebrew/test/dev-cmd/extract_spec.rb | 1 + Library/Homebrew/test/dev-cmd/formula_spec.rb | 1 + Library/Homebrew/test/dev-cmd/irb_spec.rb | 1 + Library/Homebrew/test/dev-cmd/linkage_spec.rb | 1 + .../Homebrew/test/dev-cmd/livecheck_spec.rb | 1 + Library/Homebrew/test/dev-cmd/man_spec.rb | 1 + Library/Homebrew/test/dev-cmd/mirror_spec.rb | 1 + .../test/dev-cmd/pr-automerge_spec.rb | 1 + .../Homebrew/test/dev-cmd/pr-publish_spec.rb | 1 + Library/Homebrew/test/dev-cmd/pr-pull_spec.rb | 1 + .../Homebrew/test/dev-cmd/pr-upload_spec.rb | 1 + Library/Homebrew/test/dev-cmd/prof_spec.rb | 1 + .../test/dev-cmd/release-notes_spec.rb | 1 + Library/Homebrew/test/dev-cmd/ruby_spec.rb | 1 + Library/Homebrew/test/dev-cmd/sh_spec.rb | 1 + .../Homebrew/test/dev-cmd/sponsors_spec.rb | 1 + Library/Homebrew/test/dev-cmd/style_spec.rb | 1 + Library/Homebrew/test/dev-cmd/tap-new_spec.rb | 1 + Library/Homebrew/test/dev-cmd/test_spec.rb | 1 + .../Homebrew/test/dev-cmd/typecheck_spec.rb | 1 + Library/Homebrew/test/dev-cmd/unpack_spec.rb | 1 + .../test/dev-cmd/update-license-data_spec.rb | 1 + .../Homebrew/test/dev-cmd/vendor-gems_spec.rb | 1 + .../Homebrew/test/diagnostic_checks_spec.rb | 1 + .../Homebrew/test/download_strategies_spec.rb | 1 + Library/Homebrew/test/env_config_spec.rb | 1 + .../test/error_during_execution_spec.rb | 1 + Library/Homebrew/test/exceptions_spec.rb | 1 + Library/Homebrew/test/formatter_spec.rb | 1 + .../Homebrew/test/formula_free_port_spec.rb | 1 + Library/Homebrew/test/formula_info_spec.rb | 1 + .../test/formula_installer_bottle_spec.rb | 1 + .../Homebrew/test/formula_installer_spec.rb | 1 + Library/Homebrew/test/formula_pin_spec.rb | 1 + Library/Homebrew/test/formula_spec.rb | 1 + .../test/formula_spec_selection_spec.rb | 1 + Library/Homebrew/test/formula_support_spec.rb | 1 + .../Homebrew/test/formula_validation_spec.rb | 1 + Library/Homebrew/test/formulary_spec.rb | 1 + Library/Homebrew/test/global_spec.rb | 1 + Library/Homebrew/test/hardware/cpu_spec.rb | 1 + Library/Homebrew/test/inreplace_spec.rb | 1 + .../Homebrew/test/java_requirement_spec.rb | 1 + Library/Homebrew/test/keg_spec.rb | 1 + Library/Homebrew/test/language/go_spec.rb | 1 + Library/Homebrew/test/language/java_spec.rb | 1 + Library/Homebrew/test/language/node_spec.rb | 1 + .../test/language/perl/shebang_spec.rb | 1 + Library/Homebrew/test/language/python_spec.rb | 1 + Library/Homebrew/test/lazy_object_spec.rb | 1 + .../Homebrew/test/linkage_cache_store_spec.rb | 1 + .../Homebrew/test/livecheck/livecheck_spec.rb | 1 + .../test/livecheck/strategy/apache_spec.rb | 1 + .../test/livecheck/strategy/bitbucket_spec.rb | 1 + .../test/livecheck/strategy/git_spec.rb | 1 + .../test/livecheck/strategy/gnome_spec.rb | 1 + .../test/livecheck/strategy/gnu_spec.rb | 1 + .../test/livecheck/strategy/hackage_spec.rb | 1 + .../test/livecheck/strategy/launchpad_spec.rb | 1 + .../test/livecheck/strategy/npm_spec.rb | 1 + .../livecheck/strategy/page_match_spec.rb | 1 + .../test/livecheck/strategy/pypi_spec.rb | 1 + .../livecheck/strategy/sourceforge_spec.rb | 1 + .../test/livecheck/strategy/xorg_spec.rb | 1 + .../Homebrew/test/livecheck/strategy_spec.rb | 1 + Library/Homebrew/test/livecheck_spec.rb | 1 + Library/Homebrew/test/locale_spec.rb | 1 + Library/Homebrew/test/lock_file_spec.rb | 1 + Library/Homebrew/test/messages_spec.rb | 1 + Library/Homebrew/test/migrator_spec.rb | 1 + Library/Homebrew/test/missing_formula_spec.rb | 1 + Library/Homebrew/test/options_spec.rb | 1 + .../os/linux/dependency_collector_spec.rb | 1 + .../Homebrew/test/os/linux/diagnostic_spec.rb | 1 + .../Homebrew/test/os/linux/formula_spec.rb | 1 + .../Homebrew/test/os/linux/pathname_spec.rb | 1 + .../test/os/mac/dependency_collector_spec.rb | 1 + .../Homebrew/test/os/mac/diagnostic_spec.rb | 1 + Library/Homebrew/test/os/mac/formula_spec.rb | 1 + .../test/os/mac/java_requirement_spec.rb | 1 + Library/Homebrew/test/os/mac/keg_spec.rb | 1 + Library/Homebrew/test/os/mac/mach_spec.rb | 1 + .../Homebrew/test/os/mac/pkgconfig_spec.rb | 1 + .../test/os/mac/software_spec_spec.rb | 1 + Library/Homebrew/test/os/mac/version_spec.rb | 1 + Library/Homebrew/test/os/mac_spec.rb | 1 + Library/Homebrew/test/os/os_spec.rb | 1 + Library/Homebrew/test/patch_spec.rb | 1 + Library/Homebrew/test/patching_spec.rb | 1 + Library/Homebrew/test/pathname_spec.rb | 1 + Library/Homebrew/test/pkg_version_spec.rb | 1 + Library/Homebrew/test/requirement_spec.rb | 1 + .../requirements/codesign_requirement_spec.rb | 1 + .../requirements/java_requirement_spec.rb | 1 + .../requirements/linux_requirement_spec.rb | 1 + .../requirements/macos_requirement_spec.rb | 1 + .../requirements/osxfuse_requirement_spec.rb | 1 + Library/Homebrew/test/requirements_spec.rb | 1 + Library/Homebrew/test/resource_spec.rb | 1 + Library/Homebrew/test/rubocop_spec.rb | 1 + .../Homebrew/test/rubocops/cask/desc_spec.rb | 1 + .../cask/homepage_matches_url_spec.rb | 1 + .../cask/homepage_url_trailing_slash_spec.rb | 1 + .../test/rubocops/cask/no_dsl_version_spec.rb | 1 + .../rubocops/cask/shared_examples/cask_cop.rb | 1 + .../rubocops/cask/stanza_grouping_spec.rb | 1 + .../test/rubocops/cask/stanza_order_spec.rb | 1 + .../Homebrew/test/rubocops/caveats_spec.rb | 1 + .../Homebrew/test/rubocops/checksum_spec.rb | 1 + Library/Homebrew/test/rubocops/class_spec.rb | 1 + .../test/rubocops/components_order_spec.rb | 1 + .../rubocops/components_redundancy_spec.rb | 1 + .../Homebrew/test/rubocops/conflicts_spec.rb | 1 + .../test/rubocops/dependency_order_spec.rb | 1 + .../test/rubocops/deprecate_disable_spec.rb | 1 + Library/Homebrew/test/rubocops/files_spec.rb | 1 + .../test/rubocops/formula_desc_spec.rb | 1 + .../Homebrew/test/rubocops/homepage_spec.rb | 1 + .../Homebrew/test/rubocops/keg_only_spec.rb | 1 + Library/Homebrew/test/rubocops/lines_spec.rb | 1 + .../Homebrew/test/rubocops/livecheck_spec.rb | 1 + .../Homebrew/test/rubocops/options_spec.rb | 1 + .../Homebrew/test/rubocops/patches_spec.rb | 1 + Library/Homebrew/test/rubocops/text_spec.rb | 1 + Library/Homebrew/test/rubocops/urls_spec.rb | 1 + .../test/rubocops/uses_from_macos_spec.rb | 1 + .../Homebrew/test/rubocops/version_spec.rb | 1 + Library/Homebrew/test/sandbox_spec.rb | 1 + Library/Homebrew/test/search_spec.rb | 1 + Library/Homebrew/test/searchable_spec.rb | 1 + Library/Homebrew/test/software_spec_spec.rb | 1 + Library/Homebrew/test/spec_helper.rb | 1 + Library/Homebrew/test/string_spec.rb | 1 + Library/Homebrew/test/style_spec.rb | 1 + .../test/support/fixtures/failball.rb | 1 + .../test/support/fixtures/testball.rb | 1 + .../test/support/fixtures/testball_bottle.rb | 1 + .../Homebrew/test/support/github_formatter.rb | 1 + Library/Homebrew/test/support/helper/cask.rb | 1 + .../helper/cask/fake_system_command.rb | 1 + .../support/helper/cask/install_helper.rb | 1 + .../helper/cask/never_sudo_system_command.rb | 1 + .../cmd/brew-verify-formula-undefined.rb | 1 + .../Homebrew/test/support/helper/fixtures.rb | 1 + .../Homebrew/test/support/helper/formula.rb | 1 + .../test/support/helper/integration_mocks.rb | 1 + .../Homebrew/test/support/helper/mktmpdir.rb | 1 + .../test/support/helper/output_as_tty.rb | 1 + .../spec/shared_context/homebrew_cask.rb | 1 + .../spec/shared_context/integration_test.rb | 1 + .../spec/shared_examples/formulae_exist.rb | 1 + Library/Homebrew/test/support/lib/config.rb | 1 + .../support/no_seed_progress_formatter.rb | 1 + .../test/system_command_result_spec.rb | 1 + Library/Homebrew/test/system_command_spec.rb | 1 + Library/Homebrew/test/tab_spec.rb | 1 + Library/Homebrew/test/tap_spec.rb | 1 + .../test/unpack_strategy/bazaar_spec.rb | 1 + .../test/unpack_strategy/bzip2_spec.rb | 1 + .../Homebrew/test/unpack_strategy/cvs_spec.rb | 1 + .../test/unpack_strategy/directory_spec.rb | 1 + .../Homebrew/test/unpack_strategy/dmg_spec.rb | 1 + .../Homebrew/test/unpack_strategy/git_spec.rb | 1 + .../test/unpack_strategy/gzip_spec.rb | 1 + .../Homebrew/test/unpack_strategy/jar_spec.rb | 1 + .../Homebrew/test/unpack_strategy/lha_spec.rb | 1 + .../test/unpack_strategy/lzip_spec.rb | 1 + .../test/unpack_strategy/mercurial_spec.rb | 1 + .../test/unpack_strategy/p7zip_spec.rb | 1 + .../Homebrew/test/unpack_strategy/rar_spec.rb | 1 + .../test/unpack_strategy/shared_examples.rb | 1 + .../test/unpack_strategy/subversion_spec.rb | 1 + .../Homebrew/test/unpack_strategy/tar_spec.rb | 1 + .../test/unpack_strategy/uncompressed_spec.rb | 1 + .../Homebrew/test/unpack_strategy/xar_spec.rb | 1 + .../Homebrew/test/unpack_strategy/xz_spec.rb | 1 + .../Homebrew/test/unpack_strategy/zip_spec.rb | 1 + Library/Homebrew/test/unpack_strategy_spec.rb | 1 + Library/Homebrew/test/utils/analytics_spec.rb | 1 + .../test/utils/bottles/bintray_spec.rb | 1 + .../test/utils/bottles/bottles_spec.rb | 1 + .../test/utils/bottles/collector_spec.rb | 1 + Library/Homebrew/test/utils/curl_spec.rb | 1 + Library/Homebrew/test/utils/fork_spec.rb | 1 + Library/Homebrew/test/utils/git_spec.rb | 1 + .../test/utils/github/actions_spec.rb | 1 + Library/Homebrew/test/utils/github_spec.rb | 1 + .../test/utils/livecheck_formula_spec.rb | 1 + Library/Homebrew/test/utils/popen_spec.rb | 1 + Library/Homebrew/test/utils/repology_spec.rb | 1 + Library/Homebrew/test/utils/shell_spec.rb | 1 + Library/Homebrew/test/utils/spdx_spec.rb | 1 + Library/Homebrew/test/utils/svn_spec.rb | 1 + Library/Homebrew/test/utils/tar_spec.rb | 1 + Library/Homebrew/test/utils/tty_spec.rb | 1 + Library/Homebrew/test/utils/user_spec.rb | 1 + Library/Homebrew/test/utils_spec.rb | 1 + Library/Homebrew/test/version_spec.rb | 1 + Library/Homebrew/test/x11_requirement_spec.rb | 1 + Library/Homebrew/unpack_strategy.rb | 1 + Library/Homebrew/unpack_strategy/air.rb | 1 + Library/Homebrew/unpack_strategy/bazaar.rb | 1 + Library/Homebrew/unpack_strategy/bzip2.rb | 1 + Library/Homebrew/unpack_strategy/cab.rb | 1 + Library/Homebrew/unpack_strategy/compress.rb | 1 + Library/Homebrew/unpack_strategy/cvs.rb | 1 + Library/Homebrew/unpack_strategy/directory.rb | 1 + Library/Homebrew/unpack_strategy/dmg.rb | 1 + .../Homebrew/unpack_strategy/executable.rb | 1 + Library/Homebrew/unpack_strategy/fossil.rb | 1 + .../Homebrew/unpack_strategy/generic_unar.rb | 1 + Library/Homebrew/unpack_strategy/git.rb | 1 + Library/Homebrew/unpack_strategy/gzip.rb | 1 + Library/Homebrew/unpack_strategy/jar.rb | 1 + Library/Homebrew/unpack_strategy/lha.rb | 1 + Library/Homebrew/unpack_strategy/lua_rock.rb | 1 + Library/Homebrew/unpack_strategy/lzip.rb | 1 + Library/Homebrew/unpack_strategy/lzma.rb | 1 + Library/Homebrew/unpack_strategy/mercurial.rb | 1 + .../unpack_strategy/microsoft_office_xml.rb | 1 + Library/Homebrew/unpack_strategy/otf.rb | 1 + Library/Homebrew/unpack_strategy/p7zip.rb | 1 + Library/Homebrew/unpack_strategy/pax.rb | 1 + Library/Homebrew/unpack_strategy/pkg.rb | 1 + Library/Homebrew/unpack_strategy/rar.rb | 1 + .../self_extracting_executable.rb | 1 + Library/Homebrew/unpack_strategy/sit.rb | 1 + .../Homebrew/unpack_strategy/subversion.rb | 1 + Library/Homebrew/unpack_strategy/tar.rb | 1 + Library/Homebrew/unpack_strategy/ttf.rb | 1 + .../Homebrew/unpack_strategy/uncompressed.rb | 1 + Library/Homebrew/unpack_strategy/xar.rb | 1 + Library/Homebrew/unpack_strategy/xz.rb | 1 + Library/Homebrew/unpack_strategy/zip.rb | 1 + Library/Homebrew/upgrade.rb | 1 + Library/Homebrew/utils.rb | 1 + Library/Homebrew/utils/analytics.rb | 1 + Library/Homebrew/utils/bottles.rb | 1 + Library/Homebrew/utils/curl.rb | 1 + Library/Homebrew/utils/fork.rb | 1 + Library/Homebrew/utils/formatter.rb | 1 + Library/Homebrew/utils/gems.rb | 1 + Library/Homebrew/utils/git.rb | 1 + Library/Homebrew/utils/github.rb | 1 + Library/Homebrew/utils/github/actions.rb | 1 + Library/Homebrew/utils/inreplace.rb | 1 + Library/Homebrew/utils/link.rb | 1 + Library/Homebrew/utils/livecheck_formula.rb | 1 + Library/Homebrew/utils/popen.rb | 1 + Library/Homebrew/utils/pypi.rb | 1 + Library/Homebrew/utils/repology.rb | 1 + .../utils/ruby_check_version_script.rb | 1 + Library/Homebrew/utils/shared_audits.rb | 1 + Library/Homebrew/utils/shebang.rb | 1 + Library/Homebrew/utils/shell.rb | 1 + Library/Homebrew/utils/spdx.rb | 1 + Library/Homebrew/utils/svn.rb | 1 + Library/Homebrew/utils/tar.rb | 1 + Library/Homebrew/utils/tty.rb | 1 + Library/Homebrew/utils/user.rb | 1 + Library/Homebrew/version.rb | 1 + Library/Homebrew/version/null.rb | 1 + Library/add-typed.rb | 27 + 856 files changed, 884 insertions(+), 965 deletions(-) create mode 100755 Library/add-typed.rb diff --git a/Library/Homebrew/PATH.rb b/Library/Homebrew/PATH.rb index 8fb2269987..f9c347d6e8 100644 --- a/Library/Homebrew/PATH.rb +++ b/Library/Homebrew/PATH.rb @@ -1,3 +1,4 @@ +# typed: false # frozen_string_literal: true # Represention of a `*PATH` environment variable. diff --git a/Library/Homebrew/bintray.rb b/Library/Homebrew/bintray.rb index 5d8b89ed5a..829b1da118 100644 --- a/Library/Homebrew/bintray.rb +++ b/Library/Homebrew/bintray.rb @@ -1,3 +1,4 @@ +# typed: false # frozen_string_literal: true require "utils/curl" diff --git a/Library/Homebrew/brew.rb b/Library/Homebrew/brew.rb index 6caee8c39a..2240161dcc 100644 --- a/Library/Homebrew/brew.rb +++ b/Library/Homebrew/brew.rb @@ -1,3 +1,4 @@ +# typed: false # frozen_string_literal: true if ENV["HOMEBREW_STACKPROF"] diff --git a/Library/Homebrew/build.rb b/Library/Homebrew/build.rb index a5e3740184..f7c4274874 100644 --- a/Library/Homebrew/build.rb +++ b/Library/Homebrew/build.rb @@ -1,3 +1,4 @@ +# typed: false # frozen_string_literal: true # This script is loaded by formula_installer as a separate instance. diff --git a/Library/Homebrew/build_environment.rb b/Library/Homebrew/build_environment.rb index ed6f319730..6b4e7f0529 100644 --- a/Library/Homebrew/build_environment.rb +++ b/Library/Homebrew/build_environment.rb @@ -1,3 +1,4 @@ +# typed: false # frozen_string_literal: true # Settings for the build environment. diff --git a/Library/Homebrew/build_options.rb b/Library/Homebrew/build_options.rb index f4f51be48d..de78b09472 100644 --- a/Library/Homebrew/build_options.rb +++ b/Library/Homebrew/build_options.rb @@ -1,3 +1,4 @@ +# typed: true # frozen_string_literal: true # Options for a formula build. diff --git a/Library/Homebrew/cache_store.rb b/Library/Homebrew/cache_store.rb index 6dd3768aeb..982f15c482 100644 --- a/Library/Homebrew/cache_store.rb +++ b/Library/Homebrew/cache_store.rb @@ -1,3 +1,4 @@ +# typed: true # frozen_string_literal: true require "json" diff --git a/Library/Homebrew/cask.rb b/Library/Homebrew/cask.rb index e39f0328b1..f4b32a21fd 100644 --- a/Library/Homebrew/cask.rb +++ b/Library/Homebrew/cask.rb @@ -1,3 +1,4 @@ +# typed: strict # frozen_string_literal: true require "cask/artifact" diff --git a/Library/Homebrew/cask/artifact.rb b/Library/Homebrew/cask/artifact.rb index a86b3232ed..bee610cfb5 100644 --- a/Library/Homebrew/cask/artifact.rb +++ b/Library/Homebrew/cask/artifact.rb @@ -1,3 +1,4 @@ +# typed: strict # frozen_string_literal: true require "cask/artifact/app" diff --git a/Library/Homebrew/cask/artifact/abstract_artifact.rb b/Library/Homebrew/cask/artifact/abstract_artifact.rb index 1a6b019002..50c2b325e5 100644 --- a/Library/Homebrew/cask/artifact/abstract_artifact.rb +++ b/Library/Homebrew/cask/artifact/abstract_artifact.rb @@ -1,3 +1,4 @@ +# typed: false # frozen_string_literal: true module Cask diff --git a/Library/Homebrew/cask/artifact/abstract_flight_block.rb b/Library/Homebrew/cask/artifact/abstract_flight_block.rb index 053294e7ff..1695a257a5 100644 --- a/Library/Homebrew/cask/artifact/abstract_flight_block.rb +++ b/Library/Homebrew/cask/artifact/abstract_flight_block.rb @@ -1,3 +1,4 @@ +# typed: true # frozen_string_literal: true require "cask/artifact/abstract_artifact" diff --git a/Library/Homebrew/cask/artifact/abstract_uninstall.rb b/Library/Homebrew/cask/artifact/abstract_uninstall.rb index 9cce7ed341..b0da73866f 100644 --- a/Library/Homebrew/cask/artifact/abstract_uninstall.rb +++ b/Library/Homebrew/cask/artifact/abstract_uninstall.rb @@ -1,3 +1,4 @@ +# typed: false # frozen_string_literal: true require "timeout" diff --git a/Library/Homebrew/cask/artifact/app.rb b/Library/Homebrew/cask/artifact/app.rb index 01cbec77f4..c2ec38df44 100644 --- a/Library/Homebrew/cask/artifact/app.rb +++ b/Library/Homebrew/cask/artifact/app.rb @@ -1,3 +1,4 @@ +# typed: strict # frozen_string_literal: true require "cask/artifact/moved" diff --git a/Library/Homebrew/cask/artifact/artifact.rb b/Library/Homebrew/cask/artifact/artifact.rb index 3d81ab65b0..f6b350a82d 100644 --- a/Library/Homebrew/cask/artifact/artifact.rb +++ b/Library/Homebrew/cask/artifact/artifact.rb @@ -1,3 +1,4 @@ +# typed: false # frozen_string_literal: true require "cask/artifact/moved" diff --git a/Library/Homebrew/cask/artifact/audio_unit_plugin.rb b/Library/Homebrew/cask/artifact/audio_unit_plugin.rb index c22c132d46..1fe7cf108f 100644 --- a/Library/Homebrew/cask/artifact/audio_unit_plugin.rb +++ b/Library/Homebrew/cask/artifact/audio_unit_plugin.rb @@ -1,3 +1,4 @@ +# typed: strict # frozen_string_literal: true require "cask/artifact/moved" diff --git a/Library/Homebrew/cask/artifact/binary.rb b/Library/Homebrew/cask/artifact/binary.rb index a1f817ca7e..a8c7d55450 100644 --- a/Library/Homebrew/cask/artifact/binary.rb +++ b/Library/Homebrew/cask/artifact/binary.rb @@ -1,3 +1,4 @@ +# typed: true # frozen_string_literal: true require "cask/artifact/symlinked" diff --git a/Library/Homebrew/cask/artifact/colorpicker.rb b/Library/Homebrew/cask/artifact/colorpicker.rb index 48b2452455..545389369c 100644 --- a/Library/Homebrew/cask/artifact/colorpicker.rb +++ b/Library/Homebrew/cask/artifact/colorpicker.rb @@ -1,3 +1,4 @@ +# typed: strict # frozen_string_literal: true require "cask/artifact/moved" diff --git a/Library/Homebrew/cask/artifact/dictionary.rb b/Library/Homebrew/cask/artifact/dictionary.rb index 03fded17ff..50749b2bdd 100644 --- a/Library/Homebrew/cask/artifact/dictionary.rb +++ b/Library/Homebrew/cask/artifact/dictionary.rb @@ -1,3 +1,4 @@ +# typed: strict # frozen_string_literal: true require "cask/artifact/moved" diff --git a/Library/Homebrew/cask/artifact/font.rb b/Library/Homebrew/cask/artifact/font.rb index 164731c166..caa2fcc7ba 100644 --- a/Library/Homebrew/cask/artifact/font.rb +++ b/Library/Homebrew/cask/artifact/font.rb @@ -1,3 +1,4 @@ +# typed: strict # frozen_string_literal: true require "cask/artifact/moved" diff --git a/Library/Homebrew/cask/artifact/input_method.rb b/Library/Homebrew/cask/artifact/input_method.rb index 9cd6b36239..79b3acaadf 100644 --- a/Library/Homebrew/cask/artifact/input_method.rb +++ b/Library/Homebrew/cask/artifact/input_method.rb @@ -1,3 +1,4 @@ +# typed: strict # frozen_string_literal: true require "cask/artifact/moved" diff --git a/Library/Homebrew/cask/artifact/installer.rb b/Library/Homebrew/cask/artifact/installer.rb index 7ec14f611e..c2fa6543c5 100644 --- a/Library/Homebrew/cask/artifact/installer.rb +++ b/Library/Homebrew/cask/artifact/installer.rb @@ -1,3 +1,4 @@ +# typed: false # frozen_string_literal: true require "cask/artifact/abstract_artifact" diff --git a/Library/Homebrew/cask/artifact/internet_plugin.rb b/Library/Homebrew/cask/artifact/internet_plugin.rb index 6e22874a46..73c655a52b 100644 --- a/Library/Homebrew/cask/artifact/internet_plugin.rb +++ b/Library/Homebrew/cask/artifact/internet_plugin.rb @@ -1,3 +1,4 @@ +# typed: strict # frozen_string_literal: true require "cask/artifact/moved" diff --git a/Library/Homebrew/cask/artifact/manpage.rb b/Library/Homebrew/cask/artifact/manpage.rb index 66453f2dba..3824296cbd 100644 --- a/Library/Homebrew/cask/artifact/manpage.rb +++ b/Library/Homebrew/cask/artifact/manpage.rb @@ -1,3 +1,4 @@ +# typed: true # frozen_string_literal: true require "cask/artifact/symlinked" diff --git a/Library/Homebrew/cask/artifact/mdimporter.rb b/Library/Homebrew/cask/artifact/mdimporter.rb index c11cb9cc4b..226a01e1cc 100644 --- a/Library/Homebrew/cask/artifact/mdimporter.rb +++ b/Library/Homebrew/cask/artifact/mdimporter.rb @@ -1,3 +1,4 @@ +# typed: false # frozen_string_literal: true require "cask/artifact/moved" diff --git a/Library/Homebrew/cask/artifact/moved.rb b/Library/Homebrew/cask/artifact/moved.rb index 5925b86f4b..083c612447 100644 --- a/Library/Homebrew/cask/artifact/moved.rb +++ b/Library/Homebrew/cask/artifact/moved.rb @@ -1,3 +1,4 @@ +# typed: false # frozen_string_literal: true require "cask/artifact/relocated" diff --git a/Library/Homebrew/cask/artifact/pkg.rb b/Library/Homebrew/cask/artifact/pkg.rb index c70f2658dc..9b5b5f157e 100644 --- a/Library/Homebrew/cask/artifact/pkg.rb +++ b/Library/Homebrew/cask/artifact/pkg.rb @@ -1,3 +1,4 @@ +# typed: false # frozen_string_literal: true require "plist" diff --git a/Library/Homebrew/cask/artifact/postflight_block.rb b/Library/Homebrew/cask/artifact/postflight_block.rb index c672057d8c..00d170fda7 100644 --- a/Library/Homebrew/cask/artifact/postflight_block.rb +++ b/Library/Homebrew/cask/artifact/postflight_block.rb @@ -1,3 +1,4 @@ +# typed: strict # frozen_string_literal: true require "cask/artifact/abstract_flight_block" diff --git a/Library/Homebrew/cask/artifact/preflight_block.rb b/Library/Homebrew/cask/artifact/preflight_block.rb index f6f8882c71..0b7f21c8ec 100644 --- a/Library/Homebrew/cask/artifact/preflight_block.rb +++ b/Library/Homebrew/cask/artifact/preflight_block.rb @@ -1,3 +1,4 @@ +# typed: strict # frozen_string_literal: true require "cask/artifact/abstract_flight_block" diff --git a/Library/Homebrew/cask/artifact/prefpane.rb b/Library/Homebrew/cask/artifact/prefpane.rb index 8447c67c1d..aed47644e1 100644 --- a/Library/Homebrew/cask/artifact/prefpane.rb +++ b/Library/Homebrew/cask/artifact/prefpane.rb @@ -1,3 +1,4 @@ +# typed: true # frozen_string_literal: true require "cask/artifact/moved" diff --git a/Library/Homebrew/cask/artifact/qlplugin.rb b/Library/Homebrew/cask/artifact/qlplugin.rb index 30588c6236..e0c26a6dc8 100644 --- a/Library/Homebrew/cask/artifact/qlplugin.rb +++ b/Library/Homebrew/cask/artifact/qlplugin.rb @@ -1,3 +1,4 @@ +# typed: false # frozen_string_literal: true require "cask/artifact/moved" diff --git a/Library/Homebrew/cask/artifact/relocated.rb b/Library/Homebrew/cask/artifact/relocated.rb index 3f0da05eb0..5c9dd0dbd5 100644 --- a/Library/Homebrew/cask/artifact/relocated.rb +++ b/Library/Homebrew/cask/artifact/relocated.rb @@ -1,3 +1,4 @@ +# typed: true # frozen_string_literal: true require "cask/artifact/abstract_artifact" diff --git a/Library/Homebrew/cask/artifact/screen_saver.rb b/Library/Homebrew/cask/artifact/screen_saver.rb index f8f73e7021..c52e0361da 100644 --- a/Library/Homebrew/cask/artifact/screen_saver.rb +++ b/Library/Homebrew/cask/artifact/screen_saver.rb @@ -1,3 +1,4 @@ +# typed: strict # frozen_string_literal: true require "cask/artifact/moved" diff --git a/Library/Homebrew/cask/artifact/service.rb b/Library/Homebrew/cask/artifact/service.rb index 9a92a6506f..901cb5ac07 100644 --- a/Library/Homebrew/cask/artifact/service.rb +++ b/Library/Homebrew/cask/artifact/service.rb @@ -1,3 +1,4 @@ +# typed: strict # frozen_string_literal: true require "cask/artifact/moved" diff --git a/Library/Homebrew/cask/artifact/stage_only.rb b/Library/Homebrew/cask/artifact/stage_only.rb index a013388e25..c67cac6d3b 100644 --- a/Library/Homebrew/cask/artifact/stage_only.rb +++ b/Library/Homebrew/cask/artifact/stage_only.rb @@ -1,3 +1,4 @@ +# typed: true # frozen_string_literal: true require "cask/artifact/abstract_artifact" diff --git a/Library/Homebrew/cask/artifact/suite.rb b/Library/Homebrew/cask/artifact/suite.rb index be8f348205..a236a602e0 100644 --- a/Library/Homebrew/cask/artifact/suite.rb +++ b/Library/Homebrew/cask/artifact/suite.rb @@ -1,3 +1,4 @@ +# typed: true # frozen_string_literal: true require "cask/artifact/moved" diff --git a/Library/Homebrew/cask/artifact/symlinked.rb b/Library/Homebrew/cask/artifact/symlinked.rb index 1feeda027a..68e8dbe181 100644 --- a/Library/Homebrew/cask/artifact/symlinked.rb +++ b/Library/Homebrew/cask/artifact/symlinked.rb @@ -1,3 +1,4 @@ +# typed: false # frozen_string_literal: true require "cask/artifact/relocated" diff --git a/Library/Homebrew/cask/artifact/uninstall.rb b/Library/Homebrew/cask/artifact/uninstall.rb index 00b385e647..0d924446de 100644 --- a/Library/Homebrew/cask/artifact/uninstall.rb +++ b/Library/Homebrew/cask/artifact/uninstall.rb @@ -1,3 +1,4 @@ +# typed: false # frozen_string_literal: true require "cask/artifact/abstract_uninstall" diff --git a/Library/Homebrew/cask/artifact/vst3_plugin.rb b/Library/Homebrew/cask/artifact/vst3_plugin.rb index e82690d84b..bd69c57a41 100644 --- a/Library/Homebrew/cask/artifact/vst3_plugin.rb +++ b/Library/Homebrew/cask/artifact/vst3_plugin.rb @@ -1,3 +1,4 @@ +# typed: strict # frozen_string_literal: true require "cask/artifact/moved" diff --git a/Library/Homebrew/cask/artifact/vst_plugin.rb b/Library/Homebrew/cask/artifact/vst_plugin.rb index 058ea50521..976ae18d68 100644 --- a/Library/Homebrew/cask/artifact/vst_plugin.rb +++ b/Library/Homebrew/cask/artifact/vst_plugin.rb @@ -1,3 +1,4 @@ +# typed: strict # frozen_string_literal: true require "cask/artifact/moved" diff --git a/Library/Homebrew/cask/artifact/zap.rb b/Library/Homebrew/cask/artifact/zap.rb index 6967f922c7..80485f23d6 100644 --- a/Library/Homebrew/cask/artifact/zap.rb +++ b/Library/Homebrew/cask/artifact/zap.rb @@ -1,3 +1,4 @@ +# typed: false # frozen_string_literal: true require "cask/artifact/abstract_uninstall" diff --git a/Library/Homebrew/cask/audit.rb b/Library/Homebrew/cask/audit.rb index cab1b48dbc..09bde070a7 100644 --- a/Library/Homebrew/cask/audit.rb +++ b/Library/Homebrew/cask/audit.rb @@ -1,3 +1,4 @@ +# typed: false # frozen_string_literal: true require "cask/denylist" diff --git a/Library/Homebrew/cask/auditor.rb b/Library/Homebrew/cask/auditor.rb index 264c04b7a3..a201c4fe30 100644 --- a/Library/Homebrew/cask/auditor.rb +++ b/Library/Homebrew/cask/auditor.rb @@ -1,3 +1,4 @@ +# typed: true # frozen_string_literal: true require "cask/audit" diff --git a/Library/Homebrew/cask/cache.rb b/Library/Homebrew/cask/cache.rb index 2d1dcc5706..1cd57f9060 100644 --- a/Library/Homebrew/cask/cache.rb +++ b/Library/Homebrew/cask/cache.rb @@ -1,3 +1,4 @@ +# typed: true # frozen_string_literal: true module Cask diff --git a/Library/Homebrew/cask/cask.rb b/Library/Homebrew/cask/cask.rb index bb2b932793..8858922a0b 100644 --- a/Library/Homebrew/cask/cask.rb +++ b/Library/Homebrew/cask/cask.rb @@ -1,3 +1,4 @@ +# typed: false # frozen_string_literal: true require "cask/cask_loader" diff --git a/Library/Homebrew/cask/cask_loader.rb b/Library/Homebrew/cask/cask_loader.rb index 8946c3b58e..8ec015a931 100644 --- a/Library/Homebrew/cask/cask_loader.rb +++ b/Library/Homebrew/cask/cask_loader.rb @@ -1,3 +1,4 @@ +# typed: false # frozen_string_literal: true require "cask/cache" diff --git a/Library/Homebrew/cask/caskroom.rb b/Library/Homebrew/cask/caskroom.rb index e2b3841c36..ab9c1b4dc0 100644 --- a/Library/Homebrew/cask/caskroom.rb +++ b/Library/Homebrew/cask/caskroom.rb @@ -1,3 +1,4 @@ +# typed: false # frozen_string_literal: true require "utils/user" diff --git a/Library/Homebrew/cask/cmd.rb b/Library/Homebrew/cask/cmd.rb index 38795bffe3..5c62cb73ea 100644 --- a/Library/Homebrew/cask/cmd.rb +++ b/Library/Homebrew/cask/cmd.rb @@ -1,3 +1,4 @@ +# typed: false # frozen_string_literal: true require "optparse" diff --git a/Library/Homebrew/cask/cmd/--cache.rb b/Library/Homebrew/cask/cmd/--cache.rb index 81d3acc7de..613841f7c3 100644 --- a/Library/Homebrew/cask/cmd/--cache.rb +++ b/Library/Homebrew/cask/cmd/--cache.rb @@ -1,3 +1,4 @@ +# typed: true # frozen_string_literal: true module Cask diff --git a/Library/Homebrew/cask/cmd/abstract_command.rb b/Library/Homebrew/cask/cmd/abstract_command.rb index 4a55567258..cf4ca79a0d 100644 --- a/Library/Homebrew/cask/cmd/abstract_command.rb +++ b/Library/Homebrew/cask/cmd/abstract_command.rb @@ -1,3 +1,4 @@ +# typed: false # frozen_string_literal: true require "search" diff --git a/Library/Homebrew/cask/cmd/abstract_internal_command.rb b/Library/Homebrew/cask/cmd/abstract_internal_command.rb index b15b9acc90..7ccc3937b7 100644 --- a/Library/Homebrew/cask/cmd/abstract_internal_command.rb +++ b/Library/Homebrew/cask/cmd/abstract_internal_command.rb @@ -1,3 +1,4 @@ +# typed: true # frozen_string_literal: true module Cask diff --git a/Library/Homebrew/cask/cmd/audit.rb b/Library/Homebrew/cask/cmd/audit.rb index c9f1dda0f0..6deeb84f8e 100644 --- a/Library/Homebrew/cask/cmd/audit.rb +++ b/Library/Homebrew/cask/cmd/audit.rb @@ -1,3 +1,4 @@ +# typed: false # frozen_string_literal: true require "utils/github/actions" diff --git a/Library/Homebrew/cask/cmd/cat.rb b/Library/Homebrew/cask/cmd/cat.rb index 3d731b1d6c..fb79443000 100644 --- a/Library/Homebrew/cask/cmd/cat.rb +++ b/Library/Homebrew/cask/cmd/cat.rb @@ -1,3 +1,4 @@ +# typed: true # frozen_string_literal: true module Cask diff --git a/Library/Homebrew/cask/cmd/create.rb b/Library/Homebrew/cask/cmd/create.rb index c190161fa6..7ae14dc7d5 100644 --- a/Library/Homebrew/cask/cmd/create.rb +++ b/Library/Homebrew/cask/cmd/create.rb @@ -1,3 +1,4 @@ +# typed: true # frozen_string_literal: true module Cask diff --git a/Library/Homebrew/cask/cmd/doctor.rb b/Library/Homebrew/cask/cmd/doctor.rb index dafc4e5774..0c80dcef21 100644 --- a/Library/Homebrew/cask/cmd/doctor.rb +++ b/Library/Homebrew/cask/cmd/doctor.rb @@ -1,3 +1,4 @@ +# typed: false # frozen_string_literal: true module Cask diff --git a/Library/Homebrew/cask/cmd/edit.rb b/Library/Homebrew/cask/cmd/edit.rb index bbeffbf730..bea10bf630 100644 --- a/Library/Homebrew/cask/cmd/edit.rb +++ b/Library/Homebrew/cask/cmd/edit.rb @@ -1,3 +1,4 @@ +# typed: true # frozen_string_literal: true module Cask diff --git a/Library/Homebrew/cask/cmd/fetch.rb b/Library/Homebrew/cask/cmd/fetch.rb index e42208a31b..d9b3351832 100644 --- a/Library/Homebrew/cask/cmd/fetch.rb +++ b/Library/Homebrew/cask/cmd/fetch.rb @@ -1,3 +1,4 @@ +# typed: false # frozen_string_literal: true module Cask diff --git a/Library/Homebrew/cask/cmd/help.rb b/Library/Homebrew/cask/cmd/help.rb index fee20683db..721ac40842 100644 --- a/Library/Homebrew/cask/cmd/help.rb +++ b/Library/Homebrew/cask/cmd/help.rb @@ -1,3 +1,4 @@ +# typed: true # frozen_string_literal: true module Cask diff --git a/Library/Homebrew/cask/cmd/home.rb b/Library/Homebrew/cask/cmd/home.rb index 291256519a..8087f21faa 100644 --- a/Library/Homebrew/cask/cmd/home.rb +++ b/Library/Homebrew/cask/cmd/home.rb @@ -1,3 +1,4 @@ +# typed: true # frozen_string_literal: true module Cask diff --git a/Library/Homebrew/cask/cmd/info.rb b/Library/Homebrew/cask/cmd/info.rb index 683057a13f..e4e0797f72 100644 --- a/Library/Homebrew/cask/cmd/info.rb +++ b/Library/Homebrew/cask/cmd/info.rb @@ -1,3 +1,4 @@ +# typed: false # frozen_string_literal: true require "json" diff --git a/Library/Homebrew/cask/cmd/install.rb b/Library/Homebrew/cask/cmd/install.rb index a532bb521e..a5ad63d19c 100644 --- a/Library/Homebrew/cask/cmd/install.rb +++ b/Library/Homebrew/cask/cmd/install.rb @@ -1,3 +1,4 @@ +# typed: false # frozen_string_literal: true module Cask diff --git a/Library/Homebrew/cask/cmd/internal_help.rb b/Library/Homebrew/cask/cmd/internal_help.rb index edd33fc2df..2091f48f95 100644 --- a/Library/Homebrew/cask/cmd/internal_help.rb +++ b/Library/Homebrew/cask/cmd/internal_help.rb @@ -1,3 +1,4 @@ +# typed: true # frozen_string_literal: true module Cask diff --git a/Library/Homebrew/cask/cmd/internal_stanza.rb b/Library/Homebrew/cask/cmd/internal_stanza.rb index c392d508a3..2c473cda1e 100644 --- a/Library/Homebrew/cask/cmd/internal_stanza.rb +++ b/Library/Homebrew/cask/cmd/internal_stanza.rb @@ -1,3 +1,4 @@ +# typed: false # frozen_string_literal: true require "cask/dsl" diff --git a/Library/Homebrew/cask/cmd/list.rb b/Library/Homebrew/cask/cmd/list.rb index 208464eda9..859d650a9c 100644 --- a/Library/Homebrew/cask/cmd/list.rb +++ b/Library/Homebrew/cask/cmd/list.rb @@ -1,3 +1,4 @@ +# typed: false # frozen_string_literal: true require "cask/artifact/relocated" diff --git a/Library/Homebrew/cask/cmd/outdated.rb b/Library/Homebrew/cask/cmd/outdated.rb index 231648c09f..ff35a1f2d6 100644 --- a/Library/Homebrew/cask/cmd/outdated.rb +++ b/Library/Homebrew/cask/cmd/outdated.rb @@ -1,3 +1,4 @@ +# typed: false # frozen_string_literal: true module Cask diff --git a/Library/Homebrew/cask/cmd/reinstall.rb b/Library/Homebrew/cask/cmd/reinstall.rb index c1e066bb1a..79e0dccc44 100644 --- a/Library/Homebrew/cask/cmd/reinstall.rb +++ b/Library/Homebrew/cask/cmd/reinstall.rb @@ -1,3 +1,4 @@ +# typed: true # frozen_string_literal: true module Cask diff --git a/Library/Homebrew/cask/cmd/style.rb b/Library/Homebrew/cask/cmd/style.rb index fc3cb60188..1d07156306 100644 --- a/Library/Homebrew/cask/cmd/style.rb +++ b/Library/Homebrew/cask/cmd/style.rb @@ -1,3 +1,4 @@ +# typed: false # frozen_string_literal: true require "json" diff --git a/Library/Homebrew/cask/cmd/uninstall.rb b/Library/Homebrew/cask/cmd/uninstall.rb index 89a85cd20a..8011193348 100644 --- a/Library/Homebrew/cask/cmd/uninstall.rb +++ b/Library/Homebrew/cask/cmd/uninstall.rb @@ -1,3 +1,4 @@ +# typed: false # frozen_string_literal: true module Cask diff --git a/Library/Homebrew/cask/cmd/upgrade.rb b/Library/Homebrew/cask/cmd/upgrade.rb index e83cb4dd39..daf7536894 100644 --- a/Library/Homebrew/cask/cmd/upgrade.rb +++ b/Library/Homebrew/cask/cmd/upgrade.rb @@ -1,3 +1,4 @@ +# typed: false # frozen_string_literal: true require "env_config" diff --git a/Library/Homebrew/cask/cmd/zap.rb b/Library/Homebrew/cask/cmd/zap.rb index c2e981301b..2898883ef6 100644 --- a/Library/Homebrew/cask/cmd/zap.rb +++ b/Library/Homebrew/cask/cmd/zap.rb @@ -1,3 +1,4 @@ +# typed: false # frozen_string_literal: true module Cask diff --git a/Library/Homebrew/cask/config.rb b/Library/Homebrew/cask/config.rb index 04a71b9e3e..9f35320378 100644 --- a/Library/Homebrew/cask/config.rb +++ b/Library/Homebrew/cask/config.rb @@ -1,3 +1,4 @@ +# typed: false # frozen_string_literal: true require "json" diff --git a/Library/Homebrew/cask/denylist.rb b/Library/Homebrew/cask/denylist.rb index dda4326ba6..8cbc9c37a2 100644 --- a/Library/Homebrew/cask/denylist.rb +++ b/Library/Homebrew/cask/denylist.rb @@ -1,3 +1,4 @@ +# typed: true # frozen_string_literal: true module Cask diff --git a/Library/Homebrew/cask/download.rb b/Library/Homebrew/cask/download.rb index 16c1dbd81c..12e8a575ff 100644 --- a/Library/Homebrew/cask/download.rb +++ b/Library/Homebrew/cask/download.rb @@ -1,3 +1,4 @@ +# typed: true # frozen_string_literal: true require "fileutils" diff --git a/Library/Homebrew/cask/dsl.rb b/Library/Homebrew/cask/dsl.rb index 2f8b2c8cfd..6ea0099400 100644 --- a/Library/Homebrew/cask/dsl.rb +++ b/Library/Homebrew/cask/dsl.rb @@ -1,3 +1,4 @@ +# typed: false # frozen_string_literal: true require "locale" diff --git a/Library/Homebrew/cask/dsl/appcast.rb b/Library/Homebrew/cask/dsl/appcast.rb index 1c9ebc3600..c29a798192 100644 --- a/Library/Homebrew/cask/dsl/appcast.rb +++ b/Library/Homebrew/cask/dsl/appcast.rb @@ -1,3 +1,4 @@ +# typed: true # frozen_string_literal: true module Cask diff --git a/Library/Homebrew/cask/dsl/base.rb b/Library/Homebrew/cask/dsl/base.rb index f8d40aadd6..d1a29f61d7 100644 --- a/Library/Homebrew/cask/dsl/base.rb +++ b/Library/Homebrew/cask/dsl/base.rb @@ -1,3 +1,4 @@ +# typed: false # frozen_string_literal: true require "cask/utils" diff --git a/Library/Homebrew/cask/dsl/caveats.rb b/Library/Homebrew/cask/dsl/caveats.rb index d9933d992c..26d8d7fc79 100644 --- a/Library/Homebrew/cask/dsl/caveats.rb +++ b/Library/Homebrew/cask/dsl/caveats.rb @@ -1,3 +1,4 @@ +# typed: false # frozen_string_literal: true module Cask diff --git a/Library/Homebrew/cask/dsl/conflicts_with.rb b/Library/Homebrew/cask/dsl/conflicts_with.rb index f49f3a0620..da47113ab5 100644 --- a/Library/Homebrew/cask/dsl/conflicts_with.rb +++ b/Library/Homebrew/cask/dsl/conflicts_with.rb @@ -1,3 +1,4 @@ +# typed: false # frozen_string_literal: true require "delegate" diff --git a/Library/Homebrew/cask/dsl/container.rb b/Library/Homebrew/cask/dsl/container.rb index 60cfbdb44e..22c146f319 100644 --- a/Library/Homebrew/cask/dsl/container.rb +++ b/Library/Homebrew/cask/dsl/container.rb @@ -1,3 +1,4 @@ +# typed: true # frozen_string_literal: true require "unpack_strategy" diff --git a/Library/Homebrew/cask/dsl/depends_on.rb b/Library/Homebrew/cask/dsl/depends_on.rb index a3721b0530..f786366095 100644 --- a/Library/Homebrew/cask/dsl/depends_on.rb +++ b/Library/Homebrew/cask/dsl/depends_on.rb @@ -1,3 +1,4 @@ +# typed: false # frozen_string_literal: true require "delegate" diff --git a/Library/Homebrew/cask/dsl/postflight.rb b/Library/Homebrew/cask/dsl/postflight.rb index cccfac6c9e..209533ba77 100644 --- a/Library/Homebrew/cask/dsl/postflight.rb +++ b/Library/Homebrew/cask/dsl/postflight.rb @@ -1,3 +1,4 @@ +# typed: true # frozen_string_literal: true require "cask/staged" diff --git a/Library/Homebrew/cask/dsl/preflight.rb b/Library/Homebrew/cask/dsl/preflight.rb index eba210668d..d1f0e57098 100644 --- a/Library/Homebrew/cask/dsl/preflight.rb +++ b/Library/Homebrew/cask/dsl/preflight.rb @@ -1,3 +1,4 @@ +# typed: strict # frozen_string_literal: true module Cask diff --git a/Library/Homebrew/cask/dsl/uninstall_postflight.rb b/Library/Homebrew/cask/dsl/uninstall_postflight.rb index fac89d764e..9dc523b05d 100644 --- a/Library/Homebrew/cask/dsl/uninstall_postflight.rb +++ b/Library/Homebrew/cask/dsl/uninstall_postflight.rb @@ -1,3 +1,4 @@ +# typed: strict # frozen_string_literal: true module Cask diff --git a/Library/Homebrew/cask/dsl/uninstall_preflight.rb b/Library/Homebrew/cask/dsl/uninstall_preflight.rb index 770fc680a3..d35da3f51f 100644 --- a/Library/Homebrew/cask/dsl/uninstall_preflight.rb +++ b/Library/Homebrew/cask/dsl/uninstall_preflight.rb @@ -1,3 +1,4 @@ +# typed: strict # frozen_string_literal: true require "cask/staged" diff --git a/Library/Homebrew/cask/dsl/version.rb b/Library/Homebrew/cask/dsl/version.rb index 53d58b9961..a43658b182 100644 --- a/Library/Homebrew/cask/dsl/version.rb +++ b/Library/Homebrew/cask/dsl/version.rb @@ -1,3 +1,4 @@ +# typed: false # frozen_string_literal: true module Cask diff --git a/Library/Homebrew/cask/exceptions.rb b/Library/Homebrew/cask/exceptions.rb index e67831d383..645ea8a0e4 100644 --- a/Library/Homebrew/cask/exceptions.rb +++ b/Library/Homebrew/cask/exceptions.rb @@ -1,3 +1,4 @@ +# typed: true # frozen_string_literal: true module Cask diff --git a/Library/Homebrew/cask/installer.rb b/Library/Homebrew/cask/installer.rb index 6efeeada6a..a5a43851b6 100644 --- a/Library/Homebrew/cask/installer.rb +++ b/Library/Homebrew/cask/installer.rb @@ -1,3 +1,4 @@ +# typed: false # frozen_string_literal: true require "formula_installer" diff --git a/Library/Homebrew/cask/macos.rb b/Library/Homebrew/cask/macos.rb index cf65def619..be2693b239 100644 --- a/Library/Homebrew/cask/macos.rb +++ b/Library/Homebrew/cask/macos.rb @@ -1,3 +1,4 @@ +# typed: true # frozen_string_literal: true require "os/mac/version" diff --git a/Library/Homebrew/cask/metadata.rb b/Library/Homebrew/cask/metadata.rb index 8c12de10bb..4fcdd23f27 100644 --- a/Library/Homebrew/cask/metadata.rb +++ b/Library/Homebrew/cask/metadata.rb @@ -1,3 +1,4 @@ +# typed: false # frozen_string_literal: true module Cask diff --git a/Library/Homebrew/cask/pkg.rb b/Library/Homebrew/cask/pkg.rb index f015ee9de8..b5e625e6f4 100644 --- a/Library/Homebrew/cask/pkg.rb +++ b/Library/Homebrew/cask/pkg.rb @@ -1,3 +1,4 @@ +# typed: true # frozen_string_literal: true require "cask/macos" diff --git a/Library/Homebrew/cask/quarantine.rb b/Library/Homebrew/cask/quarantine.rb index a90a7ea942..14e74c7af0 100644 --- a/Library/Homebrew/cask/quarantine.rb +++ b/Library/Homebrew/cask/quarantine.rb @@ -1,3 +1,4 @@ +# typed: false # frozen_string_literal: true require "development_tools" diff --git a/Library/Homebrew/cask/staged.rb b/Library/Homebrew/cask/staged.rb index 73dd826e9a..76dd66323e 100644 --- a/Library/Homebrew/cask/staged.rb +++ b/Library/Homebrew/cask/staged.rb @@ -1,3 +1,4 @@ +# typed: false # frozen_string_literal: true require "utils/user" diff --git a/Library/Homebrew/cask/topological_hash.rb b/Library/Homebrew/cask/topological_hash.rb index bfd8573827..79c0485bf4 100644 --- a/Library/Homebrew/cask/topological_hash.rb +++ b/Library/Homebrew/cask/topological_hash.rb @@ -1,3 +1,4 @@ +# typed: false # frozen_string_literal: true require "tsort" diff --git a/Library/Homebrew/cask/url.rb b/Library/Homebrew/cask/url.rb index 723647ecfd..92aaaf9779 100644 --- a/Library/Homebrew/cask/url.rb +++ b/Library/Homebrew/cask/url.rb @@ -1,4 +1,4 @@ -# typed: strict +# typed: true # frozen_string_literal: true # Class corresponding to the `url` stanza. diff --git a/Library/Homebrew/cask/utils.rb b/Library/Homebrew/cask/utils.rb index 8cee597600..47f804df23 100644 --- a/Library/Homebrew/cask/utils.rb +++ b/Library/Homebrew/cask/utils.rb @@ -1,3 +1,4 @@ +# typed: false # frozen_string_literal: true require "utils/user" diff --git a/Library/Homebrew/cask/verify.rb b/Library/Homebrew/cask/verify.rb index f31d234c42..65f9998dee 100644 --- a/Library/Homebrew/cask/verify.rb +++ b/Library/Homebrew/cask/verify.rb @@ -1,3 +1,4 @@ +# typed: false # frozen_string_literal: true module Cask diff --git a/Library/Homebrew/cask_dependent.rb b/Library/Homebrew/cask_dependent.rb index 96137a1a17..3f38a25fdd 100644 --- a/Library/Homebrew/cask_dependent.rb +++ b/Library/Homebrew/cask_dependent.rb @@ -1,3 +1,4 @@ +# typed: true # frozen_string_literal: true # An adapter for casks to provide dependency information in a formula-like interface diff --git a/Library/Homebrew/caveats.rb b/Library/Homebrew/caveats.rb index 01ad2bd278..18392648a8 100644 --- a/Library/Homebrew/caveats.rb +++ b/Library/Homebrew/caveats.rb @@ -1,3 +1,4 @@ +# typed: false # frozen_string_literal: true require "language/python" diff --git a/Library/Homebrew/checksum.rb b/Library/Homebrew/checksum.rb index 84c6c62342..7a3219513d 100644 --- a/Library/Homebrew/checksum.rb +++ b/Library/Homebrew/checksum.rb @@ -1,3 +1,4 @@ +# typed: true # frozen_string_literal: true # A formula's checksum. diff --git a/Library/Homebrew/cleaner.rb b/Library/Homebrew/cleaner.rb index d35ef9b7d1..9cf117c777 100644 --- a/Library/Homebrew/cleaner.rb +++ b/Library/Homebrew/cleaner.rb @@ -1,3 +1,4 @@ +# typed: true # frozen_string_literal: true # Cleans a newly installed keg. diff --git a/Library/Homebrew/cleanup.rb b/Library/Homebrew/cleanup.rb index bf0f424ae1..9c53b91726 100644 --- a/Library/Homebrew/cleanup.rb +++ b/Library/Homebrew/cleanup.rb @@ -1,3 +1,4 @@ +# typed: false # frozen_string_literal: true require "utils/bottles" diff --git a/Library/Homebrew/cli/args.rb b/Library/Homebrew/cli/args.rb index ab5d2579a2..1a779dcbdf 100644 --- a/Library/Homebrew/cli/args.rb +++ b/Library/Homebrew/cli/args.rb @@ -1,3 +1,4 @@ +# typed: true # frozen_string_literal: true require "cli/named_args" diff --git a/Library/Homebrew/cli/named_args.rb b/Library/Homebrew/cli/named_args.rb index 362bd1f7cc..dad9e9b22d 100644 --- a/Library/Homebrew/cli/named_args.rb +++ b/Library/Homebrew/cli/named_args.rb @@ -1,3 +1,4 @@ +# typed: false # frozen_string_literal: true require "delegate" diff --git a/Library/Homebrew/cli/parser.rb b/Library/Homebrew/cli/parser.rb index 179c4c17a4..913cfbc529 100644 --- a/Library/Homebrew/cli/parser.rb +++ b/Library/Homebrew/cli/parser.rb @@ -1,3 +1,4 @@ +# typed: false # frozen_string_literal: true require "env_config" diff --git a/Library/Homebrew/cmd/--cache.rb b/Library/Homebrew/cmd/--cache.rb index 240d145dfa..3a52708065 100644 --- a/Library/Homebrew/cmd/--cache.rb +++ b/Library/Homebrew/cmd/--cache.rb @@ -1,3 +1,4 @@ +# typed: false # frozen_string_literal: true require "fetch" diff --git a/Library/Homebrew/cmd/--caskroom.rb b/Library/Homebrew/cmd/--caskroom.rb index a0964ad7ce..b53574fd0a 100644 --- a/Library/Homebrew/cmd/--caskroom.rb +++ b/Library/Homebrew/cmd/--caskroom.rb @@ -1,3 +1,4 @@ +# typed: false # frozen_string_literal: true module Homebrew diff --git a/Library/Homebrew/cmd/--cellar.rb b/Library/Homebrew/cmd/--cellar.rb index e300df269e..2af781142c 100644 --- a/Library/Homebrew/cmd/--cellar.rb +++ b/Library/Homebrew/cmd/--cellar.rb @@ -1,3 +1,4 @@ +# typed: false # frozen_string_literal: true require "cli/parser" diff --git a/Library/Homebrew/cmd/--env.rb b/Library/Homebrew/cmd/--env.rb index f25dc0bb06..45b609ca53 100644 --- a/Library/Homebrew/cmd/--env.rb +++ b/Library/Homebrew/cmd/--env.rb @@ -1,3 +1,4 @@ +# typed: false # frozen_string_literal: true require "extend/ENV" diff --git a/Library/Homebrew/cmd/--prefix.rb b/Library/Homebrew/cmd/--prefix.rb index 01fd584ad7..b451a24f7b 100644 --- a/Library/Homebrew/cmd/--prefix.rb +++ b/Library/Homebrew/cmd/--prefix.rb @@ -1,3 +1,4 @@ +# typed: false # frozen_string_literal: true require "cli/parser" diff --git a/Library/Homebrew/cmd/--repository.rb b/Library/Homebrew/cmd/--repository.rb index 211f1c0c2f..042c39b36d 100644 --- a/Library/Homebrew/cmd/--repository.rb +++ b/Library/Homebrew/cmd/--repository.rb @@ -1,3 +1,4 @@ +# typed: false # frozen_string_literal: true require "cli/parser" diff --git a/Library/Homebrew/cmd/--version.rb b/Library/Homebrew/cmd/--version.rb index 037a8cc752..93595a9a3d 100644 --- a/Library/Homebrew/cmd/--version.rb +++ b/Library/Homebrew/cmd/--version.rb @@ -1,3 +1,4 @@ +# typed: false # frozen_string_literal: true require "cli/parser" diff --git a/Library/Homebrew/cmd/analytics.rb b/Library/Homebrew/cmd/analytics.rb index 4c8ef458f7..957b175b85 100644 --- a/Library/Homebrew/cmd/analytics.rb +++ b/Library/Homebrew/cmd/analytics.rb @@ -1,3 +1,4 @@ +# typed: false # frozen_string_literal: true require "cli/parser" diff --git a/Library/Homebrew/cmd/cask.rb b/Library/Homebrew/cmd/cask.rb index 1a51405ecd..cbd284fc2e 100644 --- a/Library/Homebrew/cmd/cask.rb +++ b/Library/Homebrew/cmd/cask.rb @@ -1,3 +1,4 @@ +# typed: false # frozen_string_literal: true require "cask/cmd" diff --git a/Library/Homebrew/cmd/cleanup.rb b/Library/Homebrew/cmd/cleanup.rb index 66fe520342..c0294392d7 100644 --- a/Library/Homebrew/cmd/cleanup.rb +++ b/Library/Homebrew/cmd/cleanup.rb @@ -1,3 +1,4 @@ +# typed: false # frozen_string_literal: true require "cleanup" diff --git a/Library/Homebrew/cmd/commands.rb b/Library/Homebrew/cmd/commands.rb index 29fd687555..cbcb36a495 100644 --- a/Library/Homebrew/cmd/commands.rb +++ b/Library/Homebrew/cmd/commands.rb @@ -1,3 +1,4 @@ +# typed: false # frozen_string_literal: true require "cli/parser" diff --git a/Library/Homebrew/cmd/config.rb b/Library/Homebrew/cmd/config.rb index d0519bf4ac..562d9a9f1c 100644 --- a/Library/Homebrew/cmd/config.rb +++ b/Library/Homebrew/cmd/config.rb @@ -1,3 +1,4 @@ +# typed: false # frozen_string_literal: true require "system_config" diff --git a/Library/Homebrew/cmd/deps.rb b/Library/Homebrew/cmd/deps.rb index 2a99942008..a5f8ade23a 100644 --- a/Library/Homebrew/cmd/deps.rb +++ b/Library/Homebrew/cmd/deps.rb @@ -1,3 +1,4 @@ +# typed: false # frozen_string_literal: true require "formula" diff --git a/Library/Homebrew/cmd/desc.rb b/Library/Homebrew/cmd/desc.rb index 5c1e143d21..e9616f1749 100644 --- a/Library/Homebrew/cmd/desc.rb +++ b/Library/Homebrew/cmd/desc.rb @@ -1,3 +1,4 @@ +# typed: false # frozen_string_literal: true require "descriptions" diff --git a/Library/Homebrew/cmd/doctor.rb b/Library/Homebrew/cmd/doctor.rb index 43eb385c2c..5d10f9f655 100644 --- a/Library/Homebrew/cmd/doctor.rb +++ b/Library/Homebrew/cmd/doctor.rb @@ -1,3 +1,4 @@ +# typed: false # frozen_string_literal: true require "diagnostic" diff --git a/Library/Homebrew/cmd/fetch.rb b/Library/Homebrew/cmd/fetch.rb index 6d306af2b0..9baa5cec4e 100644 --- a/Library/Homebrew/cmd/fetch.rb +++ b/Library/Homebrew/cmd/fetch.rb @@ -1,3 +1,4 @@ +# typed: false # frozen_string_literal: true require "formula" diff --git a/Library/Homebrew/cmd/gist-logs.rb b/Library/Homebrew/cmd/gist-logs.rb index b40b299af2..0947d43039 100644 --- a/Library/Homebrew/cmd/gist-logs.rb +++ b/Library/Homebrew/cmd/gist-logs.rb @@ -1,3 +1,4 @@ +# typed: false # frozen_string_literal: true require "formula" diff --git a/Library/Homebrew/cmd/help.rb b/Library/Homebrew/cmd/help.rb index acd6849ca5..bcad2600c1 100644 --- a/Library/Homebrew/cmd/help.rb +++ b/Library/Homebrew/cmd/help.rb @@ -1,3 +1,4 @@ +# typed: true # frozen_string_literal: true require "help" diff --git a/Library/Homebrew/cmd/home.rb b/Library/Homebrew/cmd/home.rb index 8d3f2d7b70..2c147bb6d6 100644 --- a/Library/Homebrew/cmd/home.rb +++ b/Library/Homebrew/cmd/home.rb @@ -1,3 +1,4 @@ +# typed: false # frozen_string_literal: true require "cli/parser" diff --git a/Library/Homebrew/cmd/info.rb b/Library/Homebrew/cmd/info.rb index 0807ee16be..d715e89a52 100644 --- a/Library/Homebrew/cmd/info.rb +++ b/Library/Homebrew/cmd/info.rb @@ -1,3 +1,4 @@ +# typed: false # frozen_string_literal: true require "missing_formula" diff --git a/Library/Homebrew/cmd/install.rb b/Library/Homebrew/cmd/install.rb index 2b62240616..576c780dc4 100644 --- a/Library/Homebrew/cmd/install.rb +++ b/Library/Homebrew/cmd/install.rb @@ -1,3 +1,4 @@ +# typed: false # frozen_string_literal: true require "cask/config" diff --git a/Library/Homebrew/cmd/leaves.rb b/Library/Homebrew/cmd/leaves.rb index 1768227b79..d84468f5fd 100644 --- a/Library/Homebrew/cmd/leaves.rb +++ b/Library/Homebrew/cmd/leaves.rb @@ -1,3 +1,4 @@ +# typed: false # frozen_string_literal: true require "formula" diff --git a/Library/Homebrew/cmd/link.rb b/Library/Homebrew/cmd/link.rb index 2ec520a894..ad48c17792 100644 --- a/Library/Homebrew/cmd/link.rb +++ b/Library/Homebrew/cmd/link.rb @@ -1,3 +1,4 @@ +# typed: false # frozen_string_literal: true require "ostruct" diff --git a/Library/Homebrew/cmd/list.rb b/Library/Homebrew/cmd/list.rb index 3e55a88337..40f5875f9f 100644 --- a/Library/Homebrew/cmd/list.rb +++ b/Library/Homebrew/cmd/list.rb @@ -1,3 +1,4 @@ +# typed: false # frozen_string_literal: true require "metafiles" diff --git a/Library/Homebrew/cmd/log.rb b/Library/Homebrew/cmd/log.rb index 347467641e..f2d8b1c4e1 100644 --- a/Library/Homebrew/cmd/log.rb +++ b/Library/Homebrew/cmd/log.rb @@ -1,3 +1,4 @@ +# typed: false # frozen_string_literal: true require "formula" diff --git a/Library/Homebrew/cmd/migrate.rb b/Library/Homebrew/cmd/migrate.rb index df28df344a..f400036c78 100644 --- a/Library/Homebrew/cmd/migrate.rb +++ b/Library/Homebrew/cmd/migrate.rb @@ -1,3 +1,4 @@ +# typed: false # frozen_string_literal: true require "migrator" diff --git a/Library/Homebrew/cmd/missing.rb b/Library/Homebrew/cmd/missing.rb index 73909a4229..4345227585 100644 --- a/Library/Homebrew/cmd/missing.rb +++ b/Library/Homebrew/cmd/missing.rb @@ -1,3 +1,4 @@ +# typed: false # frozen_string_literal: true require "formula" diff --git a/Library/Homebrew/cmd/options.rb b/Library/Homebrew/cmd/options.rb index 4c796ecd7a..6ecc3c7fc9 100644 --- a/Library/Homebrew/cmd/options.rb +++ b/Library/Homebrew/cmd/options.rb @@ -1,3 +1,4 @@ +# typed: false # frozen_string_literal: true require "formula" diff --git a/Library/Homebrew/cmd/outdated.rb b/Library/Homebrew/cmd/outdated.rb index e6f148d8fb..d5c5458ad9 100644 --- a/Library/Homebrew/cmd/outdated.rb +++ b/Library/Homebrew/cmd/outdated.rb @@ -1,3 +1,4 @@ +# typed: false # frozen_string_literal: true require "formula" diff --git a/Library/Homebrew/cmd/pin.rb b/Library/Homebrew/cmd/pin.rb index 5fab772549..0ca4458d92 100644 --- a/Library/Homebrew/cmd/pin.rb +++ b/Library/Homebrew/cmd/pin.rb @@ -1,3 +1,4 @@ +# typed: false # frozen_string_literal: true require "formula" diff --git a/Library/Homebrew/cmd/postinstall.rb b/Library/Homebrew/cmd/postinstall.rb index 7b0a7220cf..1b4885a36a 100644 --- a/Library/Homebrew/cmd/postinstall.rb +++ b/Library/Homebrew/cmd/postinstall.rb @@ -1,3 +1,4 @@ +# typed: false # frozen_string_literal: true require "sandbox" diff --git a/Library/Homebrew/cmd/readall.rb b/Library/Homebrew/cmd/readall.rb index a4f1d47a5d..5bfa660543 100644 --- a/Library/Homebrew/cmd/readall.rb +++ b/Library/Homebrew/cmd/readall.rb @@ -1,3 +1,4 @@ +# typed: false # frozen_string_literal: true require "readall" diff --git a/Library/Homebrew/cmd/reinstall.rb b/Library/Homebrew/cmd/reinstall.rb index 1c9d62a08f..93e4c12936 100644 --- a/Library/Homebrew/cmd/reinstall.rb +++ b/Library/Homebrew/cmd/reinstall.rb @@ -1,3 +1,4 @@ +# typed: false # frozen_string_literal: true require "formula_installer" diff --git a/Library/Homebrew/cmd/search.rb b/Library/Homebrew/cmd/search.rb index 2464cd1f44..1bd005c8ef 100644 --- a/Library/Homebrew/cmd/search.rb +++ b/Library/Homebrew/cmd/search.rb @@ -1,3 +1,4 @@ +# typed: false # frozen_string_literal: true require "formula" diff --git a/Library/Homebrew/cmd/switch.rb b/Library/Homebrew/cmd/switch.rb index 33a15d1c1f..94389f2b8e 100644 --- a/Library/Homebrew/cmd/switch.rb +++ b/Library/Homebrew/cmd/switch.rb @@ -1,3 +1,4 @@ +# typed: false # frozen_string_literal: true require "formula" diff --git a/Library/Homebrew/cmd/tap-info.rb b/Library/Homebrew/cmd/tap-info.rb index 56a099d12e..6c01e4172a 100644 --- a/Library/Homebrew/cmd/tap-info.rb +++ b/Library/Homebrew/cmd/tap-info.rb @@ -1,3 +1,4 @@ +# typed: false # frozen_string_literal: true require "cli/parser" diff --git a/Library/Homebrew/cmd/tap.rb b/Library/Homebrew/cmd/tap.rb index 0e2d0cbca9..df6f428ff1 100644 --- a/Library/Homebrew/cmd/tap.rb +++ b/Library/Homebrew/cmd/tap.rb @@ -1,3 +1,4 @@ +# typed: false # frozen_string_literal: true require "cli/parser" diff --git a/Library/Homebrew/cmd/uninstall.rb b/Library/Homebrew/cmd/uninstall.rb index 2cfe6c600b..41a0117c6e 100644 --- a/Library/Homebrew/cmd/uninstall.rb +++ b/Library/Homebrew/cmd/uninstall.rb @@ -1,3 +1,4 @@ +# typed: false # frozen_string_literal: true require "keg" diff --git a/Library/Homebrew/cmd/unlink.rb b/Library/Homebrew/cmd/unlink.rb index b727164827..080bcd1636 100644 --- a/Library/Homebrew/cmd/unlink.rb +++ b/Library/Homebrew/cmd/unlink.rb @@ -1,3 +1,4 @@ +# typed: false # frozen_string_literal: true require "ostruct" diff --git a/Library/Homebrew/cmd/unpin.rb b/Library/Homebrew/cmd/unpin.rb index 8a56ebb6ca..77bf7b1576 100644 --- a/Library/Homebrew/cmd/unpin.rb +++ b/Library/Homebrew/cmd/unpin.rb @@ -1,3 +1,4 @@ +# typed: false # frozen_string_literal: true require "formula" diff --git a/Library/Homebrew/cmd/untap.rb b/Library/Homebrew/cmd/untap.rb index 5209dd26c3..b8f6a93016 100644 --- a/Library/Homebrew/cmd/untap.rb +++ b/Library/Homebrew/cmd/untap.rb @@ -1,3 +1,4 @@ +# typed: false # frozen_string_literal: true require "cli/parser" diff --git a/Library/Homebrew/cmd/update-report.rb b/Library/Homebrew/cmd/update-report.rb index a140e10b27..e0a5877b9a 100644 --- a/Library/Homebrew/cmd/update-report.rb +++ b/Library/Homebrew/cmd/update-report.rb @@ -1,3 +1,4 @@ +# typed: false # frozen_string_literal: true require "formula_versions" diff --git a/Library/Homebrew/cmd/upgrade.rb b/Library/Homebrew/cmd/upgrade.rb index a8fb5fb682..c2ece9f42e 100644 --- a/Library/Homebrew/cmd/upgrade.rb +++ b/Library/Homebrew/cmd/upgrade.rb @@ -1,3 +1,4 @@ +# typed: false # frozen_string_literal: true require "cli/parser" diff --git a/Library/Homebrew/cmd/uses.rb b/Library/Homebrew/cmd/uses.rb index b63dc064bb..8b2f912436 100644 --- a/Library/Homebrew/cmd/uses.rb +++ b/Library/Homebrew/cmd/uses.rb @@ -1,3 +1,4 @@ +# typed: false # frozen_string_literal: true # `brew uses foo bar` returns formulae that use both foo and bar diff --git a/Library/Homebrew/commands.rb b/Library/Homebrew/commands.rb index 4654d4e580..bdfe4a3398 100644 --- a/Library/Homebrew/commands.rb +++ b/Library/Homebrew/commands.rb @@ -1,3 +1,4 @@ +# typed: false # frozen_string_literal: true require "cask/cmd" diff --git a/Library/Homebrew/compat.rb b/Library/Homebrew/compat.rb index d14810694a..04870d0a23 100644 --- a/Library/Homebrew/compat.rb +++ b/Library/Homebrew/compat.rb @@ -1,3 +1,4 @@ +# typed: strict # frozen_string_literal: true require "compat/dependencies_helpers" diff --git a/Library/Homebrew/compat/cli/parser.rb b/Library/Homebrew/compat/cli/parser.rb index ee9e3964ad..c1678d1596 100644 --- a/Library/Homebrew/compat/cli/parser.rb +++ b/Library/Homebrew/compat/cli/parser.rb @@ -1,3 +1,4 @@ +# typed: true # frozen_string_literal: true module Homebrew diff --git a/Library/Homebrew/compat/dependencies_helpers.rb b/Library/Homebrew/compat/dependencies_helpers.rb index 5bb5461c09..21122e4c35 100644 --- a/Library/Homebrew/compat/dependencies_helpers.rb +++ b/Library/Homebrew/compat/dependencies_helpers.rb @@ -1,3 +1,4 @@ +# typed: true # frozen_string_literal: true require "cli/args" diff --git a/Library/Homebrew/compat/extend/nil.rb b/Library/Homebrew/compat/extend/nil.rb index 0e5bb02894..5e521a4367 100644 --- a/Library/Homebrew/compat/extend/nil.rb +++ b/Library/Homebrew/compat/extend/nil.rb @@ -1,3 +1,4 @@ +# typed: true # frozen_string_literal: true class NilClass diff --git a/Library/Homebrew/compat/extend/string.rb b/Library/Homebrew/compat/extend/string.rb index a786035a8e..bdbed56112 100644 --- a/Library/Homebrew/compat/extend/string.rb +++ b/Library/Homebrew/compat/extend/string.rb @@ -1,3 +1,4 @@ +# typed: true # frozen_string_literal: true class String diff --git a/Library/Homebrew/compat/formula.rb b/Library/Homebrew/compat/formula.rb index 82a0faa8a4..0f08e86d9f 100644 --- a/Library/Homebrew/compat/formula.rb +++ b/Library/Homebrew/compat/formula.rb @@ -1,3 +1,4 @@ +# typed: true # frozen_string_literal: true class Formula diff --git a/Library/Homebrew/compat/language/haskell.rb b/Library/Homebrew/compat/language/haskell.rb index b03fb503e1..3619e88c02 100644 --- a/Library/Homebrew/compat/language/haskell.rb +++ b/Library/Homebrew/compat/language/haskell.rb @@ -1,3 +1,4 @@ +# typed: false # frozen_string_literal: true module Language diff --git a/Library/Homebrew/compat/language/java.rb b/Library/Homebrew/compat/language/java.rb index ba6b77fb05..4a23f7a6c2 100644 --- a/Library/Homebrew/compat/language/java.rb +++ b/Library/Homebrew/compat/language/java.rb @@ -1,3 +1,4 @@ +# typed: false # frozen_string_literal: true module Language diff --git a/Library/Homebrew/compat/language/python.rb b/Library/Homebrew/compat/language/python.rb index 8afd2cdcba..abb4673f6b 100644 --- a/Library/Homebrew/compat/language/python.rb +++ b/Library/Homebrew/compat/language/python.rb @@ -1,3 +1,4 @@ +# typed: false # frozen_string_literal: true module Language diff --git a/Library/Homebrew/compat/os/mac.rb b/Library/Homebrew/compat/os/mac.rb index 275d69b308..ab64aeac96 100644 --- a/Library/Homebrew/compat/os/mac.rb +++ b/Library/Homebrew/compat/os/mac.rb @@ -1,3 +1,4 @@ +# typed: true # frozen_string_literal: true module OS diff --git a/Library/Homebrew/compilers.rb b/Library/Homebrew/compilers.rb index ca19f896f5..50ffe89799 100644 --- a/Library/Homebrew/compilers.rb +++ b/Library/Homebrew/compilers.rb @@ -1,3 +1,4 @@ +# typed: true # frozen_string_literal: true # @private diff --git a/Library/Homebrew/config.rb b/Library/Homebrew/config.rb index 6cbc3709e5..feecc8373a 100644 --- a/Library/Homebrew/config.rb +++ b/Library/Homebrew/config.rb @@ -1,3 +1,4 @@ +# typed: true # frozen_string_literal: true raise "HOMEBREW_BREW_FILE was not exported! Please call bin/brew directly!" unless ENV["HOMEBREW_BREW_FILE"] diff --git a/Library/Homebrew/context.rb b/Library/Homebrew/context.rb index 46407ed5bb..60c354af1e 100644 --- a/Library/Homebrew/context.rb +++ b/Library/Homebrew/context.rb @@ -1,3 +1,4 @@ +# typed: true # frozen_string_literal: true require "monitor" diff --git a/Library/Homebrew/cxxstdlib.rb b/Library/Homebrew/cxxstdlib.rb index e2754c51b7..fad219e565 100644 --- a/Library/Homebrew/cxxstdlib.rb +++ b/Library/Homebrew/cxxstdlib.rb @@ -1,3 +1,4 @@ +# typed: true # frozen_string_literal: true require "compilers" diff --git a/Library/Homebrew/debrew.rb b/Library/Homebrew/debrew.rb index 6382cbca0c..54a5b9af03 100644 --- a/Library/Homebrew/debrew.rb +++ b/Library/Homebrew/debrew.rb @@ -1,3 +1,4 @@ +# typed: false # frozen_string_literal: true require "mutex_m" diff --git a/Library/Homebrew/debrew/irb.rb b/Library/Homebrew/debrew/irb.rb index b88aa44c73..6c2d285c13 100644 --- a/Library/Homebrew/debrew/irb.rb +++ b/Library/Homebrew/debrew/irb.rb @@ -1,3 +1,4 @@ +# typed: true # frozen_string_literal: true require "irb" diff --git a/Library/Homebrew/dependable.rb b/Library/Homebrew/dependable.rb index 89dfe083c2..3d036f41d6 100644 --- a/Library/Homebrew/dependable.rb +++ b/Library/Homebrew/dependable.rb @@ -1,3 +1,4 @@ +# typed: true # frozen_string_literal: true require "options" diff --git a/Library/Homebrew/dependencies.rb b/Library/Homebrew/dependencies.rb index 07d79190d5..2764048ce0 100644 --- a/Library/Homebrew/dependencies.rb +++ b/Library/Homebrew/dependencies.rb @@ -1,3 +1,4 @@ +# typed: false # frozen_string_literal: true require "delegate" diff --git a/Library/Homebrew/dependencies_helpers.rb b/Library/Homebrew/dependencies_helpers.rb index 998cef14a2..98507958db 100644 --- a/Library/Homebrew/dependencies_helpers.rb +++ b/Library/Homebrew/dependencies_helpers.rb @@ -1,3 +1,4 @@ +# typed: true # frozen_string_literal: true require "cask_dependent" diff --git a/Library/Homebrew/dependency.rb b/Library/Homebrew/dependency.rb index 29a2284c7f..c98d46b0e6 100644 --- a/Library/Homebrew/dependency.rb +++ b/Library/Homebrew/dependency.rb @@ -1,3 +1,4 @@ +# typed: false # frozen_string_literal: true require "dependable" diff --git a/Library/Homebrew/dependency_collector.rb b/Library/Homebrew/dependency_collector.rb index 7420c2003b..80b8dbab0f 100644 --- a/Library/Homebrew/dependency_collector.rb +++ b/Library/Homebrew/dependency_collector.rb @@ -1,3 +1,4 @@ +# typed: true # frozen_string_literal: true require "dependency" diff --git a/Library/Homebrew/deprecate_disable.rb b/Library/Homebrew/deprecate_disable.rb index 3423f90e30..a1239e0aa8 100644 --- a/Library/Homebrew/deprecate_disable.rb +++ b/Library/Homebrew/deprecate_disable.rb @@ -1,3 +1,4 @@ +# typed: true # frozen_string_literal: true # Helper module for handling disable! and deprecate! diff --git a/Library/Homebrew/description_cache_store.rb b/Library/Homebrew/description_cache_store.rb index c90523abce..4e2d3e7e25 100644 --- a/Library/Homebrew/description_cache_store.rb +++ b/Library/Homebrew/description_cache_store.rb @@ -1,3 +1,4 @@ +# typed: true # frozen_string_literal: true require "set" diff --git a/Library/Homebrew/descriptions.rb b/Library/Homebrew/descriptions.rb index 6ba21bed47..8f980de1c6 100644 --- a/Library/Homebrew/descriptions.rb +++ b/Library/Homebrew/descriptions.rb @@ -1,3 +1,4 @@ +# typed: true # frozen_string_literal: true require "formula" diff --git a/Library/Homebrew/dev-cmd/audit.rb b/Library/Homebrew/dev-cmd/audit.rb index c6c7b47af6..3f72f021c3 100644 --- a/Library/Homebrew/dev-cmd/audit.rb +++ b/Library/Homebrew/dev-cmd/audit.rb @@ -1,3 +1,4 @@ +# typed: false # frozen_string_literal: true require "formula" diff --git a/Library/Homebrew/dev-cmd/bottle.rb b/Library/Homebrew/dev-cmd/bottle.rb index fb282e5f80..e9b9e4b157 100644 --- a/Library/Homebrew/dev-cmd/bottle.rb +++ b/Library/Homebrew/dev-cmd/bottle.rb @@ -1,3 +1,4 @@ +# typed: false # frozen_string_literal: true require "formula" diff --git a/Library/Homebrew/dev-cmd/bump-cask-pr.rb b/Library/Homebrew/dev-cmd/bump-cask-pr.rb index 6c9fd09cee..a9ecedc589 100644 --- a/Library/Homebrew/dev-cmd/bump-cask-pr.rb +++ b/Library/Homebrew/dev-cmd/bump-cask-pr.rb @@ -1,3 +1,4 @@ +# typed: false # frozen_string_literal: true require "cask" diff --git a/Library/Homebrew/dev-cmd/bump-formula-pr.rb b/Library/Homebrew/dev-cmd/bump-formula-pr.rb index e005a7e4c3..dc4bb5a06b 100644 --- a/Library/Homebrew/dev-cmd/bump-formula-pr.rb +++ b/Library/Homebrew/dev-cmd/bump-formula-pr.rb @@ -1,3 +1,4 @@ +# typed: false # frozen_string_literal: true require "formula" diff --git a/Library/Homebrew/dev-cmd/bump-revision.rb b/Library/Homebrew/dev-cmd/bump-revision.rb index d66585b966..aa53caaf47 100644 --- a/Library/Homebrew/dev-cmd/bump-revision.rb +++ b/Library/Homebrew/dev-cmd/bump-revision.rb @@ -1,3 +1,4 @@ +# typed: false # frozen_string_literal: true require "formula" diff --git a/Library/Homebrew/dev-cmd/bump.rb b/Library/Homebrew/dev-cmd/bump.rb index 3df802b351..543d751863 100644 --- a/Library/Homebrew/dev-cmd/bump.rb +++ b/Library/Homebrew/dev-cmd/bump.rb @@ -1,3 +1,4 @@ +# typed: false # frozen_string_literal: true require "cli/parser" diff --git a/Library/Homebrew/dev-cmd/cat.rb b/Library/Homebrew/dev-cmd/cat.rb index 4d7ef44a9b..3415e03e6e 100644 --- a/Library/Homebrew/dev-cmd/cat.rb +++ b/Library/Homebrew/dev-cmd/cat.rb @@ -1,3 +1,4 @@ +# typed: false # frozen_string_literal: true require "cli/parser" diff --git a/Library/Homebrew/dev-cmd/command.rb b/Library/Homebrew/dev-cmd/command.rb index cb928bc577..7c2f6e37ce 100644 --- a/Library/Homebrew/dev-cmd/command.rb +++ b/Library/Homebrew/dev-cmd/command.rb @@ -1,3 +1,4 @@ +# typed: false # frozen_string_literal: true require "commands" diff --git a/Library/Homebrew/dev-cmd/create.rb b/Library/Homebrew/dev-cmd/create.rb index 85b2f857e7..1d45047eff 100644 --- a/Library/Homebrew/dev-cmd/create.rb +++ b/Library/Homebrew/dev-cmd/create.rb @@ -1,3 +1,4 @@ +# typed: false # frozen_string_literal: true require "formula" diff --git a/Library/Homebrew/dev-cmd/diy.rb b/Library/Homebrew/dev-cmd/diy.rb index f58ae2fa9c..6018ae1e65 100644 --- a/Library/Homebrew/dev-cmd/diy.rb +++ b/Library/Homebrew/dev-cmd/diy.rb @@ -1,3 +1,4 @@ +# typed: false # frozen_string_literal: true require "formula" diff --git a/Library/Homebrew/dev-cmd/edit.rb b/Library/Homebrew/dev-cmd/edit.rb index 698a131ba0..9929ce1531 100644 --- a/Library/Homebrew/dev-cmd/edit.rb +++ b/Library/Homebrew/dev-cmd/edit.rb @@ -1,3 +1,4 @@ +# typed: false # frozen_string_literal: true require "formula" diff --git a/Library/Homebrew/dev-cmd/extract.rb b/Library/Homebrew/dev-cmd/extract.rb index f10ede111c..f64973e172 100644 --- a/Library/Homebrew/dev-cmd/extract.rb +++ b/Library/Homebrew/dev-cmd/extract.rb @@ -1,3 +1,4 @@ +# typed: false # frozen_string_literal: true require "cli/parser" diff --git a/Library/Homebrew/dev-cmd/formula.rb b/Library/Homebrew/dev-cmd/formula.rb index ef18d85018..b5e7ccaec1 100644 --- a/Library/Homebrew/dev-cmd/formula.rb +++ b/Library/Homebrew/dev-cmd/formula.rb @@ -1,3 +1,4 @@ +# typed: false # frozen_string_literal: true require "formula" diff --git a/Library/Homebrew/dev-cmd/install-bundler-gems.rb b/Library/Homebrew/dev-cmd/install-bundler-gems.rb index 20ba27eb71..b15b49ee97 100644 --- a/Library/Homebrew/dev-cmd/install-bundler-gems.rb +++ b/Library/Homebrew/dev-cmd/install-bundler-gems.rb @@ -1,3 +1,4 @@ +# typed: false # frozen_string_literal: true require "formula" diff --git a/Library/Homebrew/dev-cmd/irb.rb b/Library/Homebrew/dev-cmd/irb.rb index fb91ecc63a..c5a0a29b8b 100644 --- a/Library/Homebrew/dev-cmd/irb.rb +++ b/Library/Homebrew/dev-cmd/irb.rb @@ -1,3 +1,4 @@ +# typed: false # frozen_string_literal: true require "cli/parser" diff --git a/Library/Homebrew/dev-cmd/linkage.rb b/Library/Homebrew/dev-cmd/linkage.rb index e090e413bd..631e9ec65b 100644 --- a/Library/Homebrew/dev-cmd/linkage.rb +++ b/Library/Homebrew/dev-cmd/linkage.rb @@ -1,3 +1,4 @@ +# typed: false # frozen_string_literal: true require "cache_store" diff --git a/Library/Homebrew/dev-cmd/livecheck.rb b/Library/Homebrew/dev-cmd/livecheck.rb index 89fe49ea29..d177768026 100644 --- a/Library/Homebrew/dev-cmd/livecheck.rb +++ b/Library/Homebrew/dev-cmd/livecheck.rb @@ -1,3 +1,4 @@ +# typed: false # frozen_string_literal: true require "cli/parser" diff --git a/Library/Homebrew/dev-cmd/man.rb b/Library/Homebrew/dev-cmd/man.rb index cea445b3d7..0a17cdc96a 100644 --- a/Library/Homebrew/dev-cmd/man.rb +++ b/Library/Homebrew/dev-cmd/man.rb @@ -1,3 +1,4 @@ +# typed: false # frozen_string_literal: true require "formula" diff --git a/Library/Homebrew/dev-cmd/mirror.rb b/Library/Homebrew/dev-cmd/mirror.rb index c8dfa5df5c..7790c32fed 100644 --- a/Library/Homebrew/dev-cmd/mirror.rb +++ b/Library/Homebrew/dev-cmd/mirror.rb @@ -1,3 +1,4 @@ +# typed: false # frozen_string_literal: true require "bintray" diff --git a/Library/Homebrew/dev-cmd/pr-automerge.rb b/Library/Homebrew/dev-cmd/pr-automerge.rb index 78c4097a12..40c4007f89 100644 --- a/Library/Homebrew/dev-cmd/pr-automerge.rb +++ b/Library/Homebrew/dev-cmd/pr-automerge.rb @@ -1,3 +1,4 @@ +# typed: false # frozen_string_literal: true require "cli/parser" diff --git a/Library/Homebrew/dev-cmd/pr-publish.rb b/Library/Homebrew/dev-cmd/pr-publish.rb index 55d32abf5b..86b675293b 100644 --- a/Library/Homebrew/dev-cmd/pr-publish.rb +++ b/Library/Homebrew/dev-cmd/pr-publish.rb @@ -1,3 +1,4 @@ +# typed: false # frozen_string_literal: true require "cli/parser" diff --git a/Library/Homebrew/dev-cmd/pr-pull.rb b/Library/Homebrew/dev-cmd/pr-pull.rb index 3effc9eaa2..0c4c0d7219 100644 --- a/Library/Homebrew/dev-cmd/pr-pull.rb +++ b/Library/Homebrew/dev-cmd/pr-pull.rb @@ -1,3 +1,4 @@ +# typed: false # frozen_string_literal: true require "download_strategy" diff --git a/Library/Homebrew/dev-cmd/pr-upload.rb b/Library/Homebrew/dev-cmd/pr-upload.rb index 67186565cd..566b4e020f 100644 --- a/Library/Homebrew/dev-cmd/pr-upload.rb +++ b/Library/Homebrew/dev-cmd/pr-upload.rb @@ -1,3 +1,4 @@ +# typed: false # frozen_string_literal: true require "cli/parser" diff --git a/Library/Homebrew/dev-cmd/prof.rb b/Library/Homebrew/dev-cmd/prof.rb index 3abb9b9ab3..2c40d0b7fc 100644 --- a/Library/Homebrew/dev-cmd/prof.rb +++ b/Library/Homebrew/dev-cmd/prof.rb @@ -1,3 +1,4 @@ +# typed: false # frozen_string_literal: true require "cli/parser" diff --git a/Library/Homebrew/dev-cmd/pull.rb b/Library/Homebrew/dev-cmd/pull.rb index 045e1c2418..ce279b1f80 100644 --- a/Library/Homebrew/dev-cmd/pull.rb +++ b/Library/Homebrew/dev-cmd/pull.rb @@ -1,3 +1,4 @@ +# typed: false # frozen_string_literal: true require "net/http" diff --git a/Library/Homebrew/dev-cmd/release-notes.rb b/Library/Homebrew/dev-cmd/release-notes.rb index 76266028c3..7288d85e12 100644 --- a/Library/Homebrew/dev-cmd/release-notes.rb +++ b/Library/Homebrew/dev-cmd/release-notes.rb @@ -1,3 +1,4 @@ +# typed: false # frozen_string_literal: true require "cli/parser" diff --git a/Library/Homebrew/dev-cmd/ruby.rb b/Library/Homebrew/dev-cmd/ruby.rb index 13477d5f6d..4e4f014d08 100644 --- a/Library/Homebrew/dev-cmd/ruby.rb +++ b/Library/Homebrew/dev-cmd/ruby.rb @@ -1,3 +1,4 @@ +# typed: false # frozen_string_literal: true require "cli/parser" diff --git a/Library/Homebrew/dev-cmd/sh.rb b/Library/Homebrew/dev-cmd/sh.rb index 3cfb769484..a1f35adc14 100644 --- a/Library/Homebrew/dev-cmd/sh.rb +++ b/Library/Homebrew/dev-cmd/sh.rb @@ -1,3 +1,4 @@ +# typed: false # frozen_string_literal: true require "extend/ENV" diff --git a/Library/Homebrew/dev-cmd/sponsors.rb b/Library/Homebrew/dev-cmd/sponsors.rb index 568daa9452..0e3bece7d2 100644 --- a/Library/Homebrew/dev-cmd/sponsors.rb +++ b/Library/Homebrew/dev-cmd/sponsors.rb @@ -1,3 +1,4 @@ +# typed: false # frozen_string_literal: true require "cli/parser" diff --git a/Library/Homebrew/dev-cmd/style.rb b/Library/Homebrew/dev-cmd/style.rb index 26da075aa8..8b3d5439a2 100644 --- a/Library/Homebrew/dev-cmd/style.rb +++ b/Library/Homebrew/dev-cmd/style.rb @@ -1,3 +1,4 @@ +# typed: false # frozen_string_literal: true require "json" diff --git a/Library/Homebrew/dev-cmd/tap-new.rb b/Library/Homebrew/dev-cmd/tap-new.rb index 16e46f2784..7b587570be 100644 --- a/Library/Homebrew/dev-cmd/tap-new.rb +++ b/Library/Homebrew/dev-cmd/tap-new.rb @@ -1,3 +1,4 @@ +# typed: false # frozen_string_literal: true require "tap" diff --git a/Library/Homebrew/dev-cmd/test.rb b/Library/Homebrew/dev-cmd/test.rb index 50c052723e..087f5f5510 100644 --- a/Library/Homebrew/dev-cmd/test.rb +++ b/Library/Homebrew/dev-cmd/test.rb @@ -1,3 +1,4 @@ +# typed: false # frozen_string_literal: true require "extend/ENV" diff --git a/Library/Homebrew/dev-cmd/tests.rb b/Library/Homebrew/dev-cmd/tests.rb index 7512cabb88..428177807e 100644 --- a/Library/Homebrew/dev-cmd/tests.rb +++ b/Library/Homebrew/dev-cmd/tests.rb @@ -1,3 +1,4 @@ +# typed: false # frozen_string_literal: true require "cli/parser" diff --git a/Library/Homebrew/dev-cmd/typecheck.rb b/Library/Homebrew/dev-cmd/typecheck.rb index 98825c6698..b4af45936c 100644 --- a/Library/Homebrew/dev-cmd/typecheck.rb +++ b/Library/Homebrew/dev-cmd/typecheck.rb @@ -1,3 +1,4 @@ +# typed: false # frozen_string_literal: true require "cli/parser" diff --git a/Library/Homebrew/dev-cmd/unpack.rb b/Library/Homebrew/dev-cmd/unpack.rb index e4b5dcc486..e88b9ef2cc 100644 --- a/Library/Homebrew/dev-cmd/unpack.rb +++ b/Library/Homebrew/dev-cmd/unpack.rb @@ -1,3 +1,4 @@ +# typed: false # frozen_string_literal: true require "stringio" diff --git a/Library/Homebrew/dev-cmd/update-license-data.rb b/Library/Homebrew/dev-cmd/update-license-data.rb index f22b836239..6d11bca358 100644 --- a/Library/Homebrew/dev-cmd/update-license-data.rb +++ b/Library/Homebrew/dev-cmd/update-license-data.rb @@ -1,3 +1,4 @@ +# typed: false # frozen_string_literal: true require "cli/parser" diff --git a/Library/Homebrew/dev-cmd/update-python-resources.rb b/Library/Homebrew/dev-cmd/update-python-resources.rb index c5ce307a66..e109887bbc 100644 --- a/Library/Homebrew/dev-cmd/update-python-resources.rb +++ b/Library/Homebrew/dev-cmd/update-python-resources.rb @@ -1,3 +1,4 @@ +# typed: false # frozen_string_literal: true require "cli/parser" diff --git a/Library/Homebrew/dev-cmd/update-test.rb b/Library/Homebrew/dev-cmd/update-test.rb index d05f445ea5..c2c6b0f60b 100644 --- a/Library/Homebrew/dev-cmd/update-test.rb +++ b/Library/Homebrew/dev-cmd/update-test.rb @@ -1,3 +1,4 @@ +# typed: false # frozen_string_literal: true require "cli/parser" diff --git a/Library/Homebrew/dev-cmd/vendor-gems.rb b/Library/Homebrew/dev-cmd/vendor-gems.rb index d702e7df69..c336427a40 100644 --- a/Library/Homebrew/dev-cmd/vendor-gems.rb +++ b/Library/Homebrew/dev-cmd/vendor-gems.rb @@ -1,3 +1,4 @@ +# typed: false # frozen_string_literal: true require "formula" diff --git a/Library/Homebrew/development_tools.rb b/Library/Homebrew/development_tools.rb index b64c7b9312..c0e0c33965 100644 --- a/Library/Homebrew/development_tools.rb +++ b/Library/Homebrew/development_tools.rb @@ -1,3 +1,4 @@ +# typed: false # frozen_string_literal: true # @private diff --git a/Library/Homebrew/diagnostic.rb b/Library/Homebrew/diagnostic.rb index 2b9f166981..4e48e08874 100644 --- a/Library/Homebrew/diagnostic.rb +++ b/Library/Homebrew/diagnostic.rb @@ -1,3 +1,4 @@ +# typed: false # frozen_string_literal: true require "keg" diff --git a/Library/Homebrew/download_strategy.rb b/Library/Homebrew/download_strategy.rb index 064c422245..35950630b2 100644 --- a/Library/Homebrew/download_strategy.rb +++ b/Library/Homebrew/download_strategy.rb @@ -1,3 +1,4 @@ +# typed: false # frozen_string_literal: true require "json" diff --git a/Library/Homebrew/env_config.rb b/Library/Homebrew/env_config.rb index 747906d200..278cd0f3e9 100644 --- a/Library/Homebrew/env_config.rb +++ b/Library/Homebrew/env_config.rb @@ -1,3 +1,4 @@ +# typed: true # frozen_string_literal: true module Homebrew diff --git a/Library/Homebrew/exceptions.rb b/Library/Homebrew/exceptions.rb index 35913baf0a..56c3b15875 100644 --- a/Library/Homebrew/exceptions.rb +++ b/Library/Homebrew/exceptions.rb @@ -1,3 +1,4 @@ +# typed: false # frozen_string_literal: true require "shellwords" diff --git a/Library/Homebrew/extend/ENV.rb b/Library/Homebrew/extend/ENV.rb index 9d0835167d..17a6fd1227 100644 --- a/Library/Homebrew/extend/ENV.rb +++ b/Library/Homebrew/extend/ENV.rb @@ -1,3 +1,4 @@ +# typed: false # frozen_string_literal: true require "hardware" diff --git a/Library/Homebrew/extend/ENV/shared.rb b/Library/Homebrew/extend/ENV/shared.rb index e2367a0c11..6ce7864e6a 100644 --- a/Library/Homebrew/extend/ENV/shared.rb +++ b/Library/Homebrew/extend/ENV/shared.rb @@ -1,3 +1,4 @@ +# typed: false # frozen_string_literal: true require "compilers" diff --git a/Library/Homebrew/extend/ENV/std.rb b/Library/Homebrew/extend/ENV/std.rb index 8afbc13974..30dfaeef20 100644 --- a/Library/Homebrew/extend/ENV/std.rb +++ b/Library/Homebrew/extend/ENV/std.rb @@ -1,3 +1,4 @@ +# typed: false # frozen_string_literal: true require "hardware" diff --git a/Library/Homebrew/extend/ENV/super.rb b/Library/Homebrew/extend/ENV/super.rb index 4bbe7e054b..b30a714bf6 100644 --- a/Library/Homebrew/extend/ENV/super.rb +++ b/Library/Homebrew/extend/ENV/super.rb @@ -1,3 +1,4 @@ +# typed: false # frozen_string_literal: true require "extend/ENV/shared" diff --git a/Library/Homebrew/extend/cachable.rb b/Library/Homebrew/extend/cachable.rb index 7545096485..c90e9ca474 100644 --- a/Library/Homebrew/extend/cachable.rb +++ b/Library/Homebrew/extend/cachable.rb @@ -1,3 +1,4 @@ +# typed: true # frozen_string_literal: true module Cachable diff --git a/Library/Homebrew/extend/git_repository.rb b/Library/Homebrew/extend/git_repository.rb index 495b538bf0..56a8ced860 100644 --- a/Library/Homebrew/extend/git_repository.rb +++ b/Library/Homebrew/extend/git_repository.rb @@ -1,3 +1,4 @@ +# typed: false # frozen_string_literal: true require "utils/git" diff --git a/Library/Homebrew/extend/hash_validator.rb b/Library/Homebrew/extend/hash_validator.rb index ff6d7aec57..09cfbe68a3 100644 --- a/Library/Homebrew/extend/hash_validator.rb +++ b/Library/Homebrew/extend/hash_validator.rb @@ -1,3 +1,4 @@ +# typed: false # frozen_string_literal: true module HashValidator diff --git a/Library/Homebrew/extend/io.rb b/Library/Homebrew/extend/io.rb index 21080e1fe7..f5d36dfc84 100644 --- a/Library/Homebrew/extend/io.rb +++ b/Library/Homebrew/extend/io.rb @@ -1,3 +1,4 @@ +# typed: false # frozen_string_literal: true class IO diff --git a/Library/Homebrew/extend/module.rb b/Library/Homebrew/extend/module.rb index 5ba8ae7e0f..173bfcc385 100644 --- a/Library/Homebrew/extend/module.rb +++ b/Library/Homebrew/extend/module.rb @@ -1,3 +1,4 @@ +# typed: false # frozen_string_literal: true class Module diff --git a/Library/Homebrew/extend/optparse.rb b/Library/Homebrew/extend/optparse.rb index d59dcbeca2..fb52d37056 100644 --- a/Library/Homebrew/extend/optparse.rb +++ b/Library/Homebrew/extend/optparse.rb @@ -1,3 +1,4 @@ +# typed: strict # frozen_string_literal: true require "optparse" diff --git a/Library/Homebrew/extend/os/bottles.rb b/Library/Homebrew/extend/os/bottles.rb index b9426c9d5e..653fc2d190 100644 --- a/Library/Homebrew/extend/os/bottles.rb +++ b/Library/Homebrew/extend/os/bottles.rb @@ -1,3 +1,4 @@ +# typed: strict # frozen_string_literal: true require "extend/os/mac/utils/bottles" if OS.mac? diff --git a/Library/Homebrew/extend/os/caveats.rb b/Library/Homebrew/extend/os/caveats.rb index 6dddc2a8f9..75bd37fed5 100644 --- a/Library/Homebrew/extend/os/caveats.rb +++ b/Library/Homebrew/extend/os/caveats.rb @@ -1,3 +1,4 @@ +# typed: strict # frozen_string_literal: true require "extend/os/mac/caveats" if OS.mac? diff --git a/Library/Homebrew/extend/os/cleaner.rb b/Library/Homebrew/extend/os/cleaner.rb index 0fc9822e77..2e318d7d5b 100644 --- a/Library/Homebrew/extend/os/cleaner.rb +++ b/Library/Homebrew/extend/os/cleaner.rb @@ -1,3 +1,4 @@ +# typed: strict # frozen_string_literal: true if OS.mac? diff --git a/Library/Homebrew/extend/os/dependency_collector.rb b/Library/Homebrew/extend/os/dependency_collector.rb index b73abbdcf2..58a3f23994 100644 --- a/Library/Homebrew/extend/os/dependency_collector.rb +++ b/Library/Homebrew/extend/os/dependency_collector.rb @@ -1,3 +1,4 @@ +# typed: strict # frozen_string_literal: true if OS.mac? diff --git a/Library/Homebrew/extend/os/development_tools.rb b/Library/Homebrew/extend/os/development_tools.rb index 61385fc5c9..58e4f580be 100644 --- a/Library/Homebrew/extend/os/development_tools.rb +++ b/Library/Homebrew/extend/os/development_tools.rb @@ -1,3 +1,4 @@ +# typed: strict # frozen_string_literal: true if OS.mac? diff --git a/Library/Homebrew/extend/os/diagnostic.rb b/Library/Homebrew/extend/os/diagnostic.rb index d94fb033bb..066e48505e 100644 --- a/Library/Homebrew/extend/os/diagnostic.rb +++ b/Library/Homebrew/extend/os/diagnostic.rb @@ -1,3 +1,4 @@ +# typed: strict # frozen_string_literal: true if OS.mac? diff --git a/Library/Homebrew/extend/os/extend/ENV/shared.rb b/Library/Homebrew/extend/os/extend/ENV/shared.rb index ee2c60f12e..1109fad7a1 100644 --- a/Library/Homebrew/extend/os/extend/ENV/shared.rb +++ b/Library/Homebrew/extend/os/extend/ENV/shared.rb @@ -1,3 +1,4 @@ +# typed: strict # frozen_string_literal: true if OS.mac? diff --git a/Library/Homebrew/extend/os/extend/ENV/std.rb b/Library/Homebrew/extend/os/extend/ENV/std.rb index 4fa49e135b..8e2b4e3e5f 100644 --- a/Library/Homebrew/extend/os/extend/ENV/std.rb +++ b/Library/Homebrew/extend/os/extend/ENV/std.rb @@ -1,3 +1,4 @@ +# typed: strict # frozen_string_literal: true if OS.mac? diff --git a/Library/Homebrew/extend/os/extend/ENV/super.rb b/Library/Homebrew/extend/os/extend/ENV/super.rb index e7d197638e..e5349464ed 100644 --- a/Library/Homebrew/extend/os/extend/ENV/super.rb +++ b/Library/Homebrew/extend/os/extend/ENV/super.rb @@ -1,3 +1,4 @@ +# typed: strict # frozen_string_literal: true if OS.mac? diff --git a/Library/Homebrew/extend/os/formula.rb b/Library/Homebrew/extend/os/formula.rb index fe06aea8c5..5a520cf8a3 100644 --- a/Library/Homebrew/extend/os/formula.rb +++ b/Library/Homebrew/extend/os/formula.rb @@ -1,3 +1,4 @@ +# typed: strict # frozen_string_literal: true if OS.mac? diff --git a/Library/Homebrew/extend/os/formula_cellar_checks.rb b/Library/Homebrew/extend/os/formula_cellar_checks.rb index 85bf7f77b6..35cac0c902 100644 --- a/Library/Homebrew/extend/os/formula_cellar_checks.rb +++ b/Library/Homebrew/extend/os/formula_cellar_checks.rb @@ -1,3 +1,4 @@ +# typed: strict # frozen_string_literal: true if OS.mac? diff --git a/Library/Homebrew/extend/os/formula_support.rb b/Library/Homebrew/extend/os/formula_support.rb index b092c72bc4..ebefc4b5f4 100644 --- a/Library/Homebrew/extend/os/formula_support.rb +++ b/Library/Homebrew/extend/os/formula_support.rb @@ -1,3 +1,4 @@ +# typed: strict # frozen_string_literal: true require "extend/os/mac/formula_support" if OS.mac? diff --git a/Library/Homebrew/extend/os/hardware.rb b/Library/Homebrew/extend/os/hardware.rb index f23d41e4a1..07a3382eba 100644 --- a/Library/Homebrew/extend/os/hardware.rb +++ b/Library/Homebrew/extend/os/hardware.rb @@ -1,3 +1,4 @@ +# typed: strict # frozen_string_literal: true if OS.mac? diff --git a/Library/Homebrew/extend/os/install.rb b/Library/Homebrew/extend/os/install.rb index 8e93626dbe..0bb64629db 100644 --- a/Library/Homebrew/extend/os/install.rb +++ b/Library/Homebrew/extend/os/install.rb @@ -1,3 +1,4 @@ +# typed: strict # frozen_string_literal: true require "extend/os/linux/install" if OS.linux? diff --git a/Library/Homebrew/extend/os/keg.rb b/Library/Homebrew/extend/os/keg.rb index 7b321b1b97..5e3cdd073a 100644 --- a/Library/Homebrew/extend/os/keg.rb +++ b/Library/Homebrew/extend/os/keg.rb @@ -1,3 +1,4 @@ +# typed: strict # frozen_string_literal: true require "extend/os/mac/keg" if OS.mac? diff --git a/Library/Homebrew/extend/os/keg_relocate.rb b/Library/Homebrew/extend/os/keg_relocate.rb index 2107c83884..6330de5383 100644 --- a/Library/Homebrew/extend/os/keg_relocate.rb +++ b/Library/Homebrew/extend/os/keg_relocate.rb @@ -1,3 +1,4 @@ +# typed: strict # frozen_string_literal: true if OS.mac? diff --git a/Library/Homebrew/extend/os/language/java.rb b/Library/Homebrew/extend/os/language/java.rb index 03e20040e8..3c1c0372b3 100644 --- a/Library/Homebrew/extend/os/language/java.rb +++ b/Library/Homebrew/extend/os/language/java.rb @@ -1,3 +1,4 @@ +# typed: strict # frozen_string_literal: true require "extend/os/mac/language/java" if OS.mac? diff --git a/Library/Homebrew/extend/os/linkage_checker.rb b/Library/Homebrew/extend/os/linkage_checker.rb index 4fe4204f6a..3e8904e5eb 100644 --- a/Library/Homebrew/extend/os/linkage_checker.rb +++ b/Library/Homebrew/extend/os/linkage_checker.rb @@ -1,3 +1,4 @@ +# typed: strict # frozen_string_literal: true require "extend/os/linux/linkage_checker" if OS.linux? diff --git a/Library/Homebrew/extend/os/linux/cleaner.rb b/Library/Homebrew/extend/os/linux/cleaner.rb index 21d646c0b3..230e2a8cac 100644 --- a/Library/Homebrew/extend/os/linux/cleaner.rb +++ b/Library/Homebrew/extend/os/linux/cleaner.rb @@ -1,3 +1,4 @@ +# typed: strict # frozen_string_literal: true class Cleaner diff --git a/Library/Homebrew/extend/os/linux/dependency_collector.rb b/Library/Homebrew/extend/os/linux/dependency_collector.rb index cfad51c4c4..c019b67f09 100644 --- a/Library/Homebrew/extend/os/linux/dependency_collector.rb +++ b/Library/Homebrew/extend/os/linux/dependency_collector.rb @@ -1,3 +1,4 @@ +# typed: true # frozen_string_literal: true class DependencyCollector diff --git a/Library/Homebrew/extend/os/linux/development_tools.rb b/Library/Homebrew/extend/os/linux/development_tools.rb index 590c0e0d77..4e3bc56c9e 100644 --- a/Library/Homebrew/extend/os/linux/development_tools.rb +++ b/Library/Homebrew/extend/os/linux/development_tools.rb @@ -1,3 +1,4 @@ +# typed: true # frozen_string_literal: true class DevelopmentTools diff --git a/Library/Homebrew/extend/os/linux/diagnostic.rb b/Library/Homebrew/extend/os/linux/diagnostic.rb index 355e7e8cd4..30c48e55d7 100644 --- a/Library/Homebrew/extend/os/linux/diagnostic.rb +++ b/Library/Homebrew/extend/os/linux/diagnostic.rb @@ -1,3 +1,4 @@ +# typed: false # frozen_string_literal: true require "tempfile" diff --git a/Library/Homebrew/extend/os/linux/extend/ENV/shared.rb b/Library/Homebrew/extend/os/linux/extend/ENV/shared.rb index b16178cac6..661725a6d2 100644 --- a/Library/Homebrew/extend/os/linux/extend/ENV/shared.rb +++ b/Library/Homebrew/extend/os/linux/extend/ENV/shared.rb @@ -1,3 +1,4 @@ +# typed: true # frozen_string_literal: true module SharedEnvExtension diff --git a/Library/Homebrew/extend/os/linux/extend/ENV/std.rb b/Library/Homebrew/extend/os/linux/extend/ENV/std.rb index ddef1ee7ee..fb287efc33 100644 --- a/Library/Homebrew/extend/os/linux/extend/ENV/std.rb +++ b/Library/Homebrew/extend/os/linux/extend/ENV/std.rb @@ -1,3 +1,4 @@ +# typed: false # frozen_string_literal: true module Stdenv diff --git a/Library/Homebrew/extend/os/linux/extend/ENV/super.rb b/Library/Homebrew/extend/os/linux/extend/ENV/super.rb index b5ba7e450e..a3fda016ef 100644 --- a/Library/Homebrew/extend/os/linux/extend/ENV/super.rb +++ b/Library/Homebrew/extend/os/linux/extend/ENV/super.rb @@ -1,3 +1,4 @@ +# typed: false # frozen_string_literal: true module Superenv diff --git a/Library/Homebrew/extend/os/linux/extend/pathname.rb b/Library/Homebrew/extend/os/linux/extend/pathname.rb index 7b4bd63719..c3bca7f316 100644 --- a/Library/Homebrew/extend/os/linux/extend/pathname.rb +++ b/Library/Homebrew/extend/os/linux/extend/pathname.rb @@ -1,3 +1,4 @@ +# typed: strict # frozen_string_literal: true require "os/linux/elf" diff --git a/Library/Homebrew/extend/os/linux/formula.rb b/Library/Homebrew/extend/os/linux/formula.rb index e1562909aa..6b96d548c0 100644 --- a/Library/Homebrew/extend/os/linux/formula.rb +++ b/Library/Homebrew/extend/os/linux/formula.rb @@ -1,3 +1,4 @@ +# typed: true # frozen_string_literal: true class Formula diff --git a/Library/Homebrew/extend/os/linux/formula_cellar_checks.rb b/Library/Homebrew/extend/os/linux/formula_cellar_checks.rb index 00a14f98b8..fa2e499452 100644 --- a/Library/Homebrew/extend/os/linux/formula_cellar_checks.rb +++ b/Library/Homebrew/extend/os/linux/formula_cellar_checks.rb @@ -1,3 +1,4 @@ +# typed: strict # frozen_string_literal: true module FormulaCellarChecks diff --git a/Library/Homebrew/extend/os/linux/hardware/cpu.rb b/Library/Homebrew/extend/os/linux/hardware/cpu.rb index e51d656280..badc19f507 100644 --- a/Library/Homebrew/extend/os/linux/hardware/cpu.rb +++ b/Library/Homebrew/extend/os/linux/hardware/cpu.rb @@ -1,3 +1,4 @@ +# typed: false # frozen_string_literal: true module Hardware diff --git a/Library/Homebrew/extend/os/linux/install.rb b/Library/Homebrew/extend/os/linux/install.rb index 2184287f53..a905cbca7a 100644 --- a/Library/Homebrew/extend/os/linux/install.rb +++ b/Library/Homebrew/extend/os/linux/install.rb @@ -1,3 +1,4 @@ +# typed: true # frozen_string_literal: true module Homebrew diff --git a/Library/Homebrew/extend/os/linux/keg_relocate.rb b/Library/Homebrew/extend/os/linux/keg_relocate.rb index 5d25692fd1..b4307b71d9 100644 --- a/Library/Homebrew/extend/os/linux/keg_relocate.rb +++ b/Library/Homebrew/extend/os/linux/keg_relocate.rb @@ -1,3 +1,4 @@ +# typed: true # frozen_string_literal: true class Keg diff --git a/Library/Homebrew/extend/os/linux/linkage_checker.rb b/Library/Homebrew/extend/os/linux/linkage_checker.rb index 30e073513c..7720cc0d2b 100644 --- a/Library/Homebrew/extend/os/linux/linkage_checker.rb +++ b/Library/Homebrew/extend/os/linux/linkage_checker.rb @@ -1,3 +1,4 @@ +# typed: true # frozen_string_literal: true class LinkageChecker diff --git a/Library/Homebrew/extend/os/linux/readall.rb b/Library/Homebrew/extend/os/linux/readall.rb index e9278821e0..62c2353250 100644 --- a/Library/Homebrew/extend/os/linux/readall.rb +++ b/Library/Homebrew/extend/os/linux/readall.rb @@ -1,3 +1,4 @@ +# typed: strict # frozen_string_literal: true module Readall diff --git a/Library/Homebrew/extend/os/linux/requirements/java_requirement.rb b/Library/Homebrew/extend/os/linux/requirements/java_requirement.rb index 1b1b6347c6..aa643d9ffe 100644 --- a/Library/Homebrew/extend/os/linux/requirements/java_requirement.rb +++ b/Library/Homebrew/extend/os/linux/requirements/java_requirement.rb @@ -1,3 +1,4 @@ +# typed: false # frozen_string_literal: true require "language/java" diff --git a/Library/Homebrew/extend/os/linux/requirements/osxfuse_requirement.rb b/Library/Homebrew/extend/os/linux/requirements/osxfuse_requirement.rb index 518a7ce645..1a2ed81272 100644 --- a/Library/Homebrew/extend/os/linux/requirements/osxfuse_requirement.rb +++ b/Library/Homebrew/extend/os/linux/requirements/osxfuse_requirement.rb @@ -1,3 +1,4 @@ +# typed: false # frozen_string_literal: true require "requirement" diff --git a/Library/Homebrew/extend/os/linux/resource.rb b/Library/Homebrew/extend/os/linux/resource.rb index a5af426c05..47f3801dd5 100644 --- a/Library/Homebrew/extend/os/linux/resource.rb +++ b/Library/Homebrew/extend/os/linux/resource.rb @@ -1,3 +1,4 @@ +# typed: true # frozen_string_literal: true class Resource diff --git a/Library/Homebrew/extend/os/linux/software_spec.rb b/Library/Homebrew/extend/os/linux/software_spec.rb index 12ed0de45c..7d118fdc39 100644 --- a/Library/Homebrew/extend/os/linux/software_spec.rb +++ b/Library/Homebrew/extend/os/linux/software_spec.rb @@ -1,3 +1,4 @@ +# typed: strict # frozen_string_literal: true class BottleSpecification diff --git a/Library/Homebrew/extend/os/linux/system_config.rb b/Library/Homebrew/extend/os/linux/system_config.rb index 0f76a99d2b..154c805a1a 100644 --- a/Library/Homebrew/extend/os/linux/system_config.rb +++ b/Library/Homebrew/extend/os/linux/system_config.rb @@ -1,3 +1,4 @@ +# typed: true # frozen_string_literal: true require "formula" diff --git a/Library/Homebrew/extend/os/linux/tap.rb b/Library/Homebrew/extend/os/linux/tap.rb index 4a3ab97092..9f214a40ba 100644 --- a/Library/Homebrew/extend/os/linux/tap.rb +++ b/Library/Homebrew/extend/os/linux/tap.rb @@ -1,3 +1,4 @@ +# typed: true # frozen_string_literal: true class CoreTap < Tap diff --git a/Library/Homebrew/extend/os/linux/utils/analytics.rb b/Library/Homebrew/extend/os/linux/utils/analytics.rb index 00058e64d3..b4aa28f00d 100644 --- a/Library/Homebrew/extend/os/linux/utils/analytics.rb +++ b/Library/Homebrew/extend/os/linux/utils/analytics.rb @@ -1,3 +1,4 @@ +# typed: strict # frozen_string_literal: true module Utils diff --git a/Library/Homebrew/extend/os/mac/caveats.rb b/Library/Homebrew/extend/os/mac/caveats.rb index dae8d90b07..6de89386a5 100644 --- a/Library/Homebrew/extend/os/mac/caveats.rb +++ b/Library/Homebrew/extend/os/mac/caveats.rb @@ -1,3 +1,4 @@ +# typed: true # frozen_string_literal: true class Caveats diff --git a/Library/Homebrew/extend/os/mac/cleaner.rb b/Library/Homebrew/extend/os/mac/cleaner.rb index 35b6e374cf..9f2425ca28 100644 --- a/Library/Homebrew/extend/os/mac/cleaner.rb +++ b/Library/Homebrew/extend/os/mac/cleaner.rb @@ -1,3 +1,4 @@ +# typed: true # frozen_string_literal: true class Cleaner diff --git a/Library/Homebrew/extend/os/mac/dependency_collector.rb b/Library/Homebrew/extend/os/mac/dependency_collector.rb index 5db3b5767a..5efcd96d81 100644 --- a/Library/Homebrew/extend/os/mac/dependency_collector.rb +++ b/Library/Homebrew/extend/os/mac/dependency_collector.rb @@ -1,3 +1,4 @@ +# typed: true # frozen_string_literal: true class DependencyCollector diff --git a/Library/Homebrew/extend/os/mac/development_tools.rb b/Library/Homebrew/extend/os/mac/development_tools.rb index 787196472a..15ea337b26 100644 --- a/Library/Homebrew/extend/os/mac/development_tools.rb +++ b/Library/Homebrew/extend/os/mac/development_tools.rb @@ -1,3 +1,4 @@ +# typed: true # frozen_string_literal: true require "os/mac/xcode" diff --git a/Library/Homebrew/extend/os/mac/diagnostic.rb b/Library/Homebrew/extend/os/mac/diagnostic.rb index de7222f907..7b05358af4 100644 --- a/Library/Homebrew/extend/os/mac/diagnostic.rb +++ b/Library/Homebrew/extend/os/mac/diagnostic.rb @@ -1,3 +1,4 @@ +# typed: false # frozen_string_literal: true module Homebrew diff --git a/Library/Homebrew/extend/os/mac/extend/ENV/shared.rb b/Library/Homebrew/extend/os/mac/extend/ENV/shared.rb index 476d30f752..633768d805 100644 --- a/Library/Homebrew/extend/os/mac/extend/ENV/shared.rb +++ b/Library/Homebrew/extend/os/mac/extend/ENV/shared.rb @@ -1,3 +1,4 @@ +# typed: true # frozen_string_literal: true module SharedEnvExtension diff --git a/Library/Homebrew/extend/os/mac/extend/ENV/std.rb b/Library/Homebrew/extend/os/mac/extend/ENV/std.rb index e6829a57ae..eceb486719 100644 --- a/Library/Homebrew/extend/os/mac/extend/ENV/std.rb +++ b/Library/Homebrew/extend/os/mac/extend/ENV/std.rb @@ -1,3 +1,4 @@ +# typed: false # frozen_string_literal: true module Stdenv diff --git a/Library/Homebrew/extend/os/mac/extend/ENV/super.rb b/Library/Homebrew/extend/os/mac/extend/ENV/super.rb index 6bc4edcc4b..999c916b70 100644 --- a/Library/Homebrew/extend/os/mac/extend/ENV/super.rb +++ b/Library/Homebrew/extend/os/mac/extend/ENV/super.rb @@ -1,3 +1,4 @@ +# typed: false # frozen_string_literal: true module Superenv diff --git a/Library/Homebrew/extend/os/mac/extend/pathname.rb b/Library/Homebrew/extend/os/mac/extend/pathname.rb index 9289aa73b3..b208bf5b69 100644 --- a/Library/Homebrew/extend/os/mac/extend/pathname.rb +++ b/Library/Homebrew/extend/os/mac/extend/pathname.rb @@ -1,3 +1,4 @@ +# typed: strict # frozen_string_literal: true require "os/mac/mach" diff --git a/Library/Homebrew/extend/os/mac/formula.rb b/Library/Homebrew/extend/os/mac/formula.rb index dba823599d..b9fbaf8242 100644 --- a/Library/Homebrew/extend/os/mac/formula.rb +++ b/Library/Homebrew/extend/os/mac/formula.rb @@ -1,3 +1,4 @@ +# typed: true # frozen_string_literal: true class Formula diff --git a/Library/Homebrew/extend/os/mac/formula_cellar_checks.rb b/Library/Homebrew/extend/os/mac/formula_cellar_checks.rb index 60c9649408..1bb8f462eb 100644 --- a/Library/Homebrew/extend/os/mac/formula_cellar_checks.rb +++ b/Library/Homebrew/extend/os/mac/formula_cellar_checks.rb @@ -1,3 +1,4 @@ +# typed: false # frozen_string_literal: true require "cache_store" diff --git a/Library/Homebrew/extend/os/mac/formula_support.rb b/Library/Homebrew/extend/os/mac/formula_support.rb index 0635fce91b..a70d6f3bc8 100644 --- a/Library/Homebrew/extend/os/mac/formula_support.rb +++ b/Library/Homebrew/extend/os/mac/formula_support.rb @@ -1,3 +1,4 @@ +# typed: strict # frozen_string_literal: true class KegOnlyReason diff --git a/Library/Homebrew/extend/os/mac/hardware.rb b/Library/Homebrew/extend/os/mac/hardware.rb index c1edebfa6d..ab53b4fd48 100644 --- a/Library/Homebrew/extend/os/mac/hardware.rb +++ b/Library/Homebrew/extend/os/mac/hardware.rb @@ -1,3 +1,4 @@ +# typed: strict # frozen_string_literal: true module Hardware diff --git a/Library/Homebrew/extend/os/mac/hardware/cpu.rb b/Library/Homebrew/extend/os/mac/hardware/cpu.rb index 308e94ea0a..0038423b36 100644 --- a/Library/Homebrew/extend/os/mac/hardware/cpu.rb +++ b/Library/Homebrew/extend/os/mac/hardware/cpu.rb @@ -1,3 +1,4 @@ +# typed: false # frozen_string_literal: true require "macho" diff --git a/Library/Homebrew/extend/os/mac/keg.rb b/Library/Homebrew/extend/os/mac/keg.rb index 5fb0fbe0e6..504b5c134f 100644 --- a/Library/Homebrew/extend/os/mac/keg.rb +++ b/Library/Homebrew/extend/os/mac/keg.rb @@ -1,3 +1,4 @@ +# typed: true # frozen_string_literal: true class Keg diff --git a/Library/Homebrew/extend/os/mac/keg_relocate.rb b/Library/Homebrew/extend/os/mac/keg_relocate.rb index d9a88c6584..b55deed223 100644 --- a/Library/Homebrew/extend/os/mac/keg_relocate.rb +++ b/Library/Homebrew/extend/os/mac/keg_relocate.rb @@ -1,3 +1,4 @@ +# typed: true # frozen_string_literal: true class Keg diff --git a/Library/Homebrew/extend/os/mac/language/java.rb b/Library/Homebrew/extend/os/mac/language/java.rb index a92b386ece..0096bb9c91 100644 --- a/Library/Homebrew/extend/os/mac/language/java.rb +++ b/Library/Homebrew/extend/os/mac/language/java.rb @@ -1,3 +1,4 @@ +# typed: true # frozen_string_literal: true module Language diff --git a/Library/Homebrew/extend/os/mac/missing_formula.rb b/Library/Homebrew/extend/os/mac/missing_formula.rb index cceda91550..cd9ce82328 100644 --- a/Library/Homebrew/extend/os/mac/missing_formula.rb +++ b/Library/Homebrew/extend/os/mac/missing_formula.rb @@ -1,3 +1,4 @@ +# typed: strict # frozen_string_literal: true require "cask/cmd/abstract_command" diff --git a/Library/Homebrew/extend/os/mac/requirements/java_requirement.rb b/Library/Homebrew/extend/os/mac/requirements/java_requirement.rb index f8130f7589..4390f50675 100644 --- a/Library/Homebrew/extend/os/mac/requirements/java_requirement.rb +++ b/Library/Homebrew/extend/os/mac/requirements/java_requirement.rb @@ -1,3 +1,4 @@ +# typed: false # frozen_string_literal: true class JavaRequirement < Requirement diff --git a/Library/Homebrew/extend/os/mac/requirements/osxfuse_requirement.rb b/Library/Homebrew/extend/os/mac/requirements/osxfuse_requirement.rb index bcdfabdf78..bdf2d9e933 100644 --- a/Library/Homebrew/extend/os/mac/requirements/osxfuse_requirement.rb +++ b/Library/Homebrew/extend/os/mac/requirements/osxfuse_requirement.rb @@ -1,3 +1,4 @@ +# typed: false # frozen_string_literal: true require "requirement" diff --git a/Library/Homebrew/extend/os/mac/requirements/x11_requirement.rb b/Library/Homebrew/extend/os/mac/requirements/x11_requirement.rb index 5c0f5cb9c5..647c485b73 100644 --- a/Library/Homebrew/extend/os/mac/requirements/x11_requirement.rb +++ b/Library/Homebrew/extend/os/mac/requirements/x11_requirement.rb @@ -1,3 +1,4 @@ +# typed: false # frozen_string_literal: true require "requirement" diff --git a/Library/Homebrew/extend/os/mac/resource.rb b/Library/Homebrew/extend/os/mac/resource.rb index 2c53218564..2947a85a3a 100644 --- a/Library/Homebrew/extend/os/mac/resource.rb +++ b/Library/Homebrew/extend/os/mac/resource.rb @@ -1,3 +1,4 @@ +# typed: true # frozen_string_literal: true class Resource diff --git a/Library/Homebrew/extend/os/mac/search.rb b/Library/Homebrew/extend/os/mac/search.rb index 82cf08b5c1..f25e05c43d 100644 --- a/Library/Homebrew/extend/os/mac/search.rb +++ b/Library/Homebrew/extend/os/mac/search.rb @@ -1,3 +1,4 @@ +# typed: false # frozen_string_literal: true require "cask/cask" diff --git a/Library/Homebrew/extend/os/mac/software_spec.rb b/Library/Homebrew/extend/os/mac/software_spec.rb index e3c1de519f..221c0c4ca6 100644 --- a/Library/Homebrew/extend/os/mac/software_spec.rb +++ b/Library/Homebrew/extend/os/mac/software_spec.rb @@ -1,3 +1,4 @@ +# typed: false # frozen_string_literal: true class SoftwareSpec diff --git a/Library/Homebrew/extend/os/mac/system_config.rb b/Library/Homebrew/extend/os/mac/system_config.rb index da6698fc53..3ea619e2db 100644 --- a/Library/Homebrew/extend/os/mac/system_config.rb +++ b/Library/Homebrew/extend/os/mac/system_config.rb @@ -1,3 +1,4 @@ +# typed: true # frozen_string_literal: true module SystemConfig diff --git a/Library/Homebrew/extend/os/mac/unpack_strategy/zip.rb b/Library/Homebrew/extend/os/mac/unpack_strategy/zip.rb index fa619816d9..d90cdb21f5 100644 --- a/Library/Homebrew/extend/os/mac/unpack_strategy/zip.rb +++ b/Library/Homebrew/extend/os/mac/unpack_strategy/zip.rb @@ -1,3 +1,4 @@ +# typed: false # frozen_string_literal: true module UnpackStrategy diff --git a/Library/Homebrew/extend/os/mac/utils/analytics.rb b/Library/Homebrew/extend/os/mac/utils/analytics.rb index 3e624df8ae..ceba5b2649 100644 --- a/Library/Homebrew/extend/os/mac/utils/analytics.rb +++ b/Library/Homebrew/extend/os/mac/utils/analytics.rb @@ -1,3 +1,4 @@ +# typed: strict # frozen_string_literal: true module Utils diff --git a/Library/Homebrew/extend/os/mac/utils/bottles.rb b/Library/Homebrew/extend/os/mac/utils/bottles.rb index 1b9303918f..3986d0b940 100644 --- a/Library/Homebrew/extend/os/mac/utils/bottles.rb +++ b/Library/Homebrew/extend/os/mac/utils/bottles.rb @@ -1,3 +1,4 @@ +# typed: true # frozen_string_literal: true module Utils diff --git a/Library/Homebrew/extend/os/missing_formula.rb b/Library/Homebrew/extend/os/missing_formula.rb index b77e642741..4eb794a1bb 100644 --- a/Library/Homebrew/extend/os/missing_formula.rb +++ b/Library/Homebrew/extend/os/missing_formula.rb @@ -1,3 +1,4 @@ +# typed: strict # frozen_string_literal: true require "extend/os/mac/missing_formula" if OS.mac? diff --git a/Library/Homebrew/extend/os/pathname.rb b/Library/Homebrew/extend/os/pathname.rb index 58e109e3f0..131f49e6a8 100644 --- a/Library/Homebrew/extend/os/pathname.rb +++ b/Library/Homebrew/extend/os/pathname.rb @@ -1,3 +1,4 @@ +# typed: strict # frozen_string_literal: true if OS.mac? diff --git a/Library/Homebrew/extend/os/readall.rb b/Library/Homebrew/extend/os/readall.rb index 6ddbc3e6d7..af407f1c44 100644 --- a/Library/Homebrew/extend/os/readall.rb +++ b/Library/Homebrew/extend/os/readall.rb @@ -1,3 +1,4 @@ +# typed: strict # frozen_string_literal: true require "extend/os/linux/readall" if OS.linux? diff --git a/Library/Homebrew/extend/os/requirements/java_requirement.rb b/Library/Homebrew/extend/os/requirements/java_requirement.rb index 85c36f1aec..cd6faa271b 100644 --- a/Library/Homebrew/extend/os/requirements/java_requirement.rb +++ b/Library/Homebrew/extend/os/requirements/java_requirement.rb @@ -1,3 +1,4 @@ +# typed: strict # frozen_string_literal: true if OS.mac? diff --git a/Library/Homebrew/extend/os/requirements/osxfuse_requirement.rb b/Library/Homebrew/extend/os/requirements/osxfuse_requirement.rb index eab9176f3d..318299549f 100644 --- a/Library/Homebrew/extend/os/requirements/osxfuse_requirement.rb +++ b/Library/Homebrew/extend/os/requirements/osxfuse_requirement.rb @@ -1,3 +1,4 @@ +# typed: strict # frozen_string_literal: true if OS.mac? diff --git a/Library/Homebrew/extend/os/requirements/x11_requirement.rb b/Library/Homebrew/extend/os/requirements/x11_requirement.rb index 5389f38a19..df7ae3481c 100644 --- a/Library/Homebrew/extend/os/requirements/x11_requirement.rb +++ b/Library/Homebrew/extend/os/requirements/x11_requirement.rb @@ -1,3 +1,4 @@ +# typed: strict # frozen_string_literal: true require "extend/os/mac/requirements/x11_requirement" if OS.mac? diff --git a/Library/Homebrew/extend/os/resource.rb b/Library/Homebrew/extend/os/resource.rb index 9ad337890c..aa6d675154 100644 --- a/Library/Homebrew/extend/os/resource.rb +++ b/Library/Homebrew/extend/os/resource.rb @@ -1,3 +1,4 @@ +# typed: strict # frozen_string_literal: true if OS.mac? diff --git a/Library/Homebrew/extend/os/search.rb b/Library/Homebrew/extend/os/search.rb index c6909a0fa0..96e7ff28ec 100644 --- a/Library/Homebrew/extend/os/search.rb +++ b/Library/Homebrew/extend/os/search.rb @@ -1,3 +1,4 @@ +# typed: strict # frozen_string_literal: true require "extend/os/mac/search" if OS.mac? diff --git a/Library/Homebrew/extend/os/software_spec.rb b/Library/Homebrew/extend/os/software_spec.rb index b4aea11442..15da2d0e5a 100644 --- a/Library/Homebrew/extend/os/software_spec.rb +++ b/Library/Homebrew/extend/os/software_spec.rb @@ -1,3 +1,4 @@ +# typed: strict # frozen_string_literal: true if OS.linux? diff --git a/Library/Homebrew/extend/os/system_config.rb b/Library/Homebrew/extend/os/system_config.rb index 9c06e9a02c..71298e98e7 100644 --- a/Library/Homebrew/extend/os/system_config.rb +++ b/Library/Homebrew/extend/os/system_config.rb @@ -1,3 +1,4 @@ +# typed: strict # frozen_string_literal: true if OS.mac? diff --git a/Library/Homebrew/extend/os/tap.rb b/Library/Homebrew/extend/os/tap.rb index 82e0a09f66..7ad0ad531e 100644 --- a/Library/Homebrew/extend/os/tap.rb +++ b/Library/Homebrew/extend/os/tap.rb @@ -1,3 +1,4 @@ +# typed: strict # frozen_string_literal: true require "extend/os/linux/tap" if OS.linux? diff --git a/Library/Homebrew/extend/os/utils/analytics.rb b/Library/Homebrew/extend/os/utils/analytics.rb index 8598bbf462..f0042d78c2 100644 --- a/Library/Homebrew/extend/os/utils/analytics.rb +++ b/Library/Homebrew/extend/os/utils/analytics.rb @@ -1,3 +1,4 @@ +# typed: strict # frozen_string_literal: true require "extend/os/linux/utils/analytics" if OS.linux? diff --git a/Library/Homebrew/extend/pathname.rb b/Library/Homebrew/extend/pathname.rb index fb3ddd9659..9d45d5f5ef 100644 --- a/Library/Homebrew/extend/pathname.rb +++ b/Library/Homebrew/extend/pathname.rb @@ -1,3 +1,4 @@ +# typed: false # frozen_string_literal: true require "resource" diff --git a/Library/Homebrew/extend/predicable.rb b/Library/Homebrew/extend/predicable.rb index dba7f17b5f..914244d5d3 100644 --- a/Library/Homebrew/extend/predicable.rb +++ b/Library/Homebrew/extend/predicable.rb @@ -1,3 +1,4 @@ +# typed: false # frozen_string_literal: true module Predicable diff --git a/Library/Homebrew/extend/string.rb b/Library/Homebrew/extend/string.rb index 32d403e21d..d68d678970 100644 --- a/Library/Homebrew/extend/string.rb +++ b/Library/Homebrew/extend/string.rb @@ -1,3 +1,4 @@ +# typed: false # frozen_string_literal: true require "active_support/core_ext/object/blank" diff --git a/Library/Homebrew/fetch.rb b/Library/Homebrew/fetch.rb index 717537cbc1..6297b5d628 100644 --- a/Library/Homebrew/fetch.rb +++ b/Library/Homebrew/fetch.rb @@ -1,3 +1,4 @@ +# typed: true # frozen_string_literal: true module Homebrew diff --git a/Library/Homebrew/formula.rb b/Library/Homebrew/formula.rb index 1353104766..53ec1ee33b 100644 --- a/Library/Homebrew/formula.rb +++ b/Library/Homebrew/formula.rb @@ -1,3 +1,4 @@ +# typed: false # frozen_string_literal: true require "cache_store" diff --git a/Library/Homebrew/formula_assertions.rb b/Library/Homebrew/formula_assertions.rb index fdcfa86573..05948f3a2b 100644 --- a/Library/Homebrew/formula_assertions.rb +++ b/Library/Homebrew/formula_assertions.rb @@ -1,3 +1,4 @@ +# typed: false # frozen_string_literal: true module Homebrew diff --git a/Library/Homebrew/formula_cellar_checks.rb b/Library/Homebrew/formula_cellar_checks.rb index 7c71590d28..7d7a31b179 100644 --- a/Library/Homebrew/formula_cellar_checks.rb +++ b/Library/Homebrew/formula_cellar_checks.rb @@ -1,3 +1,4 @@ +# typed: false # frozen_string_literal: true require "utils/shell" diff --git a/Library/Homebrew/formula_creator.rb b/Library/Homebrew/formula_creator.rb index 75ddba1483..f30b7082ff 100644 --- a/Library/Homebrew/formula_creator.rb +++ b/Library/Homebrew/formula_creator.rb @@ -1,3 +1,4 @@ +# typed: true # frozen_string_literal: true require "digest" diff --git a/Library/Homebrew/formula_free_port.rb b/Library/Homebrew/formula_free_port.rb index 2067ca287f..91e94da609 100644 --- a/Library/Homebrew/formula_free_port.rb +++ b/Library/Homebrew/formula_free_port.rb @@ -1,3 +1,4 @@ +# typed: true # frozen_string_literal: true require "socket" diff --git a/Library/Homebrew/formula_info.rb b/Library/Homebrew/formula_info.rb index 9165643948..367f7e6947 100644 --- a/Library/Homebrew/formula_info.rb +++ b/Library/Homebrew/formula_info.rb @@ -1,3 +1,4 @@ +# typed: true # frozen_string_literal: true # Formula information drawn from an external `brew info --json` call. diff --git a/Library/Homebrew/formula_installer.rb b/Library/Homebrew/formula_installer.rb index b6c38e128b..1ff0ab1712 100644 --- a/Library/Homebrew/formula_installer.rb +++ b/Library/Homebrew/formula_installer.rb @@ -1,3 +1,4 @@ +# typed: false # frozen_string_literal: true require "cxxstdlib" diff --git a/Library/Homebrew/formula_pin.rb b/Library/Homebrew/formula_pin.rb index 613a51fc81..0a0d097c25 100644 --- a/Library/Homebrew/formula_pin.rb +++ b/Library/Homebrew/formula_pin.rb @@ -1,3 +1,4 @@ +# typed: true # frozen_string_literal: true require "keg" diff --git a/Library/Homebrew/formula_support.rb b/Library/Homebrew/formula_support.rb index 521621711e..67569587f5 100644 --- a/Library/Homebrew/formula_support.rb +++ b/Library/Homebrew/formula_support.rb @@ -1,3 +1,4 @@ +# typed: true # frozen_string_literal: true # Used to track formulae that cannot be installed at the same time. diff --git a/Library/Homebrew/formula_versions.rb b/Library/Homebrew/formula_versions.rb index ecd67d5270..c33726de0e 100644 --- a/Library/Homebrew/formula_versions.rb +++ b/Library/Homebrew/formula_versions.rb @@ -1,3 +1,4 @@ +# typed: true # frozen_string_literal: true require "formula" diff --git a/Library/Homebrew/formulary.rb b/Library/Homebrew/formulary.rb index 4bc1e446ca..2421b1d1bb 100644 --- a/Library/Homebrew/formulary.rb +++ b/Library/Homebrew/formulary.rb @@ -1,3 +1,4 @@ +# typed: false # frozen_string_literal: true require "digest/md5" diff --git a/Library/Homebrew/global.rb b/Library/Homebrew/global.rb index ac124aa09c..667f765433 100644 --- a/Library/Homebrew/global.rb +++ b/Library/Homebrew/global.rb @@ -1,3 +1,4 @@ +# typed: false # frozen_string_literal: true require "English" diff --git a/Library/Homebrew/hardware.rb b/Library/Homebrew/hardware.rb index ea63270b27..05b5d08ad9 100644 --- a/Library/Homebrew/hardware.rb +++ b/Library/Homebrew/hardware.rb @@ -1,3 +1,4 @@ +# typed: true # frozen_string_literal: true require "utils/popen" diff --git a/Library/Homebrew/help.rb b/Library/Homebrew/help.rb index 8b577b8c82..66e38c3576 100644 --- a/Library/Homebrew/help.rb +++ b/Library/Homebrew/help.rb @@ -1,3 +1,4 @@ +# typed: true # frozen_string_literal: true require "cli/parser" diff --git a/Library/Homebrew/install.rb b/Library/Homebrew/install.rb index 17d406957b..f00d3fc402 100644 --- a/Library/Homebrew/install.rb +++ b/Library/Homebrew/install.rb @@ -1,3 +1,4 @@ +# typed: true # frozen_string_literal: true require "diagnostic" diff --git a/Library/Homebrew/install_renamed.rb b/Library/Homebrew/install_renamed.rb index ac891273a0..6018da8102 100644 --- a/Library/Homebrew/install_renamed.rb +++ b/Library/Homebrew/install_renamed.rb @@ -1,3 +1,4 @@ +# typed: true # frozen_string_literal: true # Helper module for installing default files. diff --git a/Library/Homebrew/keg.rb b/Library/Homebrew/keg.rb index 8c8140190c..902ed12f38 100644 --- a/Library/Homebrew/keg.rb +++ b/Library/Homebrew/keg.rb @@ -1,3 +1,4 @@ +# typed: false # frozen_string_literal: true require "keg_relocate" diff --git a/Library/Homebrew/keg_relocate.rb b/Library/Homebrew/keg_relocate.rb index 1bdf422dca..b26b5a7709 100644 --- a/Library/Homebrew/keg_relocate.rb +++ b/Library/Homebrew/keg_relocate.rb @@ -1,3 +1,4 @@ +# typed: false # frozen_string_literal: true class Keg diff --git a/Library/Homebrew/language/go.rb b/Library/Homebrew/language/go.rb index 2b4a0399d8..22f851472b 100644 --- a/Library/Homebrew/language/go.rb +++ b/Library/Homebrew/language/go.rb @@ -1,3 +1,4 @@ +# typed: true # frozen_string_literal: true require "resource" diff --git a/Library/Homebrew/language/haskell.rb b/Library/Homebrew/language/haskell.rb index 964fa4f773..ad959e7e7b 100644 --- a/Library/Homebrew/language/haskell.rb +++ b/Library/Homebrew/language/haskell.rb @@ -1,3 +1,4 @@ +# typed: strict # frozen_string_literal: true require "compat/language/haskell" diff --git a/Library/Homebrew/language/java.rb b/Library/Homebrew/language/java.rb index fb9b7b0119..a67d52b10e 100644 --- a/Library/Homebrew/language/java.rb +++ b/Library/Homebrew/language/java.rb @@ -1,3 +1,4 @@ +# typed: true # frozen_string_literal: true module Language diff --git a/Library/Homebrew/language/node.rb b/Library/Homebrew/language/node.rb index 4f53e485f8..fe16e5a141 100644 --- a/Library/Homebrew/language/node.rb +++ b/Library/Homebrew/language/node.rb @@ -1,3 +1,4 @@ +# typed: false # frozen_string_literal: true module Language diff --git a/Library/Homebrew/language/perl.rb b/Library/Homebrew/language/perl.rb index c81ef65c51..3714b71407 100644 --- a/Library/Homebrew/language/perl.rb +++ b/Library/Homebrew/language/perl.rb @@ -1,3 +1,4 @@ +# typed: true # frozen_string_literal: true module Language diff --git a/Library/Homebrew/language/python.rb b/Library/Homebrew/language/python.rb index d24e7c4ba7..8a82706e19 100644 --- a/Library/Homebrew/language/python.rb +++ b/Library/Homebrew/language/python.rb @@ -1,3 +1,4 @@ +# typed: false # frozen_string_literal: true module Language diff --git a/Library/Homebrew/lazy_object.rb b/Library/Homebrew/lazy_object.rb index 8ea44995eb..ace7e5d9c4 100644 --- a/Library/Homebrew/lazy_object.rb +++ b/Library/Homebrew/lazy_object.rb @@ -1,3 +1,4 @@ +# typed: true # frozen_string_literal: true # An object which lazily evaluates its inner block only once a method is called on it. diff --git a/Library/Homebrew/linkage_cache_store.rb b/Library/Homebrew/linkage_cache_store.rb index 6ab77998ed..90f2bccdb1 100644 --- a/Library/Homebrew/linkage_cache_store.rb +++ b/Library/Homebrew/linkage_cache_store.rb @@ -1,3 +1,4 @@ +# typed: true # frozen_string_literal: true require "set" diff --git a/Library/Homebrew/linkage_checker.rb b/Library/Homebrew/linkage_checker.rb index 9948086f22..74bcc6b2ab 100644 --- a/Library/Homebrew/linkage_checker.rb +++ b/Library/Homebrew/linkage_checker.rb @@ -1,3 +1,4 @@ +# typed: true # frozen_string_literal: true require "keg" diff --git a/Library/Homebrew/livecheck.rb b/Library/Homebrew/livecheck.rb index c72818dc38..df31c5f455 100644 --- a/Library/Homebrew/livecheck.rb +++ b/Library/Homebrew/livecheck.rb @@ -1,3 +1,4 @@ +# typed: true # frozen_string_literal: true # The `Livecheck` class implements the DSL methods used in a formula's diff --git a/Library/Homebrew/livecheck/livecheck.rb b/Library/Homebrew/livecheck/livecheck.rb index d5410b25fd..466dd95e09 100644 --- a/Library/Homebrew/livecheck/livecheck.rb +++ b/Library/Homebrew/livecheck/livecheck.rb @@ -1,3 +1,4 @@ +# typed: false # frozen_string_literal: true require "livecheck/strategy" diff --git a/Library/Homebrew/livecheck/strategy.rb b/Library/Homebrew/livecheck/strategy.rb index aa6d196ffe..4111365455 100644 --- a/Library/Homebrew/livecheck/strategy.rb +++ b/Library/Homebrew/livecheck/strategy.rb @@ -1,3 +1,4 @@ +# typed: false # frozen_string_literal: true module Homebrew diff --git a/Library/Homebrew/livecheck/strategy/apache.rb b/Library/Homebrew/livecheck/strategy/apache.rb index 5e8cb9e122..52beb1686f 100644 --- a/Library/Homebrew/livecheck/strategy/apache.rb +++ b/Library/Homebrew/livecheck/strategy/apache.rb @@ -1,3 +1,4 @@ +# typed: false # frozen_string_literal: true module Homebrew diff --git a/Library/Homebrew/livecheck/strategy/bitbucket.rb b/Library/Homebrew/livecheck/strategy/bitbucket.rb index a696d21252..a1e29a544b 100644 --- a/Library/Homebrew/livecheck/strategy/bitbucket.rb +++ b/Library/Homebrew/livecheck/strategy/bitbucket.rb @@ -1,3 +1,4 @@ +# typed: false # frozen_string_literal: true module Homebrew diff --git a/Library/Homebrew/livecheck/strategy/git.rb b/Library/Homebrew/livecheck/strategy/git.rb index f93127af9f..5a1e5edb15 100644 --- a/Library/Homebrew/livecheck/strategy/git.rb +++ b/Library/Homebrew/livecheck/strategy/git.rb @@ -1,3 +1,4 @@ +# typed: false # frozen_string_literal: true require "open3" diff --git a/Library/Homebrew/livecheck/strategy/gnome.rb b/Library/Homebrew/livecheck/strategy/gnome.rb index 72a6c68ff2..fa1e952300 100644 --- a/Library/Homebrew/livecheck/strategy/gnome.rb +++ b/Library/Homebrew/livecheck/strategy/gnome.rb @@ -1,3 +1,4 @@ +# typed: false # frozen_string_literal: true module Homebrew diff --git a/Library/Homebrew/livecheck/strategy/gnu.rb b/Library/Homebrew/livecheck/strategy/gnu.rb index 396c7e25a6..72dbe47771 100644 --- a/Library/Homebrew/livecheck/strategy/gnu.rb +++ b/Library/Homebrew/livecheck/strategy/gnu.rb @@ -1,3 +1,4 @@ +# typed: false # frozen_string_literal: true module Homebrew diff --git a/Library/Homebrew/livecheck/strategy/hackage.rb b/Library/Homebrew/livecheck/strategy/hackage.rb index 4f0303fe68..2c2ecd69bc 100644 --- a/Library/Homebrew/livecheck/strategy/hackage.rb +++ b/Library/Homebrew/livecheck/strategy/hackage.rb @@ -1,3 +1,4 @@ +# typed: false # frozen_string_literal: true module Homebrew diff --git a/Library/Homebrew/livecheck/strategy/launchpad.rb b/Library/Homebrew/livecheck/strategy/launchpad.rb index b9253521b5..c38d393f28 100644 --- a/Library/Homebrew/livecheck/strategy/launchpad.rb +++ b/Library/Homebrew/livecheck/strategy/launchpad.rb @@ -1,3 +1,4 @@ +# typed: false # frozen_string_literal: true module Homebrew diff --git a/Library/Homebrew/livecheck/strategy/npm.rb b/Library/Homebrew/livecheck/strategy/npm.rb index 3f2520d574..3c661f155c 100644 --- a/Library/Homebrew/livecheck/strategy/npm.rb +++ b/Library/Homebrew/livecheck/strategy/npm.rb @@ -1,3 +1,4 @@ +# typed: false # frozen_string_literal: true module Homebrew diff --git a/Library/Homebrew/livecheck/strategy/page_match.rb b/Library/Homebrew/livecheck/strategy/page_match.rb index 3e9ddc85f2..73c80beacd 100644 --- a/Library/Homebrew/livecheck/strategy/page_match.rb +++ b/Library/Homebrew/livecheck/strategy/page_match.rb @@ -1,3 +1,4 @@ +# typed: false # frozen_string_literal: true require "open-uri" diff --git a/Library/Homebrew/livecheck/strategy/pypi.rb b/Library/Homebrew/livecheck/strategy/pypi.rb index 4c10516eff..6fa15dbff6 100644 --- a/Library/Homebrew/livecheck/strategy/pypi.rb +++ b/Library/Homebrew/livecheck/strategy/pypi.rb @@ -1,3 +1,4 @@ +# typed: false # frozen_string_literal: true module Homebrew diff --git a/Library/Homebrew/livecheck/strategy/sourceforge.rb b/Library/Homebrew/livecheck/strategy/sourceforge.rb index 336d32ebfd..88c40d5c24 100644 --- a/Library/Homebrew/livecheck/strategy/sourceforge.rb +++ b/Library/Homebrew/livecheck/strategy/sourceforge.rb @@ -1,3 +1,4 @@ +# typed: false # frozen_string_literal: true module Homebrew diff --git a/Library/Homebrew/livecheck/strategy/xorg.rb b/Library/Homebrew/livecheck/strategy/xorg.rb index f9de6660df..5517897b14 100644 --- a/Library/Homebrew/livecheck/strategy/xorg.rb +++ b/Library/Homebrew/livecheck/strategy/xorg.rb @@ -1,3 +1,4 @@ +# typed: false # frozen_string_literal: true require "open-uri" diff --git a/Library/Homebrew/load_path.rb b/Library/Homebrew/load_path.rb index ea9f8a2306..258265213c 100644 --- a/Library/Homebrew/load_path.rb +++ b/Library/Homebrew/load_path.rb @@ -1,3 +1,4 @@ +# typed: true # frozen_string_literal: true require "pathname" diff --git a/Library/Homebrew/locale.rb b/Library/Homebrew/locale.rb index c858aa03b5..278bb621db 100644 --- a/Library/Homebrew/locale.rb +++ b/Library/Homebrew/locale.rb @@ -1,3 +1,4 @@ +# typed: true # frozen_string_literal: true # Representation of a system locale. diff --git a/Library/Homebrew/lock_file.rb b/Library/Homebrew/lock_file.rb index 88f017a170..7bbabfa733 100644 --- a/Library/Homebrew/lock_file.rb +++ b/Library/Homebrew/lock_file.rb @@ -1,3 +1,4 @@ +# typed: true # frozen_string_literal: true require "fcntl" diff --git a/Library/Homebrew/messages.rb b/Library/Homebrew/messages.rb index 18187a8447..bc8c64b501 100644 --- a/Library/Homebrew/messages.rb +++ b/Library/Homebrew/messages.rb @@ -1,3 +1,4 @@ +# typed: true # frozen_string_literal: true # A Messages object collects messages that may need to be displayed together diff --git a/Library/Homebrew/metafiles.rb b/Library/Homebrew/metafiles.rb index ea2b525ee4..5a244e6450 100644 --- a/Library/Homebrew/metafiles.rb +++ b/Library/Homebrew/metafiles.rb @@ -1,3 +1,4 @@ +# typed: true # frozen_string_literal: true # Helper for checking if a file is considered a metadata file. diff --git a/Library/Homebrew/migrator.rb b/Library/Homebrew/migrator.rb index bdf05f93bb..c60bf82615 100644 --- a/Library/Homebrew/migrator.rb +++ b/Library/Homebrew/migrator.rb @@ -1,3 +1,4 @@ +# typed: false # frozen_string_literal: true require "lock_file" diff --git a/Library/Homebrew/missing_formula.rb b/Library/Homebrew/missing_formula.rb index c69de457bb..69c76c0aef 100644 --- a/Library/Homebrew/missing_formula.rb +++ b/Library/Homebrew/missing_formula.rb @@ -1,3 +1,4 @@ +# typed: false # frozen_string_literal: true require "formulary" diff --git a/Library/Homebrew/mktemp.rb b/Library/Homebrew/mktemp.rb index 716c3d269c..749b8a2157 100644 --- a/Library/Homebrew/mktemp.rb +++ b/Library/Homebrew/mktemp.rb @@ -1,3 +1,4 @@ +# typed: false # frozen_string_literal: true # Performs `Formula#mktemp`'s functionality, and tracks the results. diff --git a/Library/Homebrew/official_taps.rb b/Library/Homebrew/official_taps.rb index b19ed5a7d9..a518cb8db0 100644 --- a/Library/Homebrew/official_taps.rb +++ b/Library/Homebrew/official_taps.rb @@ -1,3 +1,4 @@ +# typed: true # frozen_string_literal: true OFFICIAL_CASK_TAPS = %w[ diff --git a/Library/Homebrew/options.rb b/Library/Homebrew/options.rb index b486d3dc27..9e4a229ed1 100644 --- a/Library/Homebrew/options.rb +++ b/Library/Homebrew/options.rb @@ -1,3 +1,4 @@ +# typed: false # frozen_string_literal: true # A formula option. diff --git a/Library/Homebrew/os.rb b/Library/Homebrew/os.rb index 4981f12b53..2c3199b81b 100644 --- a/Library/Homebrew/os.rb +++ b/Library/Homebrew/os.rb @@ -1,3 +1,4 @@ +# typed: true # frozen_string_literal: true # Helper functions for querying operating system information. diff --git a/Library/Homebrew/os/global.rb b/Library/Homebrew/os/global.rb index 9d6250c235..bbf58536d7 100644 --- a/Library/Homebrew/os/global.rb +++ b/Library/Homebrew/os/global.rb @@ -1,3 +1,4 @@ +# typed: strict # frozen_string_literal: true require "os/linux/global" if OS.linux? diff --git a/Library/Homebrew/os/linux.rb b/Library/Homebrew/os/linux.rb index c8804764a2..17d2fee346 100644 --- a/Library/Homebrew/os/linux.rb +++ b/Library/Homebrew/os/linux.rb @@ -1,3 +1,4 @@ +# typed: true # frozen_string_literal: true module OS diff --git a/Library/Homebrew/os/linux/elf.rb b/Library/Homebrew/os/linux/elf.rb index c4d8dae4cd..c38fed883d 100644 --- a/Library/Homebrew/os/linux/elf.rb +++ b/Library/Homebrew/os/linux/elf.rb @@ -1,3 +1,4 @@ +# typed: false # frozen_string_literal: true # {Pathname} extension for dealing with ELF files. diff --git a/Library/Homebrew/os/linux/glibc.rb b/Library/Homebrew/os/linux/glibc.rb index a42ee092d0..49df817c37 100644 --- a/Library/Homebrew/os/linux/glibc.rb +++ b/Library/Homebrew/os/linux/glibc.rb @@ -1,3 +1,4 @@ +# typed: true # frozen_string_literal: true module OS diff --git a/Library/Homebrew/os/linux/global.rb b/Library/Homebrew/os/linux/global.rb index f367a86dbb..df09e17ca1 100644 --- a/Library/Homebrew/os/linux/global.rb +++ b/Library/Homebrew/os/linux/global.rb @@ -1,3 +1,4 @@ +# typed: false # frozen_string_literal: true # enables experimental patchelf.rb write support. diff --git a/Library/Homebrew/os/linux/kernel.rb b/Library/Homebrew/os/linux/kernel.rb index 1c20ce5a14..fd535699bc 100644 --- a/Library/Homebrew/os/linux/kernel.rb +++ b/Library/Homebrew/os/linux/kernel.rb @@ -1,3 +1,4 @@ +# typed: true # frozen_string_literal: true module OS diff --git a/Library/Homebrew/os/mac.rb b/Library/Homebrew/os/mac.rb index 8e9d0d33f3..2ed8d45282 100644 --- a/Library/Homebrew/os/mac.rb +++ b/Library/Homebrew/os/mac.rb @@ -1,3 +1,4 @@ +# typed: false # frozen_string_literal: true require "os/mac/version" diff --git a/Library/Homebrew/os/mac/architecture_list.rb b/Library/Homebrew/os/mac/architecture_list.rb index 8ade3fe0c0..f7cca8d697 100644 --- a/Library/Homebrew/os/mac/architecture_list.rb +++ b/Library/Homebrew/os/mac/architecture_list.rb @@ -1,3 +1,4 @@ +# typed: false # frozen_string_literal: true require "hardware" diff --git a/Library/Homebrew/os/mac/keg.rb b/Library/Homebrew/os/mac/keg.rb index 0782226c00..b5805975c6 100644 --- a/Library/Homebrew/os/mac/keg.rb +++ b/Library/Homebrew/os/mac/keg.rb @@ -1,3 +1,4 @@ +# typed: true # frozen_string_literal: true class Keg diff --git a/Library/Homebrew/os/mac/mach.rb b/Library/Homebrew/os/mac/mach.rb index aef8164268..7a6a75c318 100644 --- a/Library/Homebrew/os/mac/mach.rb +++ b/Library/Homebrew/os/mac/mach.rb @@ -1,3 +1,4 @@ +# typed: false # frozen_string_literal: true require "macho" diff --git a/Library/Homebrew/os/mac/sdk.rb b/Library/Homebrew/os/mac/sdk.rb index ff30e3eaa2..502e9adc39 100644 --- a/Library/Homebrew/os/mac/sdk.rb +++ b/Library/Homebrew/os/mac/sdk.rb @@ -1,3 +1,4 @@ +# typed: true # frozen_string_literal: true require "os/mac/version" diff --git a/Library/Homebrew/os/mac/version.rb b/Library/Homebrew/os/mac/version.rb index 3aadfb95d7..c8a899cc45 100644 --- a/Library/Homebrew/os/mac/version.rb +++ b/Library/Homebrew/os/mac/version.rb @@ -1,3 +1,4 @@ +# typed: true # frozen_string_literal: true require "hardware" diff --git a/Library/Homebrew/os/mac/xcode.rb b/Library/Homebrew/os/mac/xcode.rb index 7d78b855d4..e81979622b 100644 --- a/Library/Homebrew/os/mac/xcode.rb +++ b/Library/Homebrew/os/mac/xcode.rb @@ -1,3 +1,4 @@ +# typed: false # frozen_string_literal: true module OS diff --git a/Library/Homebrew/os/mac/xquartz.rb b/Library/Homebrew/os/mac/xquartz.rb index 98858392d1..21bed29170 100644 --- a/Library/Homebrew/os/mac/xquartz.rb +++ b/Library/Homebrew/os/mac/xquartz.rb @@ -1,3 +1,4 @@ +# typed: true # frozen_string_literal: true module OS diff --git a/Library/Homebrew/patch.rb b/Library/Homebrew/patch.rb index 0934b436fa..61d00d6a08 100644 --- a/Library/Homebrew/patch.rb +++ b/Library/Homebrew/patch.rb @@ -1,3 +1,4 @@ +# typed: false # frozen_string_literal: true require "resource" diff --git a/Library/Homebrew/pkg_version.rb b/Library/Homebrew/pkg_version.rb index cd74821087..c8aa68b264 100644 --- a/Library/Homebrew/pkg_version.rb +++ b/Library/Homebrew/pkg_version.rb @@ -1,3 +1,4 @@ +# typed: false # frozen_string_literal: true require "version" diff --git a/Library/Homebrew/postinstall.rb b/Library/Homebrew/postinstall.rb index 5f85cfbb89..575a27eedd 100644 --- a/Library/Homebrew/postinstall.rb +++ b/Library/Homebrew/postinstall.rb @@ -1,3 +1,4 @@ +# typed: false # frozen_string_literal: true old_trap = trap("INT") { exit! 130 } diff --git a/Library/Homebrew/readall.rb b/Library/Homebrew/readall.rb index d1e0a007bf..5075767249 100644 --- a/Library/Homebrew/readall.rb +++ b/Library/Homebrew/readall.rb @@ -1,3 +1,4 @@ +# typed: false # frozen_string_literal: true require "formula" diff --git a/Library/Homebrew/reinstall.rb b/Library/Homebrew/reinstall.rb index 1f746aa6e0..b763cd03b5 100644 --- a/Library/Homebrew/reinstall.rb +++ b/Library/Homebrew/reinstall.rb @@ -1,3 +1,4 @@ +# typed: true # frozen_string_literal: true require "formula_installer" diff --git a/Library/Homebrew/requirement.rb b/Library/Homebrew/requirement.rb index d4bb330119..a6d8545cb0 100644 --- a/Library/Homebrew/requirement.rb +++ b/Library/Homebrew/requirement.rb @@ -1,3 +1,4 @@ +# typed: false # frozen_string_literal: true require "dependable" diff --git a/Library/Homebrew/requirements.rb b/Library/Homebrew/requirements.rb index 4358f1f2b6..6b7b8251f8 100644 --- a/Library/Homebrew/requirements.rb +++ b/Library/Homebrew/requirements.rb @@ -1,3 +1,4 @@ +# typed: strict # frozen_string_literal: true require "requirement" diff --git a/Library/Homebrew/requirements/arch_requirement.rb b/Library/Homebrew/requirements/arch_requirement.rb index dc9d81320f..d4499ee065 100644 --- a/Library/Homebrew/requirements/arch_requirement.rb +++ b/Library/Homebrew/requirements/arch_requirement.rb @@ -1,3 +1,4 @@ +# typed: true # frozen_string_literal: true require "requirement" diff --git a/Library/Homebrew/requirements/codesign_requirement.rb b/Library/Homebrew/requirements/codesign_requirement.rb index dbec98dba9..54fb9352a2 100644 --- a/Library/Homebrew/requirements/codesign_requirement.rb +++ b/Library/Homebrew/requirements/codesign_requirement.rb @@ -1,3 +1,4 @@ +# typed: false # frozen_string_literal: true # A requirement on a code-signing identity. diff --git a/Library/Homebrew/requirements/java_requirement.rb b/Library/Homebrew/requirements/java_requirement.rb index d6ba1a9332..a519a2cdbb 100644 --- a/Library/Homebrew/requirements/java_requirement.rb +++ b/Library/Homebrew/requirements/java_requirement.rb @@ -1,3 +1,4 @@ +# typed: false # frozen_string_literal: true require "language/java" diff --git a/Library/Homebrew/requirements/linux_requirement.rb b/Library/Homebrew/requirements/linux_requirement.rb index 04b644a398..a744caeab6 100644 --- a/Library/Homebrew/requirements/linux_requirement.rb +++ b/Library/Homebrew/requirements/linux_requirement.rb @@ -1,3 +1,4 @@ +# typed: true # frozen_string_literal: true # A requirement on Linux. diff --git a/Library/Homebrew/requirements/macos_requirement.rb b/Library/Homebrew/requirements/macos_requirement.rb index 6013a1a1b7..b9d4fbc556 100644 --- a/Library/Homebrew/requirements/macos_requirement.rb +++ b/Library/Homebrew/requirements/macos_requirement.rb @@ -1,3 +1,4 @@ +# typed: false # frozen_string_literal: true require "requirement" diff --git a/Library/Homebrew/requirements/osxfuse_requirement.rb b/Library/Homebrew/requirements/osxfuse_requirement.rb index 8371568fa0..9a4a0f527f 100644 --- a/Library/Homebrew/requirements/osxfuse_requirement.rb +++ b/Library/Homebrew/requirements/osxfuse_requirement.rb @@ -1,3 +1,4 @@ +# typed: strict # frozen_string_literal: true require "requirement" diff --git a/Library/Homebrew/requirements/tuntap_requirement.rb b/Library/Homebrew/requirements/tuntap_requirement.rb index 6f9cec4cfd..40075a947b 100644 --- a/Library/Homebrew/requirements/tuntap_requirement.rb +++ b/Library/Homebrew/requirements/tuntap_requirement.rb @@ -1,3 +1,4 @@ +# typed: false # frozen_string_literal: true require "requirement" diff --git a/Library/Homebrew/requirements/x11_requirement.rb b/Library/Homebrew/requirements/x11_requirement.rb index f34834c2ff..4fe5c98538 100644 --- a/Library/Homebrew/requirements/x11_requirement.rb +++ b/Library/Homebrew/requirements/x11_requirement.rb @@ -1,3 +1,4 @@ +# typed: false # frozen_string_literal: true require "requirement" diff --git a/Library/Homebrew/requirements/xcode_requirement.rb b/Library/Homebrew/requirements/xcode_requirement.rb index 97e1dde8da..533b3e8515 100644 --- a/Library/Homebrew/requirements/xcode_requirement.rb +++ b/Library/Homebrew/requirements/xcode_requirement.rb @@ -1,3 +1,4 @@ +# typed: false # frozen_string_literal: true require "requirement" diff --git a/Library/Homebrew/resource.rb b/Library/Homebrew/resource.rb index ba6ddb6ebe..29655d120a 100644 --- a/Library/Homebrew/resource.rb +++ b/Library/Homebrew/resource.rb @@ -1,3 +1,4 @@ +# typed: false # frozen_string_literal: true require "download_strategy" diff --git a/Library/Homebrew/rubocops.rb b/Library/Homebrew/rubocops.rb index b2b748bb03..e5c5651439 100644 --- a/Library/Homebrew/rubocops.rb +++ b/Library/Homebrew/rubocops.rb @@ -1,3 +1,4 @@ +# typed: strict # frozen_string_literal: true require_relative "load_path" diff --git a/Library/Homebrew/rubocops/cask/ast/cask_block.rb b/Library/Homebrew/rubocops/cask/ast/cask_block.rb index 98e97c0c34..c05f109723 100644 --- a/Library/Homebrew/rubocops/cask/ast/cask_block.rb +++ b/Library/Homebrew/rubocops/cask/ast/cask_block.rb @@ -1,3 +1,4 @@ +# typed: true # frozen_string_literal: true require "forwardable" diff --git a/Library/Homebrew/rubocops/cask/ast/cask_header.rb b/Library/Homebrew/rubocops/cask/ast/cask_header.rb index 7646552eec..a869967a5b 100644 --- a/Library/Homebrew/rubocops/cask/ast/cask_header.rb +++ b/Library/Homebrew/rubocops/cask/ast/cask_header.rb @@ -1,3 +1,4 @@ +# typed: true # frozen_string_literal: true module RuboCop diff --git a/Library/Homebrew/rubocops/cask/ast/stanza.rb b/Library/Homebrew/rubocops/cask/ast/stanza.rb index 8a6b7a5452..85f0de5cc3 100644 --- a/Library/Homebrew/rubocops/cask/ast/stanza.rb +++ b/Library/Homebrew/rubocops/cask/ast/stanza.rb @@ -1,3 +1,4 @@ +# typed: true # frozen_string_literal: true require "forwardable" diff --git a/Library/Homebrew/rubocops/cask/constants/stanza.rb b/Library/Homebrew/rubocops/cask/constants/stanza.rb index f4de0f3139..3b818ac900 100644 --- a/Library/Homebrew/rubocops/cask/constants/stanza.rb +++ b/Library/Homebrew/rubocops/cask/constants/stanza.rb @@ -1,3 +1,4 @@ +# typed: true # frozen_string_literal: true module RuboCop diff --git a/Library/Homebrew/rubocops/cask/desc.rb b/Library/Homebrew/rubocops/cask/desc.rb index 90ceefab9f..0e03da6265 100644 --- a/Library/Homebrew/rubocops/cask/desc.rb +++ b/Library/Homebrew/rubocops/cask/desc.rb @@ -1,3 +1,4 @@ +# typed: true # frozen_string_literal: true require "forwardable" diff --git a/Library/Homebrew/rubocops/cask/extend/node.rb b/Library/Homebrew/rubocops/cask/extend/node.rb index 8e179e70dc..e0102bd9d1 100644 --- a/Library/Homebrew/rubocops/cask/extend/node.rb +++ b/Library/Homebrew/rubocops/cask/extend/node.rb @@ -1,3 +1,4 @@ +# typed: false # frozen_string_literal: true module RuboCop diff --git a/Library/Homebrew/rubocops/cask/extend/string.rb b/Library/Homebrew/rubocops/cask/extend/string.rb index 73ac1a98ba..6dcccff830 100644 --- a/Library/Homebrew/rubocops/cask/extend/string.rb +++ b/Library/Homebrew/rubocops/cask/extend/string.rb @@ -1,3 +1,4 @@ +# typed: true # frozen_string_literal: true # Utility method extensions for String diff --git a/Library/Homebrew/rubocops/cask/homepage_matches_url.rb b/Library/Homebrew/rubocops/cask/homepage_matches_url.rb index 7d80c6405a..3c12c14ac1 100644 --- a/Library/Homebrew/rubocops/cask/homepage_matches_url.rb +++ b/Library/Homebrew/rubocops/cask/homepage_matches_url.rb @@ -1,3 +1,4 @@ +# typed: false # frozen_string_literal: true require "forwardable" diff --git a/Library/Homebrew/rubocops/cask/homepage_url_trailing_slash.rb b/Library/Homebrew/rubocops/cask/homepage_url_trailing_slash.rb index 220acaca83..a3a18a9caf 100644 --- a/Library/Homebrew/rubocops/cask/homepage_url_trailing_slash.rb +++ b/Library/Homebrew/rubocops/cask/homepage_url_trailing_slash.rb @@ -1,3 +1,4 @@ +# typed: true # frozen_string_literal: true require "forwardable" diff --git a/Library/Homebrew/rubocops/cask/mixin/cask_help.rb b/Library/Homebrew/rubocops/cask/mixin/cask_help.rb index 9dc0800c9c..aa2d6eab14 100644 --- a/Library/Homebrew/rubocops/cask/mixin/cask_help.rb +++ b/Library/Homebrew/rubocops/cask/mixin/cask_help.rb @@ -1,3 +1,4 @@ +# typed: false # frozen_string_literal: true module RuboCop diff --git a/Library/Homebrew/rubocops/cask/mixin/on_desc_stanza.rb b/Library/Homebrew/rubocops/cask/mixin/on_desc_stanza.rb index 067b6c30e4..759b899d67 100644 --- a/Library/Homebrew/rubocops/cask/mixin/on_desc_stanza.rb +++ b/Library/Homebrew/rubocops/cask/mixin/on_desc_stanza.rb @@ -1,3 +1,4 @@ +# typed: false # frozen_string_literal: true module RuboCop diff --git a/Library/Homebrew/rubocops/cask/mixin/on_homepage_stanza.rb b/Library/Homebrew/rubocops/cask/mixin/on_homepage_stanza.rb index f76d258faa..97607aa568 100644 --- a/Library/Homebrew/rubocops/cask/mixin/on_homepage_stanza.rb +++ b/Library/Homebrew/rubocops/cask/mixin/on_homepage_stanza.rb @@ -1,3 +1,4 @@ +# typed: false # frozen_string_literal: true module RuboCop diff --git a/Library/Homebrew/rubocops/cask/no_dsl_version.rb b/Library/Homebrew/rubocops/cask/no_dsl_version.rb index 6e21cd85f8..2d2aca942b 100644 --- a/Library/Homebrew/rubocops/cask/no_dsl_version.rb +++ b/Library/Homebrew/rubocops/cask/no_dsl_version.rb @@ -1,3 +1,4 @@ +# typed: true # frozen_string_literal: true require "forwardable" diff --git a/Library/Homebrew/rubocops/cask/stanza_grouping.rb b/Library/Homebrew/rubocops/cask/stanza_grouping.rb index b49101e63c..93e5ba21ea 100644 --- a/Library/Homebrew/rubocops/cask/stanza_grouping.rb +++ b/Library/Homebrew/rubocops/cask/stanza_grouping.rb @@ -1,3 +1,4 @@ +# typed: true # frozen_string_literal: true require "forwardable" diff --git a/Library/Homebrew/rubocops/cask/stanza_order.rb b/Library/Homebrew/rubocops/cask/stanza_order.rb index 41b818df6c..be6af752fa 100644 --- a/Library/Homebrew/rubocops/cask/stanza_order.rb +++ b/Library/Homebrew/rubocops/cask/stanza_order.rb @@ -1,3 +1,4 @@ +# typed: true # frozen_string_literal: true require "forwardable" diff --git a/Library/Homebrew/rubocops/caveats.rb b/Library/Homebrew/rubocops/caveats.rb index f81c4fc26f..577f49ac79 100644 --- a/Library/Homebrew/rubocops/caveats.rb +++ b/Library/Homebrew/rubocops/caveats.rb @@ -1,3 +1,4 @@ +# typed: true # frozen_string_literal: true require "rubocops/extend/formula" diff --git a/Library/Homebrew/rubocops/checksum.rb b/Library/Homebrew/rubocops/checksum.rb index fda9de60d1..35edda879d 100644 --- a/Library/Homebrew/rubocops/checksum.rb +++ b/Library/Homebrew/rubocops/checksum.rb @@ -1,3 +1,4 @@ +# typed: true # frozen_string_literal: true require "rubocops/extend/formula" diff --git a/Library/Homebrew/rubocops/class.rb b/Library/Homebrew/rubocops/class.rb index 56ce23cff1..d44e759673 100644 --- a/Library/Homebrew/rubocops/class.rb +++ b/Library/Homebrew/rubocops/class.rb @@ -1,3 +1,4 @@ +# typed: true # frozen_string_literal: true require "rubocops/extend/formula" diff --git a/Library/Homebrew/rubocops/components_order.rb b/Library/Homebrew/rubocops/components_order.rb index d939a8ea36..41b35478f0 100644 --- a/Library/Homebrew/rubocops/components_order.rb +++ b/Library/Homebrew/rubocops/components_order.rb @@ -1,3 +1,4 @@ +# typed: false # frozen_string_literal: true require "rubocops/extend/formula" diff --git a/Library/Homebrew/rubocops/components_redundancy.rb b/Library/Homebrew/rubocops/components_redundancy.rb index 1e51ef0831..767306c759 100644 --- a/Library/Homebrew/rubocops/components_redundancy.rb +++ b/Library/Homebrew/rubocops/components_redundancy.rb @@ -1,3 +1,4 @@ +# typed: true # frozen_string_literal: true require "rubocops/extend/formula" diff --git a/Library/Homebrew/rubocops/conflicts.rb b/Library/Homebrew/rubocops/conflicts.rb index 318a79d47b..f11a9a870f 100644 --- a/Library/Homebrew/rubocops/conflicts.rb +++ b/Library/Homebrew/rubocops/conflicts.rb @@ -1,3 +1,4 @@ +# typed: true # frozen_string_literal: true require "rubocops/extend/formula" diff --git a/Library/Homebrew/rubocops/dependency_order.rb b/Library/Homebrew/rubocops/dependency_order.rb index 7f24d8087c..fb77e88d56 100644 --- a/Library/Homebrew/rubocops/dependency_order.rb +++ b/Library/Homebrew/rubocops/dependency_order.rb @@ -1,3 +1,4 @@ +# typed: false # frozen_string_literal: true require "rubocops/extend/formula" diff --git a/Library/Homebrew/rubocops/deprecate_disable.rb b/Library/Homebrew/rubocops/deprecate_disable.rb index 79f21dcfb4..f077a2b372 100644 --- a/Library/Homebrew/rubocops/deprecate_disable.rb +++ b/Library/Homebrew/rubocops/deprecate_disable.rb @@ -1,3 +1,4 @@ +# typed: false # frozen_string_literal: true require "rubocops/extend/formula" diff --git a/Library/Homebrew/rubocops/extend/formula.rb b/Library/Homebrew/rubocops/extend/formula.rb index eddbac5b6c..f0675de949 100644 --- a/Library/Homebrew/rubocops/extend/formula.rb +++ b/Library/Homebrew/rubocops/extend/formula.rb @@ -1,3 +1,4 @@ +# typed: false # frozen_string_literal: true # Silence compatibility warning. diff --git a/Library/Homebrew/rubocops/files.rb b/Library/Homebrew/rubocops/files.rb index d4454ad4cb..7ee1de87d5 100644 --- a/Library/Homebrew/rubocops/files.rb +++ b/Library/Homebrew/rubocops/files.rb @@ -1,3 +1,4 @@ +# typed: true # frozen_string_literal: true require "rubocops/extend/formula" diff --git a/Library/Homebrew/rubocops/formula_desc.rb b/Library/Homebrew/rubocops/formula_desc.rb index 57e5066e13..f839e5571b 100644 --- a/Library/Homebrew/rubocops/formula_desc.rb +++ b/Library/Homebrew/rubocops/formula_desc.rb @@ -1,3 +1,4 @@ +# typed: true # frozen_string_literal: true require "rubocops/extend/formula" diff --git a/Library/Homebrew/rubocops/homepage.rb b/Library/Homebrew/rubocops/homepage.rb index 0ea79d8e42..d1e3b06d11 100644 --- a/Library/Homebrew/rubocops/homepage.rb +++ b/Library/Homebrew/rubocops/homepage.rb @@ -1,3 +1,4 @@ +# typed: true # frozen_string_literal: true require "rubocops/extend/formula" diff --git a/Library/Homebrew/rubocops/keg_only.rb b/Library/Homebrew/rubocops/keg_only.rb index 6a578b5f7c..3b811f07b8 100644 --- a/Library/Homebrew/rubocops/keg_only.rb +++ b/Library/Homebrew/rubocops/keg_only.rb @@ -1,3 +1,4 @@ +# typed: true # frozen_string_literal: true require "rubocops/extend/formula" diff --git a/Library/Homebrew/rubocops/lines.rb b/Library/Homebrew/rubocops/lines.rb index 9f7dfe437a..9cb7dc7a13 100644 --- a/Library/Homebrew/rubocops/lines.rb +++ b/Library/Homebrew/rubocops/lines.rb @@ -1,3 +1,4 @@ +# typed: true # frozen_string_literal: true require "rubocops/extend/formula" diff --git a/Library/Homebrew/rubocops/livecheck.rb b/Library/Homebrew/rubocops/livecheck.rb index 3bf74d1c83..c7f21adb2a 100644 --- a/Library/Homebrew/rubocops/livecheck.rb +++ b/Library/Homebrew/rubocops/livecheck.rb @@ -1,3 +1,4 @@ +# typed: true # frozen_string_literal: true require "rubocops/extend/formula" diff --git a/Library/Homebrew/rubocops/options.rb b/Library/Homebrew/rubocops/options.rb index 907a98c18b..f971548bd6 100644 --- a/Library/Homebrew/rubocops/options.rb +++ b/Library/Homebrew/rubocops/options.rb @@ -1,3 +1,4 @@ +# typed: true # frozen_string_literal: true require "rubocops/extend/formula" diff --git a/Library/Homebrew/rubocops/patches.rb b/Library/Homebrew/rubocops/patches.rb index 03c9aa8d14..6ed4157c5d 100644 --- a/Library/Homebrew/rubocops/patches.rb +++ b/Library/Homebrew/rubocops/patches.rb @@ -1,3 +1,4 @@ +# typed: true # frozen_string_literal: true require "rubocops/extend/formula" diff --git a/Library/Homebrew/rubocops/rubocop-cask.rb b/Library/Homebrew/rubocops/rubocop-cask.rb index 646e483994..fbba19daf4 100644 --- a/Library/Homebrew/rubocops/rubocop-cask.rb +++ b/Library/Homebrew/rubocops/rubocop-cask.rb @@ -1,3 +1,4 @@ +# typed: strict # frozen_string_literal: true require "rubocop" diff --git a/Library/Homebrew/rubocops/shared/desc_helper.rb b/Library/Homebrew/rubocops/shared/desc_helper.rb index 22113414dc..a3beae3e70 100644 --- a/Library/Homebrew/rubocops/shared/desc_helper.rb +++ b/Library/Homebrew/rubocops/shared/desc_helper.rb @@ -1,3 +1,4 @@ +# typed: false # frozen_string_literal: true require "rubocops/shared/helper_functions" diff --git a/Library/Homebrew/rubocops/shared/helper_functions.rb b/Library/Homebrew/rubocops/shared/helper_functions.rb index 8b7388f94c..5fc65ced98 100644 --- a/Library/Homebrew/rubocops/shared/helper_functions.rb +++ b/Library/Homebrew/rubocops/shared/helper_functions.rb @@ -1,3 +1,4 @@ +# typed: false # frozen_string_literal: true module RuboCop diff --git a/Library/Homebrew/rubocops/text.rb b/Library/Homebrew/rubocops/text.rb index b8fa914e4d..30417d0edd 100644 --- a/Library/Homebrew/rubocops/text.rb +++ b/Library/Homebrew/rubocops/text.rb @@ -1,3 +1,4 @@ +# typed: true # frozen_string_literal: true require "rubocops/extend/formula" diff --git a/Library/Homebrew/rubocops/urls.rb b/Library/Homebrew/rubocops/urls.rb index b23883d0cd..83db786b8f 100644 --- a/Library/Homebrew/rubocops/urls.rb +++ b/Library/Homebrew/rubocops/urls.rb @@ -1,3 +1,4 @@ +# typed: false # frozen_string_literal: true require "rubocops/extend/formula" diff --git a/Library/Homebrew/rubocops/uses_from_macos.rb b/Library/Homebrew/rubocops/uses_from_macos.rb index a71b6666ef..e164640615 100644 --- a/Library/Homebrew/rubocops/uses_from_macos.rb +++ b/Library/Homebrew/rubocops/uses_from_macos.rb @@ -1,3 +1,4 @@ +# typed: true # frozen_string_literal: true require "rubocops/extend/formula" diff --git a/Library/Homebrew/rubocops/version.rb b/Library/Homebrew/rubocops/version.rb index de47a9d290..2b6b53c011 100644 --- a/Library/Homebrew/rubocops/version.rb +++ b/Library/Homebrew/rubocops/version.rb @@ -1,3 +1,4 @@ +# typed: true # frozen_string_literal: true require "rubocops/extend/formula" diff --git a/Library/Homebrew/sandbox.rb b/Library/Homebrew/sandbox.rb index a0ab6c2141..5fdf3f491d 100644 --- a/Library/Homebrew/sandbox.rb +++ b/Library/Homebrew/sandbox.rb @@ -1,3 +1,4 @@ +# typed: false # frozen_string_literal: true require "erb" diff --git a/Library/Homebrew/search.rb b/Library/Homebrew/search.rb index 29fe98e8c2..942083a1c9 100644 --- a/Library/Homebrew/search.rb +++ b/Library/Homebrew/search.rb @@ -1,3 +1,4 @@ +# typed: false # frozen_string_literal: true require "searchable" diff --git a/Library/Homebrew/searchable.rb b/Library/Homebrew/searchable.rb index 9b9adc7606..634b84b561 100644 --- a/Library/Homebrew/searchable.rb +++ b/Library/Homebrew/searchable.rb @@ -1,3 +1,4 @@ +# typed: false # frozen_string_literal: true # Helper module for making a class searchable with both regular expressions and strings. diff --git a/Library/Homebrew/software_spec.rb b/Library/Homebrew/software_spec.rb index 91ff124c09..06f419608c 100644 --- a/Library/Homebrew/software_spec.rb +++ b/Library/Homebrew/software_spec.rb @@ -1,3 +1,4 @@ +# typed: false # frozen_string_literal: true require "resource" diff --git a/Library/Homebrew/sorbet/files.yaml b/Library/Homebrew/sorbet/files.yaml index 8eb08f59ae..b3db036f73 100644 --- a/Library/Homebrew/sorbet/files.yaml +++ b/Library/Homebrew/sorbet/files.yaml @@ -1,964 +1,3 @@ -false: - - ./PATH.rb - - ./bintray.rb - - ./brew.rb - - ./build.rb - - ./build_environment.rb - - ./cask/artifact/abstract_artifact.rb - - ./cask/artifact/abstract_flight_block.rb - - ./cask/artifact/abstract_uninstall.rb - - ./cask/artifact/app.rb - - ./cask/artifact/artifact.rb - - ./cask/artifact/audio_unit_plugin.rb - - ./cask/artifact/binary.rb - - ./cask/artifact/colorpicker.rb - - ./cask/artifact/dictionary.rb - - ./cask/artifact/font.rb - - ./cask/artifact/input_method.rb - - ./cask/artifact/installer.rb - - ./cask/artifact/internet_plugin.rb - - ./cask/artifact/manpage.rb - - ./cask/artifact/mdimporter.rb - - ./cask/artifact/moved.rb - - ./cask/artifact/pkg.rb - - ./cask/artifact/postflight_block.rb - - ./cask/artifact/preflight_block.rb - - ./cask/artifact/prefpane.rb - - ./cask/artifact/qlplugin.rb - - ./cask/artifact/relocated.rb - - ./cask/artifact/screen_saver.rb - - ./cask/artifact/service.rb - - ./cask/artifact/stage_only.rb - - ./cask/artifact/suite.rb - - ./cask/artifact/symlinked.rb - - ./cask/artifact/uninstall.rb - - ./cask/artifact/vst3_plugin.rb - - ./cask/artifact/vst_plugin.rb - - ./cask/artifact/zap.rb - - ./cask/audit.rb - - ./cask/auditor.rb - - ./cask/cask.rb - - ./cask/cask_loader.rb - - ./cask/caskroom.rb - - ./cask/cmd.rb - - ./cask/cmd/--cache.rb - - ./cask/cmd/abstract_command.rb - - ./cask/cmd/abstract_internal_command.rb - - ./cask/cmd/audit.rb - - ./cask/cmd/cat.rb - - ./cask/cmd/create.rb - - ./cask/cmd/doctor.rb - - ./cask/cmd/edit.rb - - ./cask/cmd/fetch.rb - - ./cask/cmd/help.rb - - ./cask/cmd/home.rb - - ./cask/cmd/info.rb - - ./cask/cmd/install.rb - - ./cask/cmd/internal_help.rb - - ./cask/cmd/internal_stanza.rb - - ./cask/cmd/list.rb - - ./cask/cmd/outdated.rb - - ./cask/cmd/reinstall.rb - - ./cask/cmd/style.rb - - ./cask/cmd/uninstall.rb - - ./cask/cmd/upgrade.rb - - ./cask/cmd/zap.rb - - ./cask/config.rb - - ./cask/download.rb - - ./cask/dsl.rb - - ./cask/dsl/appcast.rb - - ./cask/dsl/base.rb - - ./cask/dsl/caveats.rb - - ./cask/dsl/conflicts_with.rb - - ./cask/dsl/container.rb - - ./cask/dsl/depends_on.rb - - ./cask/dsl/postflight.rb - - ./cask/dsl/preflight.rb - - ./cask/dsl/uninstall_preflight.rb - - ./cask/dsl/version.rb - - ./cask/exceptions.rb - - ./cask/installer.rb - - ./cask/metadata.rb - - ./cask/pkg.rb - - ./cask/quarantine.rb - - ./cask/staged.rb - - ./cask/topological_hash.rb - - ./cask/utils.rb - - ./cask/verify.rb - - ./caveats.rb - - ./cleanup.rb - - ./cli/parser.rb - - ./cmd/--cache.rb - - ./cmd/--caskroom.rb - - ./cmd/--cellar.rb - - ./cmd/--env.rb - - ./cmd/--prefix.rb - - ./cmd/--repository.rb - - ./cmd/--version.rb - - ./cmd/analytics.rb - - ./cmd/cask.rb - - ./cmd/cleanup.rb - - ./cmd/commands.rb - - ./cmd/config.rb - - ./cmd/deps.rb - - ./cmd/desc.rb - - ./cmd/doctor.rb - - ./cmd/fetch.rb - - ./cmd/gist-logs.rb - - ./cmd/help.rb - - ./cmd/home.rb - - ./cmd/info.rb - - ./cmd/install.rb - - ./cmd/leaves.rb - - ./cmd/link.rb - - ./cmd/list.rb - - ./cmd/log.rb - - ./cmd/migrate.rb - - ./cmd/missing.rb - - ./cmd/options.rb - - ./cmd/outdated.rb - - ./cmd/pin.rb - - ./cmd/postinstall.rb - - ./cmd/readall.rb - - ./cmd/reinstall.rb - - ./cmd/search.rb - - ./cmd/switch.rb - - ./cmd/tap-info.rb - - ./cmd/tap.rb - - ./cmd/uninstall.rb - - ./cmd/unlink.rb - - ./cmd/unpin.rb - - ./cmd/untap.rb - - ./cmd/update-report.rb - - ./cmd/upgrade.rb - - ./cmd/uses.rb - - ./commands.rb - - ./compat/language/haskell.rb - - ./compat/language/java.rb - - ./compat/language/python.rb - - ./cxxstdlib.rb - - ./debrew.rb - - ./debrew/irb.rb - - ./dependencies.rb - - ./dependency.rb - - ./dev-cmd/audit.rb - - ./dev-cmd/bottle.rb - - ./dev-cmd/bump-cask-pr.rb - - ./dev-cmd/bump-formula-pr.rb - - ./dev-cmd/bump-revision.rb - - ./dev-cmd/cat.rb - - ./dev-cmd/command.rb - - ./dev-cmd/create.rb - - ./dev-cmd/diy.rb - - ./dev-cmd/edit.rb - - ./dev-cmd/extract.rb - - ./dev-cmd/formula.rb - - ./dev-cmd/install-bundler-gems.rb - - ./dev-cmd/irb.rb - - ./dev-cmd/linkage.rb - - ./dev-cmd/livecheck.rb - - ./dev-cmd/man.rb - - ./dev-cmd/mirror.rb - - ./dev-cmd/pr-automerge.rb - - ./dev-cmd/pr-publish.rb - - ./dev-cmd/pr-pull.rb - - ./dev-cmd/pr-upload.rb - - ./dev-cmd/prof.rb - - ./dev-cmd/pull.rb - - ./dev-cmd/release-notes.rb - - ./dev-cmd/ruby.rb - - ./dev-cmd/sh.rb - - ./dev-cmd/sponsors.rb - - ./dev-cmd/style.rb - - ./dev-cmd/tap-new.rb - - ./dev-cmd/test.rb - - ./dev-cmd/tests.rb - - ./dev-cmd/typecheck.rb - - ./dev-cmd/unpack.rb - - ./dev-cmd/update-license-data.rb - - ./dev-cmd/update-python-resources.rb - - ./dev-cmd/update-test.rb - - ./dev-cmd/vendor-gems.rb - - ./development_tools.rb - - ./diagnostic.rb - - ./download_strategy.rb - - ./exceptions.rb - - ./extend/ENV.rb - - ./extend/ENV/shared.rb - - ./extend/ENV/std.rb - - ./extend/ENV/super.rb - - ./extend/git_repository.rb - - ./extend/hash_validator.rb - - ./extend/io.rb - - ./extend/module.rb - - ./extend/os/linux/dependency_collector.rb - - ./extend/os/linux/diagnostic.rb - - ./extend/os/linux/extend/ENV/shared.rb - - ./extend/os/linux/extend/ENV/std.rb - - ./extend/os/linux/extend/ENV/super.rb - - ./extend/os/linux/formula_cellar_checks.rb - - ./extend/os/linux/hardware/cpu.rb - - ./extend/os/linux/install.rb - - ./extend/os/linux/keg_relocate.rb - - ./extend/os/linux/linkage_checker.rb - - ./extend/os/linux/readall.rb - - ./extend/os/linux/requirements/java_requirement.rb - - ./extend/os/linux/requirements/osxfuse_requirement.rb - - ./extend/os/linux/system_config.rb - - ./extend/os/linux/tap.rb - - ./extend/os/linux/utils/analytics.rb - - ./extend/os/mac/caveats.rb - - ./extend/os/mac/dependency_collector.rb - - ./extend/os/mac/development_tools.rb - - ./extend/os/mac/diagnostic.rb - - ./extend/os/mac/extend/ENV/shared.rb - - ./extend/os/mac/extend/ENV/std.rb - - ./extend/os/mac/extend/ENV/super.rb - - ./extend/os/mac/extend/pathname.rb - - ./extend/os/mac/formula_cellar_checks.rb - - ./extend/os/mac/hardware.rb - - ./extend/os/mac/hardware/cpu.rb - - ./extend/os/mac/keg_relocate.rb - - ./extend/os/mac/language/java.rb - - ./extend/os/mac/missing_formula.rb - - ./extend/os/mac/requirements/java_requirement.rb - - ./extend/os/mac/requirements/osxfuse_requirement.rb - - ./extend/os/mac/requirements/x11_requirement.rb - - ./extend/os/mac/search.rb - - ./extend/os/mac/software_spec.rb - - ./extend/os/mac/system_config.rb - - ./extend/os/mac/unpack_strategy/zip.rb - - ./extend/os/mac/utils/bottles.rb - - ./extend/pathname.rb - - ./extend/predicable.rb - - ./extend/string.rb - - ./formula.rb - - ./formula_assertions.rb - - ./formula_cellar_checks.rb - - ./formula_creator.rb - - ./formula_info.rb - - ./formula_installer.rb - - ./formula_versions.rb - - ./formulary.rb - - ./global.rb - - ./keg.rb - - ./keg_relocate.rb - - ./language/node.rb - - ./language/python.rb - - ./linkage_checker.rb - - ./lock_file.rb - - ./migrator.rb - - ./missing_formula.rb - - ./mktemp.rb - - ./options.rb - - ./os/linux/elf.rb - - ./os/linux/global.rb - - ./os/mac.rb - - ./os/mac/architecture_list.rb - - ./os/mac/keg.rb - - ./os/mac/mach.rb - - ./os/mac/sdk.rb - - ./os/mac/version.rb - - ./os/mac/xcode.rb - - ./os/mac/xquartz.rb - - ./patch.rb - - ./pkg_version.rb - - ./postinstall.rb - - ./readall.rb - - ./requirement.rb - - ./requirements/arch_requirement.rb - - ./requirements/codesign_requirement.rb - - ./requirements/java_requirement.rb - - ./requirements/linux_requirement.rb - - ./requirements/macos_requirement.rb - - ./requirements/tuntap_requirement.rb - - ./requirements/x11_requirement.rb - - ./requirements/xcode_requirement.rb - - ./resource.rb - - ./rubocops/cask/ast/cask_block.rb - - ./rubocops/cask/extend/node.rb - - ./rubocops/cask/homepage_matches_url.rb - - ./rubocops/cask/homepage_url_trailing_slash.rb - - ./rubocops/cask/mixin/cask_help.rb - - ./rubocops/cask/mixin/on_desc_stanza.rb - - ./rubocops/cask/mixin/on_homepage_stanza.rb - - ./rubocops/cask/no_dsl_version.rb - - ./rubocops/cask/stanza_grouping.rb - - ./rubocops/cask/stanza_order.rb - - ./rubocops/caveats.rb - - ./rubocops/checksum.rb - - ./rubocops/class.rb - - ./rubocops/components_order.rb - - ./rubocops/components_redundancy.rb - - ./rubocops/conflicts.rb - - ./rubocops/dependency_order.rb - - ./rubocops/extend/formula.rb - - ./rubocops/files.rb - - ./rubocops/formula_desc.rb - - ./rubocops/homepage.rb - - ./rubocops/keg_only.rb - - ./rubocops/lines.rb - - ./rubocops/options.rb - - ./rubocops/patches.rb - - ./rubocops/shared/desc_helper.rb - - ./rubocops/shared/helper_functions.rb - - ./rubocops/text.rb - - ./rubocops/urls.rb - - ./rubocops/uses_from_macos.rb - - ./rubocops/version.rb - - ./sandbox.rb - - ./search.rb - - ./searchable.rb - - ./software_spec.rb - - ./style.rb - - ./system_command.rb - - ./system_config.rb - - ./tab.rb - - ./tap.rb - - ./test.rb - - ./test/ENV_spec.rb - - ./test/PATH_spec.rb - - ./test/bash_spec.rb - - ./test/bintray_spec.rb - - ./test/bottle_filename_spec.rb - - ./test/build_environment_spec.rb - - ./test/build_options_spec.rb - - ./test/cache_store_spec.rb - - ./test/cask/artifact/alt_target_spec.rb - - ./test/cask/artifact/app_spec.rb - - ./test/cask/artifact/binary_spec.rb - - ./test/cask/artifact/generic_artifact_spec.rb - - ./test/cask/artifact/installer_spec.rb - - ./test/cask/artifact/manpage_spec.rb - - ./test/cask/artifact/pkg_spec.rb - - ./test/cask/artifact/postflight_block_spec.rb - - ./test/cask/artifact/preflight_block_spec.rb - - ./test/cask/artifact/shared_examples/uninstall_zap.rb - - ./test/cask/artifact/suite_spec.rb - - ./test/cask/artifact/two_apps_correct_spec.rb - - ./test/cask/artifact/uninstall_no_zap_spec.rb - - ./test/cask/artifact/uninstall_spec.rb - - ./test/cask/artifact/zap_spec.rb - - ./test/cask/audit_spec.rb - - ./test/cask/cask_loader/from__path_loader_spec.rb - - ./test/cask/cask_loader/from_content_loader_spec.rb - - ./test/cask/cask_loader/from_uri_loader_spec.rb - - ./test/cask/cask_spec.rb - - ./test/cask/cmd/audit_spec.rb - - ./test/cask/cmd/cache_spec.rb - - ./test/cask/cmd/cat_spec.rb - - ./test/cask/cmd/create_spec.rb - - ./test/cask/cmd/doctor_spec.rb - - ./test/cask/cmd/edit_spec.rb - - ./test/cask/cmd/fetch_spec.rb - - ./test/cask/cmd/home_spec.rb - - ./test/cask/cmd/info_spec.rb - - ./test/cask/cmd/install_spec.rb - - ./test/cask/cmd/internal_stanza_spec.rb - - ./test/cask/cmd/list_spec.rb - - ./test/cask/cmd/outdated_spec.rb - - ./test/cask/cmd/reinstall_spec.rb - - ./test/cask/cmd/shared_examples/invalid_option.rb - - ./test/cask/cmd/shared_examples/requires_cask_token.rb - - ./test/cask/cmd/style_spec.rb - - ./test/cask/cmd/uninstall_spec.rb - - ./test/cask/cmd/upgrade_spec.rb - - ./test/cask/cmd/zap_spec.rb - - ./test/cask/cmd_spec.rb - - ./test/cask/config_spec.rb - - ./test/cask/conflicts_with_spec.rb - - ./test/cask/denylist_spec.rb - - ./test/cask/depends_on_spec.rb - - ./test/cask/dsl/appcast_spec.rb - - ./test/cask/dsl/caveats_spec.rb - - ./test/cask/dsl/postflight_spec.rb - - ./test/cask/dsl/preflight_spec.rb - - ./test/cask/dsl/shared_examples/base.rb - - ./test/cask/dsl/shared_examples/staged.rb - - ./test/cask/dsl/uninstall_postflight_spec.rb - - ./test/cask/dsl/uninstall_preflight_spec.rb - - ./test/cask/dsl/version_spec.rb - - ./test/cask/dsl_spec.rb - - ./test/cask/installer_spec.rb - - ./test/cask/macos_spec.rb - - ./test/cask/pkg_spec.rb - - ./test/cask/quarantine_spec.rb - - ./test/cask/verify_spec.rb - - ./test/cask_dependent_spec.rb - - ./test/caveats_spec.rb - - ./test/checksum_spec.rb - - ./test/checksum_verification_spec.rb - - ./test/cleaner_spec.rb - - ./test/cleanup_spec.rb - - ./test/cli/parser_spec.rb - - ./test/cmd/--cache_spec.rb - - ./test/cmd/--caskroom_spec.rb - - ./test/cmd/--cellar_spec.rb - - ./test/cmd/--env_spec.rb - - ./test/cmd/--prefix_spec.rb - - ./test/cmd/--repository_spec.rb - - ./test/cmd/--version_spec.rb - - ./test/cmd/analytics_spec.rb - - ./test/cmd/bundle_spec.rb - - ./test/cmd/cask_spec.rb - - ./test/cmd/cleanup_spec.rb - - ./test/cmd/commands_spec.rb - - ./test/cmd/config_spec.rb - - ./test/cmd/custom-external-command_spec.rb - - ./test/cmd/deps_spec.rb - - ./test/cmd/desc_spec.rb - - ./test/cmd/doctor_spec.rb - - ./test/cmd/fetch_spec.rb - - ./test/cmd/gist-logs_spec.rb - - ./test/cmd/help_spec.rb - - ./test/cmd/home_spec.rb - - ./test/cmd/info_spec.rb - - ./test/cmd/install_spec.rb - - ./test/cmd/leaves_spec.rb - - ./test/cmd/link_spec.rb - - ./test/cmd/list_spec.rb - - ./test/cmd/log_spec.rb - - ./test/cmd/migrate_spec.rb - - ./test/cmd/missing_spec.rb - - ./test/cmd/options_spec.rb - - ./test/cmd/outdated_spec.rb - - ./test/cmd/pin_spec.rb - - ./test/cmd/postinstall_spec.rb - - ./test/cmd/readall_spec.rb - - ./test/cmd/reinstall_spec.rb - - ./test/cmd/search_spec.rb - - ./test/cmd/services_spec.rb - - ./test/cmd/shared_examples/args_parse.rb - - ./test/cmd/switch_spec.rb - - ./test/cmd/tap-info_spec.rb - - ./test/cmd/tap_spec.rb - - ./test/cmd/uninstall_spec.rb - - ./test/cmd/unlink_spec.rb - - ./test/cmd/unpin_spec.rb - - ./test/cmd/untap_spec.rb - - ./test/cmd/update-report_spec.rb - - ./test/cmd/upgrade_spec.rb - - ./test/cmd/uses_spec.rb - - ./test/commands_spec.rb - - ./test/compiler_failure_spec.rb - - ./test/compiler_selector_spec.rb - - ./test/cxxstdlib_spec.rb - - ./test/dependable_spec.rb - - ./test/dependencies_helpers_spec.rb - - ./test/dependencies_spec.rb - - ./test/dependency_collector_spec.rb - - ./test/dependency_expansion_spec.rb - - ./test/dependency_spec.rb - - ./test/description_cache_store_spec.rb - - ./test/descriptions_spec.rb - - ./test/dev-cmd/audit_spec.rb - - ./test/dev-cmd/bottle_spec.rb - - ./test/dev-cmd/bump-cask-pr_spec.rb - - ./test/dev-cmd/bump-formula-pr_spec.rb - - ./test/dev-cmd/bump-revision_spec.rb - - ./test/dev-cmd/cat_spec.rb - - ./test/dev-cmd/command_spec.rb - - ./test/dev-cmd/create_spec.rb - - ./test/dev-cmd/diy_spec.rb - - ./test/dev-cmd/edit_spec.rb - - ./test/dev-cmd/extract_spec.rb - - ./test/dev-cmd/formula_spec.rb - - ./test/dev-cmd/irb_spec.rb - - ./test/dev-cmd/linkage_spec.rb - - ./test/dev-cmd/man_spec.rb - - ./test/dev-cmd/mirror_spec.rb - - ./test/dev-cmd/pr-automerge_spec.rb - - ./test/dev-cmd/pr-publish_spec.rb - - ./test/dev-cmd/pr-pull_spec.rb - - ./test/dev-cmd/pr-upload_spec.rb - - ./test/dev-cmd/prof_spec.rb - - ./test/dev-cmd/release-notes_spec.rb - - ./test/dev-cmd/ruby_spec.rb - - ./test/dev-cmd/sh_spec.rb - - ./test/dev-cmd/sponsors_spec.rb - - ./test/dev-cmd/style_spec.rb - - ./test/dev-cmd/tap-new_spec.rb - - ./test/dev-cmd/test_spec.rb - - ./test/dev-cmd/unpack_spec.rb - - ./test/dev-cmd/update-license-data_spec.rb - - ./test/dev-cmd/vendor-gems_spec.rb - - ./test/diagnostic_checks_spec.rb - - ./test/download_strategies_spec.rb - - ./test/env_config_spec.rb - - ./test/error_during_execution_spec.rb - - ./test/exceptions_spec.rb - - ./test/formatter_spec.rb - - ./test/formula_free_port_spec.rb - - ./test/formula_info_spec.rb - - ./test/formula_installer_bottle_spec.rb - - ./test/formula_installer_spec.rb - - ./test/formula_pin_spec.rb - - ./test/formula_spec.rb - - ./test/formula_spec_selection_spec.rb - - ./test/formula_support_spec.rb - - ./test/formula_validation_spec.rb - - ./test/formulary_spec.rb - - ./test/hardware/cpu_spec.rb - - ./test/inreplace_spec.rb - - ./test/java_requirement_spec.rb - - ./test/keg_spec.rb - - ./test/language/go_spec.rb - - ./test/language/java_spec.rb - - ./test/language/node_spec.rb - - ./test/language/perl/shebang_spec.rb - - ./test/language/python_spec.rb - - ./test/lazy_object_spec.rb - - ./test/linkage_cache_store_spec.rb - - ./test/livecheck_spec.rb - - ./test/locale_spec.rb - - ./test/lock_file_spec.rb - - ./test/messages_spec.rb - - ./test/migrator_spec.rb - - ./test/missing_formula_spec.rb - - ./test/options_spec.rb - - ./test/os/linux/dependency_collector_spec.rb - - ./test/os/linux/diagnostic_spec.rb - - ./test/os/linux/formula_spec.rb - - ./test/os/linux/pathname_spec.rb - - ./test/os/mac/dependency_collector_spec.rb - - ./test/os/mac/diagnostic_spec.rb - - ./test/os/mac/formula_spec.rb - - ./test/os/mac/java_requirement_spec.rb - - ./test/os/mac/keg_spec.rb - - ./test/os/mac/mach_spec.rb - - ./test/os/mac/software_spec_spec.rb - - ./test/os/mac/version_spec.rb - - ./test/os/mac_spec.rb - - ./test/patch_spec.rb - - ./test/patching_spec.rb - - ./test/pathname_spec.rb - - ./test/pkg_version_spec.rb - - ./test/requirement_spec.rb - - ./test/requirements/codesign_requirement_spec.rb - - ./test/requirements/java_requirement_spec.rb - - ./test/requirements/linux_requirement_spec.rb - - ./test/requirements/macos_requirement_spec.rb - - ./test/requirements/osxfuse_requirement_spec.rb - - ./test/requirements_spec.rb - - ./test/resource_spec.rb - - ./test/rubocop_spec.rb - - ./test/rubocops/cask/desc_spec.rb - - ./test/rubocops/cask/homepage_matches_url_spec.rb - - ./test/rubocops/cask/homepage_url_trailing_slash_spec.rb - - ./test/rubocops/cask/no_dsl_version_spec.rb - - ./test/rubocops/cask/shared_examples/cask_cop.rb - - ./test/rubocops/cask/stanza_grouping_spec.rb - - ./test/rubocops/cask/stanza_order_spec.rb - - ./test/rubocops/caveats_spec.rb - - ./test/rubocops/checksum_spec.rb - - ./test/rubocops/class_spec.rb - - ./test/rubocops/components_order_spec.rb - - ./test/rubocops/components_redundancy_spec.rb - - ./test/rubocops/conflicts_spec.rb - - ./test/rubocops/dependency_order_spec.rb - - ./test/rubocops/files_spec.rb - - ./test/rubocops/formula_desc_spec.rb - - ./test/rubocops/homepage_spec.rb - - ./test/rubocops/keg_only_spec.rb - - ./test/rubocops/lines_spec.rb - - ./test/rubocops/options_spec.rb - - ./test/rubocops/patches_spec.rb - - ./test/rubocops/text_spec.rb - - ./test/rubocops/urls_spec.rb - - ./test/rubocops/uses_from_macos_spec.rb - - ./test/rubocops/version_spec.rb - - ./test/sandbox_spec.rb - - ./test/search_spec.rb - - ./test/searchable_spec.rb - - ./test/software_spec_spec.rb - - ./test/spec_helper.rb - - ./test/string_spec.rb - - ./test/style_spec.rb - - ./test/support/fixtures/cask/Casks/adobe-air.rb - - ./test/support/fixtures/cask/Casks/adobe-illustrator.rb - - ./test/support/fixtures/cask/Casks/appdir-interpolation.rb - - ./test/support/fixtures/cask/Casks/auto-updates.rb - - ./test/support/fixtures/cask/Casks/bad-checksum.rb - - ./test/support/fixtures/cask/Casks/bad-checksum2.rb - - ./test/support/fixtures/cask/Casks/basic-cask.rb - - ./test/support/fixtures/cask/Casks/booby-trap.rb - - ./test/support/fixtures/cask/Casks/compat/with-depends-on-macos-string.rb - - ./test/support/fixtures/cask/Casks/container-7z.rb - - ./test/support/fixtures/cask/Casks/container-bzip2.rb - - ./test/support/fixtures/cask/Casks/container-cab.rb - - ./test/support/fixtures/cask/Casks/container-dmg.rb - - ./test/support/fixtures/cask/Casks/container-gzip.rb - - ./test/support/fixtures/cask/Casks/container-pkg.rb - - ./test/support/fixtures/cask/Casks/container-tar-gz.rb - - ./test/support/fixtures/cask/Casks/container-xar.rb - - ./test/support/fixtures/cask/Casks/devmate-with-appcast.rb - - ./test/support/fixtures/cask/Casks/devmate-without-appcast.rb - - ./test/support/fixtures/cask/Casks/generic-artifact-absolute-target.rb - - ./test/support/fixtures/cask/Casks/generic-artifact-relative-target.rb - - ./test/support/fixtures/cask/Casks/github-with-appcast.rb - - ./test/support/fixtures/cask/Casks/github-without-appcast.rb - - ./test/support/fixtures/cask/Casks/hockeyapp-with-appcast.rb - - ./test/support/fixtures/cask/Casks/hockeyapp-without-appcast.rb - - ./test/support/fixtures/cask/Casks/installer-with-uninstall.rb - - ./test/support/fixtures/cask/Casks/invalid-sha256.rb - - ./test/support/fixtures/cask/Casks/invalid/invalid-appcast-multiple.rb - - ./test/support/fixtures/cask/Casks/invalid/invalid-appcast-url.rb - - ./test/support/fixtures/cask/Casks/invalid/invalid-conflicts-with-key.rb - - ./test/support/fixtures/cask/Casks/invalid/invalid-depends-on-arch-value.rb - - ./test/support/fixtures/cask/Casks/invalid/invalid-depends-on-key.rb - - ./test/support/fixtures/cask/Casks/invalid/invalid-depends-on-macos-bad-release.rb - - ./test/support/fixtures/cask/Casks/invalid/invalid-depends-on-macos-conflicting-forms.rb - - ./test/support/fixtures/cask/Casks/invalid/invalid-depends-on-x11-value.rb - - ./test/support/fixtures/cask/Casks/invalid/invalid-generic-artifact-no-target.rb - - ./test/support/fixtures/cask/Casks/invalid/invalid-header-format.rb - - ./test/support/fixtures/cask/Casks/invalid/invalid-header-token-mismatch.rb - - ./test/support/fixtures/cask/Casks/invalid/invalid-header-version.rb - - ./test/support/fixtures/cask/Casks/invalid/invalid-manpage-no-section.rb - - ./test/support/fixtures/cask/Casks/invalid/invalid-stage-only-conflict.rb - - ./test/support/fixtures/cask/Casks/invalid/invalid-two-homepage.rb - - ./test/support/fixtures/cask/Casks/invalid/invalid-two-url.rb - - ./test/support/fixtures/cask/Casks/invalid/invalid-two-version.rb - - ./test/support/fixtures/cask/Casks/latest-with-appcast.rb - - ./test/support/fixtures/cask/Casks/latest-with-auto-updates.rb - - ./test/support/fixtures/cask/Casks/local-caffeine.rb - - ./test/support/fixtures/cask/Casks/local-transmission.rb - - ./test/support/fixtures/cask/Casks/missing-checksum.rb - - ./test/support/fixtures/cask/Casks/missing-homepage.rb - - ./test/support/fixtures/cask/Casks/missing-name.rb - - ./test/support/fixtures/cask/Casks/missing-sha256.rb - - ./test/support/fixtures/cask/Casks/missing-url.rb - - ./test/support/fixtures/cask/Casks/missing-version.rb - - ./test/support/fixtures/cask/Casks/naked-executable.rb - - ./test/support/fixtures/cask/Casks/nested-app.rb - - ./test/support/fixtures/cask/Casks/no-checksum.rb - - ./test/support/fixtures/cask/Casks/no-dsl-version.rb - - ./test/support/fixtures/cask/Casks/osdn-correct-url-format.rb - - ./test/support/fixtures/cask/Casks/osdn-incorrect-url-format.rb - - ./test/support/fixtures/cask/Casks/outdated/auto-updates.rb - - ./test/support/fixtures/cask/Casks/outdated/bad-checksum.rb - - ./test/support/fixtures/cask/Casks/outdated/bad-checksum2.rb - - ./test/support/fixtures/cask/Casks/outdated/local-caffeine.rb - - ./test/support/fixtures/cask/Casks/outdated/local-transmission.rb - - ./test/support/fixtures/cask/Casks/outdated/version-latest.rb - - ./test/support/fixtures/cask/Casks/outdated/will-fail-if-upgraded.rb - - ./test/support/fixtures/cask/Casks/pkg-without-uninstall.rb - - ./test/support/fixtures/cask/Casks/sha256-for-empty-string.rb - - ./test/support/fixtures/cask/Casks/sourceforge-correct-url-format.rb - - ./test/support/fixtures/cask/Casks/sourceforge-incorrect-url-format.rb - - ./test/support/fixtures/cask/Casks/sourceforge-version-latest-correct-url-format.rb - - ./test/support/fixtures/cask/Casks/sourceforge-with-appcast.rb - - ./test/support/fixtures/cask/Casks/stage-only.rb - - ./test/support/fixtures/cask/Casks/test-opera-mail.rb - - ./test/support/fixtures/cask/Casks/test-opera.rb - - ./test/support/fixtures/cask/Casks/version-latest-string.rb - - ./test/support/fixtures/cask/Casks/version-latest-with-checksum.rb - - ./test/support/fixtures/cask/Casks/version-latest.rb - - ./test/support/fixtures/cask/Casks/will-fail-if-upgraded.rb - - ./test/support/fixtures/cask/Casks/with-allow-untrusted.rb - - ./test/support/fixtures/cask/Casks/with-alt-target.rb - - ./test/support/fixtures/cask/Casks/with-appcast.rb - - ./test/support/fixtures/cask/Casks/with-auto-updates.rb - - ./test/support/fixtures/cask/Casks/with-autodetected-manpage-section.rb - - ./test/support/fixtures/cask/Casks/with-binary.rb - - ./test/support/fixtures/cask/Casks/with-caveats.rb - - ./test/support/fixtures/cask/Casks/with-choices.rb - - ./test/support/fixtures/cask/Casks/with-conditional-caveats.rb - - ./test/support/fixtures/cask/Casks/with-conflicts-with.rb - - ./test/support/fixtures/cask/Casks/with-depends-on-arch.rb - - ./test/support/fixtures/cask/Casks/with-depends-on-cask-cyclic-helper.rb - - ./test/support/fixtures/cask/Casks/with-depends-on-cask-cyclic.rb - - ./test/support/fixtures/cask/Casks/with-depends-on-cask-multiple.rb - - ./test/support/fixtures/cask/Casks/with-depends-on-cask.rb - - ./test/support/fixtures/cask/Casks/with-depends-on-formula-multiple.rb - - ./test/support/fixtures/cask/Casks/with-depends-on-formula.rb - - ./test/support/fixtures/cask/Casks/with-depends-on-macos-array.rb - - ./test/support/fixtures/cask/Casks/with-depends-on-macos-comparison.rb - - ./test/support/fixtures/cask/Casks/with-depends-on-macos-failure.rb - - ./test/support/fixtures/cask/Casks/with-depends-on-macos-symbol.rb - - ./test/support/fixtures/cask/Casks/with-depends-on-x11-false.rb - - ./test/support/fixtures/cask/Casks/with-depends-on-x11.rb - - ./test/support/fixtures/cask/Casks/with-embedded-binary.rb - - ./test/support/fixtures/cask/Casks/with-generic-artifact.rb - - ./test/support/fixtures/cask/Casks/with-installable.rb - - ./test/support/fixtures/cask/Casks/with-installer-manual.rb - - ./test/support/fixtures/cask/Casks/with-installer-script.rb - - ./test/support/fixtures/cask/Casks/with-languages.rb - - ./test/support/fixtures/cask/Casks/with-macosx-dir.rb - - ./test/support/fixtures/cask/Casks/with-non-executable-binary.rb - - ./test/support/fixtures/cask/Casks/with-pkgutil-zap.rb - - ./test/support/fixtures/cask/Casks/with-postflight-multi.rb - - ./test/support/fixtures/cask/Casks/with-postflight.rb - - ./test/support/fixtures/cask/Casks/with-preflight-multi.rb - - ./test/support/fixtures/cask/Casks/with-preflight.rb - - ./test/support/fixtures/cask/Casks/with-suite.rb - - ./test/support/fixtures/cask/Casks/with-two-apps-correct.rb - - ./test/support/fixtures/cask/Casks/with-two-apps-subdir.rb - - ./test/support/fixtures/cask/Casks/with-uninstall-delete.rb - - ./test/support/fixtures/cask/Casks/with-uninstall-early-script.rb - - ./test/support/fixtures/cask/Casks/with-uninstall-kext.rb - - ./test/support/fixtures/cask/Casks/with-uninstall-launchctl.rb - - ./test/support/fixtures/cask/Casks/with-uninstall-login-item.rb - - ./test/support/fixtures/cask/Casks/with-uninstall-multi.rb - - ./test/support/fixtures/cask/Casks/with-uninstall-pkgutil.rb - - ./test/support/fixtures/cask/Casks/with-uninstall-postflight-multi.rb - - ./test/support/fixtures/cask/Casks/with-uninstall-postflight.rb - - ./test/support/fixtures/cask/Casks/with-uninstall-preflight-multi.rb - - ./test/support/fixtures/cask/Casks/with-uninstall-preflight.rb - - ./test/support/fixtures/cask/Casks/with-uninstall-quit.rb - - ./test/support/fixtures/cask/Casks/with-uninstall-rmdir.rb - - ./test/support/fixtures/cask/Casks/with-uninstall-script-app.rb - - ./test/support/fixtures/cask/Casks/with-uninstall-script.rb - - ./test/support/fixtures/cask/Casks/with-uninstall-signal.rb - - ./test/support/fixtures/cask/Casks/with-uninstall-trash.rb - - ./test/support/fixtures/cask/Casks/with-zap-delete.rb - - ./test/support/fixtures/cask/Casks/with-zap-early-script.rb - - ./test/support/fixtures/cask/Casks/with-zap-kext.rb - - ./test/support/fixtures/cask/Casks/with-zap-launchctl.rb - - ./test/support/fixtures/cask/Casks/with-zap-login-item.rb - - ./test/support/fixtures/cask/Casks/with-zap-multi.rb - - ./test/support/fixtures/cask/Casks/with-zap-pkgutil.rb - - ./test/support/fixtures/cask/Casks/with-zap-quit.rb - - ./test/support/fixtures/cask/Casks/with-zap-rmdir.rb - - ./test/support/fixtures/cask/Casks/with-zap-script.rb - - ./test/support/fixtures/cask/Casks/with-zap-signal.rb - - ./test/support/fixtures/cask/Casks/with-zap-trash.rb - - ./test/support/fixtures/cask/Casks/with-zap.rb - - ./test/support/fixtures/cask/Casks/without-languages.rb - - ./test/support/fixtures/failball.rb - - ./test/support/fixtures/testball.rb - - ./test/support/fixtures/testball_bottle.rb - - ./test/support/fixtures/third-party/Casks/pharo.rb - - ./test/support/fixtures/third-party/Casks/third-party-cask.rb - - ./test/support/github_formatter.rb - - ./test/support/helper/cask/fake_system_command.rb - - ./test/support/helper/cask/install_helper.rb - - ./test/support/helper/cask/never_sudo_system_command.rb - - ./test/support/helper/formula.rb - - ./test/support/helper/integration_mocks.rb - - ./test/support/helper/mktmpdir.rb - - ./test/support/helper/output_as_tty.rb - - ./test/support/helper/spec/shared_context/homebrew_cask.rb - - ./test/support/helper/spec/shared_context/integration_test.rb - - ./test/support/helper/spec/shared_examples/formulae_exist.rb - - ./test/support/no_seed_progress_formatter.rb - - ./test/system_command_result_spec.rb - - ./test/system_command_spec.rb - - ./test/tab_spec.rb - - ./test/tap_spec.rb - - ./test/unpack_strategy/bazaar_spec.rb - - ./test/unpack_strategy/bzip2_spec.rb - - ./test/unpack_strategy/cvs_spec.rb - - ./test/unpack_strategy/directory_spec.rb - - ./test/unpack_strategy/dmg_spec.rb - - ./test/unpack_strategy/git_spec.rb - - ./test/unpack_strategy/gzip_spec.rb - - ./test/unpack_strategy/jar_spec.rb - - ./test/unpack_strategy/lha_spec.rb - - ./test/unpack_strategy/lzip_spec.rb - - ./test/unpack_strategy/mercurial_spec.rb - - ./test/unpack_strategy/p7zip_spec.rb - - ./test/unpack_strategy/rar_spec.rb - - ./test/unpack_strategy/shared_examples.rb - - ./test/unpack_strategy/subversion_spec.rb - - ./test/unpack_strategy/tar_spec.rb - - ./test/unpack_strategy/uncompressed_spec.rb - - ./test/unpack_strategy/xar_spec.rb - - ./test/unpack_strategy/xz_spec.rb - - ./test/unpack_strategy/zip_spec.rb - - ./test/unpack_strategy_spec.rb - - ./test/utils/analytics_spec.rb - - ./test/utils/bottles/bintray_spec.rb - - ./test/utils/bottles/bottles_spec.rb - - ./test/utils/bottles/collector_spec.rb - - ./test/utils/curl_spec.rb - - ./test/utils/fork_spec.rb - - ./test/utils/git_spec.rb - - ./test/utils/github/actions_spec.rb - - ./test/utils/github_spec.rb - - ./test/utils/popen_spec.rb - - ./test/utils/shell_spec.rb - - ./test/utils/spdx_spec.rb - - ./test/utils/svn_spec.rb - - ./test/utils/tar_spec.rb - - ./test/utils/tty_spec.rb - - ./test/utils/user_spec.rb - - ./test/utils_spec.rb - - ./test/version_spec.rb - - ./test/x11_requirement_spec.rb - - ./unpack_strategy.rb - - ./unpack_strategy/air.rb - - ./unpack_strategy/bazaar.rb - - ./unpack_strategy/bzip2.rb - - ./unpack_strategy/cab.rb - - ./unpack_strategy/compress.rb - - ./unpack_strategy/cvs.rb - - ./unpack_strategy/directory.rb - - ./unpack_strategy/dmg.rb - - ./unpack_strategy/executable.rb - - ./unpack_strategy/fossil.rb - - ./unpack_strategy/generic_unar.rb - - ./unpack_strategy/git.rb - - ./unpack_strategy/gzip.rb - - ./unpack_strategy/jar.rb - - ./unpack_strategy/lha.rb - - ./unpack_strategy/lua_rock.rb - - ./unpack_strategy/lzip.rb - - ./unpack_strategy/lzma.rb - - ./unpack_strategy/mercurial.rb - - ./unpack_strategy/microsoft_office_xml.rb - - ./unpack_strategy/otf.rb - - ./unpack_strategy/p7zip.rb - - ./unpack_strategy/pax.rb - - ./unpack_strategy/pkg.rb - - ./unpack_strategy/rar.rb - - ./unpack_strategy/self_extracting_executable.rb - - ./unpack_strategy/sit.rb - - ./unpack_strategy/subversion.rb - - ./unpack_strategy/tar.rb - - ./unpack_strategy/ttf.rb - - ./unpack_strategy/uncompressed.rb - - ./unpack_strategy/xar.rb - - ./unpack_strategy/xz.rb - - ./unpack_strategy/zip.rb - - ./upgrade.rb - - ./utils.rb - - ./utils/analytics.rb - - ./utils/curl.rb - - ./utils/fork.rb - - ./utils/formatter.rb - - ./utils/gems.rb - - ./utils/git.rb - - ./utils/github.rb - - ./utils/github/actions.rb - - ./utils/popen.rb - - ./utils/pypi.rb - - ./version.rb - -true: - - ./build_options.rb - - ./cache_store.rb - - ./cask_dependent.rb - - ./cask/cache.rb - - ./cask/denylist.rb - - ./cask/macos.rb - - ./cask/url.rb - - ./checksum.rb - - ./cleaner.rb - - ./cli/args.rb - - ./compat/cli/parser.rb - - ./compat/dependencies_helpers.rb - - ./compat/extend/nil.rb - - ./compat/extend/string.rb - - ./compat/formula.rb - - ./compat/os/mac.rb - - ./compilers.rb - - ./config.rb - - ./context.rb - - ./dependable.rb - - ./dependencies_helpers.rb - - ./dependency_collector.rb - - ./deprecate_disable.rb - - ./description_cache_store.rb - - ./descriptions.rb - - ./env_config.rb - - ./extend/cachable.rb - - ./extend/os/linux/development_tools.rb - - ./extend/os/linux/formula.rb - - ./extend/os/linux/resource.rb - - ./extend/os/linux/software_spec.rb - - ./extend/os/mac/cleaner.rb - - ./extend/os/mac/formula.rb - - ./extend/os/mac/keg.rb - - ./extend/os/mac/resource.rb - - ./extend/os/mac/utils/analytics.rb - - ./fetch.rb - - ./formula_free_port.rb - - ./formula_pin.rb - - ./formula_support.rb - - ./hardware.rb - - ./help.rb - - ./install.rb - - ./install_renamed.rb - - ./language/go.rb - - ./language/java.rb - - ./language/perl.rb - - ./lazy_object.rb - - ./linkage_cache_store.rb - - ./livecheck.rb - - ./load_path.rb - - ./locale.rb - - ./messages.rb - - ./metafiles.rb - - ./official_taps.rb - - ./os.rb - - ./os/linux.rb - - ./os/linux/glibc.rb - - ./os/linux/kernel.rb - - ./reinstall.rb - - ./rubocops/cask/ast/cask_header.rb - - ./rubocops/cask/ast/stanza.rb - - ./rubocops/cask/constants/stanza.rb - - ./rubocops/cask/desc.rb - - ./rubocops/cask/extend/string.rb - - ./tap_constants.rb - - ./test/support/helper/fixtures.rb - - ./test/support/lib/config.rb - - ./utils/bottles.rb - - ./utils/inreplace.rb - - ./utils/link.rb - - ./utils/ruby_check_version_script.rb - - ./utils/shared_audits.rb - - ./utils/shebang.rb - - ./utils/shell.rb - - ./utils/spdx.rb - - ./utils/svn.rb - - ./utils/tar.rb - - ./utils/tty.rb - - ./utils/user.rb - - ./version/null.rb - -strict: - - ./cask.rb - - ./cask/artifact.rb - - ./cask/dsl/uninstall_postflight.rb - - ./compat.rb - - ./extend/optparse.rb - - ./extend/os/bottles.rb - - ./extend/os/caveats.rb - - ./extend/os/cleaner.rb - - ./extend/os/dependency_collector.rb - - ./extend/os/development_tools.rb - - ./extend/os/diagnostic.rb - - ./extend/os/extend/ENV/shared.rb - - ./extend/os/extend/ENV/std.rb - - ./extend/os/extend/ENV/super.rb - - ./extend/os/formula.rb - - ./extend/os/formula_cellar_checks.rb - - ./extend/os/formula_support.rb - - ./extend/os/hardware.rb - - ./extend/os/install.rb - - ./extend/os/keg.rb - - ./extend/os/keg_relocate.rb - - ./extend/os/language/java.rb - - ./extend/os/linkage_checker.rb - - ./extend/os/linux/cleaner.rb - - ./extend/os/linux/extend/pathname.rb - - ./extend/os/mac/formula_support.rb - - ./extend/os/missing_formula.rb - - ./extend/os/pathname.rb - - ./extend/os/readall.rb - - ./extend/os/requirements/java_requirement.rb - - ./extend/os/requirements/osxfuse_requirement.rb - - ./extend/os/requirements/x11_requirement.rb - - ./extend/os/resource.rb - - ./extend/os/search.rb - - ./extend/os/software_spec.rb - - ./extend/os/system_config.rb - - ./extend/os/tap.rb - - ./extend/os/utils/analytics.rb - - ./language/haskell.rb - - ./os/global.rb - - ./requirements.rb - - ./requirements/osxfuse_requirement.rb - - ./rubocops.rb - - ./rubocops/rubocop-cask.rb +false: [] +true: [] +strict: [] diff --git a/Library/Homebrew/style.rb b/Library/Homebrew/style.rb index 1fbc2420e7..437df8a775 100644 --- a/Library/Homebrew/style.rb +++ b/Library/Homebrew/style.rb @@ -1,3 +1,4 @@ +# typed: false # frozen_string_literal: true require "shellwords" diff --git a/Library/Homebrew/system_command.rb b/Library/Homebrew/system_command.rb index 89307f7c33..33f3781d7b 100644 --- a/Library/Homebrew/system_command.rb +++ b/Library/Homebrew/system_command.rb @@ -1,3 +1,4 @@ +# typed: false # frozen_string_literal: true require "open3" diff --git a/Library/Homebrew/system_config.rb b/Library/Homebrew/system_config.rb index a377e3bc24..5af0d7dbd2 100644 --- a/Library/Homebrew/system_config.rb +++ b/Library/Homebrew/system_config.rb @@ -1,3 +1,4 @@ +# typed: false # frozen_string_literal: true require "hardware" diff --git a/Library/Homebrew/tab.rb b/Library/Homebrew/tab.rb index 8283d08cb0..099eb3b1e9 100644 --- a/Library/Homebrew/tab.rb +++ b/Library/Homebrew/tab.rb @@ -1,3 +1,4 @@ +# typed: false # frozen_string_literal: true require "cxxstdlib" diff --git a/Library/Homebrew/tap.rb b/Library/Homebrew/tap.rb index 0ccee1b2c2..8c6fb892d7 100644 --- a/Library/Homebrew/tap.rb +++ b/Library/Homebrew/tap.rb @@ -1,3 +1,4 @@ +# typed: false # frozen_string_literal: true require "commands" diff --git a/Library/Homebrew/tap_constants.rb b/Library/Homebrew/tap_constants.rb index c375ba8dc8..1da9c0e571 100644 --- a/Library/Homebrew/tap_constants.rb +++ b/Library/Homebrew/tap_constants.rb @@ -1,3 +1,4 @@ +# typed: true # frozen_string_literal: true # match taps' formulae, e.g. someuser/sometap/someformula diff --git a/Library/Homebrew/test.rb b/Library/Homebrew/test.rb index 735775fc30..82cc34e692 100644 --- a/Library/Homebrew/test.rb +++ b/Library/Homebrew/test.rb @@ -1,3 +1,4 @@ +# typed: false # frozen_string_literal: true old_trap = trap("INT") { exit! 130 } diff --git a/Library/Homebrew/test/ENV_spec.rb b/Library/Homebrew/test/ENV_spec.rb index 9a91960363..c0f5cfe768 100644 --- a/Library/Homebrew/test/ENV_spec.rb +++ b/Library/Homebrew/test/ENV_spec.rb @@ -1,3 +1,4 @@ +# typed: false # frozen_string_literal: true require "cli/args" diff --git a/Library/Homebrew/test/PATH_spec.rb b/Library/Homebrew/test/PATH_spec.rb index eda4461f64..68357d4b85 100644 --- a/Library/Homebrew/test/PATH_spec.rb +++ b/Library/Homebrew/test/PATH_spec.rb @@ -1,3 +1,4 @@ +# typed: false # frozen_string_literal: true require "PATH" diff --git a/Library/Homebrew/test/bash_spec.rb b/Library/Homebrew/test/bash_spec.rb index b3b552249e..3a7827c853 100644 --- a/Library/Homebrew/test/bash_spec.rb +++ b/Library/Homebrew/test/bash_spec.rb @@ -1,3 +1,4 @@ +# typed: false # frozen_string_literal: true require "open3" diff --git a/Library/Homebrew/test/bintray_spec.rb b/Library/Homebrew/test/bintray_spec.rb index 2a61f8d476..6163265a85 100644 --- a/Library/Homebrew/test/bintray_spec.rb +++ b/Library/Homebrew/test/bintray_spec.rb @@ -1,3 +1,4 @@ +# typed: false # frozen_string_literal: true require "bintray" diff --git a/Library/Homebrew/test/bottle_filename_spec.rb b/Library/Homebrew/test/bottle_filename_spec.rb index f7db07f96e..7d95739ea9 100644 --- a/Library/Homebrew/test/bottle_filename_spec.rb +++ b/Library/Homebrew/test/bottle_filename_spec.rb @@ -1,3 +1,4 @@ +# typed: false # frozen_string_literal: true require "formula" diff --git a/Library/Homebrew/test/build_environment_spec.rb b/Library/Homebrew/test/build_environment_spec.rb index e5bc95da36..79f8a57e85 100644 --- a/Library/Homebrew/test/build_environment_spec.rb +++ b/Library/Homebrew/test/build_environment_spec.rb @@ -1,3 +1,4 @@ +# typed: false # frozen_string_literal: true require "build_environment" diff --git a/Library/Homebrew/test/build_options_spec.rb b/Library/Homebrew/test/build_options_spec.rb index 8bfede1f2b..f7693171f8 100644 --- a/Library/Homebrew/test/build_options_spec.rb +++ b/Library/Homebrew/test/build_options_spec.rb @@ -1,3 +1,4 @@ +# typed: false # frozen_string_literal: true require "build_options" diff --git a/Library/Homebrew/test/cache_store_spec.rb b/Library/Homebrew/test/cache_store_spec.rb index 0365b3423b..2b122fed4c 100644 --- a/Library/Homebrew/test/cache_store_spec.rb +++ b/Library/Homebrew/test/cache_store_spec.rb @@ -1,3 +1,4 @@ +# typed: false # frozen_string_literal: true require "cache_store" diff --git a/Library/Homebrew/test/cask/artifact/alt_target_spec.rb b/Library/Homebrew/test/cask/artifact/alt_target_spec.rb index ed0e9d4591..a31554950a 100644 --- a/Library/Homebrew/test/cask/artifact/alt_target_spec.rb +++ b/Library/Homebrew/test/cask/artifact/alt_target_spec.rb @@ -1,3 +1,4 @@ +# typed: false # frozen_string_literal: true describe Cask::Artifact::App, :cask do diff --git a/Library/Homebrew/test/cask/artifact/app_spec.rb b/Library/Homebrew/test/cask/artifact/app_spec.rb index add9b9dc56..4cb1ad17fc 100644 --- a/Library/Homebrew/test/cask/artifact/app_spec.rb +++ b/Library/Homebrew/test/cask/artifact/app_spec.rb @@ -1,3 +1,4 @@ +# typed: false # frozen_string_literal: true describe Cask::Artifact::App, :cask do diff --git a/Library/Homebrew/test/cask/artifact/binary_spec.rb b/Library/Homebrew/test/cask/artifact/binary_spec.rb index 230046770c..149eea835f 100644 --- a/Library/Homebrew/test/cask/artifact/binary_spec.rb +++ b/Library/Homebrew/test/cask/artifact/binary_spec.rb @@ -1,3 +1,4 @@ +# typed: false # frozen_string_literal: true describe Cask::Artifact::Binary, :cask do diff --git a/Library/Homebrew/test/cask/artifact/generic_artifact_spec.rb b/Library/Homebrew/test/cask/artifact/generic_artifact_spec.rb index d783a48b4c..67420059c3 100644 --- a/Library/Homebrew/test/cask/artifact/generic_artifact_spec.rb +++ b/Library/Homebrew/test/cask/artifact/generic_artifact_spec.rb @@ -1,3 +1,4 @@ +# typed: false # frozen_string_literal: true describe Cask::Artifact::Artifact, :cask do diff --git a/Library/Homebrew/test/cask/artifact/installer_spec.rb b/Library/Homebrew/test/cask/artifact/installer_spec.rb index 6bff500bbc..1feb893391 100644 --- a/Library/Homebrew/test/cask/artifact/installer_spec.rb +++ b/Library/Homebrew/test/cask/artifact/installer_spec.rb @@ -1,3 +1,4 @@ +# typed: false # frozen_string_literal: true describe Cask::Artifact::Installer, :cask do diff --git a/Library/Homebrew/test/cask/artifact/manpage_spec.rb b/Library/Homebrew/test/cask/artifact/manpage_spec.rb index e94e9a8ce1..5cfacd2b2e 100644 --- a/Library/Homebrew/test/cask/artifact/manpage_spec.rb +++ b/Library/Homebrew/test/cask/artifact/manpage_spec.rb @@ -1,3 +1,4 @@ +# typed: false # frozen_string_literal: true describe Cask::Artifact::Manpage, :cask do diff --git a/Library/Homebrew/test/cask/artifact/pkg_spec.rb b/Library/Homebrew/test/cask/artifact/pkg_spec.rb index 19087acd94..49ae668d9c 100644 --- a/Library/Homebrew/test/cask/artifact/pkg_spec.rb +++ b/Library/Homebrew/test/cask/artifact/pkg_spec.rb @@ -1,3 +1,4 @@ +# typed: false # frozen_string_literal: true describe Cask::Artifact::Pkg, :cask do diff --git a/Library/Homebrew/test/cask/artifact/postflight_block_spec.rb b/Library/Homebrew/test/cask/artifact/postflight_block_spec.rb index 52cd1bf0ca..21957b37dc 100644 --- a/Library/Homebrew/test/cask/artifact/postflight_block_spec.rb +++ b/Library/Homebrew/test/cask/artifact/postflight_block_spec.rb @@ -1,3 +1,4 @@ +# typed: false # frozen_string_literal: true describe Cask::Artifact::PostflightBlock, :cask do diff --git a/Library/Homebrew/test/cask/artifact/preflight_block_spec.rb b/Library/Homebrew/test/cask/artifact/preflight_block_spec.rb index 7546690b0a..543ff90b4d 100644 --- a/Library/Homebrew/test/cask/artifact/preflight_block_spec.rb +++ b/Library/Homebrew/test/cask/artifact/preflight_block_spec.rb @@ -1,3 +1,4 @@ +# typed: false # frozen_string_literal: true describe Cask::Artifact::PreflightBlock, :cask do diff --git a/Library/Homebrew/test/cask/artifact/shared_examples/uninstall_zap.rb b/Library/Homebrew/test/cask/artifact/shared_examples/uninstall_zap.rb index 49d86dae22..fc91356cfb 100644 --- a/Library/Homebrew/test/cask/artifact/shared_examples/uninstall_zap.rb +++ b/Library/Homebrew/test/cask/artifact/shared_examples/uninstall_zap.rb @@ -1,3 +1,4 @@ +# typed: false # frozen_string_literal: true require "benchmark" diff --git a/Library/Homebrew/test/cask/artifact/suite_spec.rb b/Library/Homebrew/test/cask/artifact/suite_spec.rb index 7cf983f053..61144b3679 100644 --- a/Library/Homebrew/test/cask/artifact/suite_spec.rb +++ b/Library/Homebrew/test/cask/artifact/suite_spec.rb @@ -1,3 +1,4 @@ +# typed: false # frozen_string_literal: true describe Cask::Artifact::Suite, :cask do diff --git a/Library/Homebrew/test/cask/artifact/two_apps_correct_spec.rb b/Library/Homebrew/test/cask/artifact/two_apps_correct_spec.rb index 1f63083855..3a5371e3b2 100644 --- a/Library/Homebrew/test/cask/artifact/two_apps_correct_spec.rb +++ b/Library/Homebrew/test/cask/artifact/two_apps_correct_spec.rb @@ -1,3 +1,4 @@ +# typed: false # frozen_string_literal: true describe Cask::Artifact::App, :cask do diff --git a/Library/Homebrew/test/cask/artifact/uninstall_no_zap_spec.rb b/Library/Homebrew/test/cask/artifact/uninstall_no_zap_spec.rb index ae2cce3f91..31b14aa7f4 100644 --- a/Library/Homebrew/test/cask/artifact/uninstall_no_zap_spec.rb +++ b/Library/Homebrew/test/cask/artifact/uninstall_no_zap_spec.rb @@ -1,3 +1,4 @@ +# typed: false # frozen_string_literal: true describe Cask::Artifact::Zap, :cask do diff --git a/Library/Homebrew/test/cask/artifact/uninstall_spec.rb b/Library/Homebrew/test/cask/artifact/uninstall_spec.rb index cd50589dc6..7ce9297f4c 100644 --- a/Library/Homebrew/test/cask/artifact/uninstall_spec.rb +++ b/Library/Homebrew/test/cask/artifact/uninstall_spec.rb @@ -1,3 +1,4 @@ +# typed: false # frozen_string_literal: true require_relative "shared_examples/uninstall_zap" diff --git a/Library/Homebrew/test/cask/artifact/zap_spec.rb b/Library/Homebrew/test/cask/artifact/zap_spec.rb index 0f1e7da7da..1013d9fd44 100644 --- a/Library/Homebrew/test/cask/artifact/zap_spec.rb +++ b/Library/Homebrew/test/cask/artifact/zap_spec.rb @@ -1,3 +1,4 @@ +# typed: false # frozen_string_literal: true require_relative "shared_examples/uninstall_zap" diff --git a/Library/Homebrew/test/cask/audit_spec.rb b/Library/Homebrew/test/cask/audit_spec.rb index 6b0f9f4a38..497780f470 100644 --- a/Library/Homebrew/test/cask/audit_spec.rb +++ b/Library/Homebrew/test/cask/audit_spec.rb @@ -1,3 +1,4 @@ +# typed: false # frozen_string_literal: true require "cask/audit" diff --git a/Library/Homebrew/test/cask/cask_loader/from__path_loader_spec.rb b/Library/Homebrew/test/cask/cask_loader/from__path_loader_spec.rb index 86fa8061e2..297a2ab32c 100644 --- a/Library/Homebrew/test/cask/cask_loader/from__path_loader_spec.rb +++ b/Library/Homebrew/test/cask/cask_loader/from__path_loader_spec.rb @@ -1,3 +1,4 @@ +# typed: false # frozen_string_literal: true describe Cask::CaskLoader::FromPathLoader do diff --git a/Library/Homebrew/test/cask/cask_loader/from_content_loader_spec.rb b/Library/Homebrew/test/cask/cask_loader/from_content_loader_spec.rb index 41836b9a1c..c956d089e0 100644 --- a/Library/Homebrew/test/cask/cask_loader/from_content_loader_spec.rb +++ b/Library/Homebrew/test/cask/cask_loader/from_content_loader_spec.rb @@ -1,3 +1,4 @@ +# typed: false # frozen_string_literal: true describe Cask::CaskLoader::FromContentLoader do diff --git a/Library/Homebrew/test/cask/cask_loader/from_uri_loader_spec.rb b/Library/Homebrew/test/cask/cask_loader/from_uri_loader_spec.rb index cb8e021523..c1708d6946 100644 --- a/Library/Homebrew/test/cask/cask_loader/from_uri_loader_spec.rb +++ b/Library/Homebrew/test/cask/cask_loader/from_uri_loader_spec.rb @@ -1,3 +1,4 @@ +# typed: false # frozen_string_literal: true describe Cask::CaskLoader::FromURILoader do diff --git a/Library/Homebrew/test/cask/cask_spec.rb b/Library/Homebrew/test/cask/cask_spec.rb index b0ca9658f5..6badf576a7 100644 --- a/Library/Homebrew/test/cask/cask_spec.rb +++ b/Library/Homebrew/test/cask/cask_spec.rb @@ -1,3 +1,4 @@ +# typed: false # frozen_string_literal: true describe Cask::Cask, :cask do diff --git a/Library/Homebrew/test/cask/cmd/audit_spec.rb b/Library/Homebrew/test/cask/cmd/audit_spec.rb index 18f2fc162c..2a1bd90fc3 100644 --- a/Library/Homebrew/test/cask/cmd/audit_spec.rb +++ b/Library/Homebrew/test/cask/cmd/audit_spec.rb @@ -1,3 +1,4 @@ +# typed: false # frozen_string_literal: true require_relative "shared_examples/invalid_option" diff --git a/Library/Homebrew/test/cask/cmd/cache_spec.rb b/Library/Homebrew/test/cask/cmd/cache_spec.rb index 229edcc598..5cde00d829 100644 --- a/Library/Homebrew/test/cask/cmd/cache_spec.rb +++ b/Library/Homebrew/test/cask/cmd/cache_spec.rb @@ -1,3 +1,4 @@ +# typed: false # frozen_string_literal: true require_relative "shared_examples/requires_cask_token" diff --git a/Library/Homebrew/test/cask/cmd/cat_spec.rb b/Library/Homebrew/test/cask/cmd/cat_spec.rb index 645e666ca8..6fab5cc170 100644 --- a/Library/Homebrew/test/cask/cmd/cat_spec.rb +++ b/Library/Homebrew/test/cask/cmd/cat_spec.rb @@ -1,3 +1,4 @@ +# typed: false # frozen_string_literal: true require_relative "shared_examples/requires_cask_token" diff --git a/Library/Homebrew/test/cask/cmd/create_spec.rb b/Library/Homebrew/test/cask/cmd/create_spec.rb index d0f0334632..d8fa5cb425 100644 --- a/Library/Homebrew/test/cask/cmd/create_spec.rb +++ b/Library/Homebrew/test/cask/cmd/create_spec.rb @@ -1,3 +1,4 @@ +# typed: false # frozen_string_literal: true require_relative "shared_examples/requires_cask_token" diff --git a/Library/Homebrew/test/cask/cmd/doctor_spec.rb b/Library/Homebrew/test/cask/cmd/doctor_spec.rb index 5351f93e54..1f913b6701 100644 --- a/Library/Homebrew/test/cask/cmd/doctor_spec.rb +++ b/Library/Homebrew/test/cask/cmd/doctor_spec.rb @@ -1,3 +1,4 @@ +# typed: false # frozen_string_literal: true require_relative "shared_examples/invalid_option" diff --git a/Library/Homebrew/test/cask/cmd/edit_spec.rb b/Library/Homebrew/test/cask/cmd/edit_spec.rb index e6a7d8fd14..18d390ee74 100644 --- a/Library/Homebrew/test/cask/cmd/edit_spec.rb +++ b/Library/Homebrew/test/cask/cmd/edit_spec.rb @@ -1,3 +1,4 @@ +# typed: false # frozen_string_literal: true require_relative "shared_examples/requires_cask_token" diff --git a/Library/Homebrew/test/cask/cmd/fetch_spec.rb b/Library/Homebrew/test/cask/cmd/fetch_spec.rb index 35ecf63318..bc68dc9ec0 100644 --- a/Library/Homebrew/test/cask/cmd/fetch_spec.rb +++ b/Library/Homebrew/test/cask/cmd/fetch_spec.rb @@ -1,3 +1,4 @@ +# typed: false # frozen_string_literal: true require_relative "shared_examples/requires_cask_token" diff --git a/Library/Homebrew/test/cask/cmd/home_spec.rb b/Library/Homebrew/test/cask/cmd/home_spec.rb index f94229f279..5774a6d59c 100644 --- a/Library/Homebrew/test/cask/cmd/home_spec.rb +++ b/Library/Homebrew/test/cask/cmd/home_spec.rb @@ -1,3 +1,4 @@ +# typed: false # frozen_string_literal: true require_relative "shared_examples/invalid_option" diff --git a/Library/Homebrew/test/cask/cmd/info_spec.rb b/Library/Homebrew/test/cask/cmd/info_spec.rb index 3828d4d95e..3022fc323f 100644 --- a/Library/Homebrew/test/cask/cmd/info_spec.rb +++ b/Library/Homebrew/test/cask/cmd/info_spec.rb @@ -1,3 +1,4 @@ +# typed: false # frozen_string_literal: true require_relative "shared_examples/requires_cask_token" diff --git a/Library/Homebrew/test/cask/cmd/install_spec.rb b/Library/Homebrew/test/cask/cmd/install_spec.rb index 585d7ac84e..7c051d9d1f 100644 --- a/Library/Homebrew/test/cask/cmd/install_spec.rb +++ b/Library/Homebrew/test/cask/cmd/install_spec.rb @@ -1,3 +1,4 @@ +# typed: false # frozen_string_literal: true require_relative "shared_examples/requires_cask_token" diff --git a/Library/Homebrew/test/cask/cmd/internal_stanza_spec.rb b/Library/Homebrew/test/cask/cmd/internal_stanza_spec.rb index cffb1f7806..9fe4fbd77b 100644 --- a/Library/Homebrew/test/cask/cmd/internal_stanza_spec.rb +++ b/Library/Homebrew/test/cask/cmd/internal_stanza_spec.rb @@ -1,3 +1,4 @@ +# typed: false # frozen_string_literal: true describe Cask::Cmd::InternalStanza, :cask do diff --git a/Library/Homebrew/test/cask/cmd/list_spec.rb b/Library/Homebrew/test/cask/cmd/list_spec.rb index 5ae6ed8f10..1dfa416953 100644 --- a/Library/Homebrew/test/cask/cmd/list_spec.rb +++ b/Library/Homebrew/test/cask/cmd/list_spec.rb @@ -1,3 +1,4 @@ +# typed: false # frozen_string_literal: true require_relative "shared_examples/invalid_option" diff --git a/Library/Homebrew/test/cask/cmd/outdated_spec.rb b/Library/Homebrew/test/cask/cmd/outdated_spec.rb index 2ae1624b35..6850fd749f 100644 --- a/Library/Homebrew/test/cask/cmd/outdated_spec.rb +++ b/Library/Homebrew/test/cask/cmd/outdated_spec.rb @@ -1,3 +1,4 @@ +# typed: false # frozen_string_literal: true require_relative "shared_examples/invalid_option" diff --git a/Library/Homebrew/test/cask/cmd/reinstall_spec.rb b/Library/Homebrew/test/cask/cmd/reinstall_spec.rb index ccd7317e61..8b93c92fc3 100644 --- a/Library/Homebrew/test/cask/cmd/reinstall_spec.rb +++ b/Library/Homebrew/test/cask/cmd/reinstall_spec.rb @@ -1,3 +1,4 @@ +# typed: false # frozen_string_literal: true require_relative "shared_examples/invalid_option" diff --git a/Library/Homebrew/test/cask/cmd/shared_examples/invalid_option.rb b/Library/Homebrew/test/cask/cmd/shared_examples/invalid_option.rb index 467a1be08d..f344ba7703 100644 --- a/Library/Homebrew/test/cask/cmd/shared_examples/invalid_option.rb +++ b/Library/Homebrew/test/cask/cmd/shared_examples/invalid_option.rb @@ -1,3 +1,4 @@ +# typed: false # frozen_string_literal: true shared_examples "a command that handles invalid options" do diff --git a/Library/Homebrew/test/cask/cmd/shared_examples/requires_cask_token.rb b/Library/Homebrew/test/cask/cmd/shared_examples/requires_cask_token.rb index 0e68acc85a..a3faaff589 100644 --- a/Library/Homebrew/test/cask/cmd/shared_examples/requires_cask_token.rb +++ b/Library/Homebrew/test/cask/cmd/shared_examples/requires_cask_token.rb @@ -1,3 +1,4 @@ +# typed: false # frozen_string_literal: true shared_examples "a command that requires a Cask token" do diff --git a/Library/Homebrew/test/cask/cmd/style_spec.rb b/Library/Homebrew/test/cask/cmd/style_spec.rb index 32ce90aa2b..7862cfd519 100644 --- a/Library/Homebrew/test/cask/cmd/style_spec.rb +++ b/Library/Homebrew/test/cask/cmd/style_spec.rb @@ -1,3 +1,4 @@ +# typed: false # frozen_string_literal: true require "open3" diff --git a/Library/Homebrew/test/cask/cmd/uninstall_spec.rb b/Library/Homebrew/test/cask/cmd/uninstall_spec.rb index f5c330615a..8158d1c114 100644 --- a/Library/Homebrew/test/cask/cmd/uninstall_spec.rb +++ b/Library/Homebrew/test/cask/cmd/uninstall_spec.rb @@ -1,3 +1,4 @@ +# typed: false # frozen_string_literal: true require_relative "shared_examples/requires_cask_token" diff --git a/Library/Homebrew/test/cask/cmd/upgrade_spec.rb b/Library/Homebrew/test/cask/cmd/upgrade_spec.rb index 3a9137657c..e930e00b7a 100644 --- a/Library/Homebrew/test/cask/cmd/upgrade_spec.rb +++ b/Library/Homebrew/test/cask/cmd/upgrade_spec.rb @@ -1,3 +1,4 @@ +# typed: false # frozen_string_literal: true require_relative "shared_examples/invalid_option" diff --git a/Library/Homebrew/test/cask/cmd/zap_spec.rb b/Library/Homebrew/test/cask/cmd/zap_spec.rb index 66d90c58a3..f5549f6f9e 100644 --- a/Library/Homebrew/test/cask/cmd/zap_spec.rb +++ b/Library/Homebrew/test/cask/cmd/zap_spec.rb @@ -1,3 +1,4 @@ +# typed: false # frozen_string_literal: true require_relative "shared_examples/requires_cask_token" diff --git a/Library/Homebrew/test/cask/cmd_spec.rb b/Library/Homebrew/test/cask/cmd_spec.rb index e715d05671..d034437fcd 100644 --- a/Library/Homebrew/test/cask/cmd_spec.rb +++ b/Library/Homebrew/test/cask/cmd_spec.rb @@ -1,3 +1,4 @@ +# typed: false # frozen_string_literal: true describe Cask::Cmd, :cask do diff --git a/Library/Homebrew/test/cask/config_spec.rb b/Library/Homebrew/test/cask/config_spec.rb index 412d5f5b85..86cd911675 100644 --- a/Library/Homebrew/test/cask/config_spec.rb +++ b/Library/Homebrew/test/cask/config_spec.rb @@ -1,3 +1,4 @@ +# typed: false # frozen_string_literal: true describe Cask::Config, :cask do diff --git a/Library/Homebrew/test/cask/conflicts_with_spec.rb b/Library/Homebrew/test/cask/conflicts_with_spec.rb index 059685af36..71733db4b2 100644 --- a/Library/Homebrew/test/cask/conflicts_with_spec.rb +++ b/Library/Homebrew/test/cask/conflicts_with_spec.rb @@ -1,3 +1,4 @@ +# typed: false # frozen_string_literal: true describe "conflicts_with", :cask do diff --git a/Library/Homebrew/test/cask/denylist_spec.rb b/Library/Homebrew/test/cask/denylist_spec.rb index 8c34b5988c..65fc182c15 100644 --- a/Library/Homebrew/test/cask/denylist_spec.rb +++ b/Library/Homebrew/test/cask/denylist_spec.rb @@ -1,3 +1,4 @@ +# typed: false # frozen_string_literal: true require "cask/denylist" diff --git a/Library/Homebrew/test/cask/depends_on_spec.rb b/Library/Homebrew/test/cask/depends_on_spec.rb index d9424987da..e00f472d27 100644 --- a/Library/Homebrew/test/cask/depends_on_spec.rb +++ b/Library/Homebrew/test/cask/depends_on_spec.rb @@ -1,3 +1,4 @@ +# typed: false # frozen_string_literal: true # TODO: this test should be named after the corresponding class, once diff --git a/Library/Homebrew/test/cask/dsl/appcast_spec.rb b/Library/Homebrew/test/cask/dsl/appcast_spec.rb index a3b1cf671c..ac7c1f6643 100644 --- a/Library/Homebrew/test/cask/dsl/appcast_spec.rb +++ b/Library/Homebrew/test/cask/dsl/appcast_spec.rb @@ -1,3 +1,4 @@ +# typed: false # frozen_string_literal: true require "cmd/cask" diff --git a/Library/Homebrew/test/cask/dsl/caveats_spec.rb b/Library/Homebrew/test/cask/dsl/caveats_spec.rb index 3b14811f7c..a9b3919a42 100644 --- a/Library/Homebrew/test/cask/dsl/caveats_spec.rb +++ b/Library/Homebrew/test/cask/dsl/caveats_spec.rb @@ -1,3 +1,4 @@ +# typed: false # frozen_string_literal: true require "test/cask/dsl/shared_examples/base" diff --git a/Library/Homebrew/test/cask/dsl/postflight_spec.rb b/Library/Homebrew/test/cask/dsl/postflight_spec.rb index edb411f312..259921fceb 100644 --- a/Library/Homebrew/test/cask/dsl/postflight_spec.rb +++ b/Library/Homebrew/test/cask/dsl/postflight_spec.rb @@ -1,3 +1,4 @@ +# typed: false # frozen_string_literal: true require "test/cask/dsl/shared_examples/base" diff --git a/Library/Homebrew/test/cask/dsl/preflight_spec.rb b/Library/Homebrew/test/cask/dsl/preflight_spec.rb index caf977f526..93f1a60174 100644 --- a/Library/Homebrew/test/cask/dsl/preflight_spec.rb +++ b/Library/Homebrew/test/cask/dsl/preflight_spec.rb @@ -1,3 +1,4 @@ +# typed: false # frozen_string_literal: true require "test/cask/dsl/shared_examples/base" diff --git a/Library/Homebrew/test/cask/dsl/shared_examples/base.rb b/Library/Homebrew/test/cask/dsl/shared_examples/base.rb index c46715d516..f97d2c29db 100644 --- a/Library/Homebrew/test/cask/dsl/shared_examples/base.rb +++ b/Library/Homebrew/test/cask/dsl/shared_examples/base.rb @@ -1,3 +1,4 @@ +# typed: false # frozen_string_literal: true require "cask/dsl/base" diff --git a/Library/Homebrew/test/cask/dsl/shared_examples/staged.rb b/Library/Homebrew/test/cask/dsl/shared_examples/staged.rb index a4d29f84cf..b6490e825d 100644 --- a/Library/Homebrew/test/cask/dsl/shared_examples/staged.rb +++ b/Library/Homebrew/test/cask/dsl/shared_examples/staged.rb @@ -1,3 +1,4 @@ +# typed: false # frozen_string_literal: true require "cask/staged" diff --git a/Library/Homebrew/test/cask/dsl/uninstall_postflight_spec.rb b/Library/Homebrew/test/cask/dsl/uninstall_postflight_spec.rb index 77129641a1..48c7653d5f 100644 --- a/Library/Homebrew/test/cask/dsl/uninstall_postflight_spec.rb +++ b/Library/Homebrew/test/cask/dsl/uninstall_postflight_spec.rb @@ -1,3 +1,4 @@ +# typed: false # frozen_string_literal: true require "test/cask/dsl/shared_examples/base" diff --git a/Library/Homebrew/test/cask/dsl/uninstall_preflight_spec.rb b/Library/Homebrew/test/cask/dsl/uninstall_preflight_spec.rb index fa744f248a..635c35c030 100644 --- a/Library/Homebrew/test/cask/dsl/uninstall_preflight_spec.rb +++ b/Library/Homebrew/test/cask/dsl/uninstall_preflight_spec.rb @@ -1,3 +1,4 @@ +# typed: false # frozen_string_literal: true require "test/cask/dsl/shared_examples/base" diff --git a/Library/Homebrew/test/cask/dsl/version_spec.rb b/Library/Homebrew/test/cask/dsl/version_spec.rb index cd1683aedc..12f5db7dad 100644 --- a/Library/Homebrew/test/cask/dsl/version_spec.rb +++ b/Library/Homebrew/test/cask/dsl/version_spec.rb @@ -1,3 +1,4 @@ +# typed: false # frozen_string_literal: true describe Cask::DSL::Version, :cask do diff --git a/Library/Homebrew/test/cask/dsl_spec.rb b/Library/Homebrew/test/cask/dsl_spec.rb index 0ef5993221..43f7dea992 100644 --- a/Library/Homebrew/test/cask/dsl_spec.rb +++ b/Library/Homebrew/test/cask/dsl_spec.rb @@ -1,3 +1,4 @@ +# typed: false # frozen_string_literal: true describe Cask::DSL, :cask do diff --git a/Library/Homebrew/test/cask/installer_spec.rb b/Library/Homebrew/test/cask/installer_spec.rb index a7b5045bd4..b15bf205cd 100644 --- a/Library/Homebrew/test/cask/installer_spec.rb +++ b/Library/Homebrew/test/cask/installer_spec.rb @@ -1,3 +1,4 @@ +# typed: false # frozen_string_literal: true describe Cask::Installer, :cask do diff --git a/Library/Homebrew/test/cask/macos_spec.rb b/Library/Homebrew/test/cask/macos_spec.rb index 2635e67f17..92f5c332ef 100644 --- a/Library/Homebrew/test/cask/macos_spec.rb +++ b/Library/Homebrew/test/cask/macos_spec.rb @@ -1,3 +1,4 @@ +# typed: false # frozen_string_literal: true describe MacOS, :cask do diff --git a/Library/Homebrew/test/cask/pkg_spec.rb b/Library/Homebrew/test/cask/pkg_spec.rb index 486ab8f822..e98face38a 100644 --- a/Library/Homebrew/test/cask/pkg_spec.rb +++ b/Library/Homebrew/test/cask/pkg_spec.rb @@ -1,3 +1,4 @@ +# typed: false # frozen_string_literal: true describe Cask::Pkg, :cask do diff --git a/Library/Homebrew/test/cask/quarantine_spec.rb b/Library/Homebrew/test/cask/quarantine_spec.rb index 33c8f7a975..779c995eb3 100644 --- a/Library/Homebrew/test/cask/quarantine_spec.rb +++ b/Library/Homebrew/test/cask/quarantine_spec.rb @@ -1,3 +1,4 @@ +# typed: false # frozen_string_literal: true require "cask/cmd/audit" diff --git a/Library/Homebrew/test/cask/verify_spec.rb b/Library/Homebrew/test/cask/verify_spec.rb index 46ce8ad5de..8acc50baef 100644 --- a/Library/Homebrew/test/cask/verify_spec.rb +++ b/Library/Homebrew/test/cask/verify_spec.rb @@ -1,3 +1,4 @@ +# typed: false # frozen_string_literal: true module Cask diff --git a/Library/Homebrew/test/cask_dependent_spec.rb b/Library/Homebrew/test/cask_dependent_spec.rb index 313a67a61b..9f094157ee 100644 --- a/Library/Homebrew/test/cask_dependent_spec.rb +++ b/Library/Homebrew/test/cask_dependent_spec.rb @@ -1,3 +1,4 @@ +# typed: false # frozen_string_literal: true require "cask/cask_loader" diff --git a/Library/Homebrew/test/caveats_spec.rb b/Library/Homebrew/test/caveats_spec.rb index b0ed28814d..6423eefed4 100644 --- a/Library/Homebrew/test/caveats_spec.rb +++ b/Library/Homebrew/test/caveats_spec.rb @@ -1,3 +1,4 @@ +# typed: false # frozen_string_literal: true require "formula" diff --git a/Library/Homebrew/test/checksum_spec.rb b/Library/Homebrew/test/checksum_spec.rb index 7dc8945810..7904eca061 100644 --- a/Library/Homebrew/test/checksum_spec.rb +++ b/Library/Homebrew/test/checksum_spec.rb @@ -1,3 +1,4 @@ +# typed: false # frozen_string_literal: true require "checksum" diff --git a/Library/Homebrew/test/checksum_verification_spec.rb b/Library/Homebrew/test/checksum_verification_spec.rb index 7f3109ca40..b1a7a7f624 100644 --- a/Library/Homebrew/test/checksum_verification_spec.rb +++ b/Library/Homebrew/test/checksum_verification_spec.rb @@ -1,3 +1,4 @@ +# typed: false # frozen_string_literal: true require "formula" diff --git a/Library/Homebrew/test/cleaner_spec.rb b/Library/Homebrew/test/cleaner_spec.rb index bba23b7b81..f3ec58552e 100644 --- a/Library/Homebrew/test/cleaner_spec.rb +++ b/Library/Homebrew/test/cleaner_spec.rb @@ -1,3 +1,4 @@ +# typed: false # frozen_string_literal: true require "cleaner" diff --git a/Library/Homebrew/test/cleanup_spec.rb b/Library/Homebrew/test/cleanup_spec.rb index cb15b9cb1b..f8c363ad44 100644 --- a/Library/Homebrew/test/cleanup_spec.rb +++ b/Library/Homebrew/test/cleanup_spec.rb @@ -1,3 +1,4 @@ +# typed: false # frozen_string_literal: true require "test/support/fixtures/testball" diff --git a/Library/Homebrew/test/cli/named_args_spec.rb b/Library/Homebrew/test/cli/named_args_spec.rb index b70a67acc3..29af7187e1 100644 --- a/Library/Homebrew/test/cli/named_args_spec.rb +++ b/Library/Homebrew/test/cli/named_args_spec.rb @@ -1,3 +1,4 @@ +# typed: false # frozen_string_literal: true require "cli/named_args" diff --git a/Library/Homebrew/test/cli/parser_spec.rb b/Library/Homebrew/test/cli/parser_spec.rb index 0b6ce6e427..d678b332cc 100644 --- a/Library/Homebrew/test/cli/parser_spec.rb +++ b/Library/Homebrew/test/cli/parser_spec.rb @@ -1,3 +1,4 @@ +# typed: false # frozen_string_literal: true require_relative "../../cli/parser" diff --git a/Library/Homebrew/test/cmd/--cache_spec.rb b/Library/Homebrew/test/cmd/--cache_spec.rb index ea8c263fc7..6f8acbb945 100644 --- a/Library/Homebrew/test/cmd/--cache_spec.rb +++ b/Library/Homebrew/test/cmd/--cache_spec.rb @@ -1,3 +1,4 @@ +# typed: false # frozen_string_literal: true require "cmd/shared_examples/args_parse" diff --git a/Library/Homebrew/test/cmd/--caskroom_spec.rb b/Library/Homebrew/test/cmd/--caskroom_spec.rb index 058573ac02..769d95544f 100644 --- a/Library/Homebrew/test/cmd/--caskroom_spec.rb +++ b/Library/Homebrew/test/cmd/--caskroom_spec.rb @@ -1,3 +1,4 @@ +# typed: false # frozen_string_literal: true describe "brew --caskroom", :integration_test do diff --git a/Library/Homebrew/test/cmd/--cellar_spec.rb b/Library/Homebrew/test/cmd/--cellar_spec.rb index 5919a2f6a5..1bda2bd9f9 100644 --- a/Library/Homebrew/test/cmd/--cellar_spec.rb +++ b/Library/Homebrew/test/cmd/--cellar_spec.rb @@ -1,3 +1,4 @@ +# typed: false # frozen_string_literal: true require "cmd/shared_examples/args_parse" diff --git a/Library/Homebrew/test/cmd/--env_spec.rb b/Library/Homebrew/test/cmd/--env_spec.rb index 2f94f13100..d7cd44dbc2 100644 --- a/Library/Homebrew/test/cmd/--env_spec.rb +++ b/Library/Homebrew/test/cmd/--env_spec.rb @@ -1,3 +1,4 @@ +# typed: false # frozen_string_literal: true require "cmd/shared_examples/args_parse" diff --git a/Library/Homebrew/test/cmd/--prefix_spec.rb b/Library/Homebrew/test/cmd/--prefix_spec.rb index 51c34fe222..527581f5f5 100644 --- a/Library/Homebrew/test/cmd/--prefix_spec.rb +++ b/Library/Homebrew/test/cmd/--prefix_spec.rb @@ -1,3 +1,4 @@ +# typed: false # frozen_string_literal: true require "cmd/shared_examples/args_parse" diff --git a/Library/Homebrew/test/cmd/--repository_spec.rb b/Library/Homebrew/test/cmd/--repository_spec.rb index a6d351d903..cb2f750247 100644 --- a/Library/Homebrew/test/cmd/--repository_spec.rb +++ b/Library/Homebrew/test/cmd/--repository_spec.rb @@ -1,3 +1,4 @@ +# typed: false # frozen_string_literal: true require "cmd/shared_examples/args_parse" diff --git a/Library/Homebrew/test/cmd/--version_spec.rb b/Library/Homebrew/test/cmd/--version_spec.rb index 3650b7d44b..7d9d71cd8b 100644 --- a/Library/Homebrew/test/cmd/--version_spec.rb +++ b/Library/Homebrew/test/cmd/--version_spec.rb @@ -1,3 +1,4 @@ +# typed: false # frozen_string_literal: true require "cmd/shared_examples/args_parse" diff --git a/Library/Homebrew/test/cmd/analytics_spec.rb b/Library/Homebrew/test/cmd/analytics_spec.rb index 4c15cbe966..519f366c42 100644 --- a/Library/Homebrew/test/cmd/analytics_spec.rb +++ b/Library/Homebrew/test/cmd/analytics_spec.rb @@ -1,3 +1,4 @@ +# typed: false # frozen_string_literal: true require "cmd/shared_examples/args_parse" diff --git a/Library/Homebrew/test/cmd/bundle_spec.rb b/Library/Homebrew/test/cmd/bundle_spec.rb index 63bb8f509f..7021ea70eb 100644 --- a/Library/Homebrew/test/cmd/bundle_spec.rb +++ b/Library/Homebrew/test/cmd/bundle_spec.rb @@ -1,3 +1,4 @@ +# typed: false # frozen_string_literal: true describe "brew bundle", :integration_test do diff --git a/Library/Homebrew/test/cmd/cask_spec.rb b/Library/Homebrew/test/cmd/cask_spec.rb index 675ac09e93..666854d972 100644 --- a/Library/Homebrew/test/cmd/cask_spec.rb +++ b/Library/Homebrew/test/cmd/cask_spec.rb @@ -1,3 +1,4 @@ +# typed: false # frozen_string_literal: true describe "brew cask", :integration_test, :needs_macos, :needs_network do diff --git a/Library/Homebrew/test/cmd/cleanup_spec.rb b/Library/Homebrew/test/cmd/cleanup_spec.rb index 54d66f74ec..437f8a6277 100644 --- a/Library/Homebrew/test/cmd/cleanup_spec.rb +++ b/Library/Homebrew/test/cmd/cleanup_spec.rb @@ -1,3 +1,4 @@ +# typed: false # frozen_string_literal: true require "cmd/shared_examples/args_parse" diff --git a/Library/Homebrew/test/cmd/commands_spec.rb b/Library/Homebrew/test/cmd/commands_spec.rb index 8dde1ed83e..fb049969e7 100644 --- a/Library/Homebrew/test/cmd/commands_spec.rb +++ b/Library/Homebrew/test/cmd/commands_spec.rb @@ -1,3 +1,4 @@ +# typed: false # frozen_string_literal: true require "cmd/commands" diff --git a/Library/Homebrew/test/cmd/config_spec.rb b/Library/Homebrew/test/cmd/config_spec.rb index 2c454e14d5..df5bed7910 100644 --- a/Library/Homebrew/test/cmd/config_spec.rb +++ b/Library/Homebrew/test/cmd/config_spec.rb @@ -1,3 +1,4 @@ +# typed: false # frozen_string_literal: true require "cmd/shared_examples/args_parse" diff --git a/Library/Homebrew/test/cmd/custom-external-command_spec.rb b/Library/Homebrew/test/cmd/custom-external-command_spec.rb index b6aedd83ea..84e735de63 100644 --- a/Library/Homebrew/test/cmd/custom-external-command_spec.rb +++ b/Library/Homebrew/test/cmd/custom-external-command_spec.rb @@ -1,3 +1,4 @@ +# typed: false # frozen_string_literal: true describe "brew custom-external-command", :integration_test do diff --git a/Library/Homebrew/test/cmd/deps_spec.rb b/Library/Homebrew/test/cmd/deps_spec.rb index f63454712a..540b82c51d 100644 --- a/Library/Homebrew/test/cmd/deps_spec.rb +++ b/Library/Homebrew/test/cmd/deps_spec.rb @@ -1,3 +1,4 @@ +# typed: false # frozen_string_literal: true require "cmd/shared_examples/args_parse" diff --git a/Library/Homebrew/test/cmd/desc_spec.rb b/Library/Homebrew/test/cmd/desc_spec.rb index 3564842262..c9e7898dc5 100644 --- a/Library/Homebrew/test/cmd/desc_spec.rb +++ b/Library/Homebrew/test/cmd/desc_spec.rb @@ -1,3 +1,4 @@ +# typed: false # frozen_string_literal: true require "cmd/shared_examples/args_parse" diff --git a/Library/Homebrew/test/cmd/doctor_spec.rb b/Library/Homebrew/test/cmd/doctor_spec.rb index eea6caab79..3d0bb60203 100644 --- a/Library/Homebrew/test/cmd/doctor_spec.rb +++ b/Library/Homebrew/test/cmd/doctor_spec.rb @@ -1,3 +1,4 @@ +# typed: false # frozen_string_literal: true require "cmd/shared_examples/args_parse" diff --git a/Library/Homebrew/test/cmd/fetch_spec.rb b/Library/Homebrew/test/cmd/fetch_spec.rb index a49cbfd8ee..237a769b3d 100644 --- a/Library/Homebrew/test/cmd/fetch_spec.rb +++ b/Library/Homebrew/test/cmd/fetch_spec.rb @@ -1,3 +1,4 @@ +# typed: false # frozen_string_literal: true require "cmd/shared_examples/args_parse" diff --git a/Library/Homebrew/test/cmd/gist-logs_spec.rb b/Library/Homebrew/test/cmd/gist-logs_spec.rb index 490373c7d2..10a9d0d30a 100644 --- a/Library/Homebrew/test/cmd/gist-logs_spec.rb +++ b/Library/Homebrew/test/cmd/gist-logs_spec.rb @@ -1,3 +1,4 @@ +# typed: false # frozen_string_literal: true require "cmd/shared_examples/args_parse" diff --git a/Library/Homebrew/test/cmd/help_spec.rb b/Library/Homebrew/test/cmd/help_spec.rb index b94d8a7ef1..4d0cf035d1 100644 --- a/Library/Homebrew/test/cmd/help_spec.rb +++ b/Library/Homebrew/test/cmd/help_spec.rb @@ -1,3 +1,4 @@ +# typed: false # frozen_string_literal: true describe "brew", :integration_test do diff --git a/Library/Homebrew/test/cmd/home_spec.rb b/Library/Homebrew/test/cmd/home_spec.rb index 7fce3ed4bf..f0bdd98109 100644 --- a/Library/Homebrew/test/cmd/home_spec.rb +++ b/Library/Homebrew/test/cmd/home_spec.rb @@ -1,3 +1,4 @@ +# typed: false # frozen_string_literal: true require "cmd/shared_examples/args_parse" diff --git a/Library/Homebrew/test/cmd/info_spec.rb b/Library/Homebrew/test/cmd/info_spec.rb index 668548fb7f..d2276fdb71 100644 --- a/Library/Homebrew/test/cmd/info_spec.rb +++ b/Library/Homebrew/test/cmd/info_spec.rb @@ -1,3 +1,4 @@ +# typed: false # frozen_string_literal: true require "cmd/info" diff --git a/Library/Homebrew/test/cmd/install_spec.rb b/Library/Homebrew/test/cmd/install_spec.rb index 70ba941c78..ef100add41 100644 --- a/Library/Homebrew/test/cmd/install_spec.rb +++ b/Library/Homebrew/test/cmd/install_spec.rb @@ -1,3 +1,4 @@ +# typed: false # frozen_string_literal: true require "cmd/shared_examples/args_parse" diff --git a/Library/Homebrew/test/cmd/leaves_spec.rb b/Library/Homebrew/test/cmd/leaves_spec.rb index ee56b3cbe5..4962a75603 100644 --- a/Library/Homebrew/test/cmd/leaves_spec.rb +++ b/Library/Homebrew/test/cmd/leaves_spec.rb @@ -1,3 +1,4 @@ +# typed: false # frozen_string_literal: true require "cmd/shared_examples/args_parse" diff --git a/Library/Homebrew/test/cmd/link_spec.rb b/Library/Homebrew/test/cmd/link_spec.rb index 67748ae138..650fbb046e 100644 --- a/Library/Homebrew/test/cmd/link_spec.rb +++ b/Library/Homebrew/test/cmd/link_spec.rb @@ -1,3 +1,4 @@ +# typed: false # frozen_string_literal: true require "cmd/shared_examples/args_parse" diff --git a/Library/Homebrew/test/cmd/list_spec.rb b/Library/Homebrew/test/cmd/list_spec.rb index e12a8522d1..ff438b222b 100644 --- a/Library/Homebrew/test/cmd/list_spec.rb +++ b/Library/Homebrew/test/cmd/list_spec.rb @@ -1,3 +1,4 @@ +# typed: false # frozen_string_literal: true require "cmd/shared_examples/args_parse" diff --git a/Library/Homebrew/test/cmd/log_spec.rb b/Library/Homebrew/test/cmd/log_spec.rb index 7ed48a2d1f..d989c260f9 100644 --- a/Library/Homebrew/test/cmd/log_spec.rb +++ b/Library/Homebrew/test/cmd/log_spec.rb @@ -1,3 +1,4 @@ +# typed: false # frozen_string_literal: true require "cmd/shared_examples/args_parse" diff --git a/Library/Homebrew/test/cmd/migrate_spec.rb b/Library/Homebrew/test/cmd/migrate_spec.rb index 8c8faee079..fce8954712 100644 --- a/Library/Homebrew/test/cmd/migrate_spec.rb +++ b/Library/Homebrew/test/cmd/migrate_spec.rb @@ -1,3 +1,4 @@ +# typed: false # frozen_string_literal: true require "cmd/shared_examples/args_parse" diff --git a/Library/Homebrew/test/cmd/missing_spec.rb b/Library/Homebrew/test/cmd/missing_spec.rb index 8f5a3382f0..0a5a6bb7b4 100644 --- a/Library/Homebrew/test/cmd/missing_spec.rb +++ b/Library/Homebrew/test/cmd/missing_spec.rb @@ -1,3 +1,4 @@ +# typed: false # frozen_string_literal: true require "cmd/shared_examples/args_parse" diff --git a/Library/Homebrew/test/cmd/options_spec.rb b/Library/Homebrew/test/cmd/options_spec.rb index 655c3fa0ec..9a3b495165 100644 --- a/Library/Homebrew/test/cmd/options_spec.rb +++ b/Library/Homebrew/test/cmd/options_spec.rb @@ -1,3 +1,4 @@ +# typed: false # frozen_string_literal: true require "cmd/shared_examples/args_parse" diff --git a/Library/Homebrew/test/cmd/outdated_spec.rb b/Library/Homebrew/test/cmd/outdated_spec.rb index ade9717205..ba4becf50c 100644 --- a/Library/Homebrew/test/cmd/outdated_spec.rb +++ b/Library/Homebrew/test/cmd/outdated_spec.rb @@ -1,3 +1,4 @@ +# typed: false # frozen_string_literal: true require "cmd/shared_examples/args_parse" diff --git a/Library/Homebrew/test/cmd/pin_spec.rb b/Library/Homebrew/test/cmd/pin_spec.rb index a34a3e21c8..ad42715a3c 100644 --- a/Library/Homebrew/test/cmd/pin_spec.rb +++ b/Library/Homebrew/test/cmd/pin_spec.rb @@ -1,3 +1,4 @@ +# typed: false # frozen_string_literal: true require "cmd/shared_examples/args_parse" diff --git a/Library/Homebrew/test/cmd/postinstall_spec.rb b/Library/Homebrew/test/cmd/postinstall_spec.rb index ed676f5588..9be2e1288d 100644 --- a/Library/Homebrew/test/cmd/postinstall_spec.rb +++ b/Library/Homebrew/test/cmd/postinstall_spec.rb @@ -1,3 +1,4 @@ +# typed: false # frozen_string_literal: true require "cmd/shared_examples/args_parse" diff --git a/Library/Homebrew/test/cmd/readall_spec.rb b/Library/Homebrew/test/cmd/readall_spec.rb index 245f1fde68..046a8cbf4c 100644 --- a/Library/Homebrew/test/cmd/readall_spec.rb +++ b/Library/Homebrew/test/cmd/readall_spec.rb @@ -1,3 +1,4 @@ +# typed: false # frozen_string_literal: true require "cmd/shared_examples/args_parse" diff --git a/Library/Homebrew/test/cmd/reinstall_spec.rb b/Library/Homebrew/test/cmd/reinstall_spec.rb index 45b5a48ffb..f88fd0d3de 100644 --- a/Library/Homebrew/test/cmd/reinstall_spec.rb +++ b/Library/Homebrew/test/cmd/reinstall_spec.rb @@ -1,3 +1,4 @@ +# typed: false # frozen_string_literal: true require "extend/ENV" diff --git a/Library/Homebrew/test/cmd/search_spec.rb b/Library/Homebrew/test/cmd/search_spec.rb index 43b1cf9a39..724a3ff0b9 100644 --- a/Library/Homebrew/test/cmd/search_spec.rb +++ b/Library/Homebrew/test/cmd/search_spec.rb @@ -1,3 +1,4 @@ +# typed: false # frozen_string_literal: true require "cmd/search" diff --git a/Library/Homebrew/test/cmd/services_spec.rb b/Library/Homebrew/test/cmd/services_spec.rb index decee40faf..65d00d5d79 100644 --- a/Library/Homebrew/test/cmd/services_spec.rb +++ b/Library/Homebrew/test/cmd/services_spec.rb @@ -1,3 +1,4 @@ +# typed: false # frozen_string_literal: true describe "brew services", :integration_test, :needs_macos, :needs_network do diff --git a/Library/Homebrew/test/cmd/shared_examples/args_parse.rb b/Library/Homebrew/test/cmd/shared_examples/args_parse.rb index d8b7873b80..1df6117ad1 100644 --- a/Library/Homebrew/test/cmd/shared_examples/args_parse.rb +++ b/Library/Homebrew/test/cmd/shared_examples/args_parse.rb @@ -1,3 +1,4 @@ +# typed: false # frozen_string_literal: true shared_examples "parseable arguments" do diff --git a/Library/Homebrew/test/cmd/switch_spec.rb b/Library/Homebrew/test/cmd/switch_spec.rb index d50f993e47..b568e53000 100644 --- a/Library/Homebrew/test/cmd/switch_spec.rb +++ b/Library/Homebrew/test/cmd/switch_spec.rb @@ -1,3 +1,4 @@ +# typed: false # frozen_string_literal: true require "cmd/shared_examples/args_parse" diff --git a/Library/Homebrew/test/cmd/tap-info_spec.rb b/Library/Homebrew/test/cmd/tap-info_spec.rb index d03ca17843..e2c1bebcac 100644 --- a/Library/Homebrew/test/cmd/tap-info_spec.rb +++ b/Library/Homebrew/test/cmd/tap-info_spec.rb @@ -1,3 +1,4 @@ +# typed: false # frozen_string_literal: true require "cmd/shared_examples/args_parse" diff --git a/Library/Homebrew/test/cmd/tap_spec.rb b/Library/Homebrew/test/cmd/tap_spec.rb index c90155e085..e54e91a5ff 100644 --- a/Library/Homebrew/test/cmd/tap_spec.rb +++ b/Library/Homebrew/test/cmd/tap_spec.rb @@ -1,3 +1,4 @@ +# typed: false # frozen_string_literal: true require "cmd/shared_examples/args_parse" diff --git a/Library/Homebrew/test/cmd/uninstall_spec.rb b/Library/Homebrew/test/cmd/uninstall_spec.rb index 999d38f547..9d79d3e7da 100644 --- a/Library/Homebrew/test/cmd/uninstall_spec.rb +++ b/Library/Homebrew/test/cmd/uninstall_spec.rb @@ -1,3 +1,4 @@ +# typed: false # frozen_string_literal: true require "cmd/uninstall" diff --git a/Library/Homebrew/test/cmd/unlink_spec.rb b/Library/Homebrew/test/cmd/unlink_spec.rb index 1489393165..090a091a0c 100644 --- a/Library/Homebrew/test/cmd/unlink_spec.rb +++ b/Library/Homebrew/test/cmd/unlink_spec.rb @@ -1,3 +1,4 @@ +# typed: false # frozen_string_literal: true require "cmd/shared_examples/args_parse" diff --git a/Library/Homebrew/test/cmd/unpin_spec.rb b/Library/Homebrew/test/cmd/unpin_spec.rb index be3faa7c85..e1aa11d677 100644 --- a/Library/Homebrew/test/cmd/unpin_spec.rb +++ b/Library/Homebrew/test/cmd/unpin_spec.rb @@ -1,3 +1,4 @@ +# typed: false # frozen_string_literal: true require "cmd/shared_examples/args_parse" diff --git a/Library/Homebrew/test/cmd/untap_spec.rb b/Library/Homebrew/test/cmd/untap_spec.rb index 7a33683d46..d637d960bc 100644 --- a/Library/Homebrew/test/cmd/untap_spec.rb +++ b/Library/Homebrew/test/cmd/untap_spec.rb @@ -1,3 +1,4 @@ +# typed: false # frozen_string_literal: true require "cmd/shared_examples/args_parse" diff --git a/Library/Homebrew/test/cmd/update-report_spec.rb b/Library/Homebrew/test/cmd/update-report_spec.rb index d073534313..548d0e8457 100644 --- a/Library/Homebrew/test/cmd/update-report_spec.rb +++ b/Library/Homebrew/test/cmd/update-report_spec.rb @@ -1,3 +1,4 @@ +# typed: false # frozen_string_literal: true require "cmd/update-report" diff --git a/Library/Homebrew/test/cmd/upgrade_spec.rb b/Library/Homebrew/test/cmd/upgrade_spec.rb index 9f139fc059..f03b919a9d 100644 --- a/Library/Homebrew/test/cmd/upgrade_spec.rb +++ b/Library/Homebrew/test/cmd/upgrade_spec.rb @@ -1,3 +1,4 @@ +# typed: false # frozen_string_literal: true require "cmd/shared_examples/args_parse" diff --git a/Library/Homebrew/test/cmd/uses_spec.rb b/Library/Homebrew/test/cmd/uses_spec.rb index 8321777bab..1b1341067c 100644 --- a/Library/Homebrew/test/cmd/uses_spec.rb +++ b/Library/Homebrew/test/cmd/uses_spec.rb @@ -1,3 +1,4 @@ +# typed: false # frozen_string_literal: true require "cmd/shared_examples/args_parse" diff --git a/Library/Homebrew/test/commands_spec.rb b/Library/Homebrew/test/commands_spec.rb index 25f6955c91..b4a672191f 100644 --- a/Library/Homebrew/test/commands_spec.rb +++ b/Library/Homebrew/test/commands_spec.rb @@ -1,3 +1,4 @@ +# typed: false # frozen_string_literal: true require "commands" diff --git a/Library/Homebrew/test/compiler_failure_spec.rb b/Library/Homebrew/test/compiler_failure_spec.rb index 08763e33cb..4ec13cc57b 100644 --- a/Library/Homebrew/test/compiler_failure_spec.rb +++ b/Library/Homebrew/test/compiler_failure_spec.rb @@ -1,3 +1,4 @@ +# typed: false # frozen_string_literal: true require "compilers" diff --git a/Library/Homebrew/test/compiler_selector_spec.rb b/Library/Homebrew/test/compiler_selector_spec.rb index f00c58addd..a2ab44b943 100644 --- a/Library/Homebrew/test/compiler_selector_spec.rb +++ b/Library/Homebrew/test/compiler_selector_spec.rb @@ -1,3 +1,4 @@ +# typed: false # frozen_string_literal: true require "compilers" diff --git a/Library/Homebrew/test/cxxstdlib_spec.rb b/Library/Homebrew/test/cxxstdlib_spec.rb index 0cd0b2070d..e16af54ec3 100644 --- a/Library/Homebrew/test/cxxstdlib_spec.rb +++ b/Library/Homebrew/test/cxxstdlib_spec.rb @@ -1,3 +1,4 @@ +# typed: false # frozen_string_literal: true require "formula" diff --git a/Library/Homebrew/test/dependable_spec.rb b/Library/Homebrew/test/dependable_spec.rb index 2beb3c4570..61b153a3e9 100644 --- a/Library/Homebrew/test/dependable_spec.rb +++ b/Library/Homebrew/test/dependable_spec.rb @@ -1,3 +1,4 @@ +# typed: false # frozen_string_literal: true require "dependable" diff --git a/Library/Homebrew/test/dependencies_helpers_spec.rb b/Library/Homebrew/test/dependencies_helpers_spec.rb index 4686084bce..4f3ab714db 100644 --- a/Library/Homebrew/test/dependencies_helpers_spec.rb +++ b/Library/Homebrew/test/dependencies_helpers_spec.rb @@ -1,3 +1,4 @@ +# typed: false # frozen_string_literal: true require "dependencies_helpers" diff --git a/Library/Homebrew/test/dependencies_spec.rb b/Library/Homebrew/test/dependencies_spec.rb index 07da34497f..b9b5ae7c60 100644 --- a/Library/Homebrew/test/dependencies_spec.rb +++ b/Library/Homebrew/test/dependencies_spec.rb @@ -1,3 +1,4 @@ +# typed: false # frozen_string_literal: true require "dependencies" diff --git a/Library/Homebrew/test/dependency_collector_spec.rb b/Library/Homebrew/test/dependency_collector_spec.rb index 5bcefadd4a..aa673a2339 100644 --- a/Library/Homebrew/test/dependency_collector_spec.rb +++ b/Library/Homebrew/test/dependency_collector_spec.rb @@ -1,3 +1,4 @@ +# typed: false # frozen_string_literal: true require "dependency_collector" diff --git a/Library/Homebrew/test/dependency_expansion_spec.rb b/Library/Homebrew/test/dependency_expansion_spec.rb index c3a1c4b7ea..b0e5b8a6c8 100644 --- a/Library/Homebrew/test/dependency_expansion_spec.rb +++ b/Library/Homebrew/test/dependency_expansion_spec.rb @@ -1,3 +1,4 @@ +# typed: false # frozen_string_literal: true require "dependency" diff --git a/Library/Homebrew/test/dependency_spec.rb b/Library/Homebrew/test/dependency_spec.rb index ec772097ed..3c606c86ca 100644 --- a/Library/Homebrew/test/dependency_spec.rb +++ b/Library/Homebrew/test/dependency_spec.rb @@ -1,3 +1,4 @@ +# typed: false # frozen_string_literal: true require "dependency" diff --git a/Library/Homebrew/test/description_cache_store_spec.rb b/Library/Homebrew/test/description_cache_store_spec.rb index a5855a9cef..6b16ffb6c4 100644 --- a/Library/Homebrew/test/description_cache_store_spec.rb +++ b/Library/Homebrew/test/description_cache_store_spec.rb @@ -1,3 +1,4 @@ +# typed: false # frozen_string_literal: true require "description_cache_store" diff --git a/Library/Homebrew/test/descriptions_spec.rb b/Library/Homebrew/test/descriptions_spec.rb index 01aa00434e..e1afb7ec8e 100644 --- a/Library/Homebrew/test/descriptions_spec.rb +++ b/Library/Homebrew/test/descriptions_spec.rb @@ -1,3 +1,4 @@ +# typed: false # frozen_string_literal: true require "descriptions" diff --git a/Library/Homebrew/test/dev-cmd/audit_spec.rb b/Library/Homebrew/test/dev-cmd/audit_spec.rb index 1f730949a6..315066bc5c 100644 --- a/Library/Homebrew/test/dev-cmd/audit_spec.rb +++ b/Library/Homebrew/test/dev-cmd/audit_spec.rb @@ -1,3 +1,4 @@ +# typed: false # frozen_string_literal: true require "dev-cmd/audit" diff --git a/Library/Homebrew/test/dev-cmd/bottle_spec.rb b/Library/Homebrew/test/dev-cmd/bottle_spec.rb index 1acbf44802..c524f7d342 100644 --- a/Library/Homebrew/test/dev-cmd/bottle_spec.rb +++ b/Library/Homebrew/test/dev-cmd/bottle_spec.rb @@ -1,3 +1,4 @@ +# typed: false # frozen_string_literal: true require "cmd/shared_examples/args_parse" diff --git a/Library/Homebrew/test/dev-cmd/bump-cask-pr_spec.rb b/Library/Homebrew/test/dev-cmd/bump-cask-pr_spec.rb index 69552cfd78..02ae9e8a9a 100644 --- a/Library/Homebrew/test/dev-cmd/bump-cask-pr_spec.rb +++ b/Library/Homebrew/test/dev-cmd/bump-cask-pr_spec.rb @@ -1,3 +1,4 @@ +# typed: false # frozen_string_literal: true require "cmd/shared_examples/args_parse" diff --git a/Library/Homebrew/test/dev-cmd/bump-formula-pr_spec.rb b/Library/Homebrew/test/dev-cmd/bump-formula-pr_spec.rb index 9cdc95f9a3..08d0907501 100644 --- a/Library/Homebrew/test/dev-cmd/bump-formula-pr_spec.rb +++ b/Library/Homebrew/test/dev-cmd/bump-formula-pr_spec.rb @@ -1,3 +1,4 @@ +# typed: false # frozen_string_literal: true require "cmd/shared_examples/args_parse" diff --git a/Library/Homebrew/test/dev-cmd/bump-revision_spec.rb b/Library/Homebrew/test/dev-cmd/bump-revision_spec.rb index 3d025d0b5c..51324ce3e7 100644 --- a/Library/Homebrew/test/dev-cmd/bump-revision_spec.rb +++ b/Library/Homebrew/test/dev-cmd/bump-revision_spec.rb @@ -1,3 +1,4 @@ +# typed: false # frozen_string_literal: true require "cmd/shared_examples/args_parse" diff --git a/Library/Homebrew/test/dev-cmd/bump_spec.rb b/Library/Homebrew/test/dev-cmd/bump_spec.rb index 81b22e319b..33e4931f7e 100644 --- a/Library/Homebrew/test/dev-cmd/bump_spec.rb +++ b/Library/Homebrew/test/dev-cmd/bump_spec.rb @@ -1,3 +1,4 @@ +# typed: false # frozen_string_literal: true require "cmd/shared_examples/args_parse" diff --git a/Library/Homebrew/test/dev-cmd/cat_spec.rb b/Library/Homebrew/test/dev-cmd/cat_spec.rb index 2a9132e768..fdeb97091a 100644 --- a/Library/Homebrew/test/dev-cmd/cat_spec.rb +++ b/Library/Homebrew/test/dev-cmd/cat_spec.rb @@ -1,3 +1,4 @@ +# typed: false # frozen_string_literal: true require "cmd/shared_examples/args_parse" diff --git a/Library/Homebrew/test/dev-cmd/command_spec.rb b/Library/Homebrew/test/dev-cmd/command_spec.rb index 1d71661f24..5e6ecdfbe9 100644 --- a/Library/Homebrew/test/dev-cmd/command_spec.rb +++ b/Library/Homebrew/test/dev-cmd/command_spec.rb @@ -1,3 +1,4 @@ +# typed: false # frozen_string_literal: true require "cmd/shared_examples/args_parse" diff --git a/Library/Homebrew/test/dev-cmd/create_spec.rb b/Library/Homebrew/test/dev-cmd/create_spec.rb index e4e98c2074..54edd4b9e0 100644 --- a/Library/Homebrew/test/dev-cmd/create_spec.rb +++ b/Library/Homebrew/test/dev-cmd/create_spec.rb @@ -1,3 +1,4 @@ +# typed: false # frozen_string_literal: true require "cmd/shared_examples/args_parse" diff --git a/Library/Homebrew/test/dev-cmd/diy_spec.rb b/Library/Homebrew/test/dev-cmd/diy_spec.rb index 5168cf5522..eafc466f31 100644 --- a/Library/Homebrew/test/dev-cmd/diy_spec.rb +++ b/Library/Homebrew/test/dev-cmd/diy_spec.rb @@ -1,3 +1,4 @@ +# typed: false # frozen_string_literal: true require "cmd/shared_examples/args_parse" diff --git a/Library/Homebrew/test/dev-cmd/edit_spec.rb b/Library/Homebrew/test/dev-cmd/edit_spec.rb index df88019fa5..2e8a96ea6a 100644 --- a/Library/Homebrew/test/dev-cmd/edit_spec.rb +++ b/Library/Homebrew/test/dev-cmd/edit_spec.rb @@ -1,3 +1,4 @@ +# typed: false # frozen_string_literal: true require "cmd/shared_examples/args_parse" diff --git a/Library/Homebrew/test/dev-cmd/extract_spec.rb b/Library/Homebrew/test/dev-cmd/extract_spec.rb index c12c4eb06a..5563f6079e 100644 --- a/Library/Homebrew/test/dev-cmd/extract_spec.rb +++ b/Library/Homebrew/test/dev-cmd/extract_spec.rb @@ -1,3 +1,4 @@ +# typed: false # frozen_string_literal: true require "cmd/shared_examples/args_parse" diff --git a/Library/Homebrew/test/dev-cmd/formula_spec.rb b/Library/Homebrew/test/dev-cmd/formula_spec.rb index d9e96bc7b9..e52fb82670 100644 --- a/Library/Homebrew/test/dev-cmd/formula_spec.rb +++ b/Library/Homebrew/test/dev-cmd/formula_spec.rb @@ -1,3 +1,4 @@ +# typed: false # frozen_string_literal: true require "cmd/shared_examples/args_parse" diff --git a/Library/Homebrew/test/dev-cmd/irb_spec.rb b/Library/Homebrew/test/dev-cmd/irb_spec.rb index 666374c879..1d39e2d70c 100644 --- a/Library/Homebrew/test/dev-cmd/irb_spec.rb +++ b/Library/Homebrew/test/dev-cmd/irb_spec.rb @@ -1,3 +1,4 @@ +# typed: false # frozen_string_literal: true require "cmd/shared_examples/args_parse" diff --git a/Library/Homebrew/test/dev-cmd/linkage_spec.rb b/Library/Homebrew/test/dev-cmd/linkage_spec.rb index f083b5cb66..1663e42c42 100644 --- a/Library/Homebrew/test/dev-cmd/linkage_spec.rb +++ b/Library/Homebrew/test/dev-cmd/linkage_spec.rb @@ -1,3 +1,4 @@ +# typed: false # frozen_string_literal: true require "cmd/shared_examples/args_parse" diff --git a/Library/Homebrew/test/dev-cmd/livecheck_spec.rb b/Library/Homebrew/test/dev-cmd/livecheck_spec.rb index 4bbee4693b..9bd0dfee50 100644 --- a/Library/Homebrew/test/dev-cmd/livecheck_spec.rb +++ b/Library/Homebrew/test/dev-cmd/livecheck_spec.rb @@ -1,3 +1,4 @@ +# typed: false # frozen_string_literal: true require "cmd/shared_examples/args_parse" diff --git a/Library/Homebrew/test/dev-cmd/man_spec.rb b/Library/Homebrew/test/dev-cmd/man_spec.rb index 07eab3a255..29523d832d 100644 --- a/Library/Homebrew/test/dev-cmd/man_spec.rb +++ b/Library/Homebrew/test/dev-cmd/man_spec.rb @@ -1,3 +1,4 @@ +# typed: false # frozen_string_literal: true require "cmd/shared_examples/args_parse" diff --git a/Library/Homebrew/test/dev-cmd/mirror_spec.rb b/Library/Homebrew/test/dev-cmd/mirror_spec.rb index 4ad0dc02a4..bc6af40e28 100644 --- a/Library/Homebrew/test/dev-cmd/mirror_spec.rb +++ b/Library/Homebrew/test/dev-cmd/mirror_spec.rb @@ -1,3 +1,4 @@ +# typed: false # frozen_string_literal: true require "cmd/shared_examples/args_parse" diff --git a/Library/Homebrew/test/dev-cmd/pr-automerge_spec.rb b/Library/Homebrew/test/dev-cmd/pr-automerge_spec.rb index d0230d13a0..df6b0ef668 100644 --- a/Library/Homebrew/test/dev-cmd/pr-automerge_spec.rb +++ b/Library/Homebrew/test/dev-cmd/pr-automerge_spec.rb @@ -1,3 +1,4 @@ +# typed: false # frozen_string_literal: true require "cmd/shared_examples/args_parse" diff --git a/Library/Homebrew/test/dev-cmd/pr-publish_spec.rb b/Library/Homebrew/test/dev-cmd/pr-publish_spec.rb index f0b8e25cd6..f0021f0f45 100644 --- a/Library/Homebrew/test/dev-cmd/pr-publish_spec.rb +++ b/Library/Homebrew/test/dev-cmd/pr-publish_spec.rb @@ -1,3 +1,4 @@ +# typed: false # frozen_string_literal: true require "cmd/shared_examples/args_parse" diff --git a/Library/Homebrew/test/dev-cmd/pr-pull_spec.rb b/Library/Homebrew/test/dev-cmd/pr-pull_spec.rb index f11823c52c..848323c00f 100644 --- a/Library/Homebrew/test/dev-cmd/pr-pull_spec.rb +++ b/Library/Homebrew/test/dev-cmd/pr-pull_spec.rb @@ -1,3 +1,4 @@ +# typed: false # frozen_string_literal: true require "dev-cmd/pr-pull" diff --git a/Library/Homebrew/test/dev-cmd/pr-upload_spec.rb b/Library/Homebrew/test/dev-cmd/pr-upload_spec.rb index 69a5f27c17..54530b6095 100644 --- a/Library/Homebrew/test/dev-cmd/pr-upload_spec.rb +++ b/Library/Homebrew/test/dev-cmd/pr-upload_spec.rb @@ -1,3 +1,4 @@ +# typed: false # frozen_string_literal: true require "cmd/shared_examples/args_parse" diff --git a/Library/Homebrew/test/dev-cmd/prof_spec.rb b/Library/Homebrew/test/dev-cmd/prof_spec.rb index c2dc0b3d45..f4a3990e89 100644 --- a/Library/Homebrew/test/dev-cmd/prof_spec.rb +++ b/Library/Homebrew/test/dev-cmd/prof_spec.rb @@ -1,3 +1,4 @@ +# typed: false # frozen_string_literal: true require "cmd/shared_examples/args_parse" diff --git a/Library/Homebrew/test/dev-cmd/release-notes_spec.rb b/Library/Homebrew/test/dev-cmd/release-notes_spec.rb index bbe9bff874..21d1b29790 100644 --- a/Library/Homebrew/test/dev-cmd/release-notes_spec.rb +++ b/Library/Homebrew/test/dev-cmd/release-notes_spec.rb @@ -1,3 +1,4 @@ +# typed: false # frozen_string_literal: true require "cmd/shared_examples/args_parse" diff --git a/Library/Homebrew/test/dev-cmd/ruby_spec.rb b/Library/Homebrew/test/dev-cmd/ruby_spec.rb index 42bb98c1fd..ae13bf021f 100644 --- a/Library/Homebrew/test/dev-cmd/ruby_spec.rb +++ b/Library/Homebrew/test/dev-cmd/ruby_spec.rb @@ -1,3 +1,4 @@ +# typed: false # frozen_string_literal: true require "cmd/shared_examples/args_parse" diff --git a/Library/Homebrew/test/dev-cmd/sh_spec.rb b/Library/Homebrew/test/dev-cmd/sh_spec.rb index 52000a549d..8fa4a72a0d 100644 --- a/Library/Homebrew/test/dev-cmd/sh_spec.rb +++ b/Library/Homebrew/test/dev-cmd/sh_spec.rb @@ -1,3 +1,4 @@ +# typed: false # frozen_string_literal: true require "cmd/shared_examples/args_parse" diff --git a/Library/Homebrew/test/dev-cmd/sponsors_spec.rb b/Library/Homebrew/test/dev-cmd/sponsors_spec.rb index 667dff55b6..bee8458429 100644 --- a/Library/Homebrew/test/dev-cmd/sponsors_spec.rb +++ b/Library/Homebrew/test/dev-cmd/sponsors_spec.rb @@ -1,3 +1,4 @@ +# typed: false # frozen_string_literal: true require "cmd/shared_examples/args_parse" diff --git a/Library/Homebrew/test/dev-cmd/style_spec.rb b/Library/Homebrew/test/dev-cmd/style_spec.rb index 2c0164c9f9..0fb6f90c1f 100644 --- a/Library/Homebrew/test/dev-cmd/style_spec.rb +++ b/Library/Homebrew/test/dev-cmd/style_spec.rb @@ -1,3 +1,4 @@ +# typed: false # frozen_string_literal: true require "cmd/shared_examples/args_parse" diff --git a/Library/Homebrew/test/dev-cmd/tap-new_spec.rb b/Library/Homebrew/test/dev-cmd/tap-new_spec.rb index 24e83443ac..bbad80d12f 100644 --- a/Library/Homebrew/test/dev-cmd/tap-new_spec.rb +++ b/Library/Homebrew/test/dev-cmd/tap-new_spec.rb @@ -1,3 +1,4 @@ +# typed: false # frozen_string_literal: true require "cmd/shared_examples/args_parse" diff --git a/Library/Homebrew/test/dev-cmd/test_spec.rb b/Library/Homebrew/test/dev-cmd/test_spec.rb index 866230a703..81f46c177b 100644 --- a/Library/Homebrew/test/dev-cmd/test_spec.rb +++ b/Library/Homebrew/test/dev-cmd/test_spec.rb @@ -1,3 +1,4 @@ +# typed: false # frozen_string_literal: true require "cmd/shared_examples/args_parse" diff --git a/Library/Homebrew/test/dev-cmd/typecheck_spec.rb b/Library/Homebrew/test/dev-cmd/typecheck_spec.rb index 8fef2f67f1..31c8c3b7fe 100644 --- a/Library/Homebrew/test/dev-cmd/typecheck_spec.rb +++ b/Library/Homebrew/test/dev-cmd/typecheck_spec.rb @@ -1,3 +1,4 @@ +# typed: false # frozen_string_literal: true require "cmd/shared_examples/args_parse" diff --git a/Library/Homebrew/test/dev-cmd/unpack_spec.rb b/Library/Homebrew/test/dev-cmd/unpack_spec.rb index 0a0c27eeef..0799686914 100644 --- a/Library/Homebrew/test/dev-cmd/unpack_spec.rb +++ b/Library/Homebrew/test/dev-cmd/unpack_spec.rb @@ -1,3 +1,4 @@ +# typed: false # frozen_string_literal: true require "cmd/shared_examples/args_parse" diff --git a/Library/Homebrew/test/dev-cmd/update-license-data_spec.rb b/Library/Homebrew/test/dev-cmd/update-license-data_spec.rb index d9be457801..734ee4545a 100644 --- a/Library/Homebrew/test/dev-cmd/update-license-data_spec.rb +++ b/Library/Homebrew/test/dev-cmd/update-license-data_spec.rb @@ -1,3 +1,4 @@ +# typed: false # frozen_string_literal: true require "cmd/shared_examples/args_parse" diff --git a/Library/Homebrew/test/dev-cmd/vendor-gems_spec.rb b/Library/Homebrew/test/dev-cmd/vendor-gems_spec.rb index ac08d29470..dc6b9b1060 100644 --- a/Library/Homebrew/test/dev-cmd/vendor-gems_spec.rb +++ b/Library/Homebrew/test/dev-cmd/vendor-gems_spec.rb @@ -1,3 +1,4 @@ +# typed: false # frozen_string_literal: true require "cmd/shared_examples/args_parse" diff --git a/Library/Homebrew/test/diagnostic_checks_spec.rb b/Library/Homebrew/test/diagnostic_checks_spec.rb index 5fd14791c4..bd2c17beca 100644 --- a/Library/Homebrew/test/diagnostic_checks_spec.rb +++ b/Library/Homebrew/test/diagnostic_checks_spec.rb @@ -1,3 +1,4 @@ +# typed: false # frozen_string_literal: true require "diagnostic" diff --git a/Library/Homebrew/test/download_strategies_spec.rb b/Library/Homebrew/test/download_strategies_spec.rb index 3f5f6c07a8..120294835a 100644 --- a/Library/Homebrew/test/download_strategies_spec.rb +++ b/Library/Homebrew/test/download_strategies_spec.rb @@ -1,3 +1,4 @@ +# typed: false # frozen_string_literal: true require "download_strategy" diff --git a/Library/Homebrew/test/env_config_spec.rb b/Library/Homebrew/test/env_config_spec.rb index cdc65adb98..47713b155d 100644 --- a/Library/Homebrew/test/env_config_spec.rb +++ b/Library/Homebrew/test/env_config_spec.rb @@ -1,3 +1,4 @@ +# typed: false # frozen_string_literal: true require "diagnostic" diff --git a/Library/Homebrew/test/error_during_execution_spec.rb b/Library/Homebrew/test/error_during_execution_spec.rb index 513ff7a503..2b91937619 100644 --- a/Library/Homebrew/test/error_during_execution_spec.rb +++ b/Library/Homebrew/test/error_during_execution_spec.rb @@ -1,3 +1,4 @@ +# typed: false # frozen_string_literal: true describe ErrorDuringExecution do diff --git a/Library/Homebrew/test/exceptions_spec.rb b/Library/Homebrew/test/exceptions_spec.rb index 8bb4266ad7..e938c843c7 100644 --- a/Library/Homebrew/test/exceptions_spec.rb +++ b/Library/Homebrew/test/exceptions_spec.rb @@ -1,3 +1,4 @@ +# typed: false # frozen_string_literal: true require "exceptions" diff --git a/Library/Homebrew/test/formatter_spec.rb b/Library/Homebrew/test/formatter_spec.rb index fb348213ac..9e8d214f70 100644 --- a/Library/Homebrew/test/formatter_spec.rb +++ b/Library/Homebrew/test/formatter_spec.rb @@ -1,3 +1,4 @@ +# typed: false # frozen_string_literal: true require "utils/formatter" diff --git a/Library/Homebrew/test/formula_free_port_spec.rb b/Library/Homebrew/test/formula_free_port_spec.rb index 04320edf5d..84412d61d5 100644 --- a/Library/Homebrew/test/formula_free_port_spec.rb +++ b/Library/Homebrew/test/formula_free_port_spec.rb @@ -1,3 +1,4 @@ +# typed: false # frozen_string_literal: true require "socket" diff --git a/Library/Homebrew/test/formula_info_spec.rb b/Library/Homebrew/test/formula_info_spec.rb index 4e1f416529..0e8bcebb10 100644 --- a/Library/Homebrew/test/formula_info_spec.rb +++ b/Library/Homebrew/test/formula_info_spec.rb @@ -1,3 +1,4 @@ +# typed: false # frozen_string_literal: true require "formula_info" diff --git a/Library/Homebrew/test/formula_installer_bottle_spec.rb b/Library/Homebrew/test/formula_installer_bottle_spec.rb index 0a6aec0f0b..b42513f75d 100644 --- a/Library/Homebrew/test/formula_installer_bottle_spec.rb +++ b/Library/Homebrew/test/formula_installer_bottle_spec.rb @@ -1,3 +1,4 @@ +# typed: false # frozen_string_literal: true require "formula" diff --git a/Library/Homebrew/test/formula_installer_spec.rb b/Library/Homebrew/test/formula_installer_spec.rb index bffafdfe7e..0e84ed74a5 100644 --- a/Library/Homebrew/test/formula_installer_spec.rb +++ b/Library/Homebrew/test/formula_installer_spec.rb @@ -1,3 +1,4 @@ +# typed: false # frozen_string_literal: true require "formula" diff --git a/Library/Homebrew/test/formula_pin_spec.rb b/Library/Homebrew/test/formula_pin_spec.rb index 03e83da672..04e371cb47 100644 --- a/Library/Homebrew/test/formula_pin_spec.rb +++ b/Library/Homebrew/test/formula_pin_spec.rb @@ -1,3 +1,4 @@ +# typed: false # frozen_string_literal: true require "formula_pin" diff --git a/Library/Homebrew/test/formula_spec.rb b/Library/Homebrew/test/formula_spec.rb index 82ef571953..453fb312d2 100644 --- a/Library/Homebrew/test/formula_spec.rb +++ b/Library/Homebrew/test/formula_spec.rb @@ -1,3 +1,4 @@ +# typed: false # frozen_string_literal: true require "test/support/fixtures/testball" diff --git a/Library/Homebrew/test/formula_spec_selection_spec.rb b/Library/Homebrew/test/formula_spec_selection_spec.rb index bdaed0ddd1..c16c13ad5c 100644 --- a/Library/Homebrew/test/formula_spec_selection_spec.rb +++ b/Library/Homebrew/test/formula_spec_selection_spec.rb @@ -1,3 +1,4 @@ +# typed: false # frozen_string_literal: true require "formula" diff --git a/Library/Homebrew/test/formula_support_spec.rb b/Library/Homebrew/test/formula_support_spec.rb index d20fedddf5..6fcd00f439 100644 --- a/Library/Homebrew/test/formula_support_spec.rb +++ b/Library/Homebrew/test/formula_support_spec.rb @@ -1,3 +1,4 @@ +# typed: false # frozen_string_literal: true require "formula_support" diff --git a/Library/Homebrew/test/formula_validation_spec.rb b/Library/Homebrew/test/formula_validation_spec.rb index c178201585..30077967f0 100644 --- a/Library/Homebrew/test/formula_validation_spec.rb +++ b/Library/Homebrew/test/formula_validation_spec.rb @@ -1,3 +1,4 @@ +# typed: false # frozen_string_literal: true require "formula" diff --git a/Library/Homebrew/test/formulary_spec.rb b/Library/Homebrew/test/formulary_spec.rb index bbd6aca88a..b8ca07410d 100644 --- a/Library/Homebrew/test/formulary_spec.rb +++ b/Library/Homebrew/test/formulary_spec.rb @@ -1,3 +1,4 @@ +# typed: false # frozen_string_literal: true require "formula" diff --git a/Library/Homebrew/test/global_spec.rb b/Library/Homebrew/test/global_spec.rb index 5ae60e6662..6c34ca8838 100644 --- a/Library/Homebrew/test/global_spec.rb +++ b/Library/Homebrew/test/global_spec.rb @@ -1,3 +1,4 @@ +# typed: false # frozen_string_literal: true describe "brew", :integration_test do diff --git a/Library/Homebrew/test/hardware/cpu_spec.rb b/Library/Homebrew/test/hardware/cpu_spec.rb index 343da43781..f7ea9243e4 100644 --- a/Library/Homebrew/test/hardware/cpu_spec.rb +++ b/Library/Homebrew/test/hardware/cpu_spec.rb @@ -1,3 +1,4 @@ +# typed: false # frozen_string_literal: true require "hardware" diff --git a/Library/Homebrew/test/inreplace_spec.rb b/Library/Homebrew/test/inreplace_spec.rb index 9389c0a311..aa80fddd0c 100644 --- a/Library/Homebrew/test/inreplace_spec.rb +++ b/Library/Homebrew/test/inreplace_spec.rb @@ -1,3 +1,4 @@ +# typed: false # frozen_string_literal: true require "extend/string" diff --git a/Library/Homebrew/test/java_requirement_spec.rb b/Library/Homebrew/test/java_requirement_spec.rb index 590f27a1d0..42a065faf2 100644 --- a/Library/Homebrew/test/java_requirement_spec.rb +++ b/Library/Homebrew/test/java_requirement_spec.rb @@ -1,3 +1,4 @@ +# typed: false # frozen_string_literal: true require "cli/args" diff --git a/Library/Homebrew/test/keg_spec.rb b/Library/Homebrew/test/keg_spec.rb index 060ceb2d42..4c81962a16 100644 --- a/Library/Homebrew/test/keg_spec.rb +++ b/Library/Homebrew/test/keg_spec.rb @@ -1,3 +1,4 @@ +# typed: false # frozen_string_literal: true require "keg" diff --git a/Library/Homebrew/test/language/go_spec.rb b/Library/Homebrew/test/language/go_spec.rb index ac631f38cc..b2c3212ad9 100644 --- a/Library/Homebrew/test/language/go_spec.rb +++ b/Library/Homebrew/test/language/go_spec.rb @@ -1,3 +1,4 @@ +# typed: false # frozen_string_literal: true require "language/go" diff --git a/Library/Homebrew/test/language/java_spec.rb b/Library/Homebrew/test/language/java_spec.rb index 217eb792d7..4893a272ce 100644 --- a/Library/Homebrew/test/language/java_spec.rb +++ b/Library/Homebrew/test/language/java_spec.rb @@ -1,3 +1,4 @@ +# typed: false # frozen_string_literal: true require "language/java" diff --git a/Library/Homebrew/test/language/node_spec.rb b/Library/Homebrew/test/language/node_spec.rb index 79c3cf2496..3907b96acb 100644 --- a/Library/Homebrew/test/language/node_spec.rb +++ b/Library/Homebrew/test/language/node_spec.rb @@ -1,3 +1,4 @@ +# typed: false # frozen_string_literal: true require "language/node" diff --git a/Library/Homebrew/test/language/perl/shebang_spec.rb b/Library/Homebrew/test/language/perl/shebang_spec.rb index 5a59f162b7..8dbffe0b4c 100644 --- a/Library/Homebrew/test/language/perl/shebang_spec.rb +++ b/Library/Homebrew/test/language/perl/shebang_spec.rb @@ -1,3 +1,4 @@ +# typed: false # frozen_string_literal: true require "language/perl" diff --git a/Library/Homebrew/test/language/python_spec.rb b/Library/Homebrew/test/language/python_spec.rb index 174373d999..6fab0b50f1 100644 --- a/Library/Homebrew/test/language/python_spec.rb +++ b/Library/Homebrew/test/language/python_spec.rb @@ -1,3 +1,4 @@ +# typed: false # frozen_string_literal: true require "language/python" diff --git a/Library/Homebrew/test/lazy_object_spec.rb b/Library/Homebrew/test/lazy_object_spec.rb index 57ca637fa4..f9520b83c8 100644 --- a/Library/Homebrew/test/lazy_object_spec.rb +++ b/Library/Homebrew/test/lazy_object_spec.rb @@ -1,3 +1,4 @@ +# typed: false # frozen_string_literal: true require "lazy_object" diff --git a/Library/Homebrew/test/linkage_cache_store_spec.rb b/Library/Homebrew/test/linkage_cache_store_spec.rb index 51dec2b1dc..9e9c53385b 100644 --- a/Library/Homebrew/test/linkage_cache_store_spec.rb +++ b/Library/Homebrew/test/linkage_cache_store_spec.rb @@ -1,3 +1,4 @@ +# typed: false # frozen_string_literal: true require "linkage_cache_store" diff --git a/Library/Homebrew/test/livecheck/livecheck_spec.rb b/Library/Homebrew/test/livecheck/livecheck_spec.rb index 68d95cf90a..5bbd943203 100644 --- a/Library/Homebrew/test/livecheck/livecheck_spec.rb +++ b/Library/Homebrew/test/livecheck/livecheck_spec.rb @@ -1,3 +1,4 @@ +# typed: false # Frozen_string_literal: true require "livecheck/livecheck" diff --git a/Library/Homebrew/test/livecheck/strategy/apache_spec.rb b/Library/Homebrew/test/livecheck/strategy/apache_spec.rb index b44ca71ea2..7bd4d9ae1e 100644 --- a/Library/Homebrew/test/livecheck/strategy/apache_spec.rb +++ b/Library/Homebrew/test/livecheck/strategy/apache_spec.rb @@ -1,3 +1,4 @@ +# typed: false # frozen_string_literal: true require "livecheck/strategy/apache" diff --git a/Library/Homebrew/test/livecheck/strategy/bitbucket_spec.rb b/Library/Homebrew/test/livecheck/strategy/bitbucket_spec.rb index 2026d157a6..f5c2df857f 100644 --- a/Library/Homebrew/test/livecheck/strategy/bitbucket_spec.rb +++ b/Library/Homebrew/test/livecheck/strategy/bitbucket_spec.rb @@ -1,3 +1,4 @@ +# typed: false # frozen_string_literal: true require "livecheck/strategy/bitbucket" diff --git a/Library/Homebrew/test/livecheck/strategy/git_spec.rb b/Library/Homebrew/test/livecheck/strategy/git_spec.rb index 366ed35586..9a0996a2d8 100644 --- a/Library/Homebrew/test/livecheck/strategy/git_spec.rb +++ b/Library/Homebrew/test/livecheck/strategy/git_spec.rb @@ -1,3 +1,4 @@ +# typed: false # frozen_string_literal: true require "livecheck/strategy/git" diff --git a/Library/Homebrew/test/livecheck/strategy/gnome_spec.rb b/Library/Homebrew/test/livecheck/strategy/gnome_spec.rb index 79145e02c1..4edf101613 100644 --- a/Library/Homebrew/test/livecheck/strategy/gnome_spec.rb +++ b/Library/Homebrew/test/livecheck/strategy/gnome_spec.rb @@ -1,3 +1,4 @@ +# typed: false # frozen_string_literal: true require "livecheck/strategy/gnome" diff --git a/Library/Homebrew/test/livecheck/strategy/gnu_spec.rb b/Library/Homebrew/test/livecheck/strategy/gnu_spec.rb index 82cfc98c73..63e28de011 100644 --- a/Library/Homebrew/test/livecheck/strategy/gnu_spec.rb +++ b/Library/Homebrew/test/livecheck/strategy/gnu_spec.rb @@ -1,3 +1,4 @@ +# typed: false # frozen_string_literal: true require "livecheck/strategy/gnu" diff --git a/Library/Homebrew/test/livecheck/strategy/hackage_spec.rb b/Library/Homebrew/test/livecheck/strategy/hackage_spec.rb index 63e3346bdb..11a35d7ba5 100644 --- a/Library/Homebrew/test/livecheck/strategy/hackage_spec.rb +++ b/Library/Homebrew/test/livecheck/strategy/hackage_spec.rb @@ -1,3 +1,4 @@ +# typed: false # frozen_string_literal: true require "livecheck/strategy/hackage" diff --git a/Library/Homebrew/test/livecheck/strategy/launchpad_spec.rb b/Library/Homebrew/test/livecheck/strategy/launchpad_spec.rb index 54630bb5d6..150c547784 100644 --- a/Library/Homebrew/test/livecheck/strategy/launchpad_spec.rb +++ b/Library/Homebrew/test/livecheck/strategy/launchpad_spec.rb @@ -1,3 +1,4 @@ +# typed: false # frozen_string_literal: true require "livecheck/strategy/launchpad" diff --git a/Library/Homebrew/test/livecheck/strategy/npm_spec.rb b/Library/Homebrew/test/livecheck/strategy/npm_spec.rb index 3bee724891..2612434283 100644 --- a/Library/Homebrew/test/livecheck/strategy/npm_spec.rb +++ b/Library/Homebrew/test/livecheck/strategy/npm_spec.rb @@ -1,3 +1,4 @@ +# typed: false # frozen_string_literal: true require "livecheck/strategy/npm" diff --git a/Library/Homebrew/test/livecheck/strategy/page_match_spec.rb b/Library/Homebrew/test/livecheck/strategy/page_match_spec.rb index 1b615b2467..96bf43ad53 100644 --- a/Library/Homebrew/test/livecheck/strategy/page_match_spec.rb +++ b/Library/Homebrew/test/livecheck/strategy/page_match_spec.rb @@ -1,3 +1,4 @@ +# typed: false # frozen_string_literal: true require "livecheck/strategy/page_match" diff --git a/Library/Homebrew/test/livecheck/strategy/pypi_spec.rb b/Library/Homebrew/test/livecheck/strategy/pypi_spec.rb index b8c49817ec..e8a4ba1b87 100644 --- a/Library/Homebrew/test/livecheck/strategy/pypi_spec.rb +++ b/Library/Homebrew/test/livecheck/strategy/pypi_spec.rb @@ -1,3 +1,4 @@ +# typed: false # frozen_string_literal: true require "livecheck/strategy/pypi" diff --git a/Library/Homebrew/test/livecheck/strategy/sourceforge_spec.rb b/Library/Homebrew/test/livecheck/strategy/sourceforge_spec.rb index 8ca98945a3..c37c9cdc2e 100644 --- a/Library/Homebrew/test/livecheck/strategy/sourceforge_spec.rb +++ b/Library/Homebrew/test/livecheck/strategy/sourceforge_spec.rb @@ -1,3 +1,4 @@ +# typed: false # frozen_string_literal: true require "livecheck/strategy/sourceforge" diff --git a/Library/Homebrew/test/livecheck/strategy/xorg_spec.rb b/Library/Homebrew/test/livecheck/strategy/xorg_spec.rb index 7db151cc78..664797732b 100644 --- a/Library/Homebrew/test/livecheck/strategy/xorg_spec.rb +++ b/Library/Homebrew/test/livecheck/strategy/xorg_spec.rb @@ -1,3 +1,4 @@ +# typed: false # frozen_string_literal: true require "livecheck/strategy/xorg" diff --git a/Library/Homebrew/test/livecheck/strategy_spec.rb b/Library/Homebrew/test/livecheck/strategy_spec.rb index de0869a700..a2480b3403 100644 --- a/Library/Homebrew/test/livecheck/strategy_spec.rb +++ b/Library/Homebrew/test/livecheck/strategy_spec.rb @@ -1,3 +1,4 @@ +# typed: false # frozen_string_literal: true require "livecheck/strategy" diff --git a/Library/Homebrew/test/livecheck_spec.rb b/Library/Homebrew/test/livecheck_spec.rb index e5ed4a57c9..84ed8df539 100644 --- a/Library/Homebrew/test/livecheck_spec.rb +++ b/Library/Homebrew/test/livecheck_spec.rb @@ -1,3 +1,4 @@ +# typed: false # frozen_string_literal: true require "formula" diff --git a/Library/Homebrew/test/locale_spec.rb b/Library/Homebrew/test/locale_spec.rb index 52c0e6aeb6..05a433122c 100644 --- a/Library/Homebrew/test/locale_spec.rb +++ b/Library/Homebrew/test/locale_spec.rb @@ -1,3 +1,4 @@ +# typed: false # frozen_string_literal: true require "locale" diff --git a/Library/Homebrew/test/lock_file_spec.rb b/Library/Homebrew/test/lock_file_spec.rb index f9e9496489..c8aca6bebd 100644 --- a/Library/Homebrew/test/lock_file_spec.rb +++ b/Library/Homebrew/test/lock_file_spec.rb @@ -1,3 +1,4 @@ +# typed: false # frozen_string_literal: true require "lock_file" diff --git a/Library/Homebrew/test/messages_spec.rb b/Library/Homebrew/test/messages_spec.rb index fa97096d12..aa54d406a1 100644 --- a/Library/Homebrew/test/messages_spec.rb +++ b/Library/Homebrew/test/messages_spec.rb @@ -1,3 +1,4 @@ +# typed: false # frozen_string_literal: true require "messages" diff --git a/Library/Homebrew/test/migrator_spec.rb b/Library/Homebrew/test/migrator_spec.rb index e17a4bf440..1c21b93ab7 100644 --- a/Library/Homebrew/test/migrator_spec.rb +++ b/Library/Homebrew/test/migrator_spec.rb @@ -1,3 +1,4 @@ +# typed: false # frozen_string_literal: true require "migrator" diff --git a/Library/Homebrew/test/missing_formula_spec.rb b/Library/Homebrew/test/missing_formula_spec.rb index 4d88dfedca..14fb5bdcff 100644 --- a/Library/Homebrew/test/missing_formula_spec.rb +++ b/Library/Homebrew/test/missing_formula_spec.rb @@ -1,3 +1,4 @@ +# typed: false # frozen_string_literal: true require "missing_formula" diff --git a/Library/Homebrew/test/options_spec.rb b/Library/Homebrew/test/options_spec.rb index b864fe662e..fa180493f6 100644 --- a/Library/Homebrew/test/options_spec.rb +++ b/Library/Homebrew/test/options_spec.rb @@ -1,3 +1,4 @@ +# typed: false # frozen_string_literal: true require "options" diff --git a/Library/Homebrew/test/os/linux/dependency_collector_spec.rb b/Library/Homebrew/test/os/linux/dependency_collector_spec.rb index b13b458d20..3baab3f2d4 100644 --- a/Library/Homebrew/test/os/linux/dependency_collector_spec.rb +++ b/Library/Homebrew/test/os/linux/dependency_collector_spec.rb @@ -1,3 +1,4 @@ +# typed: false # frozen_string_literal: true require "dependency_collector" diff --git a/Library/Homebrew/test/os/linux/diagnostic_spec.rb b/Library/Homebrew/test/os/linux/diagnostic_spec.rb index 185eab89a5..8c32c83198 100644 --- a/Library/Homebrew/test/os/linux/diagnostic_spec.rb +++ b/Library/Homebrew/test/os/linux/diagnostic_spec.rb @@ -1,3 +1,4 @@ +# typed: false # frozen_string_literal: true require "diagnostic" diff --git a/Library/Homebrew/test/os/linux/formula_spec.rb b/Library/Homebrew/test/os/linux/formula_spec.rb index 7ef64aecd6..806e4a3f77 100644 --- a/Library/Homebrew/test/os/linux/formula_spec.rb +++ b/Library/Homebrew/test/os/linux/formula_spec.rb @@ -1,3 +1,4 @@ +# typed: false # frozen_string_literal: true require "test/support/fixtures/testball" diff --git a/Library/Homebrew/test/os/linux/pathname_spec.rb b/Library/Homebrew/test/os/linux/pathname_spec.rb index 7e4126585a..cae19a846e 100644 --- a/Library/Homebrew/test/os/linux/pathname_spec.rb +++ b/Library/Homebrew/test/os/linux/pathname_spec.rb @@ -1,3 +1,4 @@ +# typed: false # frozen_string_literal: true require "extend/pathname" diff --git a/Library/Homebrew/test/os/mac/dependency_collector_spec.rb b/Library/Homebrew/test/os/mac/dependency_collector_spec.rb index eacaf971fc..eb29d478d5 100644 --- a/Library/Homebrew/test/os/mac/dependency_collector_spec.rb +++ b/Library/Homebrew/test/os/mac/dependency_collector_spec.rb @@ -1,3 +1,4 @@ +# typed: false # frozen_string_literal: true require "dependency_collector" diff --git a/Library/Homebrew/test/os/mac/diagnostic_spec.rb b/Library/Homebrew/test/os/mac/diagnostic_spec.rb index aa44899d50..de6ed40659 100644 --- a/Library/Homebrew/test/os/mac/diagnostic_spec.rb +++ b/Library/Homebrew/test/os/mac/diagnostic_spec.rb @@ -1,3 +1,4 @@ +# typed: false # frozen_string_literal: true require "diagnostic" diff --git a/Library/Homebrew/test/os/mac/formula_spec.rb b/Library/Homebrew/test/os/mac/formula_spec.rb index 05f15cb809..b33878dc4d 100644 --- a/Library/Homebrew/test/os/mac/formula_spec.rb +++ b/Library/Homebrew/test/os/mac/formula_spec.rb @@ -1,3 +1,4 @@ +# typed: false # frozen_string_literal: true require "test/support/fixtures/testball" diff --git a/Library/Homebrew/test/os/mac/java_requirement_spec.rb b/Library/Homebrew/test/os/mac/java_requirement_spec.rb index 65729b23bc..4d83a58898 100644 --- a/Library/Homebrew/test/os/mac/java_requirement_spec.rb +++ b/Library/Homebrew/test/os/mac/java_requirement_spec.rb @@ -1,3 +1,4 @@ +# typed: false # frozen_string_literal: true require "cli/args" diff --git a/Library/Homebrew/test/os/mac/keg_spec.rb b/Library/Homebrew/test/os/mac/keg_spec.rb index b70068c953..6ce7bc0758 100644 --- a/Library/Homebrew/test/os/mac/keg_spec.rb +++ b/Library/Homebrew/test/os/mac/keg_spec.rb @@ -1,3 +1,4 @@ +# typed: false # frozen_string_literal: true require "keg" diff --git a/Library/Homebrew/test/os/mac/mach_spec.rb b/Library/Homebrew/test/os/mac/mach_spec.rb index c10a661f9a..1bc6f59f97 100644 --- a/Library/Homebrew/test/os/mac/mach_spec.rb +++ b/Library/Homebrew/test/os/mac/mach_spec.rb @@ -1,3 +1,4 @@ +# typed: false # frozen_string_literal: true describe "Mach-O Pathname tests" do diff --git a/Library/Homebrew/test/os/mac/pkgconfig_spec.rb b/Library/Homebrew/test/os/mac/pkgconfig_spec.rb index fa8a1de35b..4b0e2abbba 100644 --- a/Library/Homebrew/test/os/mac/pkgconfig_spec.rb +++ b/Library/Homebrew/test/os/mac/pkgconfig_spec.rb @@ -1,3 +1,4 @@ +# typed: false # frozen_string_literal: true # These tests assume the needed SDKs are correctly installed, i.e. `brew doctor` passes. diff --git a/Library/Homebrew/test/os/mac/software_spec_spec.rb b/Library/Homebrew/test/os/mac/software_spec_spec.rb index af94ef6f52..e716a7624f 100644 --- a/Library/Homebrew/test/os/mac/software_spec_spec.rb +++ b/Library/Homebrew/test/os/mac/software_spec_spec.rb @@ -1,3 +1,4 @@ +# typed: false # frozen_string_literal: true require "software_spec" diff --git a/Library/Homebrew/test/os/mac/version_spec.rb b/Library/Homebrew/test/os/mac/version_spec.rb index 3f332ed5aa..efd0938571 100644 --- a/Library/Homebrew/test/os/mac/version_spec.rb +++ b/Library/Homebrew/test/os/mac/version_spec.rb @@ -1,3 +1,4 @@ +# typed: false # frozen_string_literal: true require "version" diff --git a/Library/Homebrew/test/os/mac_spec.rb b/Library/Homebrew/test/os/mac_spec.rb index e3c1aa8cbb..d7fff66b2a 100644 --- a/Library/Homebrew/test/os/mac_spec.rb +++ b/Library/Homebrew/test/os/mac_spec.rb @@ -1,3 +1,4 @@ +# typed: false # frozen_string_literal: true require "locale" diff --git a/Library/Homebrew/test/os/os_spec.rb b/Library/Homebrew/test/os/os_spec.rb index 1e671f67a5..6d60525810 100644 --- a/Library/Homebrew/test/os/os_spec.rb +++ b/Library/Homebrew/test/os/os_spec.rb @@ -1,3 +1,4 @@ +# typed: false # frozen_string_literal: true describe OS do diff --git a/Library/Homebrew/test/patch_spec.rb b/Library/Homebrew/test/patch_spec.rb index fff1fc48b2..1708cd39ca 100644 --- a/Library/Homebrew/test/patch_spec.rb +++ b/Library/Homebrew/test/patch_spec.rb @@ -1,3 +1,4 @@ +# typed: false # frozen_string_literal: true require "patch" diff --git a/Library/Homebrew/test/patching_spec.rb b/Library/Homebrew/test/patching_spec.rb index 737e140676..1259ac7c4a 100644 --- a/Library/Homebrew/test/patching_spec.rb +++ b/Library/Homebrew/test/patching_spec.rb @@ -1,3 +1,4 @@ +# typed: false # frozen_string_literal: true require "formula" diff --git a/Library/Homebrew/test/pathname_spec.rb b/Library/Homebrew/test/pathname_spec.rb index fe1bddbaa0..383da9fb79 100644 --- a/Library/Homebrew/test/pathname_spec.rb +++ b/Library/Homebrew/test/pathname_spec.rb @@ -1,3 +1,4 @@ +# typed: false # frozen_string_literal: true require "extend/pathname" diff --git a/Library/Homebrew/test/pkg_version_spec.rb b/Library/Homebrew/test/pkg_version_spec.rb index ee8bedd610..61344d094e 100644 --- a/Library/Homebrew/test/pkg_version_spec.rb +++ b/Library/Homebrew/test/pkg_version_spec.rb @@ -1,3 +1,4 @@ +# typed: false # frozen_string_literal: true require "pkg_version" diff --git a/Library/Homebrew/test/requirement_spec.rb b/Library/Homebrew/test/requirement_spec.rb index ffcb3a8de1..018496b036 100644 --- a/Library/Homebrew/test/requirement_spec.rb +++ b/Library/Homebrew/test/requirement_spec.rb @@ -1,3 +1,4 @@ +# typed: false # frozen_string_literal: true require "cli/args" diff --git a/Library/Homebrew/test/requirements/codesign_requirement_spec.rb b/Library/Homebrew/test/requirements/codesign_requirement_spec.rb index 483104bce6..0f22b9f67a 100644 --- a/Library/Homebrew/test/requirements/codesign_requirement_spec.rb +++ b/Library/Homebrew/test/requirements/codesign_requirement_spec.rb @@ -1,3 +1,4 @@ +# typed: false # frozen_string_literal: true require "requirements/codesign_requirement" diff --git a/Library/Homebrew/test/requirements/java_requirement_spec.rb b/Library/Homebrew/test/requirements/java_requirement_spec.rb index 969532d0c7..59e4dcc645 100644 --- a/Library/Homebrew/test/requirements/java_requirement_spec.rb +++ b/Library/Homebrew/test/requirements/java_requirement_spec.rb @@ -1,3 +1,4 @@ +# typed: false # frozen_string_literal: true require "requirements/java_requirement" diff --git a/Library/Homebrew/test/requirements/linux_requirement_spec.rb b/Library/Homebrew/test/requirements/linux_requirement_spec.rb index f328579fa2..78167a4d87 100644 --- a/Library/Homebrew/test/requirements/linux_requirement_spec.rb +++ b/Library/Homebrew/test/requirements/linux_requirement_spec.rb @@ -1,3 +1,4 @@ +# typed: false # frozen_string_literal: true require "cli/args" diff --git a/Library/Homebrew/test/requirements/macos_requirement_spec.rb b/Library/Homebrew/test/requirements/macos_requirement_spec.rb index b966111262..488f8c1f04 100644 --- a/Library/Homebrew/test/requirements/macos_requirement_spec.rb +++ b/Library/Homebrew/test/requirements/macos_requirement_spec.rb @@ -1,3 +1,4 @@ +# typed: false # frozen_string_literal: true require "cli/args" diff --git a/Library/Homebrew/test/requirements/osxfuse_requirement_spec.rb b/Library/Homebrew/test/requirements/osxfuse_requirement_spec.rb index 8c38a45884..4b9632a389 100644 --- a/Library/Homebrew/test/requirements/osxfuse_requirement_spec.rb +++ b/Library/Homebrew/test/requirements/osxfuse_requirement_spec.rb @@ -1,3 +1,4 @@ +# typed: false # frozen_string_literal: true require "cli/args" diff --git a/Library/Homebrew/test/requirements_spec.rb b/Library/Homebrew/test/requirements_spec.rb index f20e7bc9ed..ae6bfdc2c5 100644 --- a/Library/Homebrew/test/requirements_spec.rb +++ b/Library/Homebrew/test/requirements_spec.rb @@ -1,3 +1,4 @@ +# typed: false # frozen_string_literal: true require "requirements" diff --git a/Library/Homebrew/test/resource_spec.rb b/Library/Homebrew/test/resource_spec.rb index fd4e591014..260bd9c50c 100644 --- a/Library/Homebrew/test/resource_spec.rb +++ b/Library/Homebrew/test/resource_spec.rb @@ -1,3 +1,4 @@ +# typed: false # frozen_string_literal: true require "resource" diff --git a/Library/Homebrew/test/rubocop_spec.rb b/Library/Homebrew/test/rubocop_spec.rb index a5750a430c..83ae2ddf68 100644 --- a/Library/Homebrew/test/rubocop_spec.rb +++ b/Library/Homebrew/test/rubocop_spec.rb @@ -1,3 +1,4 @@ +# typed: false # frozen_string_literal: true require "open3" diff --git a/Library/Homebrew/test/rubocops/cask/desc_spec.rb b/Library/Homebrew/test/rubocops/cask/desc_spec.rb index d76d37b6c7..633db2e1c1 100644 --- a/Library/Homebrew/test/rubocops/cask/desc_spec.rb +++ b/Library/Homebrew/test/rubocops/cask/desc_spec.rb @@ -1,3 +1,4 @@ +# typed: false # frozen_string_literal: true require "rubocops/rubocop-cask" diff --git a/Library/Homebrew/test/rubocops/cask/homepage_matches_url_spec.rb b/Library/Homebrew/test/rubocops/cask/homepage_matches_url_spec.rb index dd175cb4fc..4ef084f3e1 100644 --- a/Library/Homebrew/test/rubocops/cask/homepage_matches_url_spec.rb +++ b/Library/Homebrew/test/rubocops/cask/homepage_matches_url_spec.rb @@ -1,3 +1,4 @@ +# typed: false # frozen_string_literal: true require "rubocops/rubocop-cask" diff --git a/Library/Homebrew/test/rubocops/cask/homepage_url_trailing_slash_spec.rb b/Library/Homebrew/test/rubocops/cask/homepage_url_trailing_slash_spec.rb index 81fea8a007..05d98bec5a 100644 --- a/Library/Homebrew/test/rubocops/cask/homepage_url_trailing_slash_spec.rb +++ b/Library/Homebrew/test/rubocops/cask/homepage_url_trailing_slash_spec.rb @@ -1,3 +1,4 @@ +# typed: false # frozen_string_literal: true require "rubocops/rubocop-cask" diff --git a/Library/Homebrew/test/rubocops/cask/no_dsl_version_spec.rb b/Library/Homebrew/test/rubocops/cask/no_dsl_version_spec.rb index 2f6d5747c7..a8f1c574e5 100644 --- a/Library/Homebrew/test/rubocops/cask/no_dsl_version_spec.rb +++ b/Library/Homebrew/test/rubocops/cask/no_dsl_version_spec.rb @@ -1,3 +1,4 @@ +# typed: false # frozen_string_literal: true require "rubocops/rubocop-cask" diff --git a/Library/Homebrew/test/rubocops/cask/shared_examples/cask_cop.rb b/Library/Homebrew/test/rubocops/cask/shared_examples/cask_cop.rb index 3a11d6be0e..8654a49606 100644 --- a/Library/Homebrew/test/rubocops/cask/shared_examples/cask_cop.rb +++ b/Library/Homebrew/test/rubocops/cask/shared_examples/cask_cop.rb @@ -1,3 +1,4 @@ +# typed: false # frozen_string_literal: true module CaskCop diff --git a/Library/Homebrew/test/rubocops/cask/stanza_grouping_spec.rb b/Library/Homebrew/test/rubocops/cask/stanza_grouping_spec.rb index 21cfb53933..3cce050983 100644 --- a/Library/Homebrew/test/rubocops/cask/stanza_grouping_spec.rb +++ b/Library/Homebrew/test/rubocops/cask/stanza_grouping_spec.rb @@ -1,3 +1,4 @@ +# typed: false # frozen_string_literal: true require "rubocops/rubocop-cask" diff --git a/Library/Homebrew/test/rubocops/cask/stanza_order_spec.rb b/Library/Homebrew/test/rubocops/cask/stanza_order_spec.rb index c10ef5bf5a..0afabf0386 100644 --- a/Library/Homebrew/test/rubocops/cask/stanza_order_spec.rb +++ b/Library/Homebrew/test/rubocops/cask/stanza_order_spec.rb @@ -1,3 +1,4 @@ +# typed: false # frozen_string_literal: true require "rubocops/rubocop-cask" diff --git a/Library/Homebrew/test/rubocops/caveats_spec.rb b/Library/Homebrew/test/rubocops/caveats_spec.rb index a19e8ab8f5..a2b76acb80 100644 --- a/Library/Homebrew/test/rubocops/caveats_spec.rb +++ b/Library/Homebrew/test/rubocops/caveats_spec.rb @@ -1,3 +1,4 @@ +# typed: false # frozen_string_literal: true require "rubocops/caveats" diff --git a/Library/Homebrew/test/rubocops/checksum_spec.rb b/Library/Homebrew/test/rubocops/checksum_spec.rb index 0d3f0e5420..460987283a 100644 --- a/Library/Homebrew/test/rubocops/checksum_spec.rb +++ b/Library/Homebrew/test/rubocops/checksum_spec.rb @@ -1,3 +1,4 @@ +# typed: false # frozen_string_literal: true require "rubocops/checksum" diff --git a/Library/Homebrew/test/rubocops/class_spec.rb b/Library/Homebrew/test/rubocops/class_spec.rb index 06a3c94704..1f0c84ab27 100644 --- a/Library/Homebrew/test/rubocops/class_spec.rb +++ b/Library/Homebrew/test/rubocops/class_spec.rb @@ -1,3 +1,4 @@ +# typed: false # frozen_string_literal: true require "rubocops/class" diff --git a/Library/Homebrew/test/rubocops/components_order_spec.rb b/Library/Homebrew/test/rubocops/components_order_spec.rb index cedab62228..098e782546 100644 --- a/Library/Homebrew/test/rubocops/components_order_spec.rb +++ b/Library/Homebrew/test/rubocops/components_order_spec.rb @@ -1,3 +1,4 @@ +# typed: false # frozen_string_literal: true require "rubocops/components_order" diff --git a/Library/Homebrew/test/rubocops/components_redundancy_spec.rb b/Library/Homebrew/test/rubocops/components_redundancy_spec.rb index 4eea2dca3f..5bb778d298 100644 --- a/Library/Homebrew/test/rubocops/components_redundancy_spec.rb +++ b/Library/Homebrew/test/rubocops/components_redundancy_spec.rb @@ -1,3 +1,4 @@ +# typed: false # frozen_string_literal: true require "rubocops/components_redundancy" diff --git a/Library/Homebrew/test/rubocops/conflicts_spec.rb b/Library/Homebrew/test/rubocops/conflicts_spec.rb index 6a1a839ce5..3d2fe41462 100644 --- a/Library/Homebrew/test/rubocops/conflicts_spec.rb +++ b/Library/Homebrew/test/rubocops/conflicts_spec.rb @@ -1,3 +1,4 @@ +# typed: false # frozen_string_literal: true require "rubocops/conflicts" diff --git a/Library/Homebrew/test/rubocops/dependency_order_spec.rb b/Library/Homebrew/test/rubocops/dependency_order_spec.rb index 5863686c3f..8d5be00c2a 100644 --- a/Library/Homebrew/test/rubocops/dependency_order_spec.rb +++ b/Library/Homebrew/test/rubocops/dependency_order_spec.rb @@ -1,3 +1,4 @@ +# typed: false # frozen_string_literal: true require "rubocops/dependency_order" diff --git a/Library/Homebrew/test/rubocops/deprecate_disable_spec.rb b/Library/Homebrew/test/rubocops/deprecate_disable_spec.rb index 4756a361db..afc1da7e32 100644 --- a/Library/Homebrew/test/rubocops/deprecate_disable_spec.rb +++ b/Library/Homebrew/test/rubocops/deprecate_disable_spec.rb @@ -1,3 +1,4 @@ +# typed: false # frozen_string_literal: true require "rubocops/deprecate_disable" diff --git a/Library/Homebrew/test/rubocops/files_spec.rb b/Library/Homebrew/test/rubocops/files_spec.rb index 83142a1b51..746b4212b7 100644 --- a/Library/Homebrew/test/rubocops/files_spec.rb +++ b/Library/Homebrew/test/rubocops/files_spec.rb @@ -1,3 +1,4 @@ +# typed: false # frozen_string_literal: true require "rubocops/files" diff --git a/Library/Homebrew/test/rubocops/formula_desc_spec.rb b/Library/Homebrew/test/rubocops/formula_desc_spec.rb index 5d85184ef3..47c518537f 100644 --- a/Library/Homebrew/test/rubocops/formula_desc_spec.rb +++ b/Library/Homebrew/test/rubocops/formula_desc_spec.rb @@ -1,3 +1,4 @@ +# typed: false # frozen_string_literal: true require "rubocops/formula_desc" diff --git a/Library/Homebrew/test/rubocops/homepage_spec.rb b/Library/Homebrew/test/rubocops/homepage_spec.rb index fcdc6b9a11..cfabcb0921 100644 --- a/Library/Homebrew/test/rubocops/homepage_spec.rb +++ b/Library/Homebrew/test/rubocops/homepage_spec.rb @@ -1,3 +1,4 @@ +# typed: false # frozen_string_literal: true require "rubocops/homepage" diff --git a/Library/Homebrew/test/rubocops/keg_only_spec.rb b/Library/Homebrew/test/rubocops/keg_only_spec.rb index 2f0af35aab..16bb4c6234 100644 --- a/Library/Homebrew/test/rubocops/keg_only_spec.rb +++ b/Library/Homebrew/test/rubocops/keg_only_spec.rb @@ -1,3 +1,4 @@ +# typed: false # frozen_string_literal: true require "rubocops/keg_only" diff --git a/Library/Homebrew/test/rubocops/lines_spec.rb b/Library/Homebrew/test/rubocops/lines_spec.rb index fa61dd9a64..a5b3cbd69d 100644 --- a/Library/Homebrew/test/rubocops/lines_spec.rb +++ b/Library/Homebrew/test/rubocops/lines_spec.rb @@ -1,3 +1,4 @@ +# typed: false # frozen_string_literal: true require "rubocops/lines" diff --git a/Library/Homebrew/test/rubocops/livecheck_spec.rb b/Library/Homebrew/test/rubocops/livecheck_spec.rb index 5bda3ac2c8..33bb7cf2e0 100644 --- a/Library/Homebrew/test/rubocops/livecheck_spec.rb +++ b/Library/Homebrew/test/rubocops/livecheck_spec.rb @@ -1,3 +1,4 @@ +# typed: false # frozen_string_literal: true require "rubocops/livecheck" diff --git a/Library/Homebrew/test/rubocops/options_spec.rb b/Library/Homebrew/test/rubocops/options_spec.rb index 7b8a5823ad..e1d9981980 100644 --- a/Library/Homebrew/test/rubocops/options_spec.rb +++ b/Library/Homebrew/test/rubocops/options_spec.rb @@ -1,3 +1,4 @@ +# typed: false # frozen_string_literal: true require "rubocops/options" diff --git a/Library/Homebrew/test/rubocops/patches_spec.rb b/Library/Homebrew/test/rubocops/patches_spec.rb index f1bbc3d37e..41d24cc512 100644 --- a/Library/Homebrew/test/rubocops/patches_spec.rb +++ b/Library/Homebrew/test/rubocops/patches_spec.rb @@ -1,3 +1,4 @@ +# typed: false # frozen_string_literal: true require "rubocops/patches" diff --git a/Library/Homebrew/test/rubocops/text_spec.rb b/Library/Homebrew/test/rubocops/text_spec.rb index 3960272dbc..c308451b19 100644 --- a/Library/Homebrew/test/rubocops/text_spec.rb +++ b/Library/Homebrew/test/rubocops/text_spec.rb @@ -1,3 +1,4 @@ +# typed: false # frozen_string_literal: true require "rubocops/text" diff --git a/Library/Homebrew/test/rubocops/urls_spec.rb b/Library/Homebrew/test/rubocops/urls_spec.rb index e36f40493a..0be3154ee1 100644 --- a/Library/Homebrew/test/rubocops/urls_spec.rb +++ b/Library/Homebrew/test/rubocops/urls_spec.rb @@ -1,3 +1,4 @@ +# typed: false # frozen_string_literal: true require "rubocops/urls" diff --git a/Library/Homebrew/test/rubocops/uses_from_macos_spec.rb b/Library/Homebrew/test/rubocops/uses_from_macos_spec.rb index d74cb57d27..6a12800505 100644 --- a/Library/Homebrew/test/rubocops/uses_from_macos_spec.rb +++ b/Library/Homebrew/test/rubocops/uses_from_macos_spec.rb @@ -1,3 +1,4 @@ +# typed: false # frozen_string_literal: true require "rubocops/uses_from_macos" diff --git a/Library/Homebrew/test/rubocops/version_spec.rb b/Library/Homebrew/test/rubocops/version_spec.rb index 45ac7ecf1e..cf36fea015 100644 --- a/Library/Homebrew/test/rubocops/version_spec.rb +++ b/Library/Homebrew/test/rubocops/version_spec.rb @@ -1,3 +1,4 @@ +# typed: false # frozen_string_literal: true require "rubocops/version" diff --git a/Library/Homebrew/test/sandbox_spec.rb b/Library/Homebrew/test/sandbox_spec.rb index f3b323eaf0..10f4abde6c 100644 --- a/Library/Homebrew/test/sandbox_spec.rb +++ b/Library/Homebrew/test/sandbox_spec.rb @@ -1,3 +1,4 @@ +# typed: false # frozen_string_literal: true require "sandbox" diff --git a/Library/Homebrew/test/search_spec.rb b/Library/Homebrew/test/search_spec.rb index 0f3bfbe6a6..84377c4757 100644 --- a/Library/Homebrew/test/search_spec.rb +++ b/Library/Homebrew/test/search_spec.rb @@ -1,3 +1,4 @@ +# typed: false # frozen_string_literal: true require "search" diff --git a/Library/Homebrew/test/searchable_spec.rb b/Library/Homebrew/test/searchable_spec.rb index 6fdb4557d7..f7e059ffb0 100644 --- a/Library/Homebrew/test/searchable_spec.rb +++ b/Library/Homebrew/test/searchable_spec.rb @@ -1,3 +1,4 @@ +# typed: false # frozen_string_literal: true require "searchable" diff --git a/Library/Homebrew/test/software_spec_spec.rb b/Library/Homebrew/test/software_spec_spec.rb index 34278b48e4..965fca8cf2 100644 --- a/Library/Homebrew/test/software_spec_spec.rb +++ b/Library/Homebrew/test/software_spec_spec.rb @@ -1,3 +1,4 @@ +# typed: false # frozen_string_literal: true require "software_spec" diff --git a/Library/Homebrew/test/spec_helper.rb b/Library/Homebrew/test/spec_helper.rb index 406ffc7561..dabc1816de 100644 --- a/Library/Homebrew/test/spec_helper.rb +++ b/Library/Homebrew/test/spec_helper.rb @@ -1,3 +1,4 @@ +# typed: false # frozen_string_literal: true if ENV["HOMEBREW_TESTS_COVERAGE"] diff --git a/Library/Homebrew/test/string_spec.rb b/Library/Homebrew/test/string_spec.rb index 646d53765a..0442c620a2 100644 --- a/Library/Homebrew/test/string_spec.rb +++ b/Library/Homebrew/test/string_spec.rb @@ -1,3 +1,4 @@ +# typed: false # frozen_string_literal: true require "extend/string" diff --git a/Library/Homebrew/test/style_spec.rb b/Library/Homebrew/test/style_spec.rb index abe5e23b8c..d187cbc19d 100644 --- a/Library/Homebrew/test/style_spec.rb +++ b/Library/Homebrew/test/style_spec.rb @@ -1,3 +1,4 @@ +# typed: false # frozen_string_literal: true require "style" diff --git a/Library/Homebrew/test/support/fixtures/failball.rb b/Library/Homebrew/test/support/fixtures/failball.rb index 5ba1692eff..e4a15344b3 100644 --- a/Library/Homebrew/test/support/fixtures/failball.rb +++ b/Library/Homebrew/test/support/fixtures/failball.rb @@ -1,3 +1,4 @@ +# typed: true # frozen_string_literal: true class Failball < Formula diff --git a/Library/Homebrew/test/support/fixtures/testball.rb b/Library/Homebrew/test/support/fixtures/testball.rb index 27ff8dafc0..1a99de2914 100644 --- a/Library/Homebrew/test/support/fixtures/testball.rb +++ b/Library/Homebrew/test/support/fixtures/testball.rb @@ -1,3 +1,4 @@ +# typed: true # frozen_string_literal: true class Testball < Formula diff --git a/Library/Homebrew/test/support/fixtures/testball_bottle.rb b/Library/Homebrew/test/support/fixtures/testball_bottle.rb index 76d8d7e7c0..d3f159eaf9 100644 --- a/Library/Homebrew/test/support/fixtures/testball_bottle.rb +++ b/Library/Homebrew/test/support/fixtures/testball_bottle.rb @@ -1,3 +1,4 @@ +# typed: true # frozen_string_literal: true class TestballBottle < Formula diff --git a/Library/Homebrew/test/support/github_formatter.rb b/Library/Homebrew/test/support/github_formatter.rb index 7010a4d93f..6f019f9baf 100644 --- a/Library/Homebrew/test/support/github_formatter.rb +++ b/Library/Homebrew/test/support/github_formatter.rb @@ -1,3 +1,4 @@ +# typed: true # frozen_string_literal: true require "rspec/core" diff --git a/Library/Homebrew/test/support/helper/cask.rb b/Library/Homebrew/test/support/helper/cask.rb index 940e80a4f9..6dd863daab 100644 --- a/Library/Homebrew/test/support/helper/cask.rb +++ b/Library/Homebrew/test/support/helper/cask.rb @@ -1,3 +1,4 @@ +# typed: false # frozen_string_literal: true require "cask/cask_loader" diff --git a/Library/Homebrew/test/support/helper/cask/fake_system_command.rb b/Library/Homebrew/test/support/helper/cask/fake_system_command.rb index 47080e6419..2587e7bc52 100644 --- a/Library/Homebrew/test/support/helper/cask/fake_system_command.rb +++ b/Library/Homebrew/test/support/helper/cask/fake_system_command.rb @@ -1,3 +1,4 @@ +# typed: true # frozen_string_literal: true def sudo(*args) diff --git a/Library/Homebrew/test/support/helper/cask/install_helper.rb b/Library/Homebrew/test/support/helper/cask/install_helper.rb index 19ef9594e0..18c083059e 100644 --- a/Library/Homebrew/test/support/helper/cask/install_helper.rb +++ b/Library/Homebrew/test/support/helper/cask/install_helper.rb @@ -1,3 +1,4 @@ +# typed: true # frozen_string_literal: true require "cask/installer" diff --git a/Library/Homebrew/test/support/helper/cask/never_sudo_system_command.rb b/Library/Homebrew/test/support/helper/cask/never_sudo_system_command.rb index be2570a0c3..b5859c174e 100644 --- a/Library/Homebrew/test/support/helper/cask/never_sudo_system_command.rb +++ b/Library/Homebrew/test/support/helper/cask/never_sudo_system_command.rb @@ -1,3 +1,4 @@ +# typed: true # frozen_string_literal: true require "system_command" diff --git a/Library/Homebrew/test/support/helper/cmd/brew-verify-formula-undefined.rb b/Library/Homebrew/test/support/helper/cmd/brew-verify-formula-undefined.rb index 8be3998c18..eaa659e8ae 100755 --- a/Library/Homebrew/test/support/helper/cmd/brew-verify-formula-undefined.rb +++ b/Library/Homebrew/test/support/helper/cmd/brew-verify-formula-undefined.rb @@ -1,3 +1,4 @@ +# typed: false # frozen_string_literal: true require "cli/parser" diff --git a/Library/Homebrew/test/support/helper/fixtures.rb b/Library/Homebrew/test/support/helper/fixtures.rb index fc5cf48c8c..2dd4b4c657 100644 --- a/Library/Homebrew/test/support/helper/fixtures.rb +++ b/Library/Homebrew/test/support/helper/fixtures.rb @@ -1,3 +1,4 @@ +# typed: true # frozen_string_literal: true module Test diff --git a/Library/Homebrew/test/support/helper/formula.rb b/Library/Homebrew/test/support/helper/formula.rb index caf4a1c73a..256ef05e54 100644 --- a/Library/Homebrew/test/support/helper/formula.rb +++ b/Library/Homebrew/test/support/helper/formula.rb @@ -1,3 +1,4 @@ +# typed: false # frozen_string_literal: true require "formulary" diff --git a/Library/Homebrew/test/support/helper/integration_mocks.rb b/Library/Homebrew/test/support/helper/integration_mocks.rb index 2e4ec4b266..245a2aef0e 100644 --- a/Library/Homebrew/test/support/helper/integration_mocks.rb +++ b/Library/Homebrew/test/support/helper/integration_mocks.rb @@ -1,3 +1,4 @@ +# typed: false # frozen_string_literal: true module Homebrew diff --git a/Library/Homebrew/test/support/helper/mktmpdir.rb b/Library/Homebrew/test/support/helper/mktmpdir.rb index 6cb369c414..f6cc4282c9 100644 --- a/Library/Homebrew/test/support/helper/mktmpdir.rb +++ b/Library/Homebrew/test/support/helper/mktmpdir.rb @@ -1,3 +1,4 @@ +# typed: false # frozen_string_literal: true module Test diff --git a/Library/Homebrew/test/support/helper/output_as_tty.rb b/Library/Homebrew/test/support/helper/output_as_tty.rb index ca7f4ca662..24b25fd89f 100644 --- a/Library/Homebrew/test/support/helper/output_as_tty.rb +++ b/Library/Homebrew/test/support/helper/output_as_tty.rb @@ -1,3 +1,4 @@ +# typed: false # frozen_string_literal: true require "delegate" diff --git a/Library/Homebrew/test/support/helper/spec/shared_context/homebrew_cask.rb b/Library/Homebrew/test/support/helper/spec/shared_context/homebrew_cask.rb index db6836796f..760bd80147 100644 --- a/Library/Homebrew/test/support/helper/spec/shared_context/homebrew_cask.rb +++ b/Library/Homebrew/test/support/helper/spec/shared_context/homebrew_cask.rb @@ -1,3 +1,4 @@ +# typed: false # frozen_string_literal: true require "cask/config" diff --git a/Library/Homebrew/test/support/helper/spec/shared_context/integration_test.rb b/Library/Homebrew/test/support/helper/spec/shared_context/integration_test.rb index aeebb8c14a..3d18361e9b 100644 --- a/Library/Homebrew/test/support/helper/spec/shared_context/integration_test.rb +++ b/Library/Homebrew/test/support/helper/spec/shared_context/integration_test.rb @@ -1,3 +1,4 @@ +# typed: false # frozen_string_literal: true require "open3" diff --git a/Library/Homebrew/test/support/helper/spec/shared_examples/formulae_exist.rb b/Library/Homebrew/test/support/helper/spec/shared_examples/formulae_exist.rb index b005657977..e52610016f 100644 --- a/Library/Homebrew/test/support/helper/spec/shared_examples/formulae_exist.rb +++ b/Library/Homebrew/test/support/helper/spec/shared_examples/formulae_exist.rb @@ -1,3 +1,4 @@ +# typed: false # frozen_string_literal: true shared_examples "formulae exist" do |array| diff --git a/Library/Homebrew/test/support/lib/config.rb b/Library/Homebrew/test/support/lib/config.rb index a9c6769f70..b68490628b 100644 --- a/Library/Homebrew/test/support/lib/config.rb +++ b/Library/Homebrew/test/support/lib/config.rb @@ -1,3 +1,4 @@ +# typed: true # frozen_string_literal: true raise "HOMEBREW_BREW_FILE was not exported! Please call bin/brew directly!" unless ENV["HOMEBREW_BREW_FILE"] diff --git a/Library/Homebrew/test/support/no_seed_progress_formatter.rb b/Library/Homebrew/test/support/no_seed_progress_formatter.rb index d6199bd9a3..493883e8b9 100644 --- a/Library/Homebrew/test/support/no_seed_progress_formatter.rb +++ b/Library/Homebrew/test/support/no_seed_progress_formatter.rb @@ -1,3 +1,4 @@ +# typed: true # frozen_string_literal: true require "rspec/core/formatters/progress_formatter" diff --git a/Library/Homebrew/test/system_command_result_spec.rb b/Library/Homebrew/test/system_command_result_spec.rb index bc48fcdd75..8d37dbf57e 100644 --- a/Library/Homebrew/test/system_command_result_spec.rb +++ b/Library/Homebrew/test/system_command_result_spec.rb @@ -1,3 +1,4 @@ +# typed: false # frozen_string_literal: true require "system_command" diff --git a/Library/Homebrew/test/system_command_spec.rb b/Library/Homebrew/test/system_command_spec.rb index 5c5506eecd..fef1692deb 100644 --- a/Library/Homebrew/test/system_command_spec.rb +++ b/Library/Homebrew/test/system_command_spec.rb @@ -1,3 +1,4 @@ +# typed: false # frozen_string_literal: true describe SystemCommand do diff --git a/Library/Homebrew/test/tab_spec.rb b/Library/Homebrew/test/tab_spec.rb index b4005db52d..355a1c1838 100644 --- a/Library/Homebrew/test/tab_spec.rb +++ b/Library/Homebrew/test/tab_spec.rb @@ -1,3 +1,4 @@ +# typed: false # frozen_string_literal: true require "tab" diff --git a/Library/Homebrew/test/tap_spec.rb b/Library/Homebrew/test/tap_spec.rb index d4263d126f..78db926675 100644 --- a/Library/Homebrew/test/tap_spec.rb +++ b/Library/Homebrew/test/tap_spec.rb @@ -1,3 +1,4 @@ +# typed: false # frozen_string_literal: true describe Tap do diff --git a/Library/Homebrew/test/unpack_strategy/bazaar_spec.rb b/Library/Homebrew/test/unpack_strategy/bazaar_spec.rb index 434a76a948..0db95af39a 100644 --- a/Library/Homebrew/test/unpack_strategy/bazaar_spec.rb +++ b/Library/Homebrew/test/unpack_strategy/bazaar_spec.rb @@ -1,3 +1,4 @@ +# typed: false # frozen_string_literal: true require_relative "shared_examples" diff --git a/Library/Homebrew/test/unpack_strategy/bzip2_spec.rb b/Library/Homebrew/test/unpack_strategy/bzip2_spec.rb index a81f15bab1..126985010d 100644 --- a/Library/Homebrew/test/unpack_strategy/bzip2_spec.rb +++ b/Library/Homebrew/test/unpack_strategy/bzip2_spec.rb @@ -1,3 +1,4 @@ +# typed: false # frozen_string_literal: true require_relative "shared_examples" diff --git a/Library/Homebrew/test/unpack_strategy/cvs_spec.rb b/Library/Homebrew/test/unpack_strategy/cvs_spec.rb index 8eebf17da5..2b9ebaa58d 100644 --- a/Library/Homebrew/test/unpack_strategy/cvs_spec.rb +++ b/Library/Homebrew/test/unpack_strategy/cvs_spec.rb @@ -1,3 +1,4 @@ +# typed: false # frozen_string_literal: true require_relative "shared_examples" diff --git a/Library/Homebrew/test/unpack_strategy/directory_spec.rb b/Library/Homebrew/test/unpack_strategy/directory_spec.rb index dc321a4644..ae12a37704 100644 --- a/Library/Homebrew/test/unpack_strategy/directory_spec.rb +++ b/Library/Homebrew/test/unpack_strategy/directory_spec.rb @@ -1,3 +1,4 @@ +# typed: false # frozen_string_literal: true require_relative "shared_examples" diff --git a/Library/Homebrew/test/unpack_strategy/dmg_spec.rb b/Library/Homebrew/test/unpack_strategy/dmg_spec.rb index 8a3594f144..7b30d119c4 100644 --- a/Library/Homebrew/test/unpack_strategy/dmg_spec.rb +++ b/Library/Homebrew/test/unpack_strategy/dmg_spec.rb @@ -1,3 +1,4 @@ +# typed: false # frozen_string_literal: true require_relative "shared_examples" diff --git a/Library/Homebrew/test/unpack_strategy/git_spec.rb b/Library/Homebrew/test/unpack_strategy/git_spec.rb index 738146a787..b3831b731d 100644 --- a/Library/Homebrew/test/unpack_strategy/git_spec.rb +++ b/Library/Homebrew/test/unpack_strategy/git_spec.rb @@ -1,3 +1,4 @@ +# typed: false # frozen_string_literal: true require_relative "shared_examples" diff --git a/Library/Homebrew/test/unpack_strategy/gzip_spec.rb b/Library/Homebrew/test/unpack_strategy/gzip_spec.rb index ebf4a493bd..0f85ad24db 100644 --- a/Library/Homebrew/test/unpack_strategy/gzip_spec.rb +++ b/Library/Homebrew/test/unpack_strategy/gzip_spec.rb @@ -1,3 +1,4 @@ +# typed: false # frozen_string_literal: true require_relative "shared_examples" diff --git a/Library/Homebrew/test/unpack_strategy/jar_spec.rb b/Library/Homebrew/test/unpack_strategy/jar_spec.rb index f6da64b973..042f9bf01a 100644 --- a/Library/Homebrew/test/unpack_strategy/jar_spec.rb +++ b/Library/Homebrew/test/unpack_strategy/jar_spec.rb @@ -1,3 +1,4 @@ +# typed: false # frozen_string_literal: true require_relative "shared_examples" diff --git a/Library/Homebrew/test/unpack_strategy/lha_spec.rb b/Library/Homebrew/test/unpack_strategy/lha_spec.rb index e24a60a655..18921910b8 100644 --- a/Library/Homebrew/test/unpack_strategy/lha_spec.rb +++ b/Library/Homebrew/test/unpack_strategy/lha_spec.rb @@ -1,3 +1,4 @@ +# typed: false # frozen_string_literal: true require_relative "shared_examples" diff --git a/Library/Homebrew/test/unpack_strategy/lzip_spec.rb b/Library/Homebrew/test/unpack_strategy/lzip_spec.rb index a74b68add5..cd4932c915 100644 --- a/Library/Homebrew/test/unpack_strategy/lzip_spec.rb +++ b/Library/Homebrew/test/unpack_strategy/lzip_spec.rb @@ -1,3 +1,4 @@ +# typed: false # frozen_string_literal: true require_relative "shared_examples" diff --git a/Library/Homebrew/test/unpack_strategy/mercurial_spec.rb b/Library/Homebrew/test/unpack_strategy/mercurial_spec.rb index 76a28e27b0..c29066ff78 100644 --- a/Library/Homebrew/test/unpack_strategy/mercurial_spec.rb +++ b/Library/Homebrew/test/unpack_strategy/mercurial_spec.rb @@ -1,3 +1,4 @@ +# typed: false # frozen_string_literal: true require_relative "shared_examples" diff --git a/Library/Homebrew/test/unpack_strategy/p7zip_spec.rb b/Library/Homebrew/test/unpack_strategy/p7zip_spec.rb index c612b13f03..09386a1771 100644 --- a/Library/Homebrew/test/unpack_strategy/p7zip_spec.rb +++ b/Library/Homebrew/test/unpack_strategy/p7zip_spec.rb @@ -1,3 +1,4 @@ +# typed: false # frozen_string_literal: true require_relative "shared_examples" diff --git a/Library/Homebrew/test/unpack_strategy/rar_spec.rb b/Library/Homebrew/test/unpack_strategy/rar_spec.rb index 5e5e593339..9ddea401fb 100644 --- a/Library/Homebrew/test/unpack_strategy/rar_spec.rb +++ b/Library/Homebrew/test/unpack_strategy/rar_spec.rb @@ -1,3 +1,4 @@ +# typed: false # frozen_string_literal: true require_relative "shared_examples" diff --git a/Library/Homebrew/test/unpack_strategy/shared_examples.rb b/Library/Homebrew/test/unpack_strategy/shared_examples.rb index 6f3caa475c..3c034d0086 100644 --- a/Library/Homebrew/test/unpack_strategy/shared_examples.rb +++ b/Library/Homebrew/test/unpack_strategy/shared_examples.rb @@ -1,3 +1,4 @@ +# typed: false # frozen_string_literal: true require "unpack_strategy" diff --git a/Library/Homebrew/test/unpack_strategy/subversion_spec.rb b/Library/Homebrew/test/unpack_strategy/subversion_spec.rb index 78795f94cc..d1baca44bb 100644 --- a/Library/Homebrew/test/unpack_strategy/subversion_spec.rb +++ b/Library/Homebrew/test/unpack_strategy/subversion_spec.rb @@ -1,3 +1,4 @@ +# typed: false # frozen_string_literal: true require_relative "shared_examples" diff --git a/Library/Homebrew/test/unpack_strategy/tar_spec.rb b/Library/Homebrew/test/unpack_strategy/tar_spec.rb index ae11929b32..078762a124 100644 --- a/Library/Homebrew/test/unpack_strategy/tar_spec.rb +++ b/Library/Homebrew/test/unpack_strategy/tar_spec.rb @@ -1,3 +1,4 @@ +# typed: false # frozen_string_literal: true require_relative "shared_examples" diff --git a/Library/Homebrew/test/unpack_strategy/uncompressed_spec.rb b/Library/Homebrew/test/unpack_strategy/uncompressed_spec.rb index 8e8c5d9236..857ac134e6 100644 --- a/Library/Homebrew/test/unpack_strategy/uncompressed_spec.rb +++ b/Library/Homebrew/test/unpack_strategy/uncompressed_spec.rb @@ -1,3 +1,4 @@ +# typed: false # frozen_string_literal: true require_relative "shared_examples" diff --git a/Library/Homebrew/test/unpack_strategy/xar_spec.rb b/Library/Homebrew/test/unpack_strategy/xar_spec.rb index f4f11389d1..28870a2d78 100644 --- a/Library/Homebrew/test/unpack_strategy/xar_spec.rb +++ b/Library/Homebrew/test/unpack_strategy/xar_spec.rb @@ -1,3 +1,4 @@ +# typed: false # frozen_string_literal: true require_relative "shared_examples" diff --git a/Library/Homebrew/test/unpack_strategy/xz_spec.rb b/Library/Homebrew/test/unpack_strategy/xz_spec.rb index ffc41369ae..f6befa95af 100644 --- a/Library/Homebrew/test/unpack_strategy/xz_spec.rb +++ b/Library/Homebrew/test/unpack_strategy/xz_spec.rb @@ -1,3 +1,4 @@ +# typed: false # frozen_string_literal: true require_relative "shared_examples" diff --git a/Library/Homebrew/test/unpack_strategy/zip_spec.rb b/Library/Homebrew/test/unpack_strategy/zip_spec.rb index c579fff51c..dd27c5de48 100644 --- a/Library/Homebrew/test/unpack_strategy/zip_spec.rb +++ b/Library/Homebrew/test/unpack_strategy/zip_spec.rb @@ -1,3 +1,4 @@ +# typed: false # frozen_string_literal: true require_relative "shared_examples" diff --git a/Library/Homebrew/test/unpack_strategy_spec.rb b/Library/Homebrew/test/unpack_strategy_spec.rb index bfcbc24216..055fe3c96e 100644 --- a/Library/Homebrew/test/unpack_strategy_spec.rb +++ b/Library/Homebrew/test/unpack_strategy_spec.rb @@ -1,3 +1,4 @@ +# typed: false # frozen_string_literal: true describe UnpackStrategy do diff --git a/Library/Homebrew/test/utils/analytics_spec.rb b/Library/Homebrew/test/utils/analytics_spec.rb index cca36c8360..588c35d3b2 100644 --- a/Library/Homebrew/test/utils/analytics_spec.rb +++ b/Library/Homebrew/test/utils/analytics_spec.rb @@ -1,3 +1,4 @@ +# typed: false # frozen_string_literal: true require "utils/analytics" diff --git a/Library/Homebrew/test/utils/bottles/bintray_spec.rb b/Library/Homebrew/test/utils/bottles/bintray_spec.rb index 87a9a7c7ea..eb96058337 100644 --- a/Library/Homebrew/test/utils/bottles/bintray_spec.rb +++ b/Library/Homebrew/test/utils/bottles/bintray_spec.rb @@ -1,3 +1,4 @@ +# typed: false # frozen_string_literal: true require "utils/bottles" diff --git a/Library/Homebrew/test/utils/bottles/bottles_spec.rb b/Library/Homebrew/test/utils/bottles/bottles_spec.rb index 897bbb57fe..d3eacd60bc 100644 --- a/Library/Homebrew/test/utils/bottles/bottles_spec.rb +++ b/Library/Homebrew/test/utils/bottles/bottles_spec.rb @@ -1,3 +1,4 @@ +# typed: false # frozen_string_literal: true require "utils/bottles" diff --git a/Library/Homebrew/test/utils/bottles/collector_spec.rb b/Library/Homebrew/test/utils/bottles/collector_spec.rb index f83ca75ea8..3314db26d8 100644 --- a/Library/Homebrew/test/utils/bottles/collector_spec.rb +++ b/Library/Homebrew/test/utils/bottles/collector_spec.rb @@ -1,3 +1,4 @@ +# typed: false # frozen_string_literal: true require "utils/bottles" diff --git a/Library/Homebrew/test/utils/curl_spec.rb b/Library/Homebrew/test/utils/curl_spec.rb index 544e57bc1b..af153426b5 100644 --- a/Library/Homebrew/test/utils/curl_spec.rb +++ b/Library/Homebrew/test/utils/curl_spec.rb @@ -1,3 +1,4 @@ +# typed: false # frozen_string_literal: true require "utils/curl" diff --git a/Library/Homebrew/test/utils/fork_spec.rb b/Library/Homebrew/test/utils/fork_spec.rb index fa1d27fb30..330ffbeba8 100644 --- a/Library/Homebrew/test/utils/fork_spec.rb +++ b/Library/Homebrew/test/utils/fork_spec.rb @@ -1,3 +1,4 @@ +# typed: false # frozen_string_literal: true require "utils/fork" diff --git a/Library/Homebrew/test/utils/git_spec.rb b/Library/Homebrew/test/utils/git_spec.rb index f03f614379..0ec9310910 100644 --- a/Library/Homebrew/test/utils/git_spec.rb +++ b/Library/Homebrew/test/utils/git_spec.rb @@ -1,3 +1,4 @@ +# typed: false # frozen_string_literal: true require "utils/git" diff --git a/Library/Homebrew/test/utils/github/actions_spec.rb b/Library/Homebrew/test/utils/github/actions_spec.rb index 1951d5e56f..290e0f8550 100644 --- a/Library/Homebrew/test/utils/github/actions_spec.rb +++ b/Library/Homebrew/test/utils/github/actions_spec.rb @@ -1,3 +1,4 @@ +# typed: false # frozen_string_literal: true require "utils/github/actions" diff --git a/Library/Homebrew/test/utils/github_spec.rb b/Library/Homebrew/test/utils/github_spec.rb index 6c7739ff71..4e785e7dab 100644 --- a/Library/Homebrew/test/utils/github_spec.rb +++ b/Library/Homebrew/test/utils/github_spec.rb @@ -1,3 +1,4 @@ +# typed: false # frozen_string_literal: true require "utils/github" diff --git a/Library/Homebrew/test/utils/livecheck_formula_spec.rb b/Library/Homebrew/test/utils/livecheck_formula_spec.rb index 41ffe71132..7f8495b343 100644 --- a/Library/Homebrew/test/utils/livecheck_formula_spec.rb +++ b/Library/Homebrew/test/utils/livecheck_formula_spec.rb @@ -1,3 +1,4 @@ +# typed: false # frozen_string_literal: true require "utils/livecheck_formula" diff --git a/Library/Homebrew/test/utils/popen_spec.rb b/Library/Homebrew/test/utils/popen_spec.rb index dcce91d8b4..7ea5474e7a 100644 --- a/Library/Homebrew/test/utils/popen_spec.rb +++ b/Library/Homebrew/test/utils/popen_spec.rb @@ -1,3 +1,4 @@ +# typed: false # frozen_string_literal: true require "utils/popen" diff --git a/Library/Homebrew/test/utils/repology_spec.rb b/Library/Homebrew/test/utils/repology_spec.rb index d2fa37b05a..acacade360 100644 --- a/Library/Homebrew/test/utils/repology_spec.rb +++ b/Library/Homebrew/test/utils/repology_spec.rb @@ -1,3 +1,4 @@ +# typed: false # frozen_string_literal: true require "utils/repology" diff --git a/Library/Homebrew/test/utils/shell_spec.rb b/Library/Homebrew/test/utils/shell_spec.rb index d4844080bd..61c24e745f 100644 --- a/Library/Homebrew/test/utils/shell_spec.rb +++ b/Library/Homebrew/test/utils/shell_spec.rb @@ -1,3 +1,4 @@ +# typed: false # frozen_string_literal: true require "utils/shell" diff --git a/Library/Homebrew/test/utils/spdx_spec.rb b/Library/Homebrew/test/utils/spdx_spec.rb index 01c02171dc..5530a27b4e 100644 --- a/Library/Homebrew/test/utils/spdx_spec.rb +++ b/Library/Homebrew/test/utils/spdx_spec.rb @@ -1,3 +1,4 @@ +# typed: false # frozen_string_literal: true require "utils/spdx" diff --git a/Library/Homebrew/test/utils/svn_spec.rb b/Library/Homebrew/test/utils/svn_spec.rb index da6ec91ec7..f4ec8b7f36 100644 --- a/Library/Homebrew/test/utils/svn_spec.rb +++ b/Library/Homebrew/test/utils/svn_spec.rb @@ -1,3 +1,4 @@ +# typed: false # frozen_string_literal: true require "utils/svn" diff --git a/Library/Homebrew/test/utils/tar_spec.rb b/Library/Homebrew/test/utils/tar_spec.rb index b3569cad80..0b7ff0ee58 100644 --- a/Library/Homebrew/test/utils/tar_spec.rb +++ b/Library/Homebrew/test/utils/tar_spec.rb @@ -1,3 +1,4 @@ +# typed: false # frozen_string_literal: true require "utils/tar" diff --git a/Library/Homebrew/test/utils/tty_spec.rb b/Library/Homebrew/test/utils/tty_spec.rb index 32b259e2b8..6f728041f0 100644 --- a/Library/Homebrew/test/utils/tty_spec.rb +++ b/Library/Homebrew/test/utils/tty_spec.rb @@ -1,3 +1,4 @@ +# typed: false # frozen_string_literal: true describe Tty do diff --git a/Library/Homebrew/test/utils/user_spec.rb b/Library/Homebrew/test/utils/user_spec.rb index c26862dc41..53c7089252 100644 --- a/Library/Homebrew/test/utils/user_spec.rb +++ b/Library/Homebrew/test/utils/user_spec.rb @@ -1,3 +1,4 @@ +# typed: false # frozen_string_literal: true require "utils/user" diff --git a/Library/Homebrew/test/utils_spec.rb b/Library/Homebrew/test/utils_spec.rb index 977852b6b2..efaf326603 100644 --- a/Library/Homebrew/test/utils_spec.rb +++ b/Library/Homebrew/test/utils_spec.rb @@ -1,3 +1,4 @@ +# typed: false # frozen_string_literal: true describe "globally-scoped helper methods" do diff --git a/Library/Homebrew/test/version_spec.rb b/Library/Homebrew/test/version_spec.rb index 04f4cdf3bc..ab18e0c646 100644 --- a/Library/Homebrew/test/version_spec.rb +++ b/Library/Homebrew/test/version_spec.rb @@ -1,3 +1,4 @@ +# typed: false # frozen_string_literal: true require "version" diff --git a/Library/Homebrew/test/x11_requirement_spec.rb b/Library/Homebrew/test/x11_requirement_spec.rb index 436e0c15ef..4076f1a553 100644 --- a/Library/Homebrew/test/x11_requirement_spec.rb +++ b/Library/Homebrew/test/x11_requirement_spec.rb @@ -1,3 +1,4 @@ +# typed: false # frozen_string_literal: true require "cli/args" diff --git a/Library/Homebrew/unpack_strategy.rb b/Library/Homebrew/unpack_strategy.rb index 9540b4029b..f76069f3b9 100644 --- a/Library/Homebrew/unpack_strategy.rb +++ b/Library/Homebrew/unpack_strategy.rb @@ -1,3 +1,4 @@ +# typed: false # frozen_string_literal: true # Module containing all available strategies for unpacking archives. diff --git a/Library/Homebrew/unpack_strategy/air.rb b/Library/Homebrew/unpack_strategy/air.rb index 47a2a7f6b9..8d6e73cd1c 100644 --- a/Library/Homebrew/unpack_strategy/air.rb +++ b/Library/Homebrew/unpack_strategy/air.rb @@ -1,3 +1,4 @@ +# typed: true # frozen_string_literal: true module UnpackStrategy diff --git a/Library/Homebrew/unpack_strategy/bazaar.rb b/Library/Homebrew/unpack_strategy/bazaar.rb index 3bb3c4d6b1..f50957a124 100644 --- a/Library/Homebrew/unpack_strategy/bazaar.rb +++ b/Library/Homebrew/unpack_strategy/bazaar.rb @@ -1,3 +1,4 @@ +# typed: true # frozen_string_literal: true require_relative "directory" diff --git a/Library/Homebrew/unpack_strategy/bzip2.rb b/Library/Homebrew/unpack_strategy/bzip2.rb index 9eff311a83..79d25aaa5b 100644 --- a/Library/Homebrew/unpack_strategy/bzip2.rb +++ b/Library/Homebrew/unpack_strategy/bzip2.rb @@ -1,3 +1,4 @@ +# typed: true # frozen_string_literal: true module UnpackStrategy diff --git a/Library/Homebrew/unpack_strategy/cab.rb b/Library/Homebrew/unpack_strategy/cab.rb index f36fa1f580..00b0831288 100644 --- a/Library/Homebrew/unpack_strategy/cab.rb +++ b/Library/Homebrew/unpack_strategy/cab.rb @@ -1,3 +1,4 @@ +# typed: true # frozen_string_literal: true module UnpackStrategy diff --git a/Library/Homebrew/unpack_strategy/compress.rb b/Library/Homebrew/unpack_strategy/compress.rb index 668272df85..8e83fa057a 100644 --- a/Library/Homebrew/unpack_strategy/compress.rb +++ b/Library/Homebrew/unpack_strategy/compress.rb @@ -1,3 +1,4 @@ +# typed: true # frozen_string_literal: true require_relative "tar" diff --git a/Library/Homebrew/unpack_strategy/cvs.rb b/Library/Homebrew/unpack_strategy/cvs.rb index 36e4d506e4..66c2f17f8f 100644 --- a/Library/Homebrew/unpack_strategy/cvs.rb +++ b/Library/Homebrew/unpack_strategy/cvs.rb @@ -1,3 +1,4 @@ +# typed: true # frozen_string_literal: true require_relative "directory" diff --git a/Library/Homebrew/unpack_strategy/directory.rb b/Library/Homebrew/unpack_strategy/directory.rb index 06d8dd9888..0e8c68b593 100644 --- a/Library/Homebrew/unpack_strategy/directory.rb +++ b/Library/Homebrew/unpack_strategy/directory.rb @@ -1,3 +1,4 @@ +# typed: true # frozen_string_literal: true module UnpackStrategy diff --git a/Library/Homebrew/unpack_strategy/dmg.rb b/Library/Homebrew/unpack_strategy/dmg.rb index 234dd802b2..1d2e8de5ce 100644 --- a/Library/Homebrew/unpack_strategy/dmg.rb +++ b/Library/Homebrew/unpack_strategy/dmg.rb @@ -1,3 +1,4 @@ +# typed: false # frozen_string_literal: true require "tempfile" diff --git a/Library/Homebrew/unpack_strategy/executable.rb b/Library/Homebrew/unpack_strategy/executable.rb index 57e99908f0..a592cce52f 100644 --- a/Library/Homebrew/unpack_strategy/executable.rb +++ b/Library/Homebrew/unpack_strategy/executable.rb @@ -1,3 +1,4 @@ +# typed: true # frozen_string_literal: true require_relative "uncompressed" diff --git a/Library/Homebrew/unpack_strategy/fossil.rb b/Library/Homebrew/unpack_strategy/fossil.rb index ea7f2216b8..c8f165fdd6 100644 --- a/Library/Homebrew/unpack_strategy/fossil.rb +++ b/Library/Homebrew/unpack_strategy/fossil.rb @@ -1,3 +1,4 @@ +# typed: true # frozen_string_literal: true module UnpackStrategy diff --git a/Library/Homebrew/unpack_strategy/generic_unar.rb b/Library/Homebrew/unpack_strategy/generic_unar.rb index 5458141748..7b0a0a53bd 100644 --- a/Library/Homebrew/unpack_strategy/generic_unar.rb +++ b/Library/Homebrew/unpack_strategy/generic_unar.rb @@ -1,3 +1,4 @@ +# typed: true # frozen_string_literal: true module UnpackStrategy diff --git a/Library/Homebrew/unpack_strategy/git.rb b/Library/Homebrew/unpack_strategy/git.rb index c704f13a47..23257c0502 100644 --- a/Library/Homebrew/unpack_strategy/git.rb +++ b/Library/Homebrew/unpack_strategy/git.rb @@ -1,3 +1,4 @@ +# typed: true # frozen_string_literal: true require_relative "directory" diff --git a/Library/Homebrew/unpack_strategy/gzip.rb b/Library/Homebrew/unpack_strategy/gzip.rb index 8f576788d5..4797fbaa24 100644 --- a/Library/Homebrew/unpack_strategy/gzip.rb +++ b/Library/Homebrew/unpack_strategy/gzip.rb @@ -1,3 +1,4 @@ +# typed: true # frozen_string_literal: true module UnpackStrategy diff --git a/Library/Homebrew/unpack_strategy/jar.rb b/Library/Homebrew/unpack_strategy/jar.rb index 8fc3a70476..ee05a876a1 100644 --- a/Library/Homebrew/unpack_strategy/jar.rb +++ b/Library/Homebrew/unpack_strategy/jar.rb @@ -1,3 +1,4 @@ +# typed: true # frozen_string_literal: true require_relative "uncompressed" diff --git a/Library/Homebrew/unpack_strategy/lha.rb b/Library/Homebrew/unpack_strategy/lha.rb index d3bfcaf87e..70c3e5f709 100644 --- a/Library/Homebrew/unpack_strategy/lha.rb +++ b/Library/Homebrew/unpack_strategy/lha.rb @@ -1,3 +1,4 @@ +# typed: true # frozen_string_literal: true module UnpackStrategy diff --git a/Library/Homebrew/unpack_strategy/lua_rock.rb b/Library/Homebrew/unpack_strategy/lua_rock.rb index 8517b140e5..1336b856de 100644 --- a/Library/Homebrew/unpack_strategy/lua_rock.rb +++ b/Library/Homebrew/unpack_strategy/lua_rock.rb @@ -1,3 +1,4 @@ +# typed: true # frozen_string_literal: true require_relative "uncompressed" diff --git a/Library/Homebrew/unpack_strategy/lzip.rb b/Library/Homebrew/unpack_strategy/lzip.rb index 687917cea4..a27663e4d5 100644 --- a/Library/Homebrew/unpack_strategy/lzip.rb +++ b/Library/Homebrew/unpack_strategy/lzip.rb @@ -1,3 +1,4 @@ +# typed: true # frozen_string_literal: true module UnpackStrategy diff --git a/Library/Homebrew/unpack_strategy/lzma.rb b/Library/Homebrew/unpack_strategy/lzma.rb index 006fcfb741..e14de8e993 100644 --- a/Library/Homebrew/unpack_strategy/lzma.rb +++ b/Library/Homebrew/unpack_strategy/lzma.rb @@ -1,3 +1,4 @@ +# typed: true # frozen_string_literal: true module UnpackStrategy diff --git a/Library/Homebrew/unpack_strategy/mercurial.rb b/Library/Homebrew/unpack_strategy/mercurial.rb index 7e0d3b64d2..4538c8e8d9 100644 --- a/Library/Homebrew/unpack_strategy/mercurial.rb +++ b/Library/Homebrew/unpack_strategy/mercurial.rb @@ -1,3 +1,4 @@ +# typed: true # frozen_string_literal: true require_relative "directory" diff --git a/Library/Homebrew/unpack_strategy/microsoft_office_xml.rb b/Library/Homebrew/unpack_strategy/microsoft_office_xml.rb index 8c3463be08..5d97e6f222 100644 --- a/Library/Homebrew/unpack_strategy/microsoft_office_xml.rb +++ b/Library/Homebrew/unpack_strategy/microsoft_office_xml.rb @@ -1,3 +1,4 @@ +# typed: true # frozen_string_literal: true require_relative "uncompressed" diff --git a/Library/Homebrew/unpack_strategy/otf.rb b/Library/Homebrew/unpack_strategy/otf.rb index 17b55ed7a6..1a0538d942 100644 --- a/Library/Homebrew/unpack_strategy/otf.rb +++ b/Library/Homebrew/unpack_strategy/otf.rb @@ -1,3 +1,4 @@ +# typed: true # frozen_string_literal: true require_relative "uncompressed" diff --git a/Library/Homebrew/unpack_strategy/p7zip.rb b/Library/Homebrew/unpack_strategy/p7zip.rb index df77933191..5aca009f53 100644 --- a/Library/Homebrew/unpack_strategy/p7zip.rb +++ b/Library/Homebrew/unpack_strategy/p7zip.rb @@ -1,3 +1,4 @@ +# typed: true # frozen_string_literal: true module UnpackStrategy diff --git a/Library/Homebrew/unpack_strategy/pax.rb b/Library/Homebrew/unpack_strategy/pax.rb index 89138e5779..e914d41baf 100644 --- a/Library/Homebrew/unpack_strategy/pax.rb +++ b/Library/Homebrew/unpack_strategy/pax.rb @@ -1,3 +1,4 @@ +# typed: true # frozen_string_literal: true module UnpackStrategy diff --git a/Library/Homebrew/unpack_strategy/pkg.rb b/Library/Homebrew/unpack_strategy/pkg.rb index 8dad4a4436..20bf5057e8 100644 --- a/Library/Homebrew/unpack_strategy/pkg.rb +++ b/Library/Homebrew/unpack_strategy/pkg.rb @@ -1,3 +1,4 @@ +# typed: true # frozen_string_literal: true require_relative "uncompressed" diff --git a/Library/Homebrew/unpack_strategy/rar.rb b/Library/Homebrew/unpack_strategy/rar.rb index 5863b07422..71e2dd66a2 100644 --- a/Library/Homebrew/unpack_strategy/rar.rb +++ b/Library/Homebrew/unpack_strategy/rar.rb @@ -1,3 +1,4 @@ +# typed: true # frozen_string_literal: true module UnpackStrategy diff --git a/Library/Homebrew/unpack_strategy/self_extracting_executable.rb b/Library/Homebrew/unpack_strategy/self_extracting_executable.rb index 9de9120b02..c74166d771 100644 --- a/Library/Homebrew/unpack_strategy/self_extracting_executable.rb +++ b/Library/Homebrew/unpack_strategy/self_extracting_executable.rb @@ -1,3 +1,4 @@ +# typed: true # frozen_string_literal: true require_relative "generic_unar" diff --git a/Library/Homebrew/unpack_strategy/sit.rb b/Library/Homebrew/unpack_strategy/sit.rb index 5ec16b48ab..5fabbbbfc8 100644 --- a/Library/Homebrew/unpack_strategy/sit.rb +++ b/Library/Homebrew/unpack_strategy/sit.rb @@ -1,3 +1,4 @@ +# typed: true # frozen_string_literal: true require_relative "generic_unar" diff --git a/Library/Homebrew/unpack_strategy/subversion.rb b/Library/Homebrew/unpack_strategy/subversion.rb index 0c90b36605..dd3355825b 100644 --- a/Library/Homebrew/unpack_strategy/subversion.rb +++ b/Library/Homebrew/unpack_strategy/subversion.rb @@ -1,3 +1,4 @@ +# typed: true # frozen_string_literal: true require_relative "directory" diff --git a/Library/Homebrew/unpack_strategy/tar.rb b/Library/Homebrew/unpack_strategy/tar.rb index 25c30973dd..7e7b407bcd 100644 --- a/Library/Homebrew/unpack_strategy/tar.rb +++ b/Library/Homebrew/unpack_strategy/tar.rb @@ -1,3 +1,4 @@ +# typed: true # frozen_string_literal: true module UnpackStrategy diff --git a/Library/Homebrew/unpack_strategy/ttf.rb b/Library/Homebrew/unpack_strategy/ttf.rb index 54c6a6bd82..b45755a428 100644 --- a/Library/Homebrew/unpack_strategy/ttf.rb +++ b/Library/Homebrew/unpack_strategy/ttf.rb @@ -1,3 +1,4 @@ +# typed: true # frozen_string_literal: true require_relative "uncompressed" diff --git a/Library/Homebrew/unpack_strategy/uncompressed.rb b/Library/Homebrew/unpack_strategy/uncompressed.rb index ea7f943a20..1c869d998e 100644 --- a/Library/Homebrew/unpack_strategy/uncompressed.rb +++ b/Library/Homebrew/unpack_strategy/uncompressed.rb @@ -1,3 +1,4 @@ +# typed: false # frozen_string_literal: true module UnpackStrategy diff --git a/Library/Homebrew/unpack_strategy/xar.rb b/Library/Homebrew/unpack_strategy/xar.rb index 69422eb660..2f5f4794a3 100644 --- a/Library/Homebrew/unpack_strategy/xar.rb +++ b/Library/Homebrew/unpack_strategy/xar.rb @@ -1,3 +1,4 @@ +# typed: true # frozen_string_literal: true module UnpackStrategy diff --git a/Library/Homebrew/unpack_strategy/xz.rb b/Library/Homebrew/unpack_strategy/xz.rb index 29ac0c182d..86f50d2a38 100644 --- a/Library/Homebrew/unpack_strategy/xz.rb +++ b/Library/Homebrew/unpack_strategy/xz.rb @@ -1,3 +1,4 @@ +# typed: true # frozen_string_literal: true module UnpackStrategy diff --git a/Library/Homebrew/unpack_strategy/zip.rb b/Library/Homebrew/unpack_strategy/zip.rb index e58e556c7c..09db337f84 100644 --- a/Library/Homebrew/unpack_strategy/zip.rb +++ b/Library/Homebrew/unpack_strategy/zip.rb @@ -1,3 +1,4 @@ +# typed: true # frozen_string_literal: true module UnpackStrategy diff --git a/Library/Homebrew/upgrade.rb b/Library/Homebrew/upgrade.rb index 0dbd0d1334..82f258eee4 100644 --- a/Library/Homebrew/upgrade.rb +++ b/Library/Homebrew/upgrade.rb @@ -1,3 +1,4 @@ +# typed: false # frozen_string_literal: true require "reinstall" diff --git a/Library/Homebrew/utils.rb b/Library/Homebrew/utils.rb index e56867e16f..985a294bec 100644 --- a/Library/Homebrew/utils.rb +++ b/Library/Homebrew/utils.rb @@ -1,3 +1,4 @@ +# typed: false # frozen_string_literal: true require "utils/analytics" diff --git a/Library/Homebrew/utils/analytics.rb b/Library/Homebrew/utils/analytics.rb index c6c1c9b8f3..9524db7218 100644 --- a/Library/Homebrew/utils/analytics.rb +++ b/Library/Homebrew/utils/analytics.rb @@ -1,3 +1,4 @@ +# typed: false # frozen_string_literal: true require "erb" diff --git a/Library/Homebrew/utils/bottles.rb b/Library/Homebrew/utils/bottles.rb index ec47aa0c94..1b8ee163e1 100644 --- a/Library/Homebrew/utils/bottles.rb +++ b/Library/Homebrew/utils/bottles.rb @@ -1,3 +1,4 @@ +# typed: true # frozen_string_literal: true require "tab" diff --git a/Library/Homebrew/utils/curl.rb b/Library/Homebrew/utils/curl.rb index 4f517cc8de..db53efb9ee 100644 --- a/Library/Homebrew/utils/curl.rb +++ b/Library/Homebrew/utils/curl.rb @@ -1,3 +1,4 @@ +# typed: false # frozen_string_literal: true require "open3" diff --git a/Library/Homebrew/utils/fork.rb b/Library/Homebrew/utils/fork.rb index 6427193ce8..f7c16566c0 100644 --- a/Library/Homebrew/utils/fork.rb +++ b/Library/Homebrew/utils/fork.rb @@ -1,3 +1,4 @@ +# typed: false # frozen_string_literal: true require "fcntl" diff --git a/Library/Homebrew/utils/formatter.rb b/Library/Homebrew/utils/formatter.rb index 60e88c60e1..7835e93f28 100644 --- a/Library/Homebrew/utils/formatter.rb +++ b/Library/Homebrew/utils/formatter.rb @@ -1,3 +1,4 @@ +# typed: false # frozen_string_literal: true require "utils/tty" diff --git a/Library/Homebrew/utils/gems.rb b/Library/Homebrew/utils/gems.rb index 0a98b06728..cdb688b5ac 100644 --- a/Library/Homebrew/utils/gems.rb +++ b/Library/Homebrew/utils/gems.rb @@ -1,3 +1,4 @@ +# typed: false # frozen_string_literal: true # Never `require` anything in this file (except English). It needs to be able to diff --git a/Library/Homebrew/utils/git.rb b/Library/Homebrew/utils/git.rb index ad1ebe7744..e2f592d431 100644 --- a/Library/Homebrew/utils/git.rb +++ b/Library/Homebrew/utils/git.rb @@ -1,3 +1,4 @@ +# typed: false # frozen_string_literal: true module Utils diff --git a/Library/Homebrew/utils/github.rb b/Library/Homebrew/utils/github.rb index f9605c0708..b18a203d11 100644 --- a/Library/Homebrew/utils/github.rb +++ b/Library/Homebrew/utils/github.rb @@ -1,3 +1,4 @@ +# typed: false # frozen_string_literal: true require "tempfile" diff --git a/Library/Homebrew/utils/github/actions.rb b/Library/Homebrew/utils/github/actions.rb index 111a9d6ab2..3dc7bf6401 100644 --- a/Library/Homebrew/utils/github/actions.rb +++ b/Library/Homebrew/utils/github/actions.rb @@ -1,3 +1,4 @@ +# typed: false # frozen_string_literal: true require "utils/tty" diff --git a/Library/Homebrew/utils/inreplace.rb b/Library/Homebrew/utils/inreplace.rb index ae3489b6c8..9d94ae0a81 100644 --- a/Library/Homebrew/utils/inreplace.rb +++ b/Library/Homebrew/utils/inreplace.rb @@ -1,3 +1,4 @@ +# typed: true # frozen_string_literal: true module Utils diff --git a/Library/Homebrew/utils/link.rb b/Library/Homebrew/utils/link.rb index 8b3c6bb37e..8078390f60 100644 --- a/Library/Homebrew/utils/link.rb +++ b/Library/Homebrew/utils/link.rb @@ -1,3 +1,4 @@ +# typed: true # frozen_string_literal: true module Utils diff --git a/Library/Homebrew/utils/livecheck_formula.rb b/Library/Homebrew/utils/livecheck_formula.rb index 25dc1c9940..bd08714def 100644 --- a/Library/Homebrew/utils/livecheck_formula.rb +++ b/Library/Homebrew/utils/livecheck_formula.rb @@ -1,3 +1,4 @@ +# typed: false # frozen_string_literal: true # Helper module for parsing output of `brew livecheck`. diff --git a/Library/Homebrew/utils/popen.rb b/Library/Homebrew/utils/popen.rb index eac4823c64..b721b3191c 100644 --- a/Library/Homebrew/utils/popen.rb +++ b/Library/Homebrew/utils/popen.rb @@ -1,3 +1,4 @@ +# typed: false # frozen_string_literal: true module Utils diff --git a/Library/Homebrew/utils/pypi.rb b/Library/Homebrew/utils/pypi.rb index eda3f66afc..d9bb621bad 100644 --- a/Library/Homebrew/utils/pypi.rb +++ b/Library/Homebrew/utils/pypi.rb @@ -1,3 +1,4 @@ +# typed: false # frozen_string_literal: true # Helper functions for updating PyPi resources. diff --git a/Library/Homebrew/utils/repology.rb b/Library/Homebrew/utils/repology.rb index 7476b6b843..f1a017334b 100644 --- a/Library/Homebrew/utils/repology.rb +++ b/Library/Homebrew/utils/repology.rb @@ -1,3 +1,4 @@ +# typed: false # frozen_string_literal: true require "utils/curl" diff --git a/Library/Homebrew/utils/ruby_check_version_script.rb b/Library/Homebrew/utils/ruby_check_version_script.rb index 3b607cdb20..fc8e483b20 100755 --- a/Library/Homebrew/utils/ruby_check_version_script.rb +++ b/Library/Homebrew/utils/ruby_check_version_script.rb @@ -1,4 +1,5 @@ #!/usr/bin/env ruby --enable-frozen-string-literal --disable=gems,did_you_mean,rubyopt +# typed: true # frozen_string_literal: true HOMEBREW_REQUIRED_RUBY_VERSION = ARGV.first.freeze diff --git a/Library/Homebrew/utils/shared_audits.rb b/Library/Homebrew/utils/shared_audits.rb index 0b956b88e0..694f659804 100644 --- a/Library/Homebrew/utils/shared_audits.rb +++ b/Library/Homebrew/utils/shared_audits.rb @@ -1,3 +1,4 @@ +# typed: true # frozen_string_literal: true require "utils/curl" diff --git a/Library/Homebrew/utils/shebang.rb b/Library/Homebrew/utils/shebang.rb index 3e12674691..762ddf5804 100644 --- a/Library/Homebrew/utils/shebang.rb +++ b/Library/Homebrew/utils/shebang.rb @@ -1,3 +1,4 @@ +# typed: true # frozen_string_literal: true module Utils diff --git a/Library/Homebrew/utils/shell.rb b/Library/Homebrew/utils/shell.rb index d8e77a8dd9..4d9af01ff1 100644 --- a/Library/Homebrew/utils/shell.rb +++ b/Library/Homebrew/utils/shell.rb @@ -1,3 +1,4 @@ +# typed: true # frozen_string_literal: true module Utils diff --git a/Library/Homebrew/utils/spdx.rb b/Library/Homebrew/utils/spdx.rb index 9420e343d3..64467c291e 100644 --- a/Library/Homebrew/utils/spdx.rb +++ b/Library/Homebrew/utils/spdx.rb @@ -1,3 +1,4 @@ +# typed: true # frozen_string_literal: true require "utils/github" diff --git a/Library/Homebrew/utils/svn.rb b/Library/Homebrew/utils/svn.rb index 1492b08319..239a63ca6d 100644 --- a/Library/Homebrew/utils/svn.rb +++ b/Library/Homebrew/utils/svn.rb @@ -1,3 +1,4 @@ +# typed: true # frozen_string_literal: true require "system_command" diff --git a/Library/Homebrew/utils/tar.rb b/Library/Homebrew/utils/tar.rb index c60c834da4..df29bf9adb 100644 --- a/Library/Homebrew/utils/tar.rb +++ b/Library/Homebrew/utils/tar.rb @@ -1,3 +1,4 @@ +# typed: true # frozen_string_literal: true module Utils diff --git a/Library/Homebrew/utils/tty.rb b/Library/Homebrew/utils/tty.rb index 774d1933be..3360f99cb2 100644 --- a/Library/Homebrew/utils/tty.rb +++ b/Library/Homebrew/utils/tty.rb @@ -1,3 +1,4 @@ +# typed: true # frozen_string_literal: true # Various helper functions for interacting with TTYs. diff --git a/Library/Homebrew/utils/user.rb b/Library/Homebrew/utils/user.rb index d40a7b6072..0973a95be4 100644 --- a/Library/Homebrew/utils/user.rb +++ b/Library/Homebrew/utils/user.rb @@ -1,3 +1,4 @@ +# typed: true # frozen_string_literal: true require "delegate" diff --git a/Library/Homebrew/version.rb b/Library/Homebrew/version.rb index cb1edd4e74..4c22d2f28c 100644 --- a/Library/Homebrew/version.rb +++ b/Library/Homebrew/version.rb @@ -1,3 +1,4 @@ +# typed: false # frozen_string_literal: true require "version/null" diff --git a/Library/Homebrew/version/null.rb b/Library/Homebrew/version/null.rb index 7b63523b43..f2b74a35e4 100644 --- a/Library/Homebrew/version/null.rb +++ b/Library/Homebrew/version/null.rb @@ -1,3 +1,4 @@ +# typed: true # frozen_string_literal: true class Version diff --git a/Library/add-typed.rb b/Library/add-typed.rb new file mode 100755 index 0000000000..6860b9e7b2 --- /dev/null +++ b/Library/add-typed.rb @@ -0,0 +1,27 @@ +#!/usr/bin/env ruby + +require 'pathname' +require 'open3' + + +Dir.chdir "#{__dir__}/Homebrew" + +files = Pathname.glob("**/*.rb").reject { |path| path.to_s.start_with?("vendor/") } + +files.each do |file| + + content = file.read + + if content.start_with?("# typed: ") + puts "Already typed: #{file}" + next + end + + ['strict', 'true', 'false', 'ignore'].each do |level| + puts "Trying #{file} with level #{level}." + file.write "# typed: #{level}\n#{content.strip}\n" + + output, status = Open3.capture2e('brew', 'typecheck') + break if status.success? + end +end From 318091cccc7d804c790718a3267c982199929ecd Mon Sep 17 00:00:00 2001 From: Markus Reiter Date: Sat, 10 Oct 2020 15:04:46 +0200 Subject: [PATCH 02/15] Move `StringInreplaceExtension` into separate file. --- Library/Homebrew/extend/string.rb | 52 +------- .../Homebrew/sorbet/rbi/utils/inreplace.rbi | 29 ----- Library/Homebrew/test/string_spec.rb | 17 --- Library/Homebrew/test/utils/inreplace_spec.rb | 56 ++++++++ .../string_inreplace_extension_spec.rb} | 120 ++++++------------ Library/Homebrew/utils/inreplace.rb | 17 ++- .../utils/string_inreplace_extension.rb | 72 +++++++++++ 7 files changed, 180 insertions(+), 183 deletions(-) delete mode 100644 Library/Homebrew/sorbet/rbi/utils/inreplace.rbi delete mode 100644 Library/Homebrew/test/string_spec.rb create mode 100644 Library/Homebrew/test/utils/inreplace_spec.rb rename Library/Homebrew/test/{inreplace_spec.rb => utils/string_inreplace_extension_spec.rb} (59%) create mode 100644 Library/Homebrew/utils/string_inreplace_extension.rb diff --git a/Library/Homebrew/extend/string.rb b/Library/Homebrew/extend/string.rb index d68d678970..21105e71f4 100644 --- a/Library/Homebrew/extend/string.rb +++ b/Library/Homebrew/extend/string.rb @@ -1,54 +1,4 @@ -# typed: false +# typed: strict # frozen_string_literal: true require "active_support/core_ext/object/blank" - -# Used by the inreplace function (in `utils.rb`). -class StringInreplaceExtension - attr_accessor :errors, :inreplace_string - - def initialize(str) - @inreplace_string = str - @errors = [] - end - - def self.extended(str) - str.errors = [] - end - - def sub!(before, after) - result = inreplace_string.sub!(before, after) - errors << "expected replacement of #{before.inspect} with #{after.inspect}" unless result - result - end - - # Warn if nothing was replaced - def gsub!(before, after, audit_result = true) # rubocop:disable Style/OptionalBooleanParameter - result = inreplace_string.gsub!(before, after) - errors << "expected replacement of #{before.inspect} with #{after.inspect}" if audit_result && result.nil? - result - end - - # Looks for Makefile style variable definitions and replaces the - # value with "new_value", or removes the definition entirely. - def change_make_var!(flag, new_value) - return if gsub!(/^#{Regexp.escape(flag)}[ \t]*[\\?+:!]?=[ \t]*((?:.*\\\n)*.*)$/, "#{flag}=#{new_value}", false) - - errors << "expected to change #{flag.inspect} to #{new_value.inspect}" - end - - # Removes variable assignments completely. - def remove_make_var!(flags) - Array(flags).each do |flag| - # Also remove trailing \n, if present. - unless gsub!(/^#{Regexp.escape(flag)}[ \t]*[\\?+:!]?=(?:.*\\\n)*.*$\n?/, "", false) - errors << "expected to remove #{flag.inspect}" - end - end - end - - # Finds the specified variable - def get_make_var(flag) - inreplace_string[/^#{Regexp.escape(flag)}[ \t]*[\\?+:!]?=[ \t]*((?:.*\\\n)*.*)$/, 1] - end -end diff --git a/Library/Homebrew/sorbet/rbi/utils/inreplace.rbi b/Library/Homebrew/sorbet/rbi/utils/inreplace.rbi deleted file mode 100644 index b6d0be9a5a..0000000000 --- a/Library/Homebrew/sorbet/rbi/utils/inreplace.rbi +++ /dev/null @@ -1,29 +0,0 @@ -# typed: strict - -module Utils::Inreplace - include Kernel - - sig { params(paths: T::Array[T.untyped], before: T.nilable(String), after: T.nilable(T.any(String, Symbol)), audit_result: T::Boolean).void } - def inreplace(paths, before = nil, after = nil, audit_result = true); end -end - -class StringInreplaceExtension - sig { params(before: String, after: String).returns(T.nilable(String)) } - def sub!(before, after) - end - - sig { params(before: T.nilable(String), after: T.nilable(String), audit_result: T::Boolean).returns(T.nilable(String)) } - def gsub!(before, after, audit_result = true); end - - sig {params(flag: String, new_value: String).void} - def change_make_var!(flag, new_value) - end - - sig {params(flags: T::Array[String]).void} - def remove_make_var!(flags) - end - - sig {params(flag: String).returns(String)} - def get_make_var(flag) - end -end diff --git a/Library/Homebrew/test/string_spec.rb b/Library/Homebrew/test/string_spec.rb deleted file mode 100644 index 0442c620a2..0000000000 --- a/Library/Homebrew/test/string_spec.rb +++ /dev/null @@ -1,17 +0,0 @@ -# typed: false -# frozen_string_literal: true - -require "extend/string" - -describe StringInreplaceExtension do - subject { described_class.new(string) } - - let(:string) { +"foobar" } - - describe "#sub!" do - it "adds an error to #errors when no replacement was made" do - subject.sub! "not here", "test" - expect(subject.errors).to eq(['expected replacement of "not here" with "test"']) - end - end -end diff --git a/Library/Homebrew/test/utils/inreplace_spec.rb b/Library/Homebrew/test/utils/inreplace_spec.rb new file mode 100644 index 0000000000..16c5bedd62 --- /dev/null +++ b/Library/Homebrew/test/utils/inreplace_spec.rb @@ -0,0 +1,56 @@ +# typed: false +# frozen_string_literal: true + +require "tempfile" +require "utils/inreplace" + +describe Utils::Inreplace do + let(:file) { Tempfile.new("test") } + + before do + file.write <<~EOS + a + b + c + EOS + end + + after { file.unlink } + + it "raises error if there are no files given to replace" do + expect { + described_class.inreplace [], "d", "f" + }.to raise_error(Utils::Inreplace::Error) + end + + it "raises error if there is nothing to replace" do + expect { + described_class.inreplace file.path, "d", "f" + }.to raise_error(Utils::Inreplace::Error) + end + + it "raises error if there is nothing to replace in block form" do + expect { + described_class.inreplace(file.path) do |s| + s.gsub!("d", "f") # rubocop:disable Performance/StringReplacement + end + }.to raise_error(Utils::Inreplace::Error) + end + + it "raises error if there is no make variables to replace" do + expect { + described_class.inreplace(file.path) do |s| + s.change_make_var! "VAR", "value" + s.remove_make_var! "VAR2" + end + }.to raise_error(Utils::Inreplace::Error) + end + + describe "#inreplace_pairs" do + it "raises error if there is no old value" do + expect { + described_class.inreplace_pairs(file.path, [[nil, "f"]]) + }.to raise_error(Utils::Inreplace::Error) + end + end +end diff --git a/Library/Homebrew/test/inreplace_spec.rb b/Library/Homebrew/test/utils/string_inreplace_extension_spec.rb similarity index 59% rename from Library/Homebrew/test/inreplace_spec.rb rename to Library/Homebrew/test/utils/string_inreplace_extension_spec.rb index aa80fddd0c..a072aafb5e 100644 --- a/Library/Homebrew/test/inreplace_spec.rb +++ b/Library/Homebrew/test/utils/string_inreplace_extension_spec.rb @@ -1,12 +1,10 @@ # typed: false # frozen_string_literal: true -require "extend/string" -require "tempfile" -require "utils/inreplace" +require "utils/string_inreplace_extension" describe StringInreplaceExtension do - subject { described_class.new(string.dup) } + subject(:string_extension) { described_class.new(string.dup) } describe "#change_make_var!" do context "flag" do @@ -20,8 +18,8 @@ describe StringInreplaceExtension do end it "is successfully replaced" do - subject.change_make_var! "FLAG", "def" - expect(subject.inreplace_string).to eq <<~EOS + string_extension.change_make_var! "FLAG", "def" + expect(string_extension.inreplace_string).to eq <<~EOS OTHER=def FLAG=def FLAG2=abc @@ -29,8 +27,8 @@ describe StringInreplaceExtension do end it "is successfully appended" do - subject.change_make_var! "FLAG", "\\1 def" - expect(subject.inreplace_string).to eq <<~EOS + string_extension.change_make_var! "FLAG", "\\1 def" + expect(string_extension.inreplace_string).to eq <<~EOS OTHER=def FLAG=abc def FLAG2=abc @@ -47,8 +45,8 @@ describe StringInreplaceExtension do end it "is successfully replaced" do - subject.change_make_var! "CFLAGS", "-O3" - expect(subject.inreplace_string).to eq <<~EOS + string_extension.change_make_var! "CFLAGS", "-O3" + expect(string_extension.inreplace_string).to eq <<~EOS CFLAGS=-O3 LDFLAGS\t=\t-lcrypto -lssl EOS @@ -65,8 +63,8 @@ describe StringInreplaceExtension do end it "is successfully replaced" do - subject.change_make_var! "CFLAGS", "-O3" - expect(subject.inreplace_string).to eq <<~EOS + string_extension.change_make_var! "CFLAGS", "-O3" + expect(string_extension.inreplace_string).to eq <<~EOS CFLAGS=-O3 LDFLAGS = -lcrypto -lssl EOS @@ -84,8 +82,8 @@ describe StringInreplaceExtension do end it "is successfully replaced" do - subject.change_make_var! "FLAG", "def" - expect(subject.inreplace_string).to eq <<~EOS + string_extension.change_make_var! "FLAG", "def" + expect(string_extension.inreplace_string).to eq <<~EOS OTHER=def FLAG=def FLAG2=abc @@ -102,8 +100,8 @@ describe StringInreplaceExtension do end it "is successfully replaced" do - subject.change_make_var! "FLAG", "def" - expect(subject.inreplace_string).to eq <<~EOS + string_extension.change_make_var! "FLAG", "def" + expect(string_extension.inreplace_string).to eq <<~EOS FLAG=def mv file_a file_b EOS @@ -120,8 +118,8 @@ describe StringInreplaceExtension do end it "is successfully replaced" do - subject.change_make_var! "FLAG", "def" - expect(subject.inreplace_string).to eq <<~EOS + string_extension.change_make_var! "FLAG", "def" + expect(string_extension.inreplace_string).to eq <<~EOS OTHER=def FLAG=def FLAG2=abc @@ -142,8 +140,8 @@ describe StringInreplaceExtension do end it "is successfully removed" do - subject.remove_make_var! "FLAG" - expect(subject.inreplace_string).to eq <<~EOS + string_extension.remove_make_var! "FLAG" + expect(string_extension.inreplace_string).to eq <<~EOS OTHER=def FLAG2 = def EOS @@ -159,8 +157,8 @@ describe StringInreplaceExtension do end it "is successfully removed" do - subject.remove_make_var! "LDFLAGS" - expect(subject.inreplace_string).to eq <<~EOS + string_extension.remove_make_var! "LDFLAGS" + expect(string_extension.inreplace_string).to eq <<~EOS CFLAGS\t=\t-Wall -O2 EOS end @@ -176,8 +174,8 @@ describe StringInreplaceExtension do end it "is successfully removed" do - subject.remove_make_var! "CFLAGS" - expect(subject.inreplace_string).to eq <<~EOS + string_extension.remove_make_var! "CFLAGS" + expect(string_extension.inreplace_string).to eq <<~EOS LDFLAGS = -lcrypto -lssl EOS end @@ -195,8 +193,8 @@ describe StringInreplaceExtension do end specify "are be successfully removed" do - subject.remove_make_var! ["FLAG", "FLAG2"] - expect(subject.inreplace_string).to eq <<~EOS + string_extension.remove_make_var! ["FLAG", "FLAG2"] + expect(string_extension.inreplace_string).to eq <<~EOS OTHER=def OTHER2=def EOS @@ -214,7 +212,7 @@ describe StringInreplaceExtension do end it "extracts the value for a given variable" do - expect(subject.get_make_var("CFLAGS")).to eq("-Wall -O2") + expect(string_extension.get_make_var("CFLAGS")).to eq("-Wall -O2") end end @@ -227,7 +225,7 @@ describe StringInreplaceExtension do end it "extracts the value for a given variable" do - expect(subject.get_make_var("CFLAGS")).to eq("-Wall -O2") + expect(string_extension.get_make_var("CFLAGS")).to eq("-Wall -O2") end end @@ -241,7 +239,7 @@ describe StringInreplaceExtension do end it "extracts the value for a given variable" do - expect(subject.get_make_var("CFLAGS")).to match(/^-Wall -O2 \\\n +-DSOME_VAR=1$/) + expect(string_extension.get_make_var("CFLAGS")).to match(/^-Wall -O2 \\\n +-DSOME_VAR=1$/) end end end @@ -250,8 +248,13 @@ describe StringInreplaceExtension do let(:string) { "foo" } it "replaces the first occurrence" do - subject.sub!("o", "e") - expect(subject.inreplace_string).to eq("feo") + string_extension.sub!("o", "e") + expect(string_extension.inreplace_string).to eq("feo") + end + + it "adds an error to #errors when no replacement was made" do + string_extension.sub! "not here", "test" + expect(string_extension.errors).to eq(['expected replacement of "not here" with "test"']) end end @@ -259,59 +262,8 @@ describe StringInreplaceExtension do let(:string) { "foo" } it "replaces all occurrences" do - subject.gsub!("o", "e") # rubocop:disable Performance/StringReplacement - expect(subject.inreplace_string).to eq("fee") - end - end -end - -describe Utils::Inreplace do - let(:file) { Tempfile.new("test") } - - before do - file.write <<~EOS - a - b - c - EOS - end - - after { file.unlink } - - it "raises error if there are no files given to replace" do - expect { - described_class.inreplace [], "d", "f" - }.to raise_error(Utils::Inreplace::Error) - end - - it "raises error if there is nothing to replace" do - expect { - described_class.inreplace file.path, "d", "f" - }.to raise_error(Utils::Inreplace::Error) - end - - it "raises error if there is nothing to replace in block form" do - expect { - described_class.inreplace(file.path) do |s| - s.gsub!("d", "f") # rubocop:disable Performance/StringReplacement - end - }.to raise_error(Utils::Inreplace::Error) - end - - it "raises error if there is no make variables to replace" do - expect { - described_class.inreplace(file.path) do |s| - s.change_make_var! "VAR", "value" - s.remove_make_var! "VAR2" - end - }.to raise_error(Utils::Inreplace::Error) - end - - describe "#inreplace_pairs" do - it "raises error if there is no old value" do - expect { - described_class.inreplace_pairs(file.path, [[nil, "f"]]) - }.to raise_error(Utils::Inreplace::Error) + string_extension.gsub!("o", "e") # rubocop:disable Performance/StringReplacement + expect(string_extension.inreplace_string).to eq("fee") end end end diff --git a/Library/Homebrew/utils/inreplace.rb b/Library/Homebrew/utils/inreplace.rb index 9d94ae0a81..f2827a8979 100644 --- a/Library/Homebrew/utils/inreplace.rb +++ b/Library/Homebrew/utils/inreplace.rb @@ -1,11 +1,16 @@ # typed: true # frozen_string_literal: true +require "utils/string_inreplace_extension" + module Utils # Helper functions for replacing text in files in-place. # # @api private module Inreplace + include Kernel + extend T::Sig + # Error during replacement. class Error < RuntimeError def initialize(errors) @@ -28,6 +33,14 @@ module Utils #
inreplace "somefile.cfg", /look[for]what?/, "replace by #{bin}/tool"
# # @api public + sig do + params( + paths: T::Array[T.untyped], + before: T.nilable(T.any(Regexp, String)), + after: T.nilable(T.any(String, Symbol)), + audit_result: T::Boolean, + ).void + end def inreplace(paths, before = nil, after = nil, audit_result = true) # rubocop:disable Style/OptionalBooleanParameter after = after.to_s if after.is_a? Symbol @@ -42,7 +55,7 @@ module Utils if before.nil? && after.nil? yield s else - s.gsub!(before, after, audit_result) + s.gsub!(T.must(before), after, audit_result) end errors[path] = s.errors unless s.errors.empty? @@ -54,7 +67,7 @@ module Utils end def inreplace_pairs(path, replacement_pairs, read_only_run: false, silent: false) - str = File.open(path, "rb", &:read) + str = File.open(path, "rb", &:read) || "" contents = StringInreplaceExtension.new(str) replacement_pairs.each do |old, new| ohai "replace #{old.inspect} with #{new.inspect}" unless silent diff --git a/Library/Homebrew/utils/string_inreplace_extension.rb b/Library/Homebrew/utils/string_inreplace_extension.rb new file mode 100644 index 0000000000..6a9aa275de --- /dev/null +++ b/Library/Homebrew/utils/string_inreplace_extension.rb @@ -0,0 +1,72 @@ +# typed: true +# frozen_string_literal: true + +# Used by the `inreplace` function (in `utils.rb`). +# +# @api private +class StringInreplaceExtension + extend T::Sig + + attr_accessor :errors, :inreplace_string + + sig { params(string: String).void } + def initialize(string) + @inreplace_string = string + @errors = [] + end + + # Same as `String#sub!`, but warns if nothing was replaced. + # + # @api public + sig { params(before: String, after: String).returns(T.nilable(String)) } + def sub!(before, after) + result = inreplace_string.sub!(before, after) + errors << "expected replacement of #{before.inspect} with #{after.inspect}" unless result + result + end + + # Same as `String#gsub!`, but warns if nothing was replaced. + # + # @api public + sig do + params(before: T.any(Regexp, String), after: T.nilable(String), audit_result: T::Boolean) + .returns(T.nilable(String)) + end + def gsub!(before, after, audit_result = true) # rubocop:disable Style/OptionalBooleanParameter + result = inreplace_string.gsub!(before, after) + errors << "expected replacement of #{before.inspect} with #{after.inspect}" if audit_result && result.nil? + result + end + + # Looks for Makefile style variable definitions and replaces the + # value with "new_value", or removes the definition entirely. + # + # @api public + sig { params(flag: String, new_value: String).void } + def change_make_var!(flag, new_value) + return if gsub!(/^#{Regexp.escape(flag)}[ \t]*[\\?+:!]?=[ \t]*((?:.*\\\n)*.*)$/, "#{flag}=#{new_value}", false) + + errors << "expected to change #{flag.inspect} to #{new_value.inspect}" + end + + # Removes variable assignments completely. + # + # @api public + sig { params(flags: T.any(String, T::Array[String])).void } + def remove_make_var!(flags) + Array(flags).each do |flag| + # Also remove trailing \n, if present. + unless gsub!(/^#{Regexp.escape(flag)}[ \t]*[\\?+:!]?=(?:.*\\\n)*.*$\n?/, "", false) + errors << "expected to remove #{flag.inspect}" + end + end + end + + # Finds the specified variable. + # + # @api public + sig { params(flag: String).returns(String) } + def get_make_var(flag) + inreplace_string[/^#{Regexp.escape(flag)}[ \t]*[\\?+:!]?=[ \t]*((?:.*\\\n)*.*)$/, 1] + end +end From ff653571b19d7716de12c82bfec606aac347c409 Mon Sep 17 00:00:00 2001 From: Markus Reiter Date: Sat, 10 Oct 2020 15:23:03 +0200 Subject: [PATCH 03/15] Create `Utils::Curl` module and explicitly include it. --- Library/Homebrew/download_strategy.rb | 4 + .../Homebrew/sorbet/rbi/utils/notability.rbi | 15 - Library/Homebrew/utils/curl.rb | 512 +++++++++--------- Library/Homebrew/utils/shared_audits.rb | 3 + Library/Homebrew/utils/spdx.rb | 3 + 5 files changed, 274 insertions(+), 263 deletions(-) delete mode 100644 Library/Homebrew/sorbet/rbi/utils/notability.rbi diff --git a/Library/Homebrew/download_strategy.rb b/Library/Homebrew/download_strategy.rb index 35950630b2..6192391b78 100644 --- a/Library/Homebrew/download_strategy.rb +++ b/Library/Homebrew/download_strategy.rb @@ -11,6 +11,8 @@ require "lock_file" require "mechanize/version" require "mechanize/http/content_disposition_parser" +require "utils/curl" + # @abstract Abstract superclass for all download strategies. # # @api private @@ -328,6 +330,8 @@ end # # @api public class CurlDownloadStrategy < AbstractFileDownloadStrategy + include Utils::Curl + attr_reader :mirrors def initialize(url, name, version, **meta) diff --git a/Library/Homebrew/sorbet/rbi/utils/notability.rbi b/Library/Homebrew/sorbet/rbi/utils/notability.rbi deleted file mode 100644 index 546b4c8c62..0000000000 --- a/Library/Homebrew/sorbet/rbi/utils/notability.rbi +++ /dev/null @@ -1,15 +0,0 @@ -# typed: strict - -module SharedAudits - def github(user, repo) - end - - def gitlab(user, repo) - end - - def bitbucket(user, repo) - end - - def curl_output(*args, secrets: [], **options) - end -end diff --git a/Library/Homebrew/utils/curl.rb b/Library/Homebrew/utils/curl.rb index db53efb9ee..7229bd2e2a 100644 --- a/Library/Homebrew/utils/curl.rb +++ b/Library/Homebrew/utils/curl.rb @@ -3,259 +3,275 @@ require "open3" -def curl_executable - @curl ||= [ - ENV["HOMEBREW_CURL"], - which("curl"), - "/usr/bin/curl", - ].compact.map { |c| Pathname(c) }.find(&:executable?) - raise "no executable curl was found" unless @curl +module Utils + # Helper function for interacting with `curl`. + # + # @api private + module Curl + module_function - @curl -end + def curl_executable + @curl ||= [ + ENV["HOMEBREW_CURL"], + which("curl"), + "/usr/bin/curl", + ].compact.map { |c| Pathname(c) }.find(&:executable?) + raise "no executable curl was found" unless @curl -def curl_args(*extra_args, show_output: false, user_agent: :default) - args = [] - - # do not load .curlrc unless requested (must be the first argument) - args << "--disable" unless Homebrew::EnvConfig.curlrc? - - args << "--globoff" - - args << "--show-error" - - args << "--user-agent" << case user_agent - when :browser, :fake - HOMEBREW_USER_AGENT_FAKE_SAFARI - when :default - HOMEBREW_USER_AGENT_CURL - else - user_agent - end - - args << "--header" << "Accept-Language: en" - - unless show_output - args << "--fail" - args << "--progress-bar" unless Context.current.verbose? - args << "--verbose" if Homebrew::EnvConfig.curl_verbose? - args << "--silent" unless $stdout.tty? - end - - args << "--retry" << Homebrew::EnvConfig.curl_retries - - args + extra_args -end - -def curl_with_workarounds(*args, secrets: nil, print_stdout: nil, print_stderr: nil, verbose: nil, env: {}, **options) - command_options = { - secrets: secrets, - print_stdout: print_stdout, - print_stderr: print_stderr, - verbose: verbose, - }.compact - - # SSL_CERT_FILE can be incorrectly set by users or portable-ruby and screw - # with SSL downloads so unset it here. - result = system_command curl_executable, - args: curl_args(*args, **options), - env: { "SSL_CERT_FILE" => nil }.merge(env), - **command_options - - if !result.success? && !args.include?("--http1.1") - # This is a workaround for https://github.com/curl/curl/issues/1618. - if result.status.exitstatus == 56 # Unexpected EOF - out = curl_output("-V").stdout - - # If `curl` doesn't support HTTP2, the exception is unrelated to this bug. - return result unless out.include?("HTTP2") - - # The bug is fixed in `curl` >= 7.60.0. - curl_version = out[/curl (\d+(\.\d+)+)/, 1] - return result if Gem::Version.new(curl_version) >= Gem::Version.new("7.60.0") - - return curl_with_workarounds(*args, "--http1.1", **command_options, **options) + @curl end - if result.status.exitstatus == 16 # Error in the HTTP2 framing layer - return curl_with_workarounds(*args, "--http1.1", **command_options, **options) + def curl_args(*extra_args, show_output: false, user_agent: :default) + args = [] + + # do not load .curlrc unless requested (must be the first argument) + args << "--disable" unless Homebrew::EnvConfig.curlrc? + + args << "--globoff" + + args << "--show-error" + + args << "--user-agent" << case user_agent + when :browser, :fake + HOMEBREW_USER_AGENT_FAKE_SAFARI + when :default + HOMEBREW_USER_AGENT_CURL + else + user_agent + end + + args << "--header" << "Accept-Language: en" + + unless show_output + args << "--fail" + args << "--progress-bar" unless Context.current.verbose? + args << "--verbose" if Homebrew::EnvConfig.curl_verbose? + args << "--silent" unless $stdout.tty? + end + + args << "--retry" << Homebrew::EnvConfig.curl_retries + + args + extra_args + end + + def curl_with_workarounds( + *args, secrets: nil, print_stdout: nil, print_stderr: nil, verbose: nil, env: {}, **options + ) + command_options = { + secrets: secrets, + print_stdout: print_stdout, + print_stderr: print_stderr, + verbose: verbose, + }.compact + + # SSL_CERT_FILE can be incorrectly set by users or portable-ruby and screw + # with SSL downloads so unset it here. + result = system_command curl_executable, + args: curl_args(*args, **options), + env: { "SSL_CERT_FILE" => nil }.merge(env), + **command_options + + if !result.success? && !args.include?("--http1.1") + # This is a workaround for https://github.com/curl/curl/issues/1618. + if result.status.exitstatus == 56 # Unexpected EOF + out = curl_output("-V").stdout + + # If `curl` doesn't support HTTP2, the exception is unrelated to this bug. + return result unless out.include?("HTTP2") + + # The bug is fixed in `curl` >= 7.60.0. + curl_version = out[/curl (\d+(\.\d+)+)/, 1] + return result if Gem::Version.new(curl_version) >= Gem::Version.new("7.60.0") + + return curl_with_workarounds(*args, "--http1.1", **command_options, **options) + end + + if result.status.exitstatus == 16 # Error in the HTTP2 framing layer + return curl_with_workarounds(*args, "--http1.1", **command_options, **options) + end + end + + result + end + + def curl(*args, print_stdout: true, **options) + result = curl_with_workarounds(*args, print_stdout: print_stdout, **options) + result.assert_success! + result + end + + def curl_download(*args, to: nil, partial: true, **options) + destination = Pathname(to) + destination.dirname.mkpath + + if partial + range_stdout = curl_output("--location", "--range", "0-1", + "--dump-header", "-", + "--write-out", "%\{http_code}", + "--output", "/dev/null", *args, **options).stdout + headers, _, http_status = range_stdout.partition("\r\n\r\n") + + supports_partial_download = http_status.to_i == 206 # Partial Content + if supports_partial_download && + destination.exist? && + destination.size == %r{^.*Content-Range: bytes \d+-\d+/(\d+)\r\n.*$}m.match(headers)&.[](1)&.to_i + return # We've already downloaded all the bytes + end + else + supports_partial_download = false + end + + continue_at = if destination.exist? && supports_partial_download + "-" + else + 0 + end + + curl( + "--location", "--remote-time", "--continue-at", continue_at.to_s, "--output", destination, *args, **options + ) + end + + def curl_output(*args, **options) + curl_with_workarounds(*args, print_stderr: false, show_output: true, **options) + end + + # Check if a URL is protected by CloudFlare (e.g. badlion.net and jaxx.io). + def url_protected_by_cloudflare?(details) + [403, 503].include?(details[:status].to_i) && + details[:headers].match?(/^Set-Cookie: __cfduid=/i) && + details[:headers].match?(/^Server: cloudflare/i) + end + + # Check if a URL is protected by Incapsula (e.g. corsair.com). + def url_protected_by_incapsula?(details) + details[:status].to_i == 403 && + details[:headers].match?(/^Set-Cookie: visid_incap_/i) && + details[:headers].match?(/^Set-Cookie: incap_ses_/i) + end + + def curl_check_http_content(url, user_agents: [:default], check_content: false, strict: false) + return unless url.start_with? "http" + + details = nil + user_agent = nil + hash_needed = url.start_with?("http:") + user_agents.each do |ua| + details = curl_http_content_headers_and_checksum(url, hash_needed: hash_needed, user_agent: ua) + user_agent = ua + break if http_status_ok?(details[:status]) + end + + unless details[:status] + # Hack around https://github.com/Homebrew/brew/issues/3199 + return if MacOS.version == :el_capitan + + return "The URL #{url} is not reachable" + end + + unless http_status_ok?(details[:status]) + return if url_protected_by_cloudflare?(details) || url_protected_by_incapsula?(details) + + return "The URL #{url} is not reachable (HTTP status code #{details[:status]})" + end + + if url.start_with?("https://") && Homebrew::EnvConfig.no_insecure_redirect? && + !details[:final_url].start_with?("https://") + return "The URL #{url} redirects back to HTTP" + end + + return unless hash_needed + + secure_url = url.sub "http", "https" + secure_details = + curl_http_content_headers_and_checksum(secure_url, hash_needed: true, user_agent: user_agent) + + if !http_status_ok?(details[:status]) || + !http_status_ok?(secure_details[:status]) + return + end + + etag_match = details[:etag] && + details[:etag] == secure_details[:etag] + content_length_match = + details[:content_length] && + details[:content_length] == secure_details[:content_length] + file_match = details[:file_hash] == secure_details[:file_hash] + + if (etag_match || content_length_match || file_match) && + secure_details[:final_url].start_with?("https://") && + url.start_with?("http://") + return "The URL #{url} should use HTTPS rather than HTTP" + end + + return unless check_content + + no_protocol_file_contents = %r{https?:\\?/\\?/} + details[:file] = details[:file].gsub(no_protocol_file_contents, "/") + secure_details[:file] = secure_details[:file].gsub(no_protocol_file_contents, "/") + + # Check for the same content after removing all protocols + if (details[:file] == secure_details[:file]) && + secure_details[:final_url].start_with?("https://") && + url.start_with?("http://") + return "The URL #{url} should use HTTPS rather than HTTP" + end + + return unless strict + + # Same size, different content after normalization + # (typical causes: Generated ID, Timestamp, Unix time) + if details[:file].length == secure_details[:file].length + return "The URL #{url} may be able to use HTTPS rather than HTTP. Please verify it in a browser." + end + + lenratio = (100 * secure_details[:file].length / details[:file].length).to_i + return unless (90..110).cover?(lenratio) + + "The URL #{url} may be able to use HTTPS rather than HTTP. Please verify it in a browser." + end + + def curl_http_content_headers_and_checksum(url, hash_needed: false, user_agent: :default) + file = Tempfile.new.tap(&:close) + + max_time = hash_needed ? "600" : "25" + output, = curl_output( + "--dump-header", "-", "--output", file.path, "--include", "--location", + "--connect-timeout", "15", "--max-time", max_time, url, + user_agent: user_agent + ) + + status_code = :unknown + while status_code == :unknown || status_code.to_s.start_with?("3") + headers, _, output = output.partition("\r\n\r\n") + status_code = headers[%r{HTTP/.* (\d+)}, 1] + location = headers[/^Location:\s*(.*)$/i, 1] + final_url = location.chomp if location + end + + output_hash = Digest::SHA256.file(file.path) if hash_needed + + final_url ||= url + + { + url: url, + final_url: final_url, + status: status_code, + etag: headers[%r{ETag: ([wW]/)?"(([^"]|\\")*)"}, 2], + content_length: headers[/Content-Length: (\d+)/, 1], + headers: headers, + file_hash: output_hash, + file: output, + } + ensure + file.unlink + end + + def http_status_ok?(status) + (100..299).cover?(status.to_i) end end - - result end -def curl(*args, print_stdout: true, **options) - result = curl_with_workarounds(*args, print_stdout: print_stdout, **options) - result.assert_success! - result -end - -def curl_download(*args, to: nil, partial: true, **options) - destination = Pathname(to) - destination.dirname.mkpath - - if partial - range_stdout = curl_output("--location", "--range", "0-1", - "--dump-header", "-", - "--write-out", "%\{http_code}", - "--output", "/dev/null", *args, **options).stdout - headers, _, http_status = range_stdout.partition("\r\n\r\n") - - supports_partial_download = http_status.to_i == 206 # Partial Content - if supports_partial_download && - destination.exist? && - destination.size == %r{^.*Content-Range: bytes \d+-\d+/(\d+)\r\n.*$}m.match(headers)&.[](1)&.to_i - return # We've already downloaded all the bytes - end - else - supports_partial_download = false - end - - continue_at = if destination.exist? && supports_partial_download - "-" - else - 0 - end - - curl("--location", "--remote-time", "--continue-at", continue_at.to_s, "--output", destination, *args, **options) -end - -def curl_output(*args, **options) - curl_with_workarounds(*args, print_stderr: false, show_output: true, **options) -end - -# Check if a URL is protected by CloudFlare (e.g. badlion.net and jaxx.io). -def url_protected_by_cloudflare?(details) - [403, 503].include?(details[:status].to_i) && - details[:headers].match?(/^Set-Cookie: __cfduid=/i) && - details[:headers].match?(/^Server: cloudflare/i) -end - -# Check if a URL is protected by Incapsula (e.g. corsair.com). -def url_protected_by_incapsula?(details) - details[:status].to_i == 403 && - details[:headers].match?(/^Set-Cookie: visid_incap_/i) && - details[:headers].match?(/^Set-Cookie: incap_ses_/i) -end - -def curl_check_http_content(url, user_agents: [:default], check_content: false, strict: false) - return unless url.start_with? "http" - - details = nil - user_agent = nil - hash_needed = url.start_with?("http:") - user_agents.each do |ua| - details = curl_http_content_headers_and_checksum(url, hash_needed: hash_needed, user_agent: ua) - user_agent = ua - break if http_status_ok?(details[:status]) - end - - unless details[:status] - # Hack around https://github.com/Homebrew/brew/issues/3199 - return if MacOS.version == :el_capitan - - return "The URL #{url} is not reachable" - end - - unless http_status_ok?(details[:status]) - return if url_protected_by_cloudflare?(details) || url_protected_by_incapsula?(details) - - return "The URL #{url} is not reachable (HTTP status code #{details[:status]})" - end - - if url.start_with?("https://") && Homebrew::EnvConfig.no_insecure_redirect? && - !details[:final_url].start_with?("https://") - return "The URL #{url} redirects back to HTTP" - end - - return unless hash_needed - - secure_url = url.sub "http", "https" - secure_details = - curl_http_content_headers_and_checksum(secure_url, hash_needed: true, user_agent: user_agent) - - if !http_status_ok?(details[:status]) || - !http_status_ok?(secure_details[:status]) - return - end - - etag_match = details[:etag] && - details[:etag] == secure_details[:etag] - content_length_match = - details[:content_length] && - details[:content_length] == secure_details[:content_length] - file_match = details[:file_hash] == secure_details[:file_hash] - - if (etag_match || content_length_match || file_match) && - secure_details[:final_url].start_with?("https://") && - url.start_with?("http://") - return "The URL #{url} should use HTTPS rather than HTTP" - end - - return unless check_content - - no_protocol_file_contents = %r{https?:\\?/\\?/} - details[:file] = details[:file].gsub(no_protocol_file_contents, "/") - secure_details[:file] = secure_details[:file].gsub(no_protocol_file_contents, "/") - - # Check for the same content after removing all protocols - if (details[:file] == secure_details[:file]) && - secure_details[:final_url].start_with?("https://") && - url.start_with?("http://") - return "The URL #{url} should use HTTPS rather than HTTP" - end - - return unless strict - - # Same size, different content after normalization - # (typical causes: Generated ID, Timestamp, Unix time) - if details[:file].length == secure_details[:file].length - return "The URL #{url} may be able to use HTTPS rather than HTTP. Please verify it in a browser." - end - - lenratio = (100 * secure_details[:file].length / details[:file].length).to_i - return unless (90..110).cover?(lenratio) - - "The URL #{url} may be able to use HTTPS rather than HTTP. Please verify it in a browser." -end - -def curl_http_content_headers_and_checksum(url, hash_needed: false, user_agent: :default) - file = Tempfile.new.tap(&:close) - - max_time = hash_needed ? "600" : "25" - output, = curl_output( - "--dump-header", "-", "--output", file.path, "--include", "--location", - "--connect-timeout", "15", "--max-time", max_time, url, - user_agent: user_agent - ) - - status_code = :unknown - while status_code == :unknown || status_code.to_s.start_with?("3") - headers, _, output = output.partition("\r\n\r\n") - status_code = headers[%r{HTTP/.* (\d+)}, 1] - location = headers[/^Location:\s*(.*)$/i, 1] - final_url = location.chomp if location - end - - output_hash = Digest::SHA256.file(file.path) if hash_needed - - final_url ||= url - - { - url: url, - final_url: final_url, - status: status_code, - etag: headers[%r{ETag: ([wW]/)?"(([^"]|\\")*)"}, 2], - content_length: headers[/Content-Length: (\d+)/, 1], - headers: headers, - file_hash: output_hash, - file: output, - } -ensure - file.unlink -end - -def http_status_ok?(status) - (100..299).cover?(status.to_i) -end +# FIXME: Include `Utils::Curl` explicitly everywhere it is used. +include Utils::Curl # rubocop:disable Style/MixinUsage diff --git a/Library/Homebrew/utils/shared_audits.rb b/Library/Homebrew/utils/shared_audits.rb index 694f659804..ad69344ca3 100644 --- a/Library/Homebrew/utils/shared_audits.rb +++ b/Library/Homebrew/utils/shared_audits.rb @@ -7,6 +7,9 @@ require "utils/curl" # # @api private module SharedAudits + include Utils::Curl + extend Utils::Curl + module_function def github_repo_data(user, repo) diff --git a/Library/Homebrew/utils/spdx.rb b/Library/Homebrew/utils/spdx.rb index 64467c291e..693689f307 100644 --- a/Library/Homebrew/utils/spdx.rb +++ b/Library/Homebrew/utils/spdx.rb @@ -1,12 +1,15 @@ # typed: true # frozen_string_literal: true +require "utils/curl" require "utils/github" # Helper module for updating SPDX license data. # # @api private module SPDX + extend Utils::Curl + module_function DATA_PATH = (HOMEBREW_DATA_PATH/"spdx").freeze From 8fabc56a22d8ba53ecb26a9d4a9916ec849593c9 Mon Sep 17 00:00:00 2001 From: Markus Reiter Date: Sat, 10 Oct 2020 15:31:32 +0200 Subject: [PATCH 04/15] Inline type annotations for `Utils::Shell`. --- Library/Homebrew/sorbet/rbi/utils/shell.rbi | 38 --------------------- Library/Homebrew/utils/shell.rb | 20 ++++++++--- 2 files changed, 16 insertions(+), 42 deletions(-) delete mode 100644 Library/Homebrew/sorbet/rbi/utils/shell.rbi diff --git a/Library/Homebrew/sorbet/rbi/utils/shell.rbi b/Library/Homebrew/sorbet/rbi/utils/shell.rbi deleted file mode 100644 index f4a3507bd8..0000000000 --- a/Library/Homebrew/sorbet/rbi/utils/shell.rbi +++ /dev/null @@ -1,38 +0,0 @@ -# typed: strict - -module Utils::Shell - include Kernel - - sig{ params(path: String).returns(T.nilable(Symbol)) } - def from_path(path) - end - - sig{ returns(T.nilable(Symbol)) } - def preferred - end - - def parent - end - - def export_value(key, value, shell = preferred) - end - - sig{ returns(String) } - def profile - end - - def set_variable_in_profile(variable, value) - end - - sig{ params(path: String).returns(T.nilable(String)) } - def prepend_path_in_profile(path) - end - - sig{ params(str: String).returns(T.nilable(String)) } - def csh_quote(str) - end - - sig{ params(str: String).returns(T.nilable(String)) } - def sh_quote(str) - end -end diff --git a/Library/Homebrew/utils/shell.rb b/Library/Homebrew/utils/shell.rb index 4d9af01ff1..c469c3ad94 100644 --- a/Library/Homebrew/utils/shell.rb +++ b/Library/Homebrew/utils/shell.rb @@ -3,10 +3,14 @@ module Utils module Shell + include Kernel + extend T::Sig + module_function - # take a path and heuristically convert it - # to a shell name, return nil if there's no match + # Take a path and heuristically convert it to a shell name, + # return `nil` if there's no match. + sig { params(path: String).returns(T.nilable(Symbol)) } def from_path(path) # we only care about the basename shell_name = File.basename(path) @@ -15,15 +19,18 @@ module Utils shell_name.to_sym if %w[bash csh fish ksh mksh sh tcsh zsh].include?(shell_name) end + sig { returns(T.nilable(Symbol)) } def preferred from_path(ENV.fetch("SHELL", "")) end + sig { returns(T.nilable(Symbol)) } def parent from_path(`ps -p #{Process.ppid} -o ucomm=`.strip) end - # quote values. quoting keys is overkill + # Quote values. Quoting keys is overkill. + sig { params(key: String, value: String, shell: T.nilable(Symbol)).returns(T.nilable(String)) } def export_value(key, value, shell = preferred) case shell when :bash, :ksh, :mksh, :sh, :zsh @@ -38,7 +45,8 @@ module Utils end end - # return the shell profile file based on user's preferred shell + # Return the shell profile file based on user's preferred shell. + sig { returns(String) } def profile case preferred when :bash @@ -51,6 +59,7 @@ module Utils SHELL_PROFILE_MAP.fetch(preferred, "~/.profile") end + sig { params(variable: String, value: String).returns(T.nilable(String)) } def set_variable_in_profile(variable, value) case preferred when :bash, :ksh, :sh, :zsh, nil @@ -62,6 +71,7 @@ module Utils end end + sig { params(path: String).returns(T.nilable(String)) } def prepend_path_in_profile(path) case preferred when :bash, :ksh, :mksh, :sh, :zsh, nil @@ -86,6 +96,7 @@ module Utils UNSAFE_SHELL_CHAR = %r{([^A-Za-z0-9_\-.,:/@~\n])}.freeze + sig { params(str: String).returns(String) } def csh_quote(str) # ruby's implementation of shell_escape str = str.to_s @@ -99,6 +110,7 @@ module Utils str end + sig { params(str: String).returns(String) } def sh_quote(str) # ruby's implementation of shell_escape str = str.to_s From 12e173cd50a36e99b981d452d230c6225136f731 Mon Sep 17 00:00:00 2001 From: Markus Reiter Date: Sat, 10 Oct 2020 15:33:15 +0200 Subject: [PATCH 05/15] Inline type annotations for `SPDX`. --- Library/Homebrew/sorbet/rbi/utils/spdx.rbi | 11 ----------- Library/Homebrew/utils/spdx.rb | 1 + 2 files changed, 1 insertion(+), 11 deletions(-) delete mode 100644 Library/Homebrew/sorbet/rbi/utils/spdx.rbi diff --git a/Library/Homebrew/sorbet/rbi/utils/spdx.rbi b/Library/Homebrew/sorbet/rbi/utils/spdx.rbi deleted file mode 100644 index 65203892fc..0000000000 --- a/Library/Homebrew/sorbet/rbi/utils/spdx.rbi +++ /dev/null @@ -1,11 +0,0 @@ -# typed: strict - -module SPDX - include Kernel - - def spdx_data; end - - def download_latest_license_data!(to: JSON_PATH); end - - def curl_download(*args, to: nil, partial: true, **options); end -end diff --git a/Library/Homebrew/utils/spdx.rb b/Library/Homebrew/utils/spdx.rb index 693689f307..3ae60ea72c 100644 --- a/Library/Homebrew/utils/spdx.rb +++ b/Library/Homebrew/utils/spdx.rb @@ -8,6 +8,7 @@ require "utils/github" # # @api private module SPDX + include Utils::Curl extend Utils::Curl module_function From e1e9f2d9bdaea06805b2b3e4aa9253f778383b7c Mon Sep 17 00:00:00 2001 From: Markus Reiter Date: Sat, 10 Oct 2020 15:35:20 +0200 Subject: [PATCH 06/15] Inline type annotations for `Utils::Svn`. --- Library/Homebrew/sorbet/rbi/utils/svn.rbi | 14 -------------- Library/Homebrew/utils/svn.rb | 6 ++++++ 2 files changed, 6 insertions(+), 14 deletions(-) delete mode 100644 Library/Homebrew/sorbet/rbi/utils/svn.rbi diff --git a/Library/Homebrew/sorbet/rbi/utils/svn.rbi b/Library/Homebrew/sorbet/rbi/utils/svn.rbi deleted file mode 100644 index b2081d8743..0000000000 --- a/Library/Homebrew/sorbet/rbi/utils/svn.rbi +++ /dev/null @@ -1,14 +0,0 @@ -# typed: strict - -module Utils::Svn - include Kernel - - sig { returns(T::Boolean) } - def available?; end - - sig { returns(T.nilable(String)) } - def version; end - - sig { params(url: String).returns(T::Boolean) } - def remote_exists?(url); end -end diff --git a/Library/Homebrew/utils/svn.rb b/Library/Homebrew/utils/svn.rb index 239a63ca6d..febc3dee9a 100644 --- a/Library/Homebrew/utils/svn.rb +++ b/Library/Homebrew/utils/svn.rb @@ -8,12 +8,17 @@ module Utils # # @api private module Svn + include Kernel + extend T::Sig + module_function + sig { returns(T::Boolean) } def available? version.present? end + sig { returns(T.nilable(String)) } def version return @version if defined?(@version) @@ -21,6 +26,7 @@ module Utils @version = status.success? ? stdout.chomp[/svn, version (\d+(?:\.\d+)*)/, 1] : nil end + sig { params(url: String).returns(T::Boolean) } def remote_exists?(url) return true unless available? From fc7a34585f7a290b73e4a9861601060ee42afe3e Mon Sep 17 00:00:00 2001 From: Markus Reiter Date: Sat, 10 Oct 2020 15:42:30 +0200 Subject: [PATCH 07/15] Inline type annotations for `Tty`. --- Library/Homebrew/sorbet/rbi/utils/tty.rbi | 36 ----------------------- Library/Homebrew/utils/tty.rb | 16 ++++++++-- 2 files changed, 14 insertions(+), 38 deletions(-) delete mode 100644 Library/Homebrew/sorbet/rbi/utils/tty.rbi diff --git a/Library/Homebrew/sorbet/rbi/utils/tty.rbi b/Library/Homebrew/sorbet/rbi/utils/tty.rbi deleted file mode 100644 index 67b8a68ee8..0000000000 --- a/Library/Homebrew/sorbet/rbi/utils/tty.rbi +++ /dev/null @@ -1,36 +0,0 @@ -# typed: strict - -module Tty - include Kernel - - sig{ params(string: String).returns(String) } - def strip_ansi(string) - end - - sig{ returns(Integer) } - def width() - end - - sig{ params(string: String).returns(T.nilable(String)) } - def truncate(string) - end - - def append_to_escape_sequence(code) - end - - sig{ returns(String) } - def current_escape_sequence() - end - - sig{ void } - def reset_escape_sequence!() - end - - sig{ returns(String) } - def to_s - end - - sig { returns(T::Boolean) } - def color? - end -end diff --git a/Library/Homebrew/utils/tty.rb b/Library/Homebrew/utils/tty.rb index 3360f99cb2..991c79336b 100644 --- a/Library/Homebrew/utils/tty.rb +++ b/Library/Homebrew/utils/tty.rb @@ -5,11 +5,15 @@ # # @api private module Tty + include Kernel + extend T::Sig + @stream = $stdout module_function - def with(stream) + sig { params(stream: IO, _block: T.proc.params(arg0: IO).void).void } + def with(stream, &_block) previous_stream = @stream @stream = stream @@ -18,10 +22,12 @@ module Tty @stream = previous_stream end + sig { params(string: String).returns(String) } def strip_ansi(string) string.gsub(/\033\[\d+(;\d+)*m/, "") end + sig { returns(Integer) } def width @width ||= begin _, width = `/bin/stty size 2>/dev/null`.split @@ -31,8 +37,9 @@ module Tty end end + sig { params(string: String).returns(String) } def truncate(string) - (w = width).zero? ? string.to_s : string.to_s[0, w - 4] + (w = width).zero? ? string.to_s : (string.to_s[0, w - 4] || "") end COLOR_CODES = { @@ -65,18 +72,21 @@ module Tty CODES = COLOR_CODES.merge(STYLE_CODES).freeze + sig { params(code: Integer).returns(T.self_type) } def append_to_escape_sequence(code) @escape_sequence ||= [] @escape_sequence << code self end + sig { returns(String) } def current_escape_sequence return "" if @escape_sequence.nil? "\033[#{@escape_sequence.join(";")}m" end + sig { void } def reset_escape_sequence! @escape_sequence = nil end @@ -97,6 +107,7 @@ module Tty end end + sig { returns(String) } def to_s return "" unless color? @@ -105,6 +116,7 @@ module Tty reset_escape_sequence! end + sig { returns(T::Boolean) } def color? return false if Homebrew::EnvConfig.no_color? return true if Homebrew::EnvConfig.color? From 059122c7246915559590ef09714086ebf7cd32d3 Mon Sep 17 00:00:00 2001 From: Markus Reiter Date: Sat, 10 Oct 2020 15:53:14 +0200 Subject: [PATCH 08/15] Inline type annotations for `User`. --- Library/Homebrew/sorbet/rbi/utils/user.rbi | 11 ----------- Library/Homebrew/utils/user.rb | 5 +++++ 2 files changed, 5 insertions(+), 11 deletions(-) delete mode 100644 Library/Homebrew/sorbet/rbi/utils/user.rbi diff --git a/Library/Homebrew/sorbet/rbi/utils/user.rbi b/Library/Homebrew/sorbet/rbi/utils/user.rbi deleted file mode 100644 index ef1997fafd..0000000000 --- a/Library/Homebrew/sorbet/rbi/utils/user.rbi +++ /dev/null @@ -1,11 +0,0 @@ -# typed: strict - -class User < SimpleDelegator - include Kernel - - sig { returns(T::Boolean) } - def gui?; end - - sig { returns(T.nilable(T.attached_class)) } - def self.current; end -end diff --git a/Library/Homebrew/utils/user.rb b/Library/Homebrew/utils/user.rb index 0973a95be4..238cbdd864 100644 --- a/Library/Homebrew/utils/user.rb +++ b/Library/Homebrew/utils/user.rb @@ -10,7 +10,11 @@ require "system_command" # # @api private class User < SimpleDelegator + include Kernel + extend T::Sig + # Return whether the user has an active GUI session. + sig { returns(T::Boolean) } def gui? out, _, status = system_command "who" return false unless status.success? @@ -21,6 +25,7 @@ class User < SimpleDelegator end # Return the current user. + sig { returns(T.nilable(T.attached_class)) } def self.current return @current if defined?(@current) From e20c982d1a62f0cc30866422399ff9a058fb32ba Mon Sep 17 00:00:00 2001 From: Markus Reiter Date: Sat, 10 Oct 2020 15:53:33 +0200 Subject: [PATCH 09/15] Inline `utils.rbi`. --- Library/Homebrew/sorbet/rbi/utils/utils.rbi | 20 -------------------- Library/Homebrew/utils/link.rb | 2 ++ Library/Homebrew/utils/shebang.rb | 2 ++ Library/Homebrew/utils/tar.rb | 2 ++ 4 files changed, 6 insertions(+), 20 deletions(-) delete mode 100644 Library/Homebrew/sorbet/rbi/utils/utils.rbi diff --git a/Library/Homebrew/sorbet/rbi/utils/utils.rbi b/Library/Homebrew/sorbet/rbi/utils/utils.rbi deleted file mode 100644 index cc0c9848ed..0000000000 --- a/Library/Homebrew/sorbet/rbi/utils/utils.rbi +++ /dev/null @@ -1,20 +0,0 @@ -# typed: strict - -module Utils - include Kernel - - module Bottles - end - - module Link - include Kernel - end - - module Shebang - include Kernel - end - - module Tar - include Kernel - end -end diff --git a/Library/Homebrew/utils/link.rb b/Library/Homebrew/utils/link.rb index 8078390f60..1a726d5939 100644 --- a/Library/Homebrew/utils/link.rb +++ b/Library/Homebrew/utils/link.rb @@ -6,6 +6,8 @@ module Utils # # @api private module Link + include Kernel + module_function def link_src_dst_dirs(src_dir, dst_dir, command, link_dir: false) diff --git a/Library/Homebrew/utils/shebang.rb b/Library/Homebrew/utils/shebang.rb index 762ddf5804..2fdb721cad 100644 --- a/Library/Homebrew/utils/shebang.rb +++ b/Library/Homebrew/utils/shebang.rb @@ -6,6 +6,8 @@ module Utils # # @api private module Shebang + include Kernel + module_function # Specification on how to rewrite a given shebang. diff --git a/Library/Homebrew/utils/tar.rb b/Library/Homebrew/utils/tar.rb index df29bf9adb..fe65d32999 100644 --- a/Library/Homebrew/utils/tar.rb +++ b/Library/Homebrew/utils/tar.rb @@ -6,6 +6,8 @@ module Utils # # @api private module Tar + include Kernel + module_function TAR_FILE_EXTENSIONS = %w[.tar .tb2 .tbz .tbz2 .tgz .tlz .txz .tZ].freeze From d5e600e3afb0579fba7f07a24ce6fc0009475744 Mon Sep 17 00:00:00 2001 From: Markus Reiter Date: Sat, 10 Oct 2020 16:06:48 +0200 Subject: [PATCH 10/15] Remove unknown `Homebrew::Error` class. --- Library/Homebrew/dev-cmd/pr-pull.rb | 2 +- Library/Homebrew/sorbet/rbi/todo.rbi | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/Library/Homebrew/dev-cmd/pr-pull.rb b/Library/Homebrew/dev-cmd/pr-pull.rb index 0c4c0d7219..92ab956137 100644 --- a/Library/Homebrew/dev-cmd/pr-pull.rb +++ b/Library/Homebrew/dev-cmd/pr-pull.rb @@ -352,7 +352,7 @@ module Homebrew when :env_token curl_args = ["--header", "Authorization: token #{token}"] when :none - raise Error, "Credentials must be set to access the Artifacts API" + raise "Credentials must be set to access the Artifacts API" end # Download the artifact as a zip file and unpack it into `dir`. This is diff --git a/Library/Homebrew/sorbet/rbi/todo.rbi b/Library/Homebrew/sorbet/rbi/todo.rbi index 72cca22f83..f5fc66d3cc 100644 --- a/Library/Homebrew/sorbet/rbi/todo.rbi +++ b/Library/Homebrew/sorbet/rbi/todo.rbi @@ -4,7 +4,6 @@ # typed: strong module ::StackProf; end module DependencyCollector::Compat; end -module Homebrew::Error; end module OS::Mac::Version::NULL; end module SPDX::JSON_PATH; end module T::InterfaceWrapper::Helpers; end From 4382ee9d1404baba4ff4a1734e11fbd9c7826cb7 Mon Sep 17 00:00:00 2001 From: Markus Reiter Date: Sat, 10 Oct 2020 16:40:36 +0200 Subject: [PATCH 11/15] Remove `files.yaml` for Sorbet. --- .github/workflows/sorbet.yml | 5 +++-- Library/Homebrew/dev-cmd/typecheck.rb | 23 ++--------------------- Library/Homebrew/sorbet/files.yaml | 3 --- docs/Manpage.md | 4 ++-- manpages/brew.1 | 4 ++-- 5 files changed, 9 insertions(+), 30 deletions(-) delete mode 100644 Library/Homebrew/sorbet/files.yaml diff --git a/.github/workflows/sorbet.yml b/.github/workflows/sorbet.yml index 2266c178bb..065cf9c65f 100644 --- a/.github/workflows/sorbet.yml +++ b/.github/workflows/sorbet.yml @@ -1,4 +1,4 @@ -name: Update Sorbet-related files +name: Update Sorbet files on: push: paths: @@ -39,7 +39,8 @@ jobs: if brew typecheck --update --fail-if-not-changed; then git add "$GITHUB_WORKSPACE/Library/Homebrew/sorbet" - git commit -m "sorbet: Update RBI files and prune files.yaml." -m "Autogenerated by [a scheduled GitHub Action](https://github.com/Homebrew/brew/blob/master/.github/workflows/sorbet.yml)." + git commit -m "sorbet: Update RBI files." \ + -m "Autogenerated by the [sorbet](https://github.com/Homebrew/brew/blob/master/.github/workflows/sorbet.yml) workflow." echo "::set-output name=committed::true" if [ -n "$BRANCH_EXISTS" ]; then echo "::set-output name=pull_request::true" diff --git a/Library/Homebrew/dev-cmd/typecheck.rb b/Library/Homebrew/dev-cmd/typecheck.rb index b4af45936c..c8c45fa88b 100644 --- a/Library/Homebrew/dev-cmd/typecheck.rb +++ b/Library/Homebrew/dev-cmd/typecheck.rb @@ -6,8 +6,6 @@ require "cli/parser" module Homebrew module_function - SORBET_FILES_YAML = "sorbet/files.yaml" - def typecheck_args Homebrew::CLI::Parser.new do usage_banner <<~EOS @@ -18,10 +16,10 @@ module Homebrew switch "-q", "--quiet", description: "Silence all non-critical errors." switch "--update", - description: "Update RBI files and prune #{SORBET_FILES_YAML}" + description: "Update RBI files." switch "--fail-if-not-changed", description: "Return a failing status code if all gems are up to date " \ - "and gem definitions do not need a tapioca update" + "and gem definitions do not need a tapioca update." flag "--dir=", description: "Typecheck all files in a specific directory." flag "--file=", @@ -41,21 +39,6 @@ module Homebrew HOMEBREW_LIBRARY_PATH.cd do if args.update? - ohai "Checking for deleted filenames in #{SORBET_FILES_YAML}..." - lines_to_keep = [] - sorbet_keywords = ["true:", "false:", "strict:", "strong:"] - - File.readlines(SORBET_FILES_YAML).map(&:chomp).each do |line| - if sorbet_keywords.include?(line) || line.blank? - lines_to_keep << line - elsif line.end_with?(".rb") - filepath = line.split(" ").last - lines_to_keep << line if File.exist?(filepath) - end - - File.write(SORBET_FILES_YAML, "#{lines_to_keep.join("\n")}\n") - end - ohai "Updating Tapioca RBI files..." system "bundle", "exec", "tapioca", "sync" system "bundle", "exec", "srb", "rbi", "hidden-definitions" @@ -73,8 +56,6 @@ module Homebrew cd("sorbet") srb_exec += ["--file", "../#{args.file}"] if args.file srb_exec += ["--dir", "../#{args.dir}"] if args.dir - else - srb_exec += ["--typed-override", SORBET_FILES_YAML] end Homebrew.failed = !system(*srb_exec) end diff --git a/Library/Homebrew/sorbet/files.yaml b/Library/Homebrew/sorbet/files.yaml deleted file mode 100644 index b3db036f73..0000000000 --- a/Library/Homebrew/sorbet/files.yaml +++ /dev/null @@ -1,3 +0,0 @@ -false: [] -true: [] -strict: [] diff --git a/docs/Manpage.md b/docs/Manpage.md index ad972b3e1e..63c1956acf 100644 --- a/docs/Manpage.md +++ b/docs/Manpage.md @@ -1258,9 +1258,9 @@ Check for typechecking errors using Sorbet. * `-q`, `--quiet`: Silence all non-critical errors. * `--update`: - Update RBI files and prune sorbet/files.yaml + Update RBI files. * `--fail-if-not-changed`: - Return a failing status code if all gems are up to date and gem definitions do not need a tapioca update + Return a failing status code if all gems are up to date and gem definitions do not need a tapioca update. * `--dir`: Typecheck all files in a specific directory. * `--file`: diff --git a/manpages/brew.1 b/manpages/brew.1 index f8d8da4472..eff7c8d27e 100644 --- a/manpages/brew.1 +++ b/manpages/brew.1 @@ -1743,11 +1743,11 @@ Silence all non\-critical errors\. . .TP \fB\-\-update\fR -Update RBI files and prune sorbet/files\.yaml +Update RBI files\. . .TP \fB\-\-fail\-if\-not\-changed\fR -Return a failing status code if all gems are up to date and gem definitions do not need a tapioca update +Return a failing status code if all gems are up to date and gem definitions do not need a tapioca update\. . .TP \fB\-\-dir\fR From e509b1317ee8f1dea24c2a3c02e3a8e96393d904 Mon Sep 17 00:00:00 2001 From: Markus Reiter Date: Sat, 10 Oct 2020 17:53:18 +0200 Subject: [PATCH 12/15] Fix `svn_spec`. --- Library/Homebrew/test/utils/svn_spec.rb | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/Library/Homebrew/test/utils/svn_spec.rb b/Library/Homebrew/test/utils/svn_spec.rb index f4ec8b7f36..a5a4482ef2 100644 --- a/Library/Homebrew/test/utils/svn_spec.rb +++ b/Library/Homebrew/test/utils/svn_spec.rb @@ -44,17 +44,11 @@ describe Utils::Svn do end it "returns false when remote does not exist" do - expect(described_class).not_to be_remote_exists(HOMEBREW_CACHE/"install") + expect(described_class).not_to be_remote_exists("blah") end it "returns true when remote exists", :needs_network, :needs_svn do - HOMEBREW_CACHE.cd do - system HOMEBREW_SHIMS_PATH/"scm/svn", "checkout", - "--non-interactive", "--trust-server-cert", "--quiet", - "https://github.com/Homebrew/install" - end - - expect(described_class).to be_remote_exists(HOMEBREW_CACHE/"install") + expect(described_class).to be_remote_exists("https://github.com/Homebrew/install") end end end From 61b79318ed089b5010501e2cbf163fd8e48e2dfc Mon Sep 17 00:00:00 2001 From: Markus Reiter Date: Sat, 10 Oct 2020 17:53:31 +0200 Subject: [PATCH 13/15] Move `include Kernel` into `.rbi` files again and split up existing `.rbi` files. --- Library/Homebrew/cli/args.rbi | 29 +++ Library/Homebrew/compat/cli/parser.rbi | 15 ++ .../Homebrew/compat/dependencies_helpers.rbi | 9 + Library/Homebrew/compat/extend/nil.rbi | 7 + Library/Homebrew/compat/extend/string.rbi | 7 + Library/Homebrew/compat/formula.rbi | 11 + Library/Homebrew/compat/os/mac.rbi | 11 + Library/Homebrew/dependable.rbi | 5 + Library/Homebrew/dependencies_helpers.rbi | 5 + .../Homebrew/extend/os/linux/system_config.rb | 3 + .../Homebrew/extend/os/mac/system_config.rb | 4 + Library/Homebrew/global.rbi | 5 + Library/Homebrew/help.rbi | 7 + Library/Homebrew/install.rbi | 7 + Library/Homebrew/language/perl.rbi | 9 + Library/Homebrew/os/linux.rbi | 7 + Library/Homebrew/os/mac.rbi | 7 + Library/Homebrew/sorbet/rbi/cli.rbi | 37 ---- Library/Homebrew/sorbet/rbi/homebrew.rbi | 65 ------ Library/Homebrew/sorbet/rbi/os.rbi | 22 -- Library/Homebrew/sorbet/tapioca/require.rb | 2 +- Library/Homebrew/system_command.rb | 29 +-- Library/Homebrew/system_config.rb | 3 + Library/Homebrew/unpack_strategy.rb | 4 + Library/Homebrew/unpack_strategy/fossil.rb | 3 + Library/Homebrew/unpack_strategy/tar.rb | 3 + Library/Homebrew/utils/inreplace.rb | 1 - Library/Homebrew/utils/inreplace.rbi | 7 + Library/Homebrew/utils/link.rb | 2 - Library/Homebrew/utils/link.rbi | 7 + Library/Homebrew/utils/shebang.rb | 2 - Library/Homebrew/utils/shebang.rbi | 7 + Library/Homebrew/utils/shell.rb | 1 - Library/Homebrew/utils/shell.rbi | 7 + Library/Homebrew/utils/svn.rb | 46 ++-- Library/Homebrew/utils/tar.rb | 44 ++-- Library/Homebrew/utils/tty.rb | 202 +++++++++--------- Library/Homebrew/utils/user.rb | 3 +- 38 files changed, 350 insertions(+), 295 deletions(-) create mode 100644 Library/Homebrew/cli/args.rbi create mode 100644 Library/Homebrew/compat/cli/parser.rbi create mode 100644 Library/Homebrew/compat/dependencies_helpers.rbi create mode 100644 Library/Homebrew/compat/extend/nil.rbi create mode 100644 Library/Homebrew/compat/extend/string.rbi create mode 100644 Library/Homebrew/compat/formula.rbi create mode 100644 Library/Homebrew/compat/os/mac.rbi create mode 100644 Library/Homebrew/dependable.rbi create mode 100644 Library/Homebrew/dependencies_helpers.rbi create mode 100644 Library/Homebrew/global.rbi create mode 100644 Library/Homebrew/help.rbi create mode 100644 Library/Homebrew/install.rbi create mode 100644 Library/Homebrew/language/perl.rbi create mode 100644 Library/Homebrew/os/linux.rbi create mode 100644 Library/Homebrew/os/mac.rbi delete mode 100644 Library/Homebrew/sorbet/rbi/cli.rbi delete mode 100644 Library/Homebrew/sorbet/rbi/homebrew.rbi delete mode 100644 Library/Homebrew/sorbet/rbi/os.rbi create mode 100644 Library/Homebrew/utils/inreplace.rbi create mode 100644 Library/Homebrew/utils/link.rbi create mode 100644 Library/Homebrew/utils/shebang.rbi create mode 100644 Library/Homebrew/utils/shell.rbi diff --git a/Library/Homebrew/cli/args.rbi b/Library/Homebrew/cli/args.rbi new file mode 100644 index 0000000000..2314e9c8f3 --- /dev/null +++ b/Library/Homebrew/cli/args.rbi @@ -0,0 +1,29 @@ +# typed: strict + +module Homebrew + module CLI + class Args < OpenStruct + def devel?; end + + def HEAD?; end + + def include_test?; end + + def build_bottle?; end + + def build_universal?; end + + def build_from_source?; end + + def named_args; end + + def force_bottle?; end + + def debug?; end + + def quiet?; end + + def verbose?; end + end + end +end diff --git a/Library/Homebrew/compat/cli/parser.rbi b/Library/Homebrew/compat/cli/parser.rbi new file mode 100644 index 0000000000..39061bb798 --- /dev/null +++ b/Library/Homebrew/compat/cli/parser.rbi @@ -0,0 +1,15 @@ +# typed: strict + +module Homebrew + module CLI + class Parser + module Compat + include Kernel + + module DeprecatedArgs + include Kernel + end + end + end + end +end diff --git a/Library/Homebrew/compat/dependencies_helpers.rbi b/Library/Homebrew/compat/dependencies_helpers.rbi new file mode 100644 index 0000000000..3ea83b62b9 --- /dev/null +++ b/Library/Homebrew/compat/dependencies_helpers.rbi @@ -0,0 +1,9 @@ +# typed: strict + +module DependenciesHelpers + module Compat + include Kernel + + def args_includes_ignores(args); end + end +end diff --git a/Library/Homebrew/compat/extend/nil.rbi b/Library/Homebrew/compat/extend/nil.rbi new file mode 100644 index 0000000000..0a0adb9756 --- /dev/null +++ b/Library/Homebrew/compat/extend/nil.rbi @@ -0,0 +1,7 @@ +# typed: strict + +class NilClass + module Compat + include Kernel + end +end diff --git a/Library/Homebrew/compat/extend/string.rbi b/Library/Homebrew/compat/extend/string.rbi new file mode 100644 index 0000000000..4851c5b127 --- /dev/null +++ b/Library/Homebrew/compat/extend/string.rbi @@ -0,0 +1,7 @@ +# typed: strict + +class String + module Compat + include Kernel + end +end diff --git a/Library/Homebrew/compat/formula.rbi b/Library/Homebrew/compat/formula.rbi new file mode 100644 index 0000000000..976ddb4a12 --- /dev/null +++ b/Library/Homebrew/compat/formula.rbi @@ -0,0 +1,11 @@ +# typed: strict + +class Formula + module Compat + include Kernel + + def any_installed_keg; end + + def latest_installed_prefix; end + end +end diff --git a/Library/Homebrew/compat/os/mac.rbi b/Library/Homebrew/compat/os/mac.rbi new file mode 100644 index 0000000000..b6156fa2e8 --- /dev/null +++ b/Library/Homebrew/compat/os/mac.rbi @@ -0,0 +1,11 @@ +# typed: strict + +module OS + module Mac + class << self + module Compat + include Kernel + end + end + end +end diff --git a/Library/Homebrew/dependable.rbi b/Library/Homebrew/dependable.rbi new file mode 100644 index 0000000000..c8eda0640b --- /dev/null +++ b/Library/Homebrew/dependable.rbi @@ -0,0 +1,5 @@ +# typed: strict + +module Dependable + def tags; end +end diff --git a/Library/Homebrew/dependencies_helpers.rbi b/Library/Homebrew/dependencies_helpers.rbi new file mode 100644 index 0000000000..f2226a40f4 --- /dev/null +++ b/Library/Homebrew/dependencies_helpers.rbi @@ -0,0 +1,5 @@ +# typed: strict + +module DependenciesHelpers + include Kernel +end diff --git a/Library/Homebrew/extend/os/linux/system_config.rb b/Library/Homebrew/extend/os/linux/system_config.rb index 154c805a1a..6c93d2a4fa 100644 --- a/Library/Homebrew/extend/os/linux/system_config.rb +++ b/Library/Homebrew/extend/os/linux/system_config.rb @@ -3,8 +3,11 @@ require "formula" require "os/linux/glibc" +require "system_command" module SystemConfig + include SystemCommand::Mixin + HOST_RUBY_PATH = "/usr/bin/ruby" class << self diff --git a/Library/Homebrew/extend/os/mac/system_config.rb b/Library/Homebrew/extend/os/mac/system_config.rb index 3ea619e2db..6f70e60597 100644 --- a/Library/Homebrew/extend/os/mac/system_config.rb +++ b/Library/Homebrew/extend/os/mac/system_config.rb @@ -1,8 +1,12 @@ # typed: true # frozen_string_literal: true +require "system_command" + module SystemConfig class << self + include SystemCommand::Mixin + undef describe_java, describe_homebrew_ruby def describe_java diff --git a/Library/Homebrew/global.rbi b/Library/Homebrew/global.rbi new file mode 100644 index 0000000000..1557c3b769 --- /dev/null +++ b/Library/Homebrew/global.rbi @@ -0,0 +1,5 @@ +# typed: strict + +module Homebrew + include Kernel +end diff --git a/Library/Homebrew/help.rbi b/Library/Homebrew/help.rbi new file mode 100644 index 0000000000..9db873c525 --- /dev/null +++ b/Library/Homebrew/help.rbi @@ -0,0 +1,7 @@ +# typed: strict + +module Homebrew + module Help + include Kernel + end +end diff --git a/Library/Homebrew/install.rbi b/Library/Homebrew/install.rbi new file mode 100644 index 0000000000..5208127284 --- /dev/null +++ b/Library/Homebrew/install.rbi @@ -0,0 +1,7 @@ +# typed: strict + +module Homebrew + module Install + include Kernel + end +end diff --git a/Library/Homebrew/language/perl.rbi b/Library/Homebrew/language/perl.rbi new file mode 100644 index 0000000000..9be98f1896 --- /dev/null +++ b/Library/Homebrew/language/perl.rbi @@ -0,0 +1,9 @@ +# typed: strict + +module Language + module Perl + module Shebang + include Kernel + end + end +end diff --git a/Library/Homebrew/os/linux.rbi b/Library/Homebrew/os/linux.rbi new file mode 100644 index 0000000000..b6f3164683 --- /dev/null +++ b/Library/Homebrew/os/linux.rbi @@ -0,0 +1,7 @@ +# typed: strict + +module OS + module Linux + include ::Kernel + end +end diff --git a/Library/Homebrew/os/mac.rbi b/Library/Homebrew/os/mac.rbi new file mode 100644 index 0000000000..85a546f554 --- /dev/null +++ b/Library/Homebrew/os/mac.rbi @@ -0,0 +1,7 @@ +# typed: strict + +module OS + module Mac + include Kernel + end +end diff --git a/Library/Homebrew/sorbet/rbi/cli.rbi b/Library/Homebrew/sorbet/rbi/cli.rbi deleted file mode 100644 index f920abb0a5..0000000000 --- a/Library/Homebrew/sorbet/rbi/cli.rbi +++ /dev/null @@ -1,37 +0,0 @@ -# typed: strict - -module Homebrew::CLI - class Args < OpenStruct - def devel?; end - - def HEAD?; end - - def include_test?; end - - def build_bottle?; end - - def build_universal?; end - - def build_from_source?; end - - def named_args; end - - def force_bottle?; end - - def debug?; end - - def quiet?; end - - def verbose?; end - end - - - class Parser - module Compat - include Kernel - module DeprecatedArgs - include Kernel - end - end - end -end diff --git a/Library/Homebrew/sorbet/rbi/homebrew.rbi b/Library/Homebrew/sorbet/rbi/homebrew.rbi deleted file mode 100644 index 6ada3bacff..0000000000 --- a/Library/Homebrew/sorbet/rbi/homebrew.rbi +++ /dev/null @@ -1,65 +0,0 @@ -# typed: strict - -module Homebrew - include Kernel -end - -module Homebrew::Help - include Kernel -end - -module Homebrew::Fetch - def args; end -end - -module Homebrew::Install - include Kernel -end - -module Language::Perl::Shebang - include Kernel -end - -module Dependable - def tags; end -end - -module DependenciesHelpers - include Kernel - - module Compat - include Kernel - - def args_includes_ignores(args); end - end -end - -class Formula - module Compat - include Kernel - - def latest_version_installed?; end - - def active_spec; end - - def any_installed_keg; end - - def latest_installed_prefix; end - - def patches; end - end -end - -class NilClass - module Compat - include Kernel - end -end - -class String - module Compat - include Kernel - - def chomp; end - end -end diff --git a/Library/Homebrew/sorbet/rbi/os.rbi b/Library/Homebrew/sorbet/rbi/os.rbi deleted file mode 100644 index f4b85f1f7e..0000000000 --- a/Library/Homebrew/sorbet/rbi/os.rbi +++ /dev/null @@ -1,22 +0,0 @@ -# typed: true - -module OS - module Linux - include Kernel - - def which(cmd, path = ENV["PATH"]) - end - end - - module Mac - include Kernel - end -end - -module OS::Mac - class << self - module Compat - include Kernel - end - end -end diff --git a/Library/Homebrew/sorbet/tapioca/require.rb b/Library/Homebrew/sorbet/tapioca/require.rb index fe1388b13a..536e027e91 100644 --- a/Library/Homebrew/sorbet/tapioca/require.rb +++ b/Library/Homebrew/sorbet/tapioca/require.rb @@ -1,4 +1,4 @@ -# typed: false +# typed: strict # frozen_string_literal: true # Add your extra requires here diff --git a/Library/Homebrew/system_command.rb b/Library/Homebrew/system_command.rb index 33f3781d7b..8ad098df1a 100644 --- a/Library/Homebrew/system_command.rb +++ b/Library/Homebrew/system_command.rb @@ -7,26 +7,25 @@ require "plist" require "shellwords" require "extend/io" +require "extend/predicable" require "extend/hash_validator" using HashValidator -# Make `system_command` available everywhere. -# -# @api private -module Kernel - def system_command(*args) - SystemCommand.run(*args) - end - - def system_command!(*args) - SystemCommand.run!(*args) - end -end - # Class for running sub-processes and capturing their output and exit status. # # @api private class SystemCommand + # Helper functions for calling `SystemCommand.run`. + module Mixin + def system_command(*args) + SystemCommand.run(*args) + end + + def system_command!(*args) + SystemCommand.run!(*args) + end + end + include Context extend Predicable @@ -248,3 +247,7 @@ class SystemCommand private :warn_plist_garbage end end + +# Make `system_command` available everywhere. +# FIXME: Include this explicitly only where it is needed. +include SystemCommand::Mixin # rubocop:disable Style/MixinUsage diff --git a/Library/Homebrew/system_config.rb b/Library/Homebrew/system_config.rb index 5af0d7dbd2..02230bb9b4 100644 --- a/Library/Homebrew/system_config.rb +++ b/Library/Homebrew/system_config.rb @@ -5,12 +5,15 @@ require "hardware" require "software_spec" require "development_tools" require "extend/ENV" +require "system_command" # Helper module for querying information about the system configuration. # # @api private module SystemConfig class << self + include SystemCommand::Mixin + def clang @clang ||= if DevelopmentTools.installed? DevelopmentTools.clang_version diff --git a/Library/Homebrew/unpack_strategy.rb b/Library/Homebrew/unpack_strategy.rb index f76069f3b9..774d296156 100644 --- a/Library/Homebrew/unpack_strategy.rb +++ b/Library/Homebrew/unpack_strategy.rb @@ -1,10 +1,14 @@ # typed: false # frozen_string_literal: true +require "system_command" + # Module containing all available strategies for unpacking archives. # # @api private module UnpackStrategy + include SystemCommand::Mixin + # Helper module for identifying the file type. module Magic # Length of the longest regex (currently Tar). diff --git a/Library/Homebrew/unpack_strategy/fossil.rb b/Library/Homebrew/unpack_strategy/fossil.rb index c8f165fdd6..f421ee1be8 100644 --- a/Library/Homebrew/unpack_strategy/fossil.rb +++ b/Library/Homebrew/unpack_strategy/fossil.rb @@ -1,10 +1,13 @@ # typed: true # frozen_string_literal: true +require "system_command" + module UnpackStrategy # Strategy for unpacking Fossil repositories. class Fossil include UnpackStrategy + extend SystemCommand::Mixin using Magic diff --git a/Library/Homebrew/unpack_strategy/tar.rb b/Library/Homebrew/unpack_strategy/tar.rb index 7e7b407bcd..a31550b75d 100644 --- a/Library/Homebrew/unpack_strategy/tar.rb +++ b/Library/Homebrew/unpack_strategy/tar.rb @@ -1,10 +1,13 @@ # typed: true # frozen_string_literal: true +require "system_command" + module UnpackStrategy # Strategy for unpacking tar archives. class Tar include UnpackStrategy + extend SystemCommand::Mixin using Magic diff --git a/Library/Homebrew/utils/inreplace.rb b/Library/Homebrew/utils/inreplace.rb index f2827a8979..d130871167 100644 --- a/Library/Homebrew/utils/inreplace.rb +++ b/Library/Homebrew/utils/inreplace.rb @@ -8,7 +8,6 @@ module Utils # # @api private module Inreplace - include Kernel extend T::Sig # Error during replacement. diff --git a/Library/Homebrew/utils/inreplace.rbi b/Library/Homebrew/utils/inreplace.rbi new file mode 100644 index 0000000000..02542091d2 --- /dev/null +++ b/Library/Homebrew/utils/inreplace.rbi @@ -0,0 +1,7 @@ +# typed: strict + +module Utils + module Inreplace + include Kernel + end +end diff --git a/Library/Homebrew/utils/link.rb b/Library/Homebrew/utils/link.rb index 1a726d5939..8078390f60 100644 --- a/Library/Homebrew/utils/link.rb +++ b/Library/Homebrew/utils/link.rb @@ -6,8 +6,6 @@ module Utils # # @api private module Link - include Kernel - module_function def link_src_dst_dirs(src_dir, dst_dir, command, link_dir: false) diff --git a/Library/Homebrew/utils/link.rbi b/Library/Homebrew/utils/link.rbi new file mode 100644 index 0000000000..0b88a48d16 --- /dev/null +++ b/Library/Homebrew/utils/link.rbi @@ -0,0 +1,7 @@ +# typed: strict + +module Utils + module Link + include Kernel + end +end diff --git a/Library/Homebrew/utils/shebang.rb b/Library/Homebrew/utils/shebang.rb index 2fdb721cad..762ddf5804 100644 --- a/Library/Homebrew/utils/shebang.rb +++ b/Library/Homebrew/utils/shebang.rb @@ -6,8 +6,6 @@ module Utils # # @api private module Shebang - include Kernel - module_function # Specification on how to rewrite a given shebang. diff --git a/Library/Homebrew/utils/shebang.rbi b/Library/Homebrew/utils/shebang.rbi new file mode 100644 index 0000000000..9cdb0b2007 --- /dev/null +++ b/Library/Homebrew/utils/shebang.rbi @@ -0,0 +1,7 @@ +# typed: strict + +module Utils + module Shebang + include Kernel + end +end diff --git a/Library/Homebrew/utils/shell.rb b/Library/Homebrew/utils/shell.rb index c469c3ad94..47a22749de 100644 --- a/Library/Homebrew/utils/shell.rb +++ b/Library/Homebrew/utils/shell.rb @@ -3,7 +3,6 @@ module Utils module Shell - include Kernel extend T::Sig module_function diff --git a/Library/Homebrew/utils/shell.rbi b/Library/Homebrew/utils/shell.rbi new file mode 100644 index 0000000000..b860bc1190 --- /dev/null +++ b/Library/Homebrew/utils/shell.rbi @@ -0,0 +1,7 @@ +# typed: strict + +module Utils + module Shell + include Kernel + end +end diff --git a/Library/Homebrew/utils/svn.rb b/Library/Homebrew/utils/svn.rb index febc3dee9a..e6f9fcd228 100644 --- a/Library/Homebrew/utils/svn.rb +++ b/Library/Homebrew/utils/svn.rb @@ -8,36 +8,36 @@ module Utils # # @api private module Svn - include Kernel - extend T::Sig + class << self + extend T::Sig - module_function + include SystemCommand::Mixin - sig { returns(T::Boolean) } - def available? - version.present? - end + sig { returns(T::Boolean) } + def available? + version.present? + end - sig { returns(T.nilable(String)) } - def version - return @version if defined?(@version) + sig { returns(T.nilable(String)) } + def version + return @version if defined?(@version) - stdout, _, status = system_command(HOMEBREW_SHIMS_PATH/"scm/svn", args: ["--version"], print_stderr: false) - @version = status.success? ? stdout.chomp[/svn, version (\d+(?:\.\d+)*)/, 1] : nil - end + stdout, _, status = system_command(HOMEBREW_SHIMS_PATH/"scm/svn", args: ["--version"], print_stderr: false) + @version = status.success? ? stdout.chomp[/svn, version (\d+(?:\.\d+)*)/, 1] : nil + end - sig { params(url: String).returns(T::Boolean) } - def remote_exists?(url) - return true unless available? + sig { params(url: String).returns(T::Boolean) } + def remote_exists?(url) + return true unless available? - # OK to unconditionally trust here because we're just checking if - # a URL exists. - quiet_system "svn", "ls", url, "--depth", "empty", - "--non-interactive", "--trust-server-cert" - end + # OK to unconditionally trust here because we're just checking if a URL exists. + system_command("svn", args: ["ls", url, "--depth", "empty", + "--non-interactive", "--trust-server-cert"], print_stderr: false).success? + end - def clear_version_cache - remove_instance_variable(:@version) if defined?(@version) + def clear_version_cache + remove_instance_variable(:@version) if defined?(@version) + end end end end diff --git a/Library/Homebrew/utils/tar.rb b/Library/Homebrew/utils/tar.rb index fe65d32999..ced4ed5234 100644 --- a/Library/Homebrew/utils/tar.rb +++ b/Library/Homebrew/utils/tar.rb @@ -6,36 +6,34 @@ module Utils # # @api private module Tar - include Kernel + class << self + TAR_FILE_EXTENSIONS = %w[.tar .tb2 .tbz .tbz2 .tgz .tlz .txz .tZ].freeze - module_function + def available? + executable.present? + end - TAR_FILE_EXTENSIONS = %w[.tar .tb2 .tbz .tbz2 .tgz .tlz .txz .tZ].freeze + def executable + return @executable if defined?(@executable) - def available? - executable.present? - end + gnu_tar_gtar_path = HOMEBREW_PREFIX/"opt/gnu-tar/bin/gtar" + gnu_tar_gtar = gnu_tar_gtar_path if gnu_tar_gtar_path.executable? + @executable = which("gtar") || gnu_tar_gtar || which("tar") + end - def executable - return @executable if defined?(@executable) + def validate_file(path) + return unless available? - gnu_tar_gtar_path = HOMEBREW_PREFIX/"opt/gnu-tar/bin/gtar" - gnu_tar_gtar = gnu_tar_gtar_path if gnu_tar_gtar_path.executable? - @executable = which("gtar") || gnu_tar_gtar || which("tar") - end + path = Pathname.new(path) + return unless TAR_FILE_EXTENSIONS.include? path.extname + return if Utils.popen_read(executable, "-tf", path).match?(%r{/.*\.}) - def validate_file(path) - return unless available? + odie "#{path} is not a valid tar file!" + end - path = Pathname.new(path) - return unless TAR_FILE_EXTENSIONS.include? path.extname - return if Utils.popen_read(executable, "-tf", path).match?(%r{/.*\.}) - - odie "#{path} is not a valid tar file!" - end - - def clear_executable_cache - remove_instance_variable(:@executable) if defined?(@executable) + def clear_executable_cache + remove_instance_variable(:@executable) if defined?(@executable) + end end end end diff --git a/Library/Homebrew/utils/tty.rb b/Library/Homebrew/utils/tty.rb index 991c79336b..01ebc1b214 100644 --- a/Library/Homebrew/utils/tty.rb +++ b/Library/Homebrew/utils/tty.rb @@ -5,122 +5,116 @@ # # @api private module Tty - include Kernel - extend T::Sig - @stream = $stdout - module_function + class << self + extend T::Sig - sig { params(stream: IO, _block: T.proc.params(arg0: IO).void).void } - def with(stream, &_block) - previous_stream = @stream - @stream = stream + sig { params(stream: T.any(IO, StringIO), _block: T.proc.params(arg0: T.any(IO, StringIO)).void).void } + def with(stream, &_block) + previous_stream = @stream + @stream = stream - yield stream - ensure - @stream = previous_stream - end - - sig { params(string: String).returns(String) } - def strip_ansi(string) - string.gsub(/\033\[\d+(;\d+)*m/, "") - end - - sig { returns(Integer) } - def width - @width ||= begin - _, width = `/bin/stty size 2>/dev/null`.split - width, = `/usr/bin/tput cols 2>/dev/null`.split if width.to_i.zero? - width ||= 80 - width.to_i + yield stream + ensure + @stream = previous_stream end - end - sig { params(string: String).returns(String) } - def truncate(string) - (w = width).zero? ? string.to_s : (string.to_s[0, w - 4] || "") - end - - COLOR_CODES = { - red: 31, - green: 32, - yellow: 33, - blue: 34, - magenta: 35, - cyan: 36, - default: 39, - }.freeze - - STYLE_CODES = { - reset: 0, - bold: 1, - italic: 3, - underline: 4, - strikethrough: 9, - no_underline: 24, - }.freeze - - SPECIAL_CODES = { - up: "1A", - down: "1B", - right: "1C", - left: "1D", - erase_line: "K", - erase_char: "P", - }.freeze - - CODES = COLOR_CODES.merge(STYLE_CODES).freeze - - sig { params(code: Integer).returns(T.self_type) } - def append_to_escape_sequence(code) - @escape_sequence ||= [] - @escape_sequence << code - self - end - - sig { returns(String) } - def current_escape_sequence - return "" if @escape_sequence.nil? - - "\033[#{@escape_sequence.join(";")}m" - end - - sig { void } - def reset_escape_sequence! - @escape_sequence = nil - end - - CODES.each do |name, code| - define_singleton_method(name) do - append_to_escape_sequence(code) + sig { params(string: String).returns(String) } + def strip_ansi(string) + string.gsub(/\033\[\d+(;\d+)*m/, "") end - end - SPECIAL_CODES.each do |name, code| - define_singleton_method(name) do - if @stream.tty? - "\033[#{code}" - else - "" + sig { returns(Integer) } + def width + @width ||= begin + _, width = `/bin/stty size 2>/dev/null`.split + width, = `/usr/bin/tput cols 2>/dev/null`.split if width.to_i.zero? + width ||= 80 + width.to_i end end - end - sig { returns(String) } - def to_s - return "" unless color? + sig { params(string: String).returns(String) } + def truncate(string) + (w = width).zero? ? string.to_s : (string.to_s[0, w - 4] || "") + end - current_escape_sequence - ensure - reset_escape_sequence! - end + COLOR_CODES = { + red: 31, + green: 32, + yellow: 33, + blue: 34, + magenta: 35, + cyan: 36, + default: 39, + }.freeze - sig { returns(T::Boolean) } - def color? - return false if Homebrew::EnvConfig.no_color? - return true if Homebrew::EnvConfig.color? + STYLE_CODES = { + reset: 0, + bold: 1, + italic: 3, + underline: 4, + strikethrough: 9, + no_underline: 24, + }.freeze - @stream.tty? - end + SPECIAL_CODES = { + up: "1A", + down: "1B", + right: "1C", + left: "1D", + erase_line: "K", + erase_char: "P", + }.freeze + + CODES = COLOR_CODES.merge(STYLE_CODES).freeze + + sig { returns(String) } + def current_escape_sequence + return "" if @escape_sequence.nil? + + "\033[#{@escape_sequence.join(";")}m" + end + + sig { void } + def reset_escape_sequence! + @escape_sequence = nil + end + + CODES.each do |name, code| + define_method(name) do + @escape_sequence ||= [] + @escape_sequence << code + self + end + end + + SPECIAL_CODES.each do |name, code| + define_method(name) do + if @stream.tty? + "\033[#{code}" + else + "" + end + end + end + + sig { returns(String) } + def to_s + return "" unless color? + + current_escape_sequence + ensure + reset_escape_sequence! + end + + sig { returns(T::Boolean) } + def color? + return false if Homebrew::EnvConfig.no_color? + return true if Homebrew::EnvConfig.color? + + @stream.tty? + end +end end diff --git a/Library/Homebrew/utils/user.rb b/Library/Homebrew/utils/user.rb index 238cbdd864..c2db57e637 100644 --- a/Library/Homebrew/utils/user.rb +++ b/Library/Homebrew/utils/user.rb @@ -10,9 +10,10 @@ require "system_command" # # @api private class User < SimpleDelegator - include Kernel extend T::Sig + include SystemCommand::Mixin + # Return whether the user has an active GUI session. sig { returns(T::Boolean) } def gui? From d49100487944014a2c8a554e1eff257addddf460 Mon Sep 17 00:00:00 2001 From: Markus Reiter Date: Sat, 10 Oct 2020 18:17:55 +0200 Subject: [PATCH 14/15] Remove helper script. --- Library/add-typed.rb | 27 --------------------------- 1 file changed, 27 deletions(-) delete mode 100755 Library/add-typed.rb diff --git a/Library/add-typed.rb b/Library/add-typed.rb deleted file mode 100755 index 6860b9e7b2..0000000000 --- a/Library/add-typed.rb +++ /dev/null @@ -1,27 +0,0 @@ -#!/usr/bin/env ruby - -require 'pathname' -require 'open3' - - -Dir.chdir "#{__dir__}/Homebrew" - -files = Pathname.glob("**/*.rb").reject { |path| path.to_s.start_with?("vendor/") } - -files.each do |file| - - content = file.read - - if content.start_with?("# typed: ") - puts "Already typed: #{file}" - next - end - - ['strict', 'true', 'false', 'ignore'].each do |level| - puts "Trying #{file} with level #{level}." - file.write "# typed: #{level}\n#{content.strip}\n" - - output, status = Open3.capture2e('brew', 'typecheck') - break if status.success? - end -end From 73dc98d1c75bfd9b05bc3504d12356e420038b2b Mon Sep 17 00:00:00 2001 From: Markus Reiter Date: Sat, 10 Oct 2020 19:29:49 +0200 Subject: [PATCH 15/15] Adjust RuboCop rules for Sorbet. --- Library/.rubocop.yml | 20 ++++++++++++++++++-- Library/Homebrew/.rubocop.yml | 4 ---- 2 files changed, 18 insertions(+), 6 deletions(-) diff --git a/Library/.rubocop.yml b/Library/.rubocop.yml index 7653a9495c..3a453e8c50 100644 --- a/Library/.rubocop.yml +++ b/Library/.rubocop.yml @@ -12,7 +12,12 @@ AllCops: DisplayCopNames: false # enable all pending rubocops NewCops: enable + Include: + - '**/*.rbi' Exclude: + - 'Homebrew/sorbet/rbi/gems/**/*.rbi' + - 'Homebrew/sorbet/rbi/hidden-definitions/**/*.rbi' + - 'Homebrew/sorbet/rbi/todo.rbi' - 'Homebrew/bin/*' - 'Homebrew/vendor/**/*' @@ -62,6 +67,10 @@ Naming/HeredocDelimiterNaming: ForbiddenDelimiters: - END, EOD, EOF +Naming/MethodName: + IgnoredPatterns: + - '\AHEAD\?\Z' + # Allow dashes in filenames. Naming/FileName: Regex: !ruby/regexp /^[\w\@\-\+\.]+(\.rb)?$/ @@ -264,9 +273,14 @@ Layout/LineLength: ' "~/Library/Application Support/', '"~/Library/Caches/', '"~/Application Support', ' was verified as official when first introduced to the cask'] -# Enable once we are using `sorbet-runtime`. Sorbet/FalseSigil: - Enabled: false + Exclude: + - 'Taps/**/*.rb' + - 'Homebrew/test/**/Casks/**/*.rb' + +Sorbet/StrictSigil: + Include: + - '**/*.rbi' # Try getting rid of these. Sorbet/ConstantsFromStrings: @@ -302,6 +316,7 @@ Style/ClassVars: Style/Documentation: Exclude: - 'Taps/**/*' + - '**/*.rbi' Style/DocumentationMethod: Include: @@ -313,6 +328,7 @@ Style/FrozenStringLiteralComment: Exclude: - 'Taps/*/*/{Formula,Casks,}/*.rb' - 'Homebrew/test/**/Casks/**/*.rb' + - '**/*.rbi' # TODO: remove this when possible. Style/GlobalVars: diff --git a/Library/Homebrew/.rubocop.yml b/Library/Homebrew/.rubocop.yml index 1cc3d8f301..e63152052f 100644 --- a/Library/Homebrew/.rubocop.yml +++ b/Library/Homebrew/.rubocop.yml @@ -45,10 +45,6 @@ Naming/PredicateName: # Can't rename these. AllowedMethods: is_32_bit?, is_64_bit? -Style/FrozenStringLiteralComment: - Exclude: - - '**/Casks/**/*.rb' - Style/HashAsLastArrayItem: Exclude: - 'test/utils/spdx_spec.rb'