Fix Sorbet/TrueSigil exclusion
This commit is contained in:
parent
719c892f64
commit
a218ebb6ca
@ -301,7 +301,6 @@ Sorbet/StrictSigil:
|
|||||||
Sorbet/TrueSigil:
|
Sorbet/TrueSigil:
|
||||||
Enabled: true
|
Enabled: true
|
||||||
Exclude:
|
Exclude:
|
||||||
- "Homebrew/standalone/init.rb" # loaded before sorbet-runtime
|
|
||||||
- "Taps/**/*"
|
- "Taps/**/*"
|
||||||
- "/**/{Formula,Casks}/**/*.rb"
|
- "/**/{Formula,Casks}/**/*.rb"
|
||||||
- "**/{Formula,Casks}/**/*.rb"
|
- "**/{Formula,Casks}/**/*.rb"
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
# typed: false
|
# typed: true
|
||||||
# frozen_string_literal: true
|
# frozen_string_literal: true
|
||||||
|
|
||||||
# This file is included before any other files. It intentionally has typing disabled and has minimal use of `require`.
|
# This file is included before any other files. It intentionally has typing disabled and has minimal use of `require`.
|
||||||
@ -9,6 +9,8 @@ gems_vendored = if required_ruby_minor.nil?
|
|||||||
true
|
true
|
||||||
else
|
else
|
||||||
ruby_major, ruby_minor, = RUBY_VERSION.split(".").map(&:to_i)
|
ruby_major, ruby_minor, = RUBY_VERSION.split(".").map(&:to_i)
|
||||||
|
raise "Could not parse Ruby requirements" if !ruby_major || !ruby_minor || !required_ruby_major
|
||||||
|
|
||||||
if ruby_major < required_ruby_major || (ruby_major == required_ruby_major && ruby_minor < required_ruby_minor)
|
if ruby_major < required_ruby_major || (ruby_major == required_ruby_major && ruby_minor < required_ruby_minor)
|
||||||
raise "Homebrew must be run under Ruby #{required_ruby_major}.#{required_ruby_minor}! " \
|
raise "Homebrew must be run under Ruby #{required_ruby_major}.#{required_ruby_minor}! " \
|
||||||
"You're running #{RUBY_VERSION}."
|
"You're running #{RUBY_VERSION}."
|
||||||
@ -25,7 +27,8 @@ require "rbconfig"
|
|||||||
$LOAD_PATH.reject! { |path| path.start_with?(RbConfig::CONFIG["sitedir"]) }
|
$LOAD_PATH.reject! { |path| path.start_with?(RbConfig::CONFIG["sitedir"]) }
|
||||||
|
|
||||||
require "pathname"
|
require "pathname"
|
||||||
HOMEBREW_LIBRARY_PATH = Pathname(__dir__).parent.realpath.freeze
|
dir = __dir__ || raise("__dir__ is not defined")
|
||||||
|
HOMEBREW_LIBRARY_PATH = Pathname(dir).parent.realpath.freeze
|
||||||
|
|
||||||
require_relative "../utils/gems"
|
require_relative "../utils/gems"
|
||||||
Homebrew.setup_gem_environment!(setup_path: false)
|
Homebrew.setup_gem_environment!(setup_path: false)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user