rubocops: remove scons audit.

This will be deprecated in #5477.
This commit is contained in:
Mike McQuaid 2019-01-06 14:41:37 +00:00
parent 930f7b90dc
commit b917cccf19
No known key found for this signature in database
GPG Key ID: 48A898132FD8EE70
2 changed files with 0 additions and 18 deletions

View File

@ -42,10 +42,6 @@ module RuboCop
problem %q(use "xcodebuild *args" instead of "system 'xcodebuild', *args")
end
find_method_with_args(body_node, :system, "scons") do
problem "use \"scons *args\" instead of \"system 'scons', *args\""
end
find_method_with_args(body_node, :system, "go", "get") do
problem "Do not use `go get`. Please ask upstream to implement Go vendoring"
end

View File

@ -86,20 +86,6 @@ describe RuboCop::Cop::FormulaAudit::Text do
RUBY
end
it "When scons is executed" do
expect_offense(<<~RUBY)
class Foo < Formula
url "https://brew.sh/foo-1.0.tgz"
homepage "https://brew.sh"
def install
system "scons", "foo", "bar"
^^^^^^^^^^^^^^^^^^^^^^^^^^^^ use \"scons *args\" instead of \"system 'scons', *args\"
end
end
RUBY
end
it "When plist_options are not defined when using a formula-defined plist", :ruby23 do
expect_offense(<<~RUBY)
class Foo < Formula