Add check for url :block

This commit is contained in:
Bevan Kay 2022-01-10 21:27:20 +11:00
parent d5448ff54a
commit cc2b99c8cf
No known key found for this signature in database
GPG Key ID: C55CB024B5314B57

View File

@ -14,7 +14,9 @@ module RuboCop
MSG_CSV = "Use 'version.csv.first' instead of 'version.before_comma' and 'version.csv.second' instead of 'version.after_comma'."
def on_url_stanza(stanza)
def on_url_stanza(stanza)
return if stanza.stanza_node.type == :block
url_node = stanza.stanza_node.first_argument
legacy_comma_separator_pattern = /version.(before|after)_comma/