Skip to content
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

MethodDefinitionInTask false positive for Data class #53

Open
viralpraxis opened this issue Mar 25, 2024 · 0 comments
Open

MethodDefinitionInTask false positive for Data class #53

viralpraxis opened this issue Mar 25, 2024 · 0 comments

Comments

@viralpraxis
Copy link

Althrough MethodDefinitionInTask cop does a good job ignoring method definitions in classes/modules, it does not detect Data methods:

# some rake task

Data.define(:data) do
  def some_helper_method # Rake/MethodDefinitionInTask complains here
    data.do_something
  end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant