Skip to content
Snippets Groups Projects
Commit 24f183dd authored by Mike McQuaid's avatar Mike McQuaid
Browse files

audit: add strict mode, argument.

parent a1ba5a5d
No related branches found
No related tags found
No related merge requests found
......@@ -17,8 +17,10 @@ module Homebrew
ARGV.formulae
end
strict = ARGV.include? "--strict"
ff.each do |f|
fa = FormulaAuditor.new f
fa = FormulaAuditor.new(f, :strict => strict)
fa.audit
unless fa.problems.empty?
......@@ -76,8 +78,9 @@ class FormulaAuditor
swig
]
def initialize(formula)
def initialize(formula, options={})
@formula = formula
@strict = !!options[:strict]
@problems = []
@text = FormulaText.new(formula.path)
@specs = %w{stable devel head}.map { |s| formula.send(s) }.compact
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment