Merge pull request #4108 from commitay/urls_cop_pypi

urls_cop pypiurls: make non-strict
This commit is contained in:
Mike McQuaid 2018-04-25 08:32:30 +01:00 committed by GitHub
commit 56124f2918
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 3 deletions

View File

@ -191,8 +191,7 @@ module RuboCop
end
end
end
end
module FormulaAuditStrict
class PyPiUrls < FormulaCop
def audit_formula(_node, _class_node, _parent_class_node, body_node)
urls = find_every_func_call_by_name(body_node, :url)

View File

@ -164,7 +164,7 @@ describe RuboCop::Cop::FormulaAudit::Urls do
end
end
describe RuboCop::Cop::FormulaAuditStrict::PyPiUrls do
describe RuboCop::Cop::FormulaAudit::PyPiUrls do
subject(:cop) { described_class.new }
context "when a pypi.python.org URL is used" do