aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/utils
diff options
context:
space:
mode:
authorAndrew Janke2016-04-18 17:39:21 -0400
committerAndrew Janke2016-04-21 14:45:33 -0400
commita3b70d38a72400451594f7c11853ef2b379a3bca (patch)
treee74d76dd1de346aa7376d96a404b1173341c4e3e /Library/Homebrew/utils
parent534d6fd5275a43bd5cc03b1aa19a4a39641a028f (diff)
downloadbrew-a3b70d38a72400451594f7c11853ef2b379a3bca.tar.bz2
brew-audit: pull style checks in to main audit output
This collects all violations for each formula in a single place, instead of doing `brew style` outputs for all formulae first, and then the other audit checks. Closes #112. Signed-off-by: Andrew Janke <andrew@apjanke.net>
Diffstat (limited to 'Library/Homebrew/utils')
-rw-r--r--Library/Homebrew/utils/popen.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/Library/Homebrew/utils/popen.rb b/Library/Homebrew/utils/popen.rb
index 1463df530..64dee8ddf 100644
--- a/Library/Homebrew/utils/popen.rb
+++ b/Library/Homebrew/utils/popen.rb
@@ -3,6 +3,10 @@ module Utils
popen(args, "rb", &block)
end
+ def self.popen_read_text(*args, &block)
+ popen(args, "r", &block)
+ end
+
def self.popen_write(*args, &block)
popen(args, "wb", &block)
end