Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Add new `Style/EmptyMethod` cop #3720
This cop checks for the style of empty method definitions. By default it enforces a compact style, i.e.:
but it can be configured to enforce a loose style as well, i.e.:
The cop comes with auto-correct.
Before submitting the PR make sure the following are checked:
I'm pretty sure most developers will agree it should defaults to
@lucascaton: The best way to test is to open up an issue or a PR in the style guide repository to see if people agree.
For now, the section you linked (and that is also linked in the cop itself) states: