From b01446d059ef66480624585d1aa6e42990c6006b Mon Sep 17 00:00:00 2001 From: Gautham Goli Date: Tue, 22 May 2018 17:02:20 +0530 Subject: [PATCH] audit: Add condition check on new_formula_audits --- Library/Homebrew/dev-cmd/audit.rb | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/Library/Homebrew/dev-cmd/audit.rb b/Library/Homebrew/dev-cmd/audit.rb index 9c978357ce..8a561c948d 100644 --- a/Library/Homebrew/dev-cmd/audit.rb +++ b/Library/Homebrew/dev-cmd/audit.rb @@ -123,8 +123,7 @@ module Homebrew options[:style_offenses] = style_results.file_offenses(f.path) fa = FormulaAuditor.new(f, options) fa.audit - - next if fa.problems.empty? + next if fa.problems.empty? && fa.new_formula_problems.empty? fa.problems formula_count += 1 problem_count += fa.problems.size @@ -155,7 +154,7 @@ module Homebrew errors_summary = "#{Formatter.pluralize(problem_count, "problem")} in #{Formatter.pluralize(formula_count, "formula")}" return if problem_count.zero? - ofail errors_summary unless strict + ofail errors_summary unless created_pr_comment end def format_problem_lines(problems)