Fix brew style warnings
This commit is contained in:
parent
e5e84eec7d
commit
b135a70c57
@ -39,7 +39,7 @@ module Homebrew
|
|||||||
filtered_list
|
filtered_list
|
||||||
elsif ARGV.named.empty?
|
elsif ARGV.named.empty?
|
||||||
if ARGV.include? "--full-name"
|
if ARGV.include? "--full-name"
|
||||||
full_names = Formula.installed.map(&:full_name).sort &tap_and_name_comparison
|
full_names = Formula.installed.map(&:full_name).sort(&tap_and_name_comparison)
|
||||||
return if full_names.empty?
|
return if full_names.empty?
|
||||||
puts Formatter.columns(full_names)
|
puts Formatter.columns(full_names)
|
||||||
else
|
else
|
||||||
|
@ -14,7 +14,7 @@ module Homebrew
|
|||||||
def readall
|
def readall
|
||||||
if ARGV.include?("--syntax")
|
if ARGV.include?("--syntax")
|
||||||
scan_files = "#{HOMEBREW_LIBRARY_PATH}/**/*.rb"
|
scan_files = "#{HOMEBREW_LIBRARY_PATH}/**/*.rb"
|
||||||
ruby_files = Dir.glob(scan_files).reject{|file| file =~ /vendor|cask/ }
|
ruby_files = Dir.glob(scan_files).reject { |file| file =~ /vendor|cask/ }
|
||||||
|
|
||||||
Homebrew.failed = true unless Readall.valid_ruby_syntax?(ruby_files)
|
Homebrew.failed = true unless Readall.valid_ruby_syntax?(ruby_files)
|
||||||
end
|
end
|
||||||
|
Loading…
x
Reference in New Issue
Block a user