whitespace fixes

This commit is contained in:
EricFromCanada 2019-04-01 16:02:13 -04:00
parent 15c38a2d8b
commit 89f0fcedbe
19 changed files with 43 additions and 42 deletions

View File

@ -100,12 +100,12 @@ then
# Refuse to run on pre-Mavericks
if [[ "$HOMEBREW_MACOS_VERSION_NUMERIC" -lt "100900" ]]
then
printf "ERROR: Your version of macOS (%s) is too old to run Homebrew!" "$HOMEBREW_MACOS_VERSION" >&2
printf "ERROR: Your version of macOS (%s) is too old to run Homebrew!\\n" "$HOMEBREW_MACOS_VERSION" >&2
if [[ "$HOMEBREW_MACOS_VERSION_NUMERIC" -lt "100700" ]]
then
printf " For 10.4 - 10.6 support see: https://github.com/mistydemeo/tigerbrew\n" >&2
printf " For 10.4 - 10.6 support see: https://github.com/mistydemeo/tigerbrew\\n" >&2
fi
printf "\n" >&2
printf "\\n" >&2
fi
# The system Curl is too old for some modern HTTPS certificates on

View File

@ -52,7 +52,7 @@ module Cask
ALT_NAME_ATTRIBUTE = "com.apple.metadata:kMDItemAlternateNames".freeze
# Try to make the asset searchable under the target name. Spotlight
# Try to make the asset searchable under the target name. Spotlight
# respects this attribute for many filetypes, but ignores it for App
# bundles. Alfred 2.2 respects it even for App bundles.
def add_altname_metadata(file, altname, command: nil)

View File

@ -133,8 +133,8 @@ module Cask
Checksum for Cask '#{token}' does not match.
Expected: #{Formatter.success(expected.to_s)}
Actual: #{Formatter.error(actual.to_s)}
File: #{path}
Actual: #{Formatter.error(actual.to_s)}
File: #{path}
To retry an incomplete download, remove the file above. If the issue persists, visit:

View File

@ -49,8 +49,8 @@ module Homebrew
unless f.core_formula?
tap = <<~EOS
Formula: #{f.name}
Tap: #{f.tap}
Path: #{f.path}
Tap: #{f.tap}
Path: #{f.path}
EOS
files["00.tap.out"] = { content: tap }
end

View File

@ -152,8 +152,8 @@ EOSCRIPT
odie <<EOS
Checksum mismatch.
Expected: $VENDOR_SHA
Actual: $sha
Archive: $CACHED_LOCATION
Actual: $sha
Archive: $CACHED_LOCATION
To retry an incomplete download, remove the file above.
EOS
fi

View File

@ -70,7 +70,7 @@ module Homebrew
end
puts "Start commit: #{start_commit}"
puts "End commit: #{end_commit}"
puts " End commit: #{end_commit}"
mkdir "update-test"
chdir "update-test" do

View File

@ -403,12 +403,12 @@ class BuildError < RuntimeError
elsif issues_url = formula.tap.issues_url
puts <<~EOS
If reporting this issue please do so at (not Homebrew/brew or Homebrew/core):
#{Formatter.url(issues_url)}
#{Formatter.url(issues_url)}
EOS
else
puts <<~EOS
If reporting this issue please do so to (not Homebrew/brew or Homebrew/core):
#{formula.tap}
#{formula.tap}
EOS
end
else
@ -568,8 +568,8 @@ class ChecksumMismatchError < RuntimeError
super <<~EOS
#{@hash_type} mismatch
Expected: #{expected}
Actual: #{actual}
Archive: #{fn}
Actual: #{actual}
Archive: #{fn}
To retry an incomplete download, remove the file above.
EOS
end

View File

@ -135,7 +135,7 @@ module Stdenv
return if compiler_any_clang?
return unless Hardware.is_32_bit?
# Can't mix "-march" for a 32-bit CPU with "-arch x86_64"
# Can't mix "-march" for a 32-bit CPU with "-arch x86_64"
replace_in_cflags(/-march=\S*/, "-Xarch_#{Hardware::CPU.arch_32_bit} \\0")
end

View File

@ -65,7 +65,7 @@ module DiskUsageExtension
end
# Homebrew extends Ruby's `Pathname` to make our code more readable.
# @see https://ruby-doc.org/stdlib-1.8.7/libdoc/pathname/rdoc/Pathname.html Ruby's Pathname API
# @see https://ruby-doc.org/stdlib-1.8.7/libdoc/pathname/rdoc/Pathname.html Ruby's Pathname API
class Pathname
include DiskUsageExtension

View File

@ -140,7 +140,7 @@ module FormulaCellarChecks
<<~EOS
Emacs Lisp files were installed into the wrong site-lisp subdirectory.
They should be installed into:
#{share}/emacs/site-lisp/#{name}
#{share}/emacs/site-lisp/#{name}
EOS
end
@ -156,7 +156,7 @@ module FormulaCellarChecks
Emacs Lisp files were linked directly to #{HOMEBREW_PREFIX}/share/emacs/site-lisp
This may cause conflicts with other packages.
They should instead be installed into:
#{share}/emacs/site-lisp/#{name}
#{share}/emacs/site-lisp/#{name}
The offending files are:
#{elisps * "\n "}

View File

@ -12,7 +12,8 @@ module Homebrew
when :ppc
abort <<~EOS
Sorry, Homebrew does not support your computer's CPU architecture.
For PPC support, see: https://github.com/mistydemeo/tigerbrew
For PPC support, see:
#{Formatter.url("https://github.com/mistydemeo/tigerbrew")}
EOS
end
end

View File

@ -34,7 +34,7 @@ class Migrator
super <<~EOS
#{formula.name} from #{formula.tap} is given, but old name #{formula.oldname} was installed from #{tap || "path or url"}.
#{msg}To force migrate use `brew migrate --force #{formula.oldname}`.
#{msg}To force migration use `brew migrate --force #{formula.oldname}`.
EOS
end
end

View File

@ -36,14 +36,14 @@ class Requirement
if cask
s += <<~EOS
You can install with Homebrew Cask:
brew cask install #{cask}
brew cask install #{cask}
EOS
end
if download
s += <<~EOS
You can download from:
#{download}
#{download}
EOS
end
s

View File

@ -117,8 +117,8 @@ module RuboCop
# Returns array of function call nodes matching func_name in every descendant of node.
#
# - matches function call: `foo(*args, **kwargs)`
# - does not match method calls: `foo.bar(*args, **kwargs)`
# - matches function call: `foo(*args, **kwargs)`
# - does not match method calls: `foo.bar(*args, **kwargs)`
# - returns every function calls if no func_name is passed
def find_every_func_call_by_name(node, func_name = nil)
return if node.nil?

View File

