aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/rubocops
diff options
context:
space:
mode:
authorMike McQuaid2017-12-30 19:15:52 +0000
committerMike McQuaid2017-12-30 20:56:55 +0000
commitf9b6407110d7fb98a65b470d166fc5b7be6052ee (patch)
tree5839dad5dbb9c45d21dde5f7421e33d41939f9cd /Library/Homebrew/rubocops
parent4fff56ca4f04c710db4000c65ec4e1502b50b62b (diff)
downloadbrew-f9b6407110d7fb98a65b470d166fc5b7be6052ee.tar.bz2
lines_cop: deprecate 'needs :openmp'.
Diffstat (limited to 'Library/Homebrew/rubocops')
-rw-r--r--Library/Homebrew/rubocops/lines_cop.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/Library/Homebrew/rubocops/lines_cop.rb b/Library/Homebrew/rubocops/lines_cop.rb
index fdeb165ed..4e7aa1adb 100644
--- a/Library/Homebrew/rubocops/lines_cop.rb
+++ b/Library/Homebrew/rubocops/lines_cop.rb
@@ -276,6 +276,10 @@ module RuboCop
problem "'fails_with :llvm' is now a no-op so should be removed"
end
+ find_method_with_args(body_node, :needs, :openmp) do
+ problem "'needs :openmp' should be replaced with 'depends_on \"gcc\"'"
+ end
+
find_method_with_args(body_node, :system, /^(otool|install_name_tool|lipo)/) do
next if @formula_name == "cctools"
problem "Use ruby-macho instead of calling #{@offensive_node.source}"