Last active
November 15, 2017 09:51
-
-
Save avdept/2f7d7b785723717f0237a46f555d55e5 to your computer and use it in GitHub Desktop.
My personal rubocop config. Will add more soon
This file contains hidden or 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
Metrics/LineLength: | |
Max: 120 | |
AllCops: | |
TargetRubyVersion: 2.2 | |
# Too short methods lead to extraction of single-use methods, which can make | |
# the code easier to read (by naming things), but can also clutter the class | |
Metrics/MethodLength: | |
Max: 20 | |
Metrics/ClassLength: | |
Max: 150 | |
Style/HashSyntax: | |
EnforcedStyle: ruby19_no_mixed_keys | |
Style/CollectionMethods: | |
Enabled: true | |
PreferredMethods: | |
# inject seems more common in the community. | |
reduce: "inject" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment