aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/dev-cmd
diff options
context:
space:
mode:
authorMike McQuaid2016-10-22 13:32:46 +0100
committerMike McQuaid2016-10-22 13:32:46 +0100
commit1f963267b6bd415ce3024bb7860d5253ad8e0132 (patch)
tree894f15a5c863307b5fd2062330c6c3398fd36c72 /Library/Homebrew/dev-cmd
parent5b421b93c9897dd5bae60c24bb937cccdafa5574 (diff)
downloadbrew-1f963267b6bd415ce3024bb7860d5253ad8e0132.tar.bz2
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.
Diffstat (limited to 'Library/Homebrew/dev-cmd')
-rw-r--r--Library/Homebrew/dev-cmd/audit.rb7
1 files changed, 3 insertions, 4 deletions
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