@ -44,7 +44,7 @@ module RuboCop
if patch_url !~ /[a-fA-F0-9]{40}/
problem <<~EOS.chomp
GitHub/Gist patches should specify a revision:
#{patch_url}
#{patch_url}
EOS
end
end
@ -63,14 +63,14 @@ module RuboCop
if regex_match_group(patch, %r{macports/trunk})
problem <<~EOS.chomp
MacPorts patches should specify a revision instead of trunk:
#{patch_url}
#{patch_url}
EOS
end
if regex_match_group(patch, %r{^http://trac\.macports\.org})
problem <<~EOS.chomp
Patches from MacPorts Trac should be https://, not http:
#{patch_url}
#{patch_url}
EOS
end
@ -78,7 +78,7 @@ module RuboCop
problem <<~EOS.chomp
Patches from Debian should be https://, not http:
#{patch_url}
#{patch_url}
EOS
end
end

View File

@ -63,7 +63,7 @@ describe Options do
expect(subject.count).to eq(1)
end
it "preserves existing member when adding a duplicate" do
it "preserves existing member when adding a duplicate" do
a = Option.new("foo", "bar")
b = Option.new("foo", "qux")
subject << a << b

View File

@ -50,7 +50,7 @@ describe RuboCop::Cop::FormulaAudit::Patches do
[{ message:
<<~EOS.chomp,
GitHub/Gist patches should specify a revision:
#{patch_url}
#{patch_url}
EOS
severity: :convention,
line: 5,
@ -60,7 +60,7 @@ describe RuboCop::Cop::FormulaAudit::Patches do
[{ message:
<<~EOS.chomp,
MacPorts patches should specify a revision instead of trunk:
#{patch_url}
#{patch_url}
EOS
severity: :convention,
line: 5,
@ -70,7 +70,7 @@ describe RuboCop::Cop::FormulaAudit::Patches do
[{ message:
<<~EOS.chomp,
Patches from MacPorts Trac should be https://, not http:
#{patch_url}
#{patch_url}
EOS
severity: :convention,
line: 5,
@ -80,7 +80,7 @@ describe RuboCop::Cop::FormulaAudit::Patches do
[{ message:
<<~EOS.chomp,
Patches from Debian should be https://, not http:
#{patch_url}
#{patch_url}
EOS
severity: :convention,
line: 5,
@ -141,7 +141,7 @@ describe RuboCop::Cop::FormulaAudit::Patches do
{ message:
<<~EOS.chomp,
Patches from MacPorts Trac should be https://, not http:
http://trac.macports.org/export/68507/trunk/dports/net/trafshow/files/
http://trac.macports.org/export/68507/trunk/dports/net/trafshow/files/
EOS
severity: :convention,
line: 8,
@ -185,7 +185,7 @@ describe RuboCop::Cop::FormulaAudit::Patches do
[{ message:
<<~EOS.chomp,
GitHub/Gist patches should specify a revision:
#{patch_url}
#{patch_url}
EOS
severity: :convention,
line: 5,
@ -195,7 +195,7 @@ describe RuboCop::Cop::FormulaAudit::Patches do
[{ message:
<<~EOS.chomp,
MacPorts patches should specify a revision instead of trunk:
#{patch_url}
#{patch_url}
EOS
severity: :convention,
line: 5,
@ -205,7 +205,7 @@ describe RuboCop::Cop::FormulaAudit::Patches do
[{ message:
<<~EOS.chomp,
Patches from MacPorts Trac should be https://, not http:
#{patch_url}
#{patch_url}
EOS
severity: :convention,
line: 5,
@ -215,7 +215,7 @@ describe RuboCop::Cop::FormulaAudit::Patches do
[{ message:
<<~EOS.chomp,
Patches from Debian should be https://, not http:
#{patch_url}
#{patch_url}
EOS
severity: :convention,
line: 5,

View File

@ -71,7 +71,7 @@ module Homebrew
odie_if_defined <<~EOS
the '#{name}' gem is installed but couldn't find '#{executable}' in the PATH:
#{ENV["PATH"]}
#{ENV["PATH"]}
EOS
end

View File

@ -49,7 +49,7 @@ module GitHub
if ENV["HOMEBREW_GITHUB_API_TOKEN"]
message << <<~EOS
HOMEBREW_GITHUB_API_TOKEN may be invalid or expired; check:
#{Formatter.url("https://github.com/settings/tokens")}
#{Formatter.url("https://github.com/settings/tokens")}
EOS
else
message << <<~EOS
@ -143,7 +143,7 @@ module GitHub
onoe <<~EOS
Your HOMEBREW_GITHUB_API_TOKEN does not have sufficient scope!
Scopes it needs: #{needed_human_scopes}
Scopes it has: #{credentials_scopes}
Scopes it has: #{credentials_scopes}
Create a new personal access token:
#{ALL_SCOPES_URL}
#{Utils::Shell.set_variable_in_profile("HOMEBREW_GITHUB_API_TOKEN", "your_token_here")}