Merge pull request #4108 from commitay/urls_cop_pypi
urls_cop pypiurls: make non-strict
This commit is contained in:
commit
56124f2918
@ -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)
|
||||
|
||||
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user