Enable rubocop-sorbet
.
This commit is contained in:
parent
17544fc275
commit
c2a0ba8e87
@ -264,6 +264,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
|
||||
|
||||
# Try getting rid of these.
|
||||
Sorbet/ConstantsFromStrings:
|
||||
Enabled: false
|
||||
|
||||
# Avoid false positives on modifiers used on symbols of methods
|
||||
# See https://github.com/rubocop-hq/rubocop/issues/5953
|
||||
Style/AccessModifierDeclarations:
|
||||
|
@ -4,34 +4,30 @@ require "irb"
|
||||
|
||||
# @private
|
||||
module IRB
|
||||
@setup_done = false
|
||||
def self.parse_opts(argv: nil); end
|
||||
|
||||
extend Module.new {
|
||||
def parse_opts; end
|
||||
|
||||
def start_within(binding)
|
||||
unless @setup_done
|
||||
setup(nil, argv: [])
|
||||
@setup_done = true
|
||||
end
|
||||
|
||||
workspace = WorkSpace.new(binding)
|
||||
irb = Irb.new(workspace)
|
||||
|
||||
@CONF[:IRB_RC]&.call(irb.context)
|
||||
@CONF[:MAIN_CONTEXT] = irb.context
|
||||
|
||||
trap("SIGINT") do
|
||||
irb.signal_handle
|
||||
end
|
||||
|
||||
begin
|
||||
catch(:IRB_EXIT) do
|
||||
irb.eval_input
|
||||
end
|
||||
ensure
|
||||
irb_at_exit
|
||||
end
|
||||
def self.start_within(binding)
|
||||
unless @setup_done
|
||||
setup(nil, argv: [])
|
||||
@setup_done = true
|
||||
end
|
||||
}
|
||||
|
||||
workspace = WorkSpace.new(binding)
|
||||
irb = Irb.new(workspace)
|
||||
|
||||
@CONF[:IRB_RC]&.call(irb.context)
|
||||
@CONF[:MAIN_CONTEXT] = irb.context
|
||||
|
||||
trap("SIGINT") do
|
||||
irb.signal_handle
|
||||
end
|
||||
|
||||
begin
|
||||
catch(:IRB_EXIT) do
|
||||
irb.eval_input
|
||||
end
|
||||
ensure
|
||||
irb_at_exit
|
||||
end
|
||||
end
|
||||
end
|
||||
|
@ -2,7 +2,7 @@
|
||||
|
||||
module UnpackStrategy
|
||||
class Zip
|
||||
prepend Module.new {
|
||||
module MacOSZipExtension
|
||||
def extract_to_dir(unpack_dir, basename:, verbose:)
|
||||
if merge_xattrs && contains_extended_attributes?(path)
|
||||
# We use ditto directly, because dot_clean has issues if the __MACOSX
|
||||
@ -46,6 +46,9 @@ module UnpackStrategy
|
||||
end
|
||||
end
|
||||
end
|
||||
}
|
||||
end
|
||||
private_constant :MacOSZipExtension
|
||||
|
||||
prepend MacOSZipExtension
|
||||
end
|
||||
end
|
||||
|
@ -4,6 +4,8 @@ require_relative "load_path"
|
||||
|
||||
require "rubocop-performance"
|
||||
require "rubocop-rspec"
|
||||
require "rubocop-sorbet"
|
||||
|
||||
require "rubocops/formula_desc"
|
||||
require "rubocops/components_order"
|
||||
require "rubocops/components_redundancy"
|
||||
|
@ -1,4 +1,4 @@
|
||||
# frozen_string_literal: true
|
||||
# typed: false
|
||||
# frozen_string_literal: true
|
||||
|
||||
# Add your extra requires here
|
||||
|
Loading…
x
Reference in New Issue
Block a user