-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make Metrics/AbcSize much more liberal (#48)
The default (17) is pretty restrictive, and sometimes feels inconsistent. We've seen a few negative consequences of enforcing this AbcSize: 1. People often extract local variables to memoized private methods. This is not desirable, because a local variable actually has a lower cognitive overhead than a memoized, private method. 2. By extracting lots of small, private methods, you're adding more indirection and literally more lines of code to read. Sometimes, this can make it harder to read and understand code. 3. By eagerly extracting lots of small, private methods, you might be making it harder to identify more effective ways of refactoring the code. We want to lean on code reviewers to raise a concern when code becomes overly complex. /no-platform
- Loading branch information
Showing
5 changed files
with
9 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters