-
-
Notifications
You must be signed in to change notification settings - Fork 263
New issue
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
Rails/ContentTag makes rubocop crashes #546
Labels
bug
Something isn't working
Comments
koic
added a commit
to koic/rubocop-rails
that referenced
this issue
Sep 14, 2021
Fixes rubocop#546 This PR excludes `app/models` by default for `Rails/ContentTag`. Because it prevents false positives for `tag` calls to `has_one: tag`. No helpers are used in normal models.
9 tasks
koic
added a commit
to koic/rubocop-rails
that referenced
this issue
Sep 14, 2021
Fixes rubocop#546 This PR excludes `app/models` by default for `Rails/ContentTag`. Because it prevents false positives for `tag` calls to `has_one: tag`. No helpers are used in normal models.
koic
added a commit
that referenced
this issue
Sep 14, 2021
…_content_tag [Fix #546] Exclude `app/models` by default for `Rails/ContentTag`
THanks a lot @koic 🙏 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
With this new version, I have issues with rubocop running on a pure ruby (no HTML or whatsoever) file that plays with act_as_taggable (code contains some
.tag
callstag_something
etc ...An error occurred while Rails/ContentTag cop was inspecting /Users/nathangouy/Work/**************/app/models/concerns/tenant_tagging.rb
Bugs on these 2 lines:
Originally posted by @ngouy in #260 (comment)
rubocop -V :
The text was updated successfully, but these errors were encountered: