Add check for url :block
This commit is contained in:
parent
d5448ff54a
commit
cc2b99c8cf
@ -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'."
|
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
|
url_node = stanza.stanza_node.first_argument
|
||||||
|
|
||||||
legacy_comma_separator_pattern = /version.(before|after)_comma/
|
legacy_comma_separator_pattern = /version.(before|after)_comma/
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user