We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
content_tag(*args, &block)
Should be properly converted to new syntax, or not corrected at all.
It's converted to
tag(*args, &block)
Which isn't valid, as the legacy tag syntax does not support passing content.
I have a little helper in my project which triggers this.
def concat_content_tag(*args, &block) concat content_tag(*args, &block) end
1.9.1 (using Parser 3.0.0.0, rubocop-ast 1.4.1, running on ruby 2.7.2 x86_64-linux) - rubocop-rails 2.9.1
The text was updated successfully, but these errors were encountered:
[Fix rubocop#436] Fix a false positive for Rails/ContentTag
Rails/ContentTag
33718bb
Fixes rubocop#436. This PR fixes a false positive for `Rails/ContentTag` when the first argument is a splat argument.
cc6a0ab
1bd8ba4
Merge pull request #437 from koic/fix_false_positive_for_rails_conten…
e71791a
…t_tag [Fix #436] Fix a false positive for `Rails/ContentTag`
Successfully merging a pull request may close this issue.
Expected behavior
Should be properly converted to new syntax, or not corrected at all.
Actual behavior
It's converted to
Which isn't valid, as the legacy tag syntax does not support passing content.
Steps to reproduce the problem
I have a little helper in my project which triggers this.
RuboCop version
The text was updated successfully, but these errors were encountered: