From 1f963267b6bd415ce3024bb7860d5253ad8e0132 Mon Sep 17 00:00:00 2001 From: Mike McQuaid Date: Sat, 22 Oct 2016 13:32:46 +0100 Subject: Update Rubocop style. Another look at the current Rubocop rules and how they fit with our existing and desired future style. Almost all of these changes were automatic. Split some rules between formulae/brew where brew doesn't have millions of cases that need fixed. --- Library/Homebrew/dev-cmd/audit.rb | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'Library/Homebrew/dev-cmd') diff --git a/Library/Homebrew/dev-cmd/audit.rb b/Library/Homebrew/dev-cmd/audit.rb index 9a15c6de7..12eaf9167 100644 --- a/Library/Homebrew/dev-cmd/audit.rb +++ b/Library/Homebrew/dev-cmd/audit.rb @@ -137,7 +137,7 @@ class FormulaAuditor attr_reader :formula, :text, :problems - BUILD_TIME_DEPS = %W[ + BUILD_TIME_DEPS = %w[ autoconf automake boost-build @@ -449,9 +449,8 @@ class FormulaAuditor end return unless @new_formula - unless formula.deprecated_options.empty? - problem "New formulae should not use `deprecated_option`." - end + return if formula.deprecated_options.empty? + problem "New formulae should not use `deprecated_option`." end def audit_desc -- cgit v1.2.3