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

Metrics/MethodLength cop for define_method #4629

Closed
AlexWayfer opened this issue Jul 25, 2017 · 0 comments
Closed

Metrics/MethodLength cop for define_method #4629

AlexWayfer opened this issue Jul 25, 2017 · 0 comments

Comments

@AlexWayfer
Copy link
Contributor

Expected behavior

Metrics/MethodLength cop works for define_method content, because block length is equal to defining method length.

Actual behavior

Metrics/MethodLength cop doesn't work for define_method content.

Steps to reproduce the problem

Write define_method with block where is more than 10 LOC.

RuboCop version

$ rubocop -V
0.49.1 (using Parser 2.4.0.0, running on ruby 2.4.1 x86_64-linux)
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