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

Cop suggestion: CommentedEnd #4663

Closed
deivid-rodriguez opened this issue Aug 14, 2017 · 1 comment
Closed

Cop suggestion: CommentedEnd #4663

deivid-rodriguez opened this issue Aug 14, 2017 · 1 comment

Comments

@deivid-rodriguez
Copy link
Contributor

I find this code frequently:

class MyClassName
  # stuff
end # MyClassName

It'd be nice to have a cop to prevent comments right after the end keyword. The only use case I can think of (pointing out which block the end is closing) usually means that the block is too long or it has too much nesting.

@Drenmi
Copy link
Collaborator

Drenmi commented Aug 19, 2017

I'm not against it. 🙂

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

2 participants