Pattern: Use of legacy content_tag
Issue: -
Checks that tag
is used instead of content_tag
because content_tag
is legacy syntax.
# bad
content_tag(:p, 'Hello world!')
content_tag(:br)
# good
tag.p('Hello world!')
tag.br
content_tag(name, 'Hello world!')