Enable and fix warnings
This commit is contained in:
parent
b1fe90710e
commit
d6b3f5031a
@ -2,8 +2,10 @@
|
|||||||
# frozen_string_literal: true
|
# frozen_string_literal: true
|
||||||
|
|
||||||
module Homebrew
|
module Homebrew
|
||||||
|
class << self
|
||||||
|
undef tar_args
|
||||||
sig { returns(T::Array[String]) }
|
sig { returns(T::Array[String]) }
|
||||||
def self.tar_args
|
def tar_args
|
||||||
if MacOS.version >= :catalina
|
if MacOS.version >= :catalina
|
||||||
["--no-mac-metadata", "--no-acls", "--no-xattrs"].freeze
|
["--no-mac-metadata", "--no-acls", "--no-xattrs"].freeze
|
||||||
else
|
else
|
||||||
@ -11,8 +13,10 @@ module Homebrew
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
undef gnu_tar
|
||||||
sig { params(gnu_tar_formula: Formula).returns(String) }
|
sig { params(gnu_tar_formula: Formula).returns(String) }
|
||||||
def self.gnu_tar(gnu_tar_formula)
|
def gnu_tar(gnu_tar_formula)
|
||||||
"#{gnu_tar_formula.opt_bin}/gtar"
|
"#{gnu_tar_formula.opt_bin}/gtar"
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
end
|
||||||
|
|||||||
@ -1,8 +1,6 @@
|
|||||||
# typed: true
|
# typed: true
|
||||||
# frozen_string_literal: true
|
# frozen_string_literal: true
|
||||||
|
|
||||||
require "livecheck/livecheck"
|
|
||||||
|
|
||||||
module Homebrew
|
module Homebrew
|
||||||
module Livecheck
|
module Livecheck
|
||||||
# The `Livecheck::SkipConditions` module primarily contains methods that
|
# The `Livecheck::SkipConditions` module primarily contains methods that
|
||||||
|
|||||||
@ -1,5 +1,6 @@
|
|||||||
# frozen_string_literal: true
|
# frozen_string_literal: true
|
||||||
|
|
||||||
|
require "livecheck/livecheck"
|
||||||
require "livecheck/skip_conditions"
|
require "livecheck/skip_conditions"
|
||||||
|
|
||||||
describe Homebrew::Livecheck::SkipConditions do
|
describe Homebrew::Livecheck::SkipConditions do
|
||||||
|
|||||||
@ -66,6 +66,7 @@ RSpec.configure do |config|
|
|||||||
config.order = :random
|
config.order = :random
|
||||||
|
|
||||||
config.raise_errors_for_deprecations!
|
config.raise_errors_for_deprecations!
|
||||||
|
config.warnings = true
|
||||||
|
|
||||||
config.filter_run_when_matching :focus
|
config.filter_run_when_matching :focus
|
||||||
|
|
||||||
@ -179,6 +180,7 @@ RSpec.configure do |config|
|
|||||||
end
|
end
|
||||||
|
|
||||||
config.around do |example|
|
config.around do |example|
|
||||||
|
undef find_files if defined? find_files
|
||||||
def find_files
|
def find_files
|
||||||
return [] unless File.exist?(TEST_TMPDIR)
|
return [] unless File.exist?(TEST_TMPDIR)
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user