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
Any method named find_by_* is triggering Rails/DynamicFindBy errors. This is occurring even if the methods are statically defined.
find_by_*
Rails/DynamicFindBy
For example any call to this method triggers it: https://github.com/projecthydra/hydra-head/blob/f63dcc2592fbef6a648ae21e85433db7c2a7749f/hydra-access-controls/lib/hydra/user.rb#L20
The text was updated successfully, but these errors were encountered:
Hi, thanks for your feedback! I also recognize the problem. We can use whitelist for the problem.
e.g.
# In .rubocop.yml Rails/DynamicFindBy: Whitelist: - find_by_user_key
#3455 (comment)
Sorry, something went wrong.
That's the reason the whitelist exists. There's nothing else we can do (apart from disabling the cop).
Gem::Specification.find_by_name
No branches or pull requests
Any method named
find_by_*
is triggeringRails/DynamicFindBy
errors. This is occurring even if the methods are statically defined.For example any call to this method triggers it:
https://github.com/projecthydra/hydra-head/blob/f63dcc2592fbef6a648ae21e85433db7c2a7749f/hydra-access-controls/lib/hydra/user.rb#L20
The text was updated successfully, but these errors were encountered: