-
-
Notifications
You must be signed in to change notification settings - Fork 3.1k
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
[Fix #1779] New cop ModuleLength #1788
Conversation
91e3a2d
to
250b11e
Compare
Oops, seems like it has some issues. Please do not merge yet. |
Looking better now 😄. Go ahead! |
Please change the commit message to "[Fix #1779] New cop ModuleLength" (no dot at the end). |
Should I change the changelog entry as well? On April 12, 2015 6:34:13 PM CEST, Jonas Arvidsson [email protected] wrote:
Sent from my Android device with K-9 Mail. Please excuse my brevity. |
6f4d1fc
to
e07b1de
Compare
Done. |
👍 Looks good to me! |
Hi, is there something blocking this feature? Should I rebase it on master? |
@sdeframond You need to rebase now. |
e07b1de
to
c8fff07
Compare
@jonas054 I just rebased. |
@@ -24,6 +24,7 @@ | |||
|
|||
### New features | |||
|
|||
* [#1788](https://github.com/bbatsov/rubocop/pull/1788): New cop `ModuleLength` checks for overly long module definitions. ([@sdeframond][]) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This entry is not in the right place.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oops, my bad. It should be OK now.
c8fff07
to
7c50c12
Compare
[Fix #1779] New cop ModuleLength
👍 |
Following discussion on #1779, here is a new cop that checks for overly long module definitions.
Since
ModuleLength
andClassLength
do almost the same thing, I grouped the common code into a newClassishLength
module.Hope this helps.