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 8fb2269987df3..f9c347d6e8b07 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 5d8b89ed5aedc..829b1da1182e3 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 6caee8c39a862..2240161dcc13a 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 a5e374018494e..f7c42748743c7 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 ed6f319730e36..6b4e7f0529228 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 f4f51be48d688..de78b09472591 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 6dd3768aeb06f..982f15c482fa1 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 e39f0328b11fd..f4b32a21fd4a4 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 a86b3232eddd1..bee610cfb5702 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 1a6b019002820..50c2b325e58a9 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 053294e7ffda6..1695a257a5e5c 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 9cce7ed341e09..b0da73866f02a 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 01cbec77f474f..c2ec38df44544 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 3d81ab65b0cf9..f6b350a82dec1 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 c22c132d46e89..1fe7cf108fa52 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 a1f817ca7e93e..a8c7d55450a62 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 48b2452455dc6..545389369c0fb 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 03fded17ff368..50749b2bdd81b 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 164731c166145..caa2fcc7ba3ce 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 9cd6b36239424..79b3acaadf875 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 7ec14f611e1be..c2fa6543c54e7 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 6e22874a46333..73c655a52bc34 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 66453f2dba695..3824296cbd181 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 c11cb9cc4b2ee..226a01e1ccd7c 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 5925b86f4b5e2..083c612447e53 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 c70f2658dc401..9b5b5f157ed74 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 c672057d8c110..00d170fda7ce0 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 f6f8882c71ca6..0b7f21c8ecd98 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 8447c67c1d4ab..aed47644e1a39 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 30588c6236db7..e0c26a6dc8cdd 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 3f0da05eb0dde..5c9dd0dbd5852 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 f8f73e70212fe..c52e0361da015 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 9a92a6506f772..901cb5ac07900 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 a013388e25899..c67cac6d3b13a 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 be8f348205aad..a236a602e0f9d 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 1feeda027ad35..68e8dbe181dca 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 00b385e64727e..0d924446de300 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 e82690d84bc72..bd69c57a41fa8 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 058ea5052139b..976ae18d68fa5 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 6967f922c7e6b..80485f23d677d 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 cab1b48dbc3b3..09bde070a795b 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 264c04b7a3d55..a201c4fe30196 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 2d1dcc5706277..1cd57f9060e5c 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 bb2b9327934e5..8858922a0bad0 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 8946c3b58eb51..8ec015a931b4c 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 e2b3841c365ba..ab9c1b4dc0b1e 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 38795bffe3ba7..5c62cb73ea60e 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 81d3acc7dee4e..613841f7c3c82 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 4a5556725895a..cf4ca79a0d6b7 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 b15b9acc907ca..7ccc3937b7ffb 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 c9f1dda0f0493..6deeb84f8e997 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 3d731b1d6c58f..fb7944300094a 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 c190161fa6f57..7ae14dc7d5337 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 dafc4e57747ee..0c80dcef21e8d 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 bbeffbf730804..bea10bf630576 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 e42208a31b541..d9b33518325ad 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 fee20683db701..721ac40842fab 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 291256519af3b..8087f21faac30 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 683057a13f21a..e4e0797f72547 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 a532bb521e3fd..a5ad63d19c771 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 edd33fc2dfbf2..2091f48f95f3e 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 c392d508a3791..2c473cda1efba 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 208464eda9d16..859d650a9ce0d 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 231648c09f49d..ff35a1f2d6bd6 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 c1e066bb1a467..79e0dccc444da 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 fc3cb601888e8..1d07156306b89 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 89a85cd20a19f..8011193348a1b 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 e83cb4dd390ba..daf75368949ee 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 c2e981301bedb..2898883ef68bf 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 04a71b9e3ea83..9f3532037889f 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 dda4326ba6a7a..8cbc9c37a2871 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 16c1dbd81c123..12e8a575ff325 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 2f8b2c8cfd3cb..6ea0099400924 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 1c9ebc3600a51..c29a798192e32 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 f8d40aadd6e28..d1a29f61d7d88 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 d9933d992c13b..26d8d7fc794e7 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 f49f3a06200a7..da47113ab521f 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 60cfbdb44e1a7..22c146f31906f 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 a3721b0530169..f78636609564b 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 cccfac6c9ed07..209533ba77487 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 eba210668d8b1..d1f0e57098ce2 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 fac89d764e234..9dc523b05d0a0 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 770fc680a3d84..d35da3f51fa70 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 53d58b996121b..a43658b182c6b 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 e67831d383b10..645ea8a0e4f92 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 6efeeada6aa5b..a5a43851b6cf1 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 cf65def619934..be2693b239111 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 8c12de10bb42e..4fcdd23f2792b 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 f015ee9de80ff..b5e625e6f4b6d 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 a90a7ea942c8e..14e74c7af0b0e 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 73dd826e9ab11..76dd66323ee71 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 bfd85738273aa..79c0485bf4618 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 723647ecfdc6a..92aaaf97792e4 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 8cee5976004d8..47f804df23393 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 f31d234c42fa8..65f9998dee45e 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 96137a1a17b61..3f38a25fddd8d 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 01ad2bd278a29..18392648a8019 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 84c6c62342808..7a3219513d75f 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 d35ef9b7d11fd..9cf117c777f42 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 bf0f424ae1877..9c53b917265fd 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 ab5d2579a2a5f..1a779dcbdfe61 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 362bd1f7cc328..dad9e9b22d32b 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 179c4c17a4df4..913cfbc5291fa 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 240d145dfa0e1..3a5270806547f 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 a0964ad7ceab8..b53574fd0a045 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 e300df269ec36..2af781142cc4e 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 f25dc0bb06f3e..45b609ca53cc8 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 01fd584ad7fbc..b451a24f7b7b5 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 211f1c0c2f69f..042c39b36d84c 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 037a8cc752285..93595a9a3dda8 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 4c8ef458f73ac..957b175b859e1 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 1a51405ecd199..cbd284fc2e5fe 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 66fe520342476..c0294392d73c4 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 29fd687555ca6..cbcb36a495b14 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 d0519bf4ac06f..562d9a9f1c948 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 2a99942008e48..a5f8ade23aa17 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 5c1e143d21a06..e9616f1749a77 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 43eb385c2cf41..5d10f9f6553fc 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 6d306af2b00fb..9baa5cec4e4d1 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 b40b299af2fee..0947d43039782 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 acd6849ca5061..bcad2600c1068 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 8d3f2d7b70f1d..2c147bb6d666a 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 0807ee16bed62..d715e89a52d9e 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 2b62240616d4b..576c780dc4f36 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 1768227b79e02..d84468f5fd8c5 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 2ec520a89409f..ad48c17792e43 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 3e55a883372a0..40f5875f9f840 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 347467641e012..f2d8b1c4e187d 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 df28df344a49e..f400036c78b9b 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 73909a422950f..4345227585a02 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 4c796ecd7a52d..6ecc3c7fc97d3 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 e6f148d8fba9f..d5c5458ad9ce3 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 5fab7725494e9..0ca4458d927d1 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 7b0a7220cfaa0..1b4885a36a3c0 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 a4f1d47a5d8e5..5bfa660543755 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 1c9d62a08f6f4..93e4c12936f5a 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 2464cd1f44510..1bd005c8efd6a 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 33a15d1c1f239..94389f2b8e478 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 56a099d12e0ae..6c01e4172abfb 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 0e2d0cbca964e..df6f428ff121c 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 2cfe6c600b869..41a0117c6e50c 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 b727164827420..080bcd16361ee 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 8a56ebb6caa04..77bf7b1576363 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 5209dd26c39de..b8f6a93016743 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 a140e10b27fb5..e0a5877b9a3c2 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 a8fb5fb682985..c2ece9f42e89f 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 b63dc064bb077..8b2f91243636f 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 4654d4e580770..bdfe4a33983b9 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 d14810694aeda..04870d0a234c2 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 ee9e3964ad600..c1678d15965ae 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 5bb5461c0938c..21122e4c35f03 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 0e5bb0289489d..5e521a4367c38 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 a786035a8e5df..bdbed56112935 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 82a0faa8a4838..0f08e86d9fc8c 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 b03fb503e18a4..3619e88c0209b 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 ba6b77fb05d21..4a23f7a6c2b3d 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 8afd2cdcba2b4..abb4673f6bed7 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 275d69b308394..ab64aeac969ff 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 ca19f896f5498..50ffe89799d52 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 6cbc3709e5892..feecc8373a878 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 46407ed5bbaea..60c354af1e967 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 e2754c51b7a88..fad219e565680 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 6382cbca0c3cd..54a5b9af0325d 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 b88aa44c731b0..6c2d285c13d49 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 89dfe083c2350..3d036f41d6fe9 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 07d79190d5523..2764048ce0389 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 998cef14a2013..98507958db58a 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 29a2284c7fe2f..c98d46b0e6af7 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 7420c2003bba0..80b8dbab0feaa 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 3423f90e30060..a1239e0aa8c03 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 c90523abce052..4e2d3e7e25956 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 6ba21bed47e26..8f980de1c6e84 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 c6c7b47af67c5..3f72f021c3584 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 fb282e5f80da5..e9b9e4b157f4a 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 6c9fd09ceebb7..a9ecedc589c56 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 e005a7e4c37a6..dc4bb5a06b871 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 d66585b966a81..aa53caaf476d1 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 3df802b351c8e..543d75186330d 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 4d7ef44a9b31e..3415e03e6e304 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 cb928bc577914..7c2f6e37ce076 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 85b2f857e7f45..1d45047eff528 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 f58ae2fa9c4b7..6018ae1e65696 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 698a131ba0f18..9929ce1531c11 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 f10ede111ca9c..f64973e172766 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 ef18d85018395..b5e7ccaec1d94 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 20ba27eb714fc..b15b49ee971a6 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 fb91ecc63a81f..c5a0a29b8b475 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 e090e413bd1c8..631e9ec65b245 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 89fe49ea29caf..d177768026cda 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 cea445b3d71f2..0a17cdc96a92a 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 c8dfa5df5cb94..7790c32fed97d 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 78c4097a125d9..40c4007f89544 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 55d32abf5bde3..86b675293b699 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 3effc9eaa211f..0c4c0d7219243 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 67186565cdeee..566b4e020f08c 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 3abb9b9ab3564..2c40d0b7fc6a5 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 045e1c241876a..ce279b1f801a6 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 76266028c3971..7288d85e12ff3 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 13477d5f6d6c7..4e4f014d0890e 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 3cfb769484192..a1f35adc14ad4 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 568daa945272b..0e3bece7d21e2 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 26da075aa8f68..8b3d5439a21e8 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 16e46f2784e60..7b587570bed55 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 50c052723e54f..087f5f5510480 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 7512cabb88b03..428177807e679 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 98825c6698ed9..b4af45936c10d 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 e4b5dcc4864ff..e88b9ef2cc851 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 f22b836239b50..6d11bca3581f6 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 c5ce307a661d0..e109887bbc900 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 d05f445ea554f..c2c6b0f60b437 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 d702e7df69ab6..c336427a40bbf 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 b64c7b9312435..c0e0c33965899 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 2b9f166981967..4e48e08874989 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 064c422245c4a..35950630b2517 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 747906d200fb6..278cd0f3e9078 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 35913baf0aabc..56c3b158756b5 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 9d0835167d501..17a6fd1227de9 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 e2367a0c11b63..6ce7864e6ac31 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 8afbc139742ff..30dfaeef20131 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 4bbe7e054be10..b30a714bf63e2 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 7545096485882..c90e9ca474e0b 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 495b538bf0f96..56a8ced8608b8 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 ff6d7aec57c94..09cfbe68a3923 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 21080e1fe78f3..f5d36dfc84f8b 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 5ba8ae7e0f873..173bfcc385532 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 d59dcbeca287b..fb52d3705679e 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 b9426c9d5ef4e..653fc2d190acb 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 6dddc2a8f98cc..75bd37fed598b 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 0fc9822e77a7e..2e318d7d5b45b 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 b73abbdcf22db..58a3f23994dc4 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 61385fc5c97d5..58e4f580bee9d 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 d94fb033bb553..066e48505e573 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 ee2c60f12e23a..1109fad7a1dfd 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 4fa49e135b1e5..8e2b4e3e5f1be 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 e7d197638e4e8..e5349464edcb5 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 fe06aea8c563d..5a520cf8a33fd 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 85bf7f77b6ff0..35cac0c902b00 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 b092c72bc42a7..ebefc4b5f4c6f 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 f23d41e4a1d19..07a3382eba295 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 8e93626dbeac8..0bb64629dbc12 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 7b321b1b97071..5e3cdd073ac68 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 2107c83884b4f..6330de53832f8 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 03e20040e8acc..3c1c0372b3ec3 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 4fe4204f6a34a..3e8904e5eb0ef 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 21d646c0b3332..230e2a8cac8ee 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 cfad51c4c4ca3..c019b67f09710 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 590c0e0d774df..4e3bc56c9e10e 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 355e7e8cd4e36..30c48e55d7f40 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 b16178cac6fb1..661725a6d2174 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 ddef1ee7ee2c3..fb287efc33b87 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 b5ba7e450ecee..a3fda016eff8c 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 7b4bd6371937f..c3bca7f316ef9 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 e1562909aa255..6b96d548c0310 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 00a14f98b8d20..fa2e49945211b 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 e51d656280480..badc19f507f7e 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 2184287f539ca..a905cbca7a9b4 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 5d25692fd1bfc..b4307b71d935b 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 30e073513c2a2..7720cc0d2ba42 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 e9278821e0514..62c23532505c0 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 1b1b6347c6c20..aa643d9ffec5c 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 518a7ce645ee4..1a2ed81272679 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 a5af426c05c76..47f3801dd58da 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 12ed0de45cda1..7d118fdc39817 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 0f76a99d2b08d..154c805a1ae5f 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 4a3ab97092a91..9f214a40baf0a 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 00058e64d32f0..b4aa28f00db03 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 dae8d90b07c9e..6de89386a57df 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 35b6e374cfc4e..9f2425ca284a9 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 5db3b5767aa43..5efcd96d814ae 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 787196472a530..15ea337b269d2 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 de7222f907a3f..7b05358af4766 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 476d30f7524aa..633768d8055c5 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 e6829a57aecc5..eceb486719a64 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 6bc4edcc4bc4b..999c916b70c07 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 9289aa73b3d68..b208bf5b690f3 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 dba823599dc40..b9fbaf8242bfc 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 60c96494087a5..1bb8f462eb403 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 0635fce91bfed..a70d6f3bc82ab 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 c1edebfa6d931..ab53b4fd48d50 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 308e94ea0a86c..0038423b36ab8 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 5fb0fbe0e6167..504b5c134f31a 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 d9a88c65842d6..b55deed223bf0 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 a92b386ecea15..0096bb9c91f45 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 cceda91550fcc..cd9ce82328600 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 f8130f75890b8..4390f50675e91 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 bcdfabdf78fe1..bdf2d9e93329a 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 5c0f5cb9c593a..647c485b732b6 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 2c53218564556..2947a85a3ab0a 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 82cf08b5c155f..f25e05c43db31 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 e3c1de519f4fd..221c0c4ca6ccf 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 da6698fc53678..3ea619e2dbb3e 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 fa619816d9e02..d90cdb21f5405 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 3e624df8ae963..ceba5b264982e 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 1b9303918f6ff..3986d0b940d32 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 b77e6427419f9..4eb794a1bb15d 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 58e109e3f0d7b..131f49e6a83e1 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 6ddbc3e6d74db..af407f1c44951 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 85c36f1aec18c..cd6faa271bc66 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 eab9176f3df8e..318299549f20c 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 5389f38a19f33..df7ae3481c96f 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 9ad337890ccf6..aa6d675154afa 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 c6909a0fa03d4..96e7ff28ecb15 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 b4aea114426e8..15da2d0e5a8bb 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 9c06e9a02c5f3..71298e98e7901 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 82e0a09f6621b..7ad0ad531e869 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 8598bbf462e6d..f0042d78c2868 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 fb3ddd9659431..9d45d5f5ef49d 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 dba7f17b5fb36..914244d5d3801 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 32d403e21d8f1..d68d67897089c 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 717537cbc15fc..6297b5d6283d8 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 13531047669ae..53ec1ee33b5df 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 fdcfa86573999..05948f3a2beb7 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 7c71590d283a9..7d7a31b179d27 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 75ddba1483946..f30b7082ff52b 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 2067ca287f4a1..91e94da6094f6 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 9165643948976..367f7e6947070 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 b6c38e128b95c..1ff0ab1712b21 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 613a51fc81a32..0a0d097c25bd0 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 521621711e613..67569587f51bb 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 ecd67d52704d8..c33726de0efca 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 4bc1e446ca70b..2421b1d1bb35b 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 ac124aa09cf7b..667f765433c2d 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 ea63270b27dc0..05b5d08ad9656 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 8b577b8c82d6e..66e38c3576951 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 17d406957b1c1..f00d3fc402297 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 ac891273a0904..6018da8102a0c 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 8c8140190c457..902ed12f38572 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 1bdf422dca546..b26b5a77092ca 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 2b4a0399d81b0..22f851472b7cf 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 964fa4f7736f5..ad959e7e7b34c 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 fb9b7b0119cb9..a67d52b10e1f1 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 4f53e485f85cb..fe16e5a14128e 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 c81ef65c51208..3714b71407637 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 d24e7c4ba7367..8a82706e19d88 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 8ea44995ebce2..ace7e5d9c437e 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 6ab77998ed28c..90f2bccdb1b0f 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 9948086f22a65..74bcc6b2abcbd 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 c72818dc38dd1..df31c5f4550e3 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 d5410b25fda1f..466dd95e0951a 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 aa6d196ffee70..4111365455fe0 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 5e8cb9e122b36..52beb1686f2d2 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 a696d21252180..a1e29a544b690 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 f93127af9f0b8..5a1e5edb15efa 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 72a6c68ff2455..fa1e952300044 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 396c7e25a6d06..72dbe477719ae 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 4f0303fe68b73..2c2ecd69bc2d7 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 b9253521b5007..c38d393f28864 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 3f2520d5745eb..3c661f155ceb1 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 3e9ddc85f2c3f..73c80beacdd05 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 4c10516effe51..6fa15dbff6be7 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 336d32ebfd239..88c40d5c24552 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 f9de6660df201..5517897b14b94 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 ea9f8a2306a3d..258265213caff 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 c858aa03b5d22..278bb621dbca9 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 88f017a1702a1..7bbabfa73313d 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 18187a8447299..bc8c64b50140d 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 ea2b525ee431d..5a244e64507fe 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 bdf05f93bb766..c60bf8261523e 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 c69de457bbf72..69c76c0aef186 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 716c3d269ccb5..749b8a215705e 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 b19ed5a7d9a36..a518cb8db086a 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 b486d3dc27e2a..9e4a229ed1507 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 4981f12b53e42..2c3199b81b1cf 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 9d6250c235a20..bbf58536d7b72 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 c8804764a2af5..17d2fee3461bc 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 c4d8dae4cddd1..c38fed883d42f 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 a42ee092d0d59..49df817c37bdf 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 f367a86dbb75f..df09e17ca1fe8 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 1c20ce5a14156..fd535699bc83a 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 8e9d0d33f31f0..2ed8d45282ad1 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 8ade3fe0c0807..f7cca8d6970d1 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 0782226c009cd..b5805975c65df 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 aef8164268261..7a6a75c318539 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 ff30e3eaa2b17..502e9adc393ad 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 3aadfb95d7094..c8a899cc450a0 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 7d78b855d40ec..e81979622b503 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 98858392d103c..21bed29170214 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 0934b436fa5eb..61d00d6a0809d 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 cd74821087426..c8aa68b26461c 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 5f85cfbb89be5..575a27eeddb25 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 d1e0a007bf5ac..5075767249b70 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 1f746aa6e0230..b763cd03b5951 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 d4bb330119746..a6d8545cb0ca4 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 4358f1f2b6c71..6b7b8251f8446 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 dc9d81320f6e9..d4499ee065310 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 dbec98dba9d12..54fb9352a2e02 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 d6ba1a9332936..a519a2cdbba62 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 04b644a398f84..a744caeab6ed9 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 6013a1a1b7f92..b9d4fbc5561a7 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 8371568fa095e..9a4a0f527f492 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 6f9cec4cfd5fd..40075a947b11d 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 f34834c2ffce4..4fe5c98538cfe 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 97e1dde8da138..533b3e851560b 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 ba6ddb6ebe153..29655d120a439 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 b2b748bb035f1..e5c5651439ff7 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 98e97c0c34f5a..c05f109723ae5 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 7646552eecdb8..a869967a5be3f 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 8a6b7a5452c21..85f0de5cc3440 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 f4de0f313944d..3b818ac900c14 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 90ceefab9f152..0e03da62659d8 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 8e179e70dc0d1..e0102bd9d1fd0 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 73ac1a98ba1b8..6dcccff830112 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 7d80c6405a1c0..3c12c14ac1779 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 220acaca833b6..a3a18a9caf1da 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 9dc0800c9c081..aa2d6eab14ee4 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 067b6c30e4502..759b899d67b1f 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 f76d258faa998..97607aa56875d 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 6e21cd85f8bb7..2d2aca942b9e5 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 b49101e63c29a..93e5ba21eaec7 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 41b818df6ced5..be6af752fa6c7 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 f81c4fc26f28b..577f49ac7959e 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 fda9de60d1349..35edda879dcc4 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 56ce23cff1c56..d44e759673172 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 d939a8ea36902..41b35478f04f0 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 1e51ef0831bdd..767306c7596da 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 318a79d47b29c..f11a9a870f521 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 7f24d8087cb3e..fb77e88d56c08 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 79f21dcfb4294..f077a2b37200c 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 eddbac5b6cb49..f0675de9493b4 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 d4454ad4cb9fb..7ee1de87d5037 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 57e5066e133fd..f839e5571b77c 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 0ea79d8e4262f..d1e3b06d1162a 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 6a578b5f7c0f8..3b811f07b8323 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 9f7dfe437a8d1..9cb7dc7a13dc3 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 3bf74d1c839c6..c7f21adb2a186 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 907a98c18bd3f..f971548bd6125 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 03c9aa8d14a02..6ed4157c5dcbb 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 646e483994bf6..fbba19daf4a26 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 22113414dc275..a3beae3e702e5 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 8b7388f94ca0b..5fc65ced98697 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 b8fa914e4d3c1..30417d0edd0d4 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 b23883d0cda4c..83db786b8fe46 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 a71b6666ef4aa..e164640615fb3 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 de47a9d290c45..2b6b53c01173c 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 a0ab6c2141511..5fdf3f491d073 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 29fe98e8c2e7a..942083a1c9f7e 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 9b9adc7606468..634b84b56161c 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 91ff124c09694..06f419608c4dc 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 8eb08f59ae6c3..b3db036f73deb 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 1fbc2420e759d..437df8a7759b1 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 89307f7c33e77..33f3781d7b88e 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 a377e3bc2473c..5af0d7dbd24ba 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 8283d08cb0f19..099eb3b1e9647 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 0ccee1b2c26c1..8c6fb892d7e57 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 c375ba8dc8013..1da9c0e5719b5 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 735775fc304f5..82cc34e6926d3 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 9a91960363e29..c0f5cfe76814d 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 eda4461f642a0..68357d4b85bb5 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 b3b552249e861..3a7827c85324a 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 2a61f8d476ab4..6163265a85a1d 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 f7db07f96ef76..7d95739ea9e20 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 e5bc95da361fa..79f8a57e85e11 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 8bfede1f2b5f3..f7693171f81a9 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 0365b3423becd..2b122fed4c319 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 ed0e9d459136c..a31554950ac4e 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 add9b9dc56251..4cb1ad17fcd6e 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 230046770c24e..149eea835f2cf 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 d783a48b4c7a3..67420059c3079 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 6bff500bbcf2e..1feb893391ec1 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 e94e9a8ce10ca..5cfacd2b2ec45 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 19087acd9479a..49ae668d9cbaf 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 52cd1bf0ca2e2..21957b37dcf83 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 7546690b0a3ce..543ff90b4d443 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 49d86dae22e70..fc91356cfbda2 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 7cf983f0536ef..61144b3679dac 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 1f630838553b8..3a5371e3b2a59 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 ae2cce3f913f6..31b14aa7f4903 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 cd50589dc6b8c..7ce9297f4c45a 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 0f1e7da7daba4..1013d9fd44a8c 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 6b0f9f4a38fde..497780f47059f 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 86fa8061e2598..297a2ab32cf35 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 41836b9a1c115..c956d089e0fb0 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 cb8e021523d80..c1708d69467f2 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 b0ca9658f543e..6badf576a7d39 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 18f2fc162c7f6..2a1bd90fc3b53 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 229edcc59895a..5cde00d829e80 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 645e666ca81f7..6fab5cc170f9d 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 d0f0334632ebf..d8fa5cb4253d0 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 5351f93e54fe3..1f913b67017e6 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 e6a7d8fd14a3c..18d390ee740e5 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 35ecf6331842b..bc68dc9ec03bf 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 f94229f27920c..5774a6d59cf1c 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 3828d4d95e1f7..3022fc323f896 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 585d7ac84e30a..7c051d9d1fd98 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 cffb1f780600c..9fe4fbd77b019 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 5ae6ed8f10156..1dfa416953b11 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 2ae1624b35b34..6850fd749f6f2 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 ccd7317e61fd5..8b93c92fc3918 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 467a1be08d891..f344ba7703707 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 0e68acc85aee8..a3faaff5896f1 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 32ce90aa2b2d8..7862cfd51934a 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 f5c330615a0d3..8158d1c1143d2 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 3a9137657c9a8..e930e00b7ac91 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 66d90c58a3ad3..f5549f6f9e722 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 e715d056715da..d034437fcdad8 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 412d5f5b8557b..86cd911675430 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 059685af36ad6..71733db4b2cc0 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 8c34b5988ca89..65fc182c15dcb 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 d9424987dabaf..e00f472d27a15 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 a3b1cf671c58e..ac7c1f66437a8 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 3b14811f7c716..a9b3919a42fd2 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 edb411f312c34..259921fcebc31 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 caf977f526201..93f1a60174385 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 c46715d5163ee..f97d2c29db436 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 a4d29f84cf4b0..b6490e825d7d5 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 77129641a1a54..48c7653d5fdf5 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 fa744f248aed7..635c35c030bb0 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 cd1683aedc902..12f5db7dad04f 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 0ef5993221e3c..43f7dea99252f 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 a7b5045bd43bb..b15bf205cdcd0 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 2635e67f173aa..92f5c332ef3d5 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 486ab8f822715..e98face38aae1 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 33c8f7a975f73..779c995eb3a59 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 46ce8ad5deba6..8acc50baefb50 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 313a67a61b2cf..9f094157ee2e2 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 b0ed28814d0b8..6423eefed4c12 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 7dc8945810fc4..7904eca061a16 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 7f3109ca403e6..b1a7a7f624d70 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 bba23b7b8174a..f3ec58552e509 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 cb15b9cb1bb4d..f8c363ad44c2f 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 b70a67acc36eb..29af7187e1d46 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 0b6ce6e42700f..d678b332ccfd2 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 ea8c263fc75da..6f8acbb94576f 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 058573ac02a85..769d95544f21b 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 5919a2f6a5a39..1bda2bd9f9bd6 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 2f94f13100ee6..d7cd44dbc2ce4 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 51c34fe222d02..527581f5f5945 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 a6d351d9032f9..cb2f7502470d8 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 3650b7d44bf4f..7d9d71cd8bb78 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 4c15cbe966113..519f366c4292d 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 63bb8f509fbe1..7021ea70eb58e 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 675ac09e93ec8..666854d9721d0 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 54d66f74ec182..437f8a62779d2 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 8dde1ed83e951..fb049969e7031 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 2c454e14d5be1..df5bed7910581 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 b6aedd83ea06b..84e735de632e9 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 f63454712aad4..540b82c51d747 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 35648422623d1..c9e7898dc50cb 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 eea6caab79cd7..3d0bb60203ecf 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 a49cbfd8ee0ef..237a769b3def9 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 490373c7d234e..10a9d0d30a1f9 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 b94d8a7ef1070..4d0cf035d1d55 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 7fce3ed4bfeef..f0bdd98109807 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 668548fb7fcf1..d2276fdb714b3 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 70ba941c785fb..ef100add419bf 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 ee56b3cbe5bfa..4962a756031a3 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 67748ae1386dd..650fbb046ed12 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 e12a8522d15e8..ff438b222b3d4 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 7ed48a2d1fcf9..d989c260f9c48 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 8c8faee07975e..fce8954712ec0 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 8f5a3382f0ed7..0a5a6bb7b4bec 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 655c3fa0ec179..9a3b495165d2e 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 ade9717205174..ba4becf50cd75 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 a34a3e21c8e93..ad42715a3c342 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 ed676f5588742..9be2e1288dd12 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 245f1fde6874a..046a8cbf4cf49 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 45b5a48ffbd77..f88fd0d3decaf 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 43b1cf9a395b4..724a3ff0b94c5 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 decee40fafd89..65d00d5d79a07 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 d8b7873b80e38..1df6117ad1958 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 d50f993e4764e..b568e53000a64 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 d03ca17843a70..e2c1bebcac1c0 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 c90155e08575f..e54e91a5ffc77 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 999d38f547e4b..9d79d3e7da6f0 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 14893931651d8..090a091a0c04d 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 be3faa7c85082..e1aa11d67723f 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 7a33683d46607..d637d960bc4a0 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 d073534313781..548d0e8457947 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 9f139fc059ca5..f03b919a9dc64 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 8321777bab824..1b1341067c62a 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 25f6955c919c9..b4a672191ffd2 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 08763e33cb3ed..4ec13cc57b7ae 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 f00c58addd516..a2ab44b943fb5 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 0cd0b2070d642..e16af54ec324d 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 2beb3c4570edb..61b153a3e96d2 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 4686084bceb9f..4f3ab714dbb72 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 07da34497f0d4..b9b5ae7c60ab9 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 5bcefadd4a2bd..aa673a2339bb4 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 c3a1c4b7ea068..b0e5b8a6c8c42 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 ec772097eda43..3c606c86ca4f0 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 a5855a9cef8cb..6b16ffb6c4cc7 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 01aa00434ed7d..e1afb7ec8e132 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 1f730949a61f6..315066bc5ce13 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 1acbf44802d2f..c524f7d342de2 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 69552cfd785ee..02ae9e8a9a479 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 9cdc95f9a3451..08d090750125c 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 3d025d0b5c4a7..51324ce3e79e7 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 81b22e319baa9..33e4931f7e27e 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 2a9132e76810d..fdeb97091a744 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 1d71661f24837..5e6ecdfbe997c 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 e4e98c2074be6..54edd4b9e0264 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 5168cf552263c..eafc466f315f8 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 df88019fa54ec..2e8a96ea6a869 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 c12c4eb06a319..5563f6079e22b 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 d9e96bc7b9b73..e52fb82670945 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 666374c879d90..1d39e2d70c9d0 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 f083b5cb66585..1663e42c429d8 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 4bbee4693b16e..9bd0dfee50af9 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 07eab3a255fec..29523d832d653 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 4ad0dc02a483f..bc6af40e28a32 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 d0230d13a0490..df6b0ef6689f4 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 f0b8e25cd68d3..f0021f0f45e3f 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 f11823c52c4d3..848323c00f637 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 69a5f27c174a5..54530b609572f 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 c2dc0b3d45ccc..f4a3990e896d9 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 bbe9bff8747e2..21d1b29790d2c 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 42bb98c1fd9b1..ae13bf021fa98 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 52000a549db24..8fa4a72a0d1f6 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 667dff55b6a4f..bee845842961e 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 2c0164c9f9504..0fb6f90c1f6e4 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 24e83443ac0d8..bbad80d12f26c 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 866230a70399b..81f46c177b40c 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 8fef2f67f1573..31c8c3b7fe6f2 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 0a0c27eeefbe6..0799686914cd0 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 d9be457801d4e..734ee4545a1de 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 ac08d294701f3..dc6b9b10603da 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 5fd14791c4f3b..bd2c17becaa8c 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 3f5f6c07a818c..120294835aec9 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 cdc65adb9832b..47713b155dc59 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 513ff7a503cab..2b91937619a5c 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 8bb4266ad77d4..e938c843c77af 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 fb348213aca2b..9e8d214f70144 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 04320edf5dad4..84412d61d51cf 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 4e1f416529933..0e8bcebb10d81 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 0a6aec0f0b7bd..b42513f75d3d7 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 bffafdfe7e71c..0e84ed74a5ec3 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 03e83da67204f..04e371cb4700f 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 82ef571953dc0..453fb312d2065 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 bdaed0ddd105c..c16c13ad5c978 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 d20fedddf57d1..6fcd00f439c9e 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 c1782015850d5..30077967f049a 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 bbd6aca88a54b..b8ca07410d558 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 5ae60e6662d1a..6c34ca88389e4 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 343da43781b1b..f7ea9243e440b 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 9389c0a311a84..aa80fddd0c627 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 590f27a1d094c..42a065faf2a32 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 060ceb2d426a8..4c81962a16cda 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 ac631f38ccd4a..b2c3212ad9591 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 217eb792d7a2f..4893a272ce30f 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 79c3cf2496929..3907b96acb876 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 5a59f162b7e69..8dbffe0b4c467 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 174373d9994e9..6fab0b50f1b23 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 57ca637fa4bbc..f9520b83c82e2 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 51dec2b1dc860..9e9c53385b764 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 68d95cf90a0bb..5bbd943203253 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 b44ca71ea29e6..7bd4d9ae1ea88 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 2026d157a6054..f5c2df857ffa9 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 366ed35586a1e..9a0996a2d8a99 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 79145e02c133b..4edf101613d8f 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 82cfc98c7329f..63e28de011147 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 63e3346bdbbc3..11a35d7ba591f 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 54630bb5d6f9d..150c54778457d 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 3bee724891299..2612434283446 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 1b615b2467c20..96bf43ad531e9 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 b8c49817ec4c0..e8a4ba1b87382 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 8ca98945a3935..c37c9cdc2eeea 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 7db151cc7835a..664797732b17d 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 de0869a70066b..a2480b34031f0 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 e5ed4a57c958b..84ed8df539eda 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 52c0e6aeb6a32..05a433122c601 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 f9e94964894c5..c8aca6bebd2fd 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 fa97096d12e9b..aa54d406a1783 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 e17a4bf440edd..1c21b93ab746a 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 4d88dfedca1d9..14fb5bdcff64b 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 b864fe662ed87..fa180493f6e03 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 b13b458d20dae..3baab3f2d42c8 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 185eab89a5c47..8c32c83198472 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 7ef64aecd6d6a..806e4a3f7710f 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 7e4126585adf7..cae19a846e126 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 eacaf971fc5d6..eb29d478d507d 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 aa44899d50e95..de6ed40659cd5 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 05f15cb809213..b33878dc4db86 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 65729b23bc7d7..4d83a58898dfa 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 b70068c9535c7..6ce7bc0758d3b 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 c10a661f9a46e..1bc6f59f97d01 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 fa8a1de35b5f1..4b0e2abbba076 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 af94ef6f528b4..e716a7624f06a 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 3f332ed5aac1e..efd09385716ba 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 e3c1aa8cbb9ca..d7fff66b2a95c 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 1e671f67a517a..6d605258105f2 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 fff1fc48b287f..1708cd39cafcd 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 737e14067652a..1259ac7c4a2b3 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 fe1bddbaa0995..383da9fb79da7 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 ee8bedd610d72..61344d094e807 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 ffcb3a8de11d5..018496b036cc0 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 483104bce62b5..0f22b9f67a5a4 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 969532d0c76e4..59e4dcc645b7c 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 f328579fa29a0..78167a4d877cd 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 b9661112625a2..488f8c1f04ada 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 8c38a4588479b..4b9632a389f67 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 f20e7bc9edbeb..ae6bfdc2c5861 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 fd4e59101413f..260bd9c50cd3e 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 a5750a430c90b..83ae2ddf683bd 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 d76d37b6c785d..633db2e1c1827 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 dd175cb4fc586..4ef084f3e1182 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 81fea8a0076d3..05d98bec5a2ec 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 2f6d5747c7074..a8f1c574e5b7e 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 3a11d6be0e502..8654a496067fd 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 21cfb5393387b..3cce050983a04 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 c10ef5bf5a8e2..0afabf03867bb 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 a19e8ab8f57c3..a2b76acb80bd8 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 0d3f0e5420462..460987283ab71 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 06a3c94704261..1f0c84ab27e46 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 cedab622285d6..098e782546632 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 4eea2dca3f7b7..5bb778d298fc2 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 6a1a839ce5de8..3d2fe4146204b 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 5863686c3f576..8d5be00c2a15f 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 4756a361dba28..afc1da7e3296f 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 83142a1b51893..746b4212b766b 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 5d85184ef384b..47c518537f3ac 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 fcdc6b9a1109b..cfabcb0921bc9 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 2f0af35aab685..16bb4c6234735 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 fa61dd9a64766..a5b3cbd69d962 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 5bda3ac2c82e0..33bb7cf2e0fec 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 7b8a5823ade9b..e1d9981980576 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 f1bbc3d37e334..41d24cc5125f5 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 3960272dbcf1d..c308451b19d20 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 e36f40493a724..0be3154ee113b 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 d74cb57d27680..6a1280050518b 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 45ac7ecf1e0e9..cf36fea0153da 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 f3b323eaf0415..10f4abde6c3c9 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 0f3bfbe6a6fde..84377c4757194 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 6fdb4557d757b..f7e059ffb0a95 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 34278b48e4d52..965fca8cf240c 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 406ffc7561305..dabc1816dea31 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 646d53765a64f..0442c620a2205 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 abe5e23b8cfbc..d187cbc19d059 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 5ba1692eff287..e4a15344b36c1 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 27ff8dafc027e..1a99de2914c0c 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 76d8d7e7c0214..d3f159eaf9060 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 7010a4d93f925..6f019f9baff46 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 940e80a4f9327..6dd863daab29f 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 47080e6419c35..2587e7bc52355 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 19ef9594e0c77..18c083059ee97 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 be2570a0c3ed1..b5859c174eeef 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 8be3998c18d99..eaa659e8ae52f 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 fc5cf48c8c370..2dd4b4c657395 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 caf4a1c73a622..256ef05e54e4d 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 2e4ec4b266529..245a2aef0eacb 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 6cb369c4142c9..f6cc4282c9ee7 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 ca7f4ca662f64..24b25fd89f822 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 db6836796f098..760bd801475fa 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 aeebb8c14aabb..3d18361e9bd65 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 b005657977a71..e52610016fc31 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 a9c6769f709eb..b68490628bf09 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 d6199bd9a3841..493883e8b9d1e 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 bc48fcdd7590c..8d37dbf57e89a 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 5c5506eecd13e..fef1692deb25d 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 b4005db52d8d1..355a1c1838c86 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 d4263d126f89d..78db926675890 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 434a76a948f8d..0db95af39a557 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 a81f15bab1e16..126985010d43c 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 8eebf17da5e06..2b9ebaa58df35 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 dc321a464406f..ae12a37704429 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 8a3594f144def..7b30d119c4f59 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 738146a787e65..b3831b731dff6 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 ebf4a493bd95e..0f85ad24dbce2 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 f6da64b973889..042f9bf01a8c0 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 e24a60a655181..18921910b8085 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 a74b68add5108..cd4932c915492 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 76a28e27b0051..c29066ff78885 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 c612b13f03ed7..09386a1771954 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 5e5e59333947e..9ddea401fb6b6 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 6f3caa475c845..3c034d0086102 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 78795f94cc2f9..d1baca44bb541 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 ae11929b32c45..078762a1247d8 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 8e8c5d9236d40..857ac134e6f6d 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 f4f11389d1830..28870a2d78d7a 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 ffc41369aee9c..f6befa95af293 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 c579fff51c844..dd27c5de48adc 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 bfcbc24216cff..055fe3c96ef7a 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 cca36c8360ba5..588c35d3b2118 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 87a9a7c7ea781..eb960583375ec 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 897bbb57fe19a..d3eacd60bc736 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 f83ca75ea8bde..3314db26d89b9 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 544e57bc1b5d9..af153426b5a9f 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 fa1d27fb3099f..330ffbeba8e9d 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 f03f614379403..0ec9310910a54 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 1951d5e56fd30..290e0f85501b5 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 6c7739ff7100d..4e785e7dab928 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 41ffe71132d3e..7f8495b343698 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 dcce91d8b46b0..7ea5474e7a0a9 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 d2fa37b05ac21..acacade36088a 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 d4844080bd294..61c24e745f28f 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 01c02171dcfd9..5530a27b4e445 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 da6ec91ec7749..f4ec8b7f369c4 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 b3569cad8017d..0b7ff0ee58348 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 32b259e2b80a7..6f728041f05ae 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 c26862dc4163e..53c7089252b83 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 977852b6b28db..efaf326603164 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 04f4cdf3bc6cd..ab18e0c6460b4 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 436e0c15effc3..4076f1a553f17 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 9540b4029bef5..f76069f3b9317 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 47a2a7f6b9026..8d6e73cd1ca6e 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 3bb3c4d6b10fa..f50957a124d98 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 9eff311a83765..79d25aaa5b2b2 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 f36fa1f580e80..00b0831288e96 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 668272df85fba..8e83fa057a537 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 36e4d506e4b19..66c2f17f8fb34 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 06d8dd98884ec..0e8c68b593624 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 234dd802b2059..1d2e8de5ce4a1 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 57e99908f01b6..a592cce52f537 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 ea7f2216b84e2..c8f165fdd609b 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 5458141748c25..7b0a0a53bdd84 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 c704f13a47e8b..23257c050273d 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 8f576788d59f5..4797fbaa24621 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 8fc3a70476c2e..ee05a876a185e 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 d3bfcaf87e0f3..70c3e5f70927b 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 8517b140e5a23..1336b856decf7 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 687917cea4bb7..a27663e4d5772 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 006fcfb7414ee..e14de8e993255 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 7e0d3b64d28da..4538c8e8d9000 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 8c3463be0840f..5d97e6f2226af 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 17b55ed7a653b..1a0538d9428b8 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 df779331912c1..5aca009f538d8 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 89138e57798b9..e914d41baf430 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 8dad4a4436229..20bf5057e816e 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 5863b0742285f..71e2dd66a2006 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 9de9120b023de..c74166d77194c 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 5ec16b48ab320..5fabbbbfc8854 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 0c90b36605a72..dd3355825b199 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 25c30973dd89f..7e7b407bcd3a4 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 54c6a6bd8273f..b45755a428cdc 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 ea7f943a20451..1c869d998e732 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 69422eb660053..2f5f4794a3ba6 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 29ac0c182d883..86f50d2a38a99 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 e58e556c7c68c..09db337f84e29 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 0dbd0d1334d49..82f258eee4b3d 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 e56867e16ffba..985a294bece82 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 c6c1c9b8f382b..9524db7218cd3 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 ec47aa0c94165..1b8ee163e1ab7 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 4f517cc8de338..db53efb9ee55c 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 6427193ce8459..f7c16566c0d9d 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 60e88c60e1c63..7835e93f281db 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 0a98b06728069..cdb688b5ac16a 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 ad1ebe7744569..e2f592d431f38 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 f9605c0708a19..b18a203d112ec 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 111a9d6ab23c6..3dc7bf64019a9 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 ae3489b6c8b75..9d94ae0a813df 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 8b3c6bb37e96b..8078390f60b39 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 25dc1c9940ffc..bd08714def0d7 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 eac4823c64c90..b721b3191caa0 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 eda3f66afcb2d..d9bb621bad1ac 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 7476b6b8439c0..f1a017334b698 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 3b607cdb201c9..fc8e483b20f10 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 0b956b88e0e92..694f659804485 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 3e126746916da..762ddf5804216 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 d8e77a8dd906d..4d9af01ff123b 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 9420e343d3b9d..64467c291e9b2 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 1492b08319839..239a63ca6da65 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 c60c834da41d9..df29bf9adb052 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 774d1933be72f..3360f99cb2d0d 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 d40a7b607293d..0973a95be4e92 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 cb1edd4e74876..4c22d2f28c784 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 7b63523b43c44..f2b74a35e4863 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 0000000000000..6860b9e7b212c --- /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 d68d67897089c..21105e71f4e8e 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 b6d0be9a5a86b..0000000000000 --- 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 0442c620a2205..0000000000000 --- 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 0000000000000..16c5bedd624c2 --- /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 aa80fddd0c627..a072aafb5e08b 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 @@ 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 @@ 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 @@ 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 @@ 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 @@ 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 @@ 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 @@ 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 @@ 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 @@ 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 @@ 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 @@ 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 @@ 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 @@ 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 @@ 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 @@ 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 @@ 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 9d94ae0a813df..f2827a89794d8 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 @@ def initialize(errors) #
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 @@ def inreplace(paths, before = nil, after = nil, audit_result = true) # rubocop:d 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 @@ def inreplace(paths, before = nil, after = nil, audit_result = true) # rubocop:d 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 0000000000000..6a9aa275deb74 --- /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 | 480 +++++++++--------- Library/Homebrew/utils/shared_audits.rb | 3 + Library/Homebrew/utils/spdx.rb | 3 + 5 files changed, 258 insertions(+), 247 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 35950630b2517..6192391b782ea 100644 --- a/Library/Homebrew/download_strategy.rb +++ b/Library/Homebrew/download_strategy.rb @@ -11,6 +11,8 @@ 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 @@ def parse_basename(url) # # @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 546b4c8c62787..0000000000000 --- 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 db53efb9ee55c..7229bd2e2a2da 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 - - @curl -end +module Utils + # Helper function for interacting with `curl`. + # + # @api private + module Curl + module_function + + 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 + + @curl + end -def curl_args(*extra_args, show_output: false, user_agent: :default) - args = [] + 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? + # do not load .curlrc unless requested (must be the first argument) + args << "--disable" unless Homebrew::EnvConfig.curlrc? - args << "--globoff" + args << "--globoff" - args << "--show-error" + 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 << "--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" + 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 + 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 << "--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) + args + extra_args end - if result.status.exitstatus == 16 # Error in the HTTP2 framing layer - return curl_with_workarounds(*args, "--http1.1", **command_options, **options) + 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 - 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 + def curl(*args, print_stdout: true, **options) + result = curl_with_workarounds(*args, print_stdout: print_stdout, **options) + result.assert_success! + result 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, "/") + 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 - # 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 + def curl_output(*args, **options) + curl_with_workarounds(*args, print_stderr: false, show_output: true, **options) + end - return unless strict + # 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 - # 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 + # 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 - lenratio = (100 * secure_details[:file].length / details[:file].length).to_i - return unless (90..110).cover?(lenratio) + 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 - "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 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 + def http_status_ok?(status) + (100..299).cover?(status.to_i) + end 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 694f659804485..ad69344ca3cc3 100644 --- a/Library/Homebrew/utils/shared_audits.rb +++ b/Library/Homebrew/utils/shared_audits.rb @@ -7,6 +7,9 @@ # # @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 64467c291e9b2..693689f3072c6 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 f4a3507bd8c05..0000000000000 --- 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 4d9af01ff123b..c469c3ad94f66 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 @@ def from_path(path) 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 @@ def export_value(key, value, shell = preferred) 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 @@ def profile 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 @@ def set_variable_in_profile(variable, value) 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 @@ def prepend_path_in_profile(path) 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 @@ def csh_quote(str) 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 65203892fc3cd..0000000000000 --- 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 693689f3072c6..3ae60ea72cbd0 100644 --- a/Library/Homebrew/utils/spdx.rb +++ b/Library/Homebrew/utils/spdx.rb @@ -8,6 +8,7 @@ # # @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 b2081d874340d..0000000000000 --- 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 239a63ca6da65..febc3dee9a606 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 @@ def version @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 67b8a68ee8e5e..0000000000000 --- 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 3360f99cb2d0d..991c79336b74e 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 @@ def with(stream) @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 @@ def width 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 @@ def truncate(string) 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 @@ def reset_escape_sequence! end end + sig { returns(String) } def to_s return "" unless color? @@ -105,6 +116,7 @@ def to_s 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 ef1997fafdb84..0000000000000 --- 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 0973a95be4e92..238cbdd86480e 100644 --- a/Library/Homebrew/utils/user.rb +++ b/Library/Homebrew/utils/user.rb @@ -10,7 +10,11 @@ # # @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 @@ def gui? 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 cc0c9848ed5b7..0000000000000 --- 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 8078390f60b39..1a726d5939383 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 762ddf5804216..2fdb721cade95 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 df29bf9adb052..fe65d32999ff0 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 0c4c0d7219243..92ab956137d3e 100644 --- a/Library/Homebrew/dev-cmd/pr-pull.rb +++ b/Library/Homebrew/dev-cmd/pr-pull.rb @@ -352,7 +352,7 @@ def download_artifact(url, dir, pr) 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 72cca22f8351a..f5fc66d3cc01c 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 2266c178bb5dc..065cf9c65f716 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 b4af45936c10d..c8c45fa88ba9c 100644 --- a/Library/Homebrew/dev-cmd/typecheck.rb +++ b/Library/Homebrew/dev-cmd/typecheck.rb @@ -6,8 +6,6 @@ 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 @@ def typecheck_args 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 @@ def typecheck 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 @@ def typecheck 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 b3db036f73deb..0000000000000 --- 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 ad972b3e1e657..63c1956acf273 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 f8d8da44729c5..eff7c8d27e070 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 f4ec8b7f369c4..a5a4482ef20b7 100644 --- a/Library/Homebrew/test/utils/svn_spec.rb +++ b/Library/Homebrew/test/utils/svn_spec.rb @@ -44,17 +44,11 @@ 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 | 27 ++- 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 | 210 +++++++++--------- Library/Homebrew/utils/user.rb | 3 +- 38 files changed, 353 insertions(+), 298 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 0000000000000..2314e9c8f3358 --- /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 0000000000000..39061bb7980c9 --- /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 0000000000000..3ea83b62b9836 --- /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 0000000000000..0a0adb9756caf --- /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 0000000000000..4851c5b1274ae --- /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 0000000000000..976ddb4a1298c --- /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 0000000000000..b6156fa2e8e7d --- /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 0000000000000..c8eda0640b29f --- /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 0000000000000..f2226a40f4044 --- /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 154c805a1ae5f..6c93d2a4fa746 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 3ea619e2dbb3e..6f70e60597e85 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 0000000000000..1557c3b769d56 --- /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 0000000000000..9db873c525c58 --- /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 0000000000000..5208127284167 --- /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 0000000000000..9be98f1896413 --- /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 0000000000000..b6f31646830cd --- /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 0000000000000..85a546f554d48 --- /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 f920abb0a5649..0000000000000 --- 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 6ada3bacffef6..0000000000000 --- 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 f4b85f1f7e6b4..0000000000000 --- 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 fe1388b13af31..536e027e915ac 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 33f3781d7b88e..8ad098df1ad59 100644 --- a/Library/Homebrew/system_command.rb +++ b/Library/Homebrew/system_command.rb @@ -7,26 +7,25 @@ require "shellwords" require "extend/io" +require "extend/predicable" require "extend/hash_validator" using HashValidator -# Make `system_command` available everywhere. +# Class for running sub-processes and capturing their output and exit status. # # @api private -module Kernel - def system_command(*args) - SystemCommand.run(*args) - end +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) + def system_command!(*args) + SystemCommand.run!(*args) + end end -end -# Class for running sub-processes and capturing their output and exit status. -# -# @api private -class SystemCommand include Context extend Predicable @@ -248,3 +247,7 @@ def warn_plist_garbage(garbage) 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 5af0d7dbd24ba..02230bb9b4e55 100644 --- a/Library/Homebrew/system_config.rb +++ b/Library/Homebrew/system_config.rb @@ -5,12 +5,15 @@ 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 f76069f3b9317..774d29615657b 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 c8f165fdd609b..f421ee1be8cda 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 7e7b407bcd3a4..a31550b75def9 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 f2827a89794d8..d130871167ecd 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 0000000000000..02542091d2c68 --- /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 1a726d5939383..8078390f60b39 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 0000000000000..0b88a48d161d5 --- /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 2fdb721cade95..762ddf5804216 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 0000000000000..9cdb0b2007155 --- /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 c469c3ad94f66..47a22749de8da 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 0000000000000..b860bc1190ed9 --- /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 febc3dee9a606..e6f9fcd228d4d 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 fe65d32999ff0..ced4ed5234ea8 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 - - def executable - return @executable if defined?(@executable) + 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 - 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 validate_file(path) + return unless available? - def validate_file(path) - return unless available? + path = Pathname.new(path) + return unless TAR_FILE_EXTENSIONS.include? path.extname + return if Utils.popen_read(executable, "-tf", path).match?(%r{/.*\.}) - 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 + 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 991c79336b74e..01ebc1b21487a 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 - - sig { params(stream: IO, _block: T.proc.params(arg0: IO).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 + class << self + extend T::Sig + + 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 + end + end + + sig { params(string: String).returns(String) } + def truncate(string) + (w = width).zero? ? string.to_s : (string.to_s[0, w - 4] || "") 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) + + 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 { 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 - end - - SPECIAL_CODES.each do |name, code| - define_singleton_method(name) do - if @stream.tty? - "\033[#{code}" - else - "" + + SPECIAL_CODES.each do |name, code| + define_method(name) do + if @stream.tty? + "\033[#{code}" + else + "" + end end end - end - sig { returns(String) } - def to_s - return "" unless color? + sig { returns(String) } + def to_s + return "" unless color? - current_escape_sequence - ensure - reset_escape_sequence! - end + 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? + sig { returns(T::Boolean) } + def color? + return false if Homebrew::EnvConfig.no_color? + return true if Homebrew::EnvConfig.color? - @stream.tty? - end + @stream.tty? + end +end end diff --git a/Library/Homebrew/utils/user.rb b/Library/Homebrew/utils/user.rb index 238cbdd86480e..c2db57e637e34 100644 --- a/Library/Homebrew/utils/user.rb +++ b/Library/Homebrew/utils/user.rb @@ -10,9 +10,10 @@ # # @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 6860b9e7b212c..0000000000000 --- 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 7653a9495c112..3a453e8c50b6b 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 1cc3d8f3010a5..e63152052f711 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'