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',
|
' "~/Library/Application Support/', '"~/Library/Caches/', '"~/Application Support',
|
||||||
' was verified as official when first introduced to the cask']
|
' 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
|
# Avoid false positives on modifiers used on symbols of methods
|
||||||
# See https://github.com/rubocop-hq/rubocop/issues/5953
|
# See https://github.com/rubocop-hq/rubocop/issues/5953
|
||||||
Style/AccessModifierDeclarations:
|
Style/AccessModifierDeclarations:
|
||||||
|
@ -4,12 +4,9 @@ require "irb"
|
|||||||
|
|
||||||
# @private
|
# @private
|
||||||
module IRB
|
module IRB
|
||||||
@setup_done = false
|
def self.parse_opts(argv: nil); end
|
||||||
|
|
||||||
extend Module.new {
|
def self.start_within(binding)
|
||||||
def parse_opts; end
|
|
||||||
|
|
||||||
def start_within(binding)
|
|
||||||
unless @setup_done
|
unless @setup_done
|
||||||
setup(nil, argv: [])
|
setup(nil, argv: [])
|
||||||
@setup_done = true
|
@setup_done = true
|
||||||
@ -33,5 +30,4 @@ module IRB
|
|||||||
irb_at_exit
|
irb_at_exit
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
}
|
|
||||||
end
|
end
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
module UnpackStrategy
|
module UnpackStrategy
|
||||||
class Zip
|
class Zip
|
||||||
prepend Module.new {
|
module MacOSZipExtension
|
||||||
def extract_to_dir(unpack_dir, basename:, verbose:)
|
def extract_to_dir(unpack_dir, basename:, verbose:)
|
||||||
if merge_xattrs && contains_extended_attributes?(path)
|
if merge_xattrs && contains_extended_attributes?(path)
|
||||||
# We use ditto directly, because dot_clean has issues if the __MACOSX
|
# We use ditto directly, because dot_clean has issues if the __MACOSX
|
||||||
@ -46,6 +46,9 @@ module UnpackStrategy
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
}
|
end
|
||||||
|
private_constant :MacOSZipExtension
|
||||||
|
|
||||||
|
prepend MacOSZipExtension
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
@ -4,6 +4,8 @@ require_relative "load_path"
|
|||||||
|
|
||||||
require "rubocop-performance"
|
require "rubocop-performance"
|
||||||
require "rubocop-rspec"
|
require "rubocop-rspec"
|
||||||
|
require "rubocop-sorbet"
|
||||||
|
|
||||||
require "rubocops/formula_desc"
|
require "rubocops/formula_desc"
|
||||||
require "rubocops/components_order"
|
require "rubocops/components_order"
|
||||||
require "rubocops/components_redundancy"
|
require "rubocops/components_redundancy"
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
# frozen_string_literal: true
|
|
||||||
# typed: false
|
# typed: false
|
||||||
|
# frozen_string_literal: true
|
||||||
|
|
||||||
# Add your extra requires here
|
# Add your extra requires here
|
||||||
|
Loading…
x
Reference in New Issue
Block a user