urls_cop pypiurls: make non-strict

This commit is contained in:
commitay 2018-04-25 07:35:26 +10:00
parent 5195e72242
commit 1b7e6f7eb2
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