mirror of
https://github.com/Homebrew/brew.git
synced 2025-07-14 16:09:03 +08:00

- Change name of rubocop warning - Disable linting on remaining offending lines - Add todos to move lines with disabled linting checks to extend/os in the future
16 lines
541 B
Ruby
16 lines
541 B
Ruby
# typed: true
|
|
# frozen_string_literal: true
|
|
|
|
require "simulate_system"
|
|
|
|
module Homebrew
|
|
# TODO: Refactor and move to extend/os
|
|
DEFAULT_PREFIX, DEFAULT_REPOSITORY = if OS.mac? && Hardware::CPU.arm? # rubocop:disable Homebrew/MoveToExtendOS
|
|
[HOMEBREW_MACOS_ARM_DEFAULT_PREFIX, HOMEBREW_MACOS_ARM_DEFAULT_REPOSITORY]
|
|
elsif Homebrew::SimulateSystem.simulating_or_running_on_linux?
|
|
[HOMEBREW_LINUX_DEFAULT_PREFIX, HOMEBREW_LINUX_DEFAULT_REPOSITORY]
|
|
else
|
|
[HOMEBREW_DEFAULT_PREFIX, HOMEBREW_DEFAULT_REPOSITORY]
|
|
end.freeze
|
|
end
